Code example for URL

Methods: getFile

0
 
  @Test 
  public void testFromFolder() 
      throws Exception { 
    final URL url = getClass().getResource("consoleStripper");
    final File testFolder = new File(url.getFile(), "test");
    final File expectedFolder = new File(url.getFile(), "expected");
    WroTestUtils.compareFromDifferentFoldersByExtension(testFolder, expectedFolder, "js", processor);
  } 
   
 
  @Test 
  public void shouldSupportCorrectResourceTypes() { 
    WroTestUtils.assertProcessorSupportResourceTypes(processor, ResourceType.JS);
  } 
}