@@ -27,40 +27,40 @@ class TestGetSourceFileName {
27
27
28
28
@Test
29
29
fun testThis () {
30
- assertEquals(" TestGetSourceFileName.kt" , Instrumenter .computeSourceFileName(TestGetSourceFileName ::class .java))
30
+ assertEquals(" TestGetSourceFileName.kt" , Instrumenter .adapter. computeSourceFileName(TestGetSourceFileName ::class .java))
31
31
}
32
32
33
33
@Test
34
34
fun testJavaExample1 () {
35
- assertEquals(" ExampleClass.java" , Instrumenter .computeSourceFileName(ExampleClass ::class .java))
35
+ assertEquals(" ExampleClass.java" , Instrumenter .adapter. computeSourceFileName(ExampleClass ::class .java))
36
36
}
37
37
38
38
@Test
39
39
fun testJavaExample2 () {
40
40
assertEquals(
41
41
" ClassWithInnerClasses.java" ,
42
- Instrumenter .computeSourceFileName(ClassWithInnerClasses ::class .java)
42
+ Instrumenter .adapter. computeSourceFileName(ClassWithInnerClasses ::class .java)
43
43
)
44
44
}
45
45
46
46
@Test
47
47
fun testInnerClass () {
48
48
assertEquals(
49
49
" ClassWithInnerClasses.java" ,
50
- Instrumenter .computeSourceFileName(ClassWithInnerClasses .InnerStaticClass ::class .java)
50
+ Instrumenter .adapter. computeSourceFileName(ClassWithInnerClasses .InnerStaticClass ::class .java)
51
51
)
52
52
}
53
53
54
54
@Test
55
55
fun testSameNameButDifferentPackages () {
56
56
assertEquals(
57
57
true ,
58
- Instrumenter .computeSourceFileByClass(org.utbot.examples.samples.root.MyClass ::class .java)?.toPath()
58
+ Instrumenter .adapter. computeSourceFileByClass(org.utbot.examples.samples.root.MyClass ::class .java)?.toPath()
59
59
?.endsWith(Paths .get(" root" , " MyClass.java" ))
60
60
)
61
61
assertEquals(
62
62
true ,
63
- Instrumenter .computeSourceFileByClass(org.utbot.examples.samples.root.child.MyClass ::class .java)
63
+ Instrumenter .adapter. computeSourceFileByClass(org.utbot.examples.samples.root.child.MyClass ::class .java)
64
64
?.toPath()?.endsWith(Paths .get(" root" , " child" , " MyClass.java" ))
65
65
)
66
66
}
@@ -69,7 +69,7 @@ class TestGetSourceFileName {
69
69
fun testEmptyPackage () {
70
70
assertEquals(
71
71
true ,
72
- Instrumenter .computeSourceFileByClass(ClassWithoutPackage ::class .java)?.toPath()
72
+ Instrumenter .adapter. computeSourceFileByClass(ClassWithoutPackage ::class .java)?.toPath()
73
73
?.endsWith(" java/ClassWithoutPackage.java" )
74
74
)
75
75
}
@@ -78,7 +78,7 @@ class TestGetSourceFileName {
78
78
fun testPackageDoesNotMatchDir () {
79
79
assertEquals(
80
80
true ,
81
- Instrumenter .computeSourceFileByClass(ClassWithWrongPackage ::class .java)?.toPath()
81
+ Instrumenter .adapter. computeSourceFileByClass(ClassWithWrongPackage ::class .java)?.toPath()
82
82
?.endsWith(" org/utbot/examples/samples/ClassWithWrongPackage.kt" )
83
83
)
84
84
}
@@ -87,15 +87,15 @@ class TestGetSourceFileName {
87
87
fun testSearchDir () {
88
88
assertEquals(
89
89
null ,
90
- Instrumenter .computeSourceFileByClass(
90
+ Instrumenter .adapter. computeSourceFileByClass(
91
91
org.utbot.examples.samples.root.MyClass ::class .java,
92
92
Paths .get(" src/test/kotlin" )
93
93
)?.name
94
94
)
95
95
96
96
assertEquals(
97
97
" MyClass.java" ,
98
- Instrumenter .computeSourceFileByClass(
98
+ Instrumenter .adapter. computeSourceFileByClass(
99
99
org.utbot.examples.samples.root.MyClass ::class .java,
100
100
Paths .get(" src/test" )
101
101
)?.name
0 commit comments