|
|
|
@ -1,5 +1,6 @@
|
|
|
|
|
package com.fr.env.detect.impl.converter; |
|
|
|
|
|
|
|
|
|
import org.junit.Assert; |
|
|
|
|
import org.junit.Test; |
|
|
|
|
|
|
|
|
|
public class ClassConflictConvertorTest { |
|
|
|
@ -10,14 +11,7 @@ public class ClassConflictConvertorTest {
|
|
|
|
|
ClassNotFoundException ex1 = new ClassNotFoundException("Class 111.222.333 not found"); |
|
|
|
|
Iterable<String> names = ClassConflictConvertor.Converter.CLASS.converter(ex1); |
|
|
|
|
|
|
|
|
|
System.out.println(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
public void testConverter() { |
|
|
|
|
|
|
|
|
|
ClassNotFoundException ex1 = new ClassNotFoundException("com.zaxxer.hikari.HikariConfig"); |
|
|
|
|
ClassConflictConvertor convertor = new ClassConflictConvertor(); |
|
|
|
|
convertor.convert(ex1); |
|
|
|
|
String next = names.iterator().next(); |
|
|
|
|
Assert.assertEquals("111.222.333", next); |
|
|
|
|
} |
|
|
|
|
} |