summaryrefslogtreecommitdiff
path: root/profgen/profgen/src/test/kotlin/com/android/tools/profgen/WildcardExpansionTest.kt
diff options
context:
space:
mode:
Diffstat (limited to 'profgen/profgen/src/test/kotlin/com/android/tools/profgen/WildcardExpansionTest.kt')
-rw-r--r--profgen/profgen/src/test/kotlin/com/android/tools/profgen/WildcardExpansionTest.kt11
1 files changed, 5 insertions, 6 deletions
diff --git a/profgen/profgen/src/test/kotlin/com/android/tools/profgen/WildcardExpansionTest.kt b/profgen/profgen/src/test/kotlin/com/android/tools/profgen/WildcardExpansionTest.kt
index ac8165ba8b..abf16c2a53 100644
--- a/profgen/profgen/src/test/kotlin/com/android/tools/profgen/WildcardExpansionTest.kt
+++ b/profgen/profgen/src/test/kotlin/com/android/tools/profgen/WildcardExpansionTest.kt
@@ -16,7 +16,6 @@
package com.android.tools.profgen
-import com.android.testutils.TestUtils
import com.google.common.truth.Truth.assertThat
import org.junit.Test
import java.io.ByteArrayInputStream
@@ -29,15 +28,15 @@ class WildcardExpansionTest {
@Test
fun testClassFile() {
val classFileResource = object : ClassFileResource {
- override fun getByteStream(): InputStream =
- TestUtils.resolveWorkspacePath(ClassFilePath).toFile().inputStream()
+ override fun getByteStream(): InputStream = testData(ClassFilePath).inputStream()
+ override fun getClassDescriptor(): String = "LHello;"
}
runTests(listOf(classFileResource))
}
@Test
fun testJarArchive() {
- val archive = TestUtils.resolveWorkspacePath(JarArchivePath)
+ val archive = testData(JarArchivePath).toPath()
ArchiveClassFileResourceProvider(archive).use {
runTests(it.getClassFileResources())
}
@@ -88,7 +87,7 @@ class WildcardExpansionTest {
}
companion object {
- private const val ClassFilePath = "tools/base/profgen/profgen/testData/Hello.class"
- private const val JarArchivePath = "tools/base/profgen/profgen/testData/hello.jar"
+ private const val ClassFilePath = "Hello.class"
+ private const val JarArchivePath = "hello.jar"
}
}