Skip to content
This repository was archived by the owner on Sep 13, 2024. It is now read-only.

Commit 3b8d2f9

Browse files
committed
Fix ComponentAnnotationTest to work on different Java versions
1 parent b1ddb81 commit 3b8d2f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

org.eclipse.sisu.plexus/src/test/java/org/eclipse/sisu/plexus/ComponentAnnotationTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ private static void checkBehaviour( final String name )
102102
assertEquals( orig.hashCode(), clone.hashCode() );
103103

104104
String origToString = orig.toString().replace( "\"", "" ).replace( ".class", "" );
105+
origToString = origToString.replace( "ComponentAnnotationTest.A", "ComponentAnnotationTest$A" );
105106
String cloneToString = clone.toString().replace( '[', '{' ).replace( ']', '}' );
106107
cloneToString = cloneToString.replace( "class ", "" ).replace( "interface ", "" );
107-
cloneToString = cloneToString.replace( "ComponentAnnotationTest$A", "ComponentAnnotationTest.A" );
108108

109109
assertEquals( new HashSet<String>( Arrays.asList( origToString.split( "[(, )]" ) ) ),
110110
new HashSet<String>( Arrays.asList( cloneToString.split( "[(, )]" ) ) ) );

0 commit comments

Comments
 (0)