test_class.file: resource/impl/src/test/java/cloud/piranha/resource/ByteArrayResourceTest.java
test_class.identifier: ByteArrayResourceTest
test_case.body: @Test
      void testGetResourceAsStream() {
          ByteArrayResource resource = new ByteArrayResource("mylocation", new byte[0]);
          assertTrue(resource.getResourceAsStream("mylocation") instanceof ByteArrayInputStream);
          assertNull(resource.getResourceAsStream("notmylocation"));
      }
test_case.class_method_signature: ByteArrayResourceTest.testGetResourceAsStream()
test_case.full_signature: @Test void testGetResourceAsStream()
test_case.identifier: testGetResourceAsStream
test_case.invocations: assertTrue getResourceAsStream assertNull getResourceAsStream
test_case.modifiers: @Test
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetResourceAsStream()
focal_class.declarator: bytes
focal_class.modifier: private final
focal_class.original_string: private final byte[] bytes;
focal_class.type: byte[]
focal_class.var_name: bytes
focal_class.declarator: location
focal_class.modifier: private final
focal_class.original_string: private final String location;
focal_class.type: String
focal_class.var_name: location
focal_class.file: resource/impl/src/main/java/cloud/piranha/resource/ByteArrayResource.java
focal_class.identifier: ByteArrayResource
focal_class.interfaces: implements Resource
focal_class.class_method_signature: ByteArrayResource.ByteArrayResource(String location, byte[] bytes)
focal_class.full_signature: public  ByteArrayResource(String location, byte[] bytes)
focal_class.identifier: ByteArrayResource
focal_class.modifiers: public
focal_class.parameters: (String location, byte[] bytes)
focal_class.signature:  ByteArrayResource(String location, byte[] bytes)
focal_class.class_method_signature: ByteArrayResource.getAllLocations()
focal_class.full_signature: @Override public Stream<String> getAllLocations()
focal_class.identifier: getAllLocations
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Stream<String>
focal_class.signature: Stream<String> getAllLocations()
focal_class.class_method_signature: ByteArrayResource.getBytes()
focal_class.full_signature: public byte[] getBytes()
focal_class.identifier: getBytes
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: byte[]
focal_class.signature: byte[] getBytes()
focal_class.class_method_signature: ByteArrayResource.getResource(String location)
focal_class.full_signature: @Override public URL getResource(String location)
focal_class.identifier: getResource
focal_class.modifiers: @Override public
focal_class.parameters: (String location)
focal_class.return: URL
focal_class.signature: URL getResource(String location)
focal_class.class_method_signature: ByteArrayResource.getResourceAsStream(String location)
focal_class.full_signature: @Override public InputStream getResourceAsStream(String location)
focal_class.identifier: getResourceAsStream
focal_class.modifiers: @Override public
focal_class.parameters: (String location)
focal_class.return: InputStream
focal_class.signature: InputStream getResourceAsStream(String location)
focal_method.body: @Override
      public InputStream getResourceAsStream(String location) {
          InputStream result = null;
          if (location != null && location.equals(this.location)) {
              result = new ByteArrayInputStream(bytes);
          }
          return result;
      }
focal_method.class_method_signature: ByteArrayResource.getResourceAsStream(String location)
focal_method.full_signature: @Override public InputStream getResourceAsStream(String location)
focal_method.identifier: getResourceAsStream
focal_method.invocations: equals
focal_method.modifiers: @Override public
focal_method.parameters: (String location)
focal_method.return: InputStream
focal_method.signature: InputStream getResourceAsStream(String location)