test_class.declarator: resourceRetriever = new ResourceRetriever()
test_class.original_string: ResourceRetriever resourceRetriever = new ResourceRetriever();
test_class.type: ResourceRetriever
test_class.var_name: resourceRetriever
test_class.file: rusheye-impl/src/test/java/org/arquillian/rusheye/retriever/TestResourceRetriever.java
test_class.identifier: TestResourceRetriever
test_case.body: @Test
      public void testResourceRetriever() throws RetrieverException, IOException {
          final String imageResource = "parser-input/masks/green.png";
  
          BufferedImage retrievedImage = resourceRetriever.retrieve(imageResource, new Properties());
  
          BufferedImage loadedImage = ImageIO.read(this.getClass().getClassLoader().getResourceAsStream(imageResource));
  
          ConfigurationCompiler configurationCompiler = new ConfigurationCompiler();
  
          ImageComparator imageComparator = new DefaultImageComparator();
          ComparisonResult comparisonResult = imageComparator.compare(retrievedImage, loadedImage,
              configurationCompiler.getPerception(), new HashSet<Mask>());
  
          Assert.assertTrue(comparisonResult.isEqualsImages());
  
      }
test_case.class_method_signature: TestResourceRetriever.testResourceRetriever()
test_case.full_signature: @Test public void testResourceRetriever()
test_case.identifier: testResourceRetriever
test_case.invocations: retrieve read getResourceAsStream getClassLoader getClass compare getPerception assertTrue isEqualsImages
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testResourceRetriever()
focal_class.file: rusheye-impl/src/main/java/org/arquillian/rusheye/retriever/ResourceRetriever.java
focal_class.identifier: ResourceRetriever
focal_class.interfaces: implements PatternRetriever, MaskRetriever
focal_class.class_method_signature: ResourceRetriever.retrieve(String source, Properties localProperties)
focal_class.full_signature: @Override public BufferedImage retrieve(String source, Properties localProperties)
focal_class.identifier: retrieve
focal_class.modifiers: @Override public
focal_class.parameters: (String source, Properties localProperties)
focal_class.return: BufferedImage
focal_class.signature: BufferedImage retrieve(String source, Properties localProperties)
focal_class.superclass: extends AbstractRetriever
focal_method.body: @Override
      public BufferedImage retrieve(String source, Properties localProperties) throws RetrieverException {
          URL resourceURL = this.getClass().getClassLoader().getResource(source);
  
          if (resourceURL == null) {
              throw new RetrieverException(this.getClass().getSimpleName() + " wasn't able to retrieve image source '"
                  + source + "' - given source doesn't exist");
          }
  
          BufferedImage bufferedImage;
  
          try {
              bufferedImage = ImageIO.read(resourceURL);
          } catch (IOException e) {
              throw new RetrieverException(this.getClass().getSimpleName() + " wasn't able to retrieve image source '"
                  + source + "' from resourceURL '" + resourceURL + "'", e);
          }
  
          return bufferedImage;
      }
focal_method.class_method_signature: ResourceRetriever.retrieve(String source, Properties localProperties)
focal_method.full_signature: @Override public BufferedImage retrieve(String source, Properties localProperties)
focal_method.identifier: retrieve
focal_method.invocations: getResource getClassLoader getClass getSimpleName getClass read getSimpleName getClass
focal_method.modifiers: @Override public
focal_method.parameters: (String source, Properties localProperties)
focal_method.return: BufferedImage
focal_method.signature: BufferedImage retrieve(String source, Properties localProperties)