public class jdk.tools.jaotc.test.collect.directory.DirectorySourceProviderTest
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.tools.jaotc.test.collect.directory.DirectorySourceProviderTest
super_class: java.lang.Object
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/tools/jaotc/test/collect/directory/DirectorySourceProviderTest;
public void itShouldReturnNullForNonExistantPath();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=3, args_size=1
start local 0 0: new jdk.tools.jaotc.collect.directory.DirectorySourceProvider
dup
new jdk.tools.jaotc.test.collect.FakeFileSupport
dup
iconst_0
anewarray java.lang.String
invokestatic jdk.tools.jaotc.test.collect.Utils.set:([Ljava/lang/Object;)Ljava/util/Set;
iconst_0
anewarray java.lang.String
invokestatic jdk.tools.jaotc.test.collect.Utils.set:([Ljava/lang/Object;)Ljava/util/Set;
invokespecial jdk.tools.jaotc.test.collect.FakeFileSupport.<init>:(Ljava/util/Set;Ljava/util/Set;)V
invokespecial jdk.tools.jaotc.collect.directory.DirectorySourceProvider.<init>:(Ljdk/tools/jaotc/collect/FileSupport;)V
astore 1
start local 1 1: aload 1
ldc "hello"
aconst_null
invokevirtual jdk.tools.jaotc.collect.directory.DirectorySourceProvider.findSource:(Ljava/lang/String;Ljdk/tools/jaotc/collect/SearchPath;)Ljdk/tools/jaotc/collect/ClassSource;
astore 2
start local 2 2: aload 2
invokestatic org.junit.Assert.assertNull:(Ljava/lang/Object;)V
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/tools/jaotc/test/collect/directory/DirectorySourceProviderTest;
1 4 1 target Ljdk/tools/jaotc/collect/directory/DirectorySourceProvider;
2 4 2 result Ljdk/tools/jaotc/collect/ClassSource;
RuntimeVisibleAnnotations:
org.junit.Test()
public void itShouldReturnNullForNonDirectory();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=3, args_size=1
start local 0 0: new jdk.tools.jaotc.collect.directory.DirectorySourceProvider
dup
new jdk.tools.jaotc.test.collect.FakeFileSupport
dup
iconst_1
anewarray java.lang.String
dup
iconst_0
ldc "foobar"
aastore
invokestatic jdk.tools.jaotc.test.collect.Utils.set:([Ljava/lang/Object;)Ljava/util/Set;
iconst_0
anewarray java.lang.String
invokestatic jdk.tools.jaotc.test.collect.Utils.set:([Ljava/lang/Object;)Ljava/util/Set;
invokespecial jdk.tools.jaotc.test.collect.FakeFileSupport.<init>:(Ljava/util/Set;Ljava/util/Set;)V
invokespecial jdk.tools.jaotc.collect.directory.DirectorySourceProvider.<init>:(Ljdk/tools/jaotc/collect/FileSupport;)V
astore 1
start local 1 1: aload 1
ldc "foobar"
aconst_null
invokevirtual jdk.tools.jaotc.collect.directory.DirectorySourceProvider.findSource:(Ljava/lang/String;Ljdk/tools/jaotc/collect/SearchPath;)Ljdk/tools/jaotc/collect/ClassSource;
astore 2
start local 2 2: aload 2
invokestatic org.junit.Assert.assertNull:(Ljava/lang/Object;)V
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/tools/jaotc/test/collect/directory/DirectorySourceProviderTest;
1 4 1 target Ljdk/tools/jaotc/collect/directory/DirectorySourceProvider;
2 4 2 result Ljdk/tools/jaotc/collect/ClassSource;
RuntimeVisibleAnnotations:
org.junit.Test()
public void itShouldReturnNullForMalformedURI();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=10, locals=4, args_size=1
start local 0 0: iconst_0
anewarray java.lang.String
invokestatic jdk.tools.jaotc.test.collect.Utils.set:([Ljava/lang/Object;)Ljava/util/Set;
astore 1
start local 1 1: new jdk.tools.jaotc.collect.directory.DirectorySourceProvider
dup
new jdk.tools.jaotc.test.collect.directory.DirectorySourceProviderTest$1
dup
aload 0
iconst_1
anewarray java.lang.String
dup
iconst_0
ldc "foobar"
aastore
invokestatic jdk.tools.jaotc.test.collect.Utils.set:([Ljava/lang/Object;)Ljava/util/Set;
iconst_1
anewarray java.lang.String
dup
iconst_0
ldc "foobar"
aastore
invokestatic jdk.tools.jaotc.test.collect.Utils.set:([Ljava/lang/Object;)Ljava/util/Set;
aload 1
invokespecial jdk.tools.jaotc.test.collect.directory.DirectorySourceProviderTest$1.<init>:(Ljdk/tools/jaotc/test/collect/directory/DirectorySourceProviderTest;Ljava/util/Set;Ljava/util/Set;Ljava/util/Set;)V
invokespecial jdk.tools.jaotc.collect.directory.DirectorySourceProvider.<init>:(Ljdk/tools/jaotc/collect/FileSupport;)V
astore 2
start local 2 2: aload 2
ldc "foobar"
aconst_null
invokevirtual jdk.tools.jaotc.collect.directory.DirectorySourceProvider.findSource:(Ljava/lang/String;Ljdk/tools/jaotc/collect/SearchPath;)Ljdk/tools/jaotc/collect/ClassSource;
astore 3
start local 3 3: aload 3
invokestatic org.junit.Assert.assertNull:(Ljava/lang/Object;)V
iconst_1
anewarray java.lang.String
dup
iconst_0
4: ldc "1"
aastore
invokestatic jdk.tools.jaotc.test.collect.Utils.set:([Ljava/lang/Object;)Ljava/util/Set;
aload 1
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
5: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/tools/jaotc/test/collect/directory/DirectorySourceProviderTest;
1 6 1 visited Ljava/util/Set<Ljava/lang/String;>;
2 6 2 target Ljdk/tools/jaotc/collect/directory/DirectorySourceProvider;
3 6 3 result Ljdk/tools/jaotc/collect/ClassSource;
RuntimeVisibleAnnotations:
org.junit.Test()
public void itShouldCreateSourceIfNameExistsAndIsADirectory();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=4, args_size=1
start local 0 0: new jdk.tools.jaotc.test.collect.FakeFileSupport
dup
iconst_1
anewarray java.lang.String
dup
iconst_0
ldc "foo"
aastore
invokestatic jdk.tools.jaotc.test.collect.Utils.set:([Ljava/lang/Object;)Ljava/util/Set;
iconst_1
anewarray java.lang.String
dup
iconst_0
ldc "foo"
aastore
invokestatic jdk.tools.jaotc.test.collect.Utils.set:([Ljava/lang/Object;)Ljava/util/Set;
invokespecial jdk.tools.jaotc.test.collect.FakeFileSupport.<init>:(Ljava/util/Set;Ljava/util/Set;)V
astore 1
start local 1 1: new jdk.tools.jaotc.collect.directory.DirectorySourceProvider
dup
aload 1
invokespecial jdk.tools.jaotc.collect.directory.DirectorySourceProvider.<init>:(Ljdk/tools/jaotc/collect/FileSupport;)V
astore 2
start local 2 2: aload 2
ldc "foo"
aconst_null
invokevirtual jdk.tools.jaotc.collect.directory.DirectorySourceProvider.findSource:(Ljava/lang/String;Ljdk/tools/jaotc/collect/SearchPath;)Ljdk/tools/jaotc/collect/ClassSource;
astore 3
start local 3 3: aload 3
invokestatic org.junit.Assert.assertNotNull:(Ljava/lang/Object;)V
4: ldc "directory:foo"
aload 3
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
5: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/tools/jaotc/test/collect/directory/DirectorySourceProviderTest;
1 6 1 fileSupport Ljdk/tools/jaotc/collect/FileSupport;
2 6 2 target Ljdk/tools/jaotc/collect/directory/DirectorySourceProvider;
3 6 3 foo Ljdk/tools/jaotc/collect/ClassSource;
RuntimeVisibleAnnotations:
org.junit.Test()
}
SourceFile: "DirectorySourceProviderTest.java"
NestMembers:
jdk.tools.jaotc.test.collect.directory.DirectorySourceProviderTest$1
InnerClasses:
jdk.tools.jaotc.test.collect.directory.DirectorySourceProviderTest$1