@Test public void fileToJSON() throws IOException { PME pme = JSONUtils.fileToJSON( resolveFileResource() ); assertEquals( pme.getGav().getOriginalGAV(), "org.kie:kie-parent:7.24.0.Final" ); assertEquals( 11, pme.getModules().size() ); assertEquals( pme.getModules().get( 0 ).getGav().getPVR(), pme.getGav().getPVR() ); }
@SuppressWarnings("WeakerAccess") public static PME fileToJSON( File jsonFile ) throws IOException { return MAPPER.readValue( jsonFile, PME.class ); }
JSONUtils { @SuppressWarnings("WeakerAccess") public static PME fileToJSON( File jsonFile ) throws IOException { return MAPPER.readValue( jsonFile, PME.class ); } }
JSONUtils { @SuppressWarnings("WeakerAccess") public static PME fileToJSON( File jsonFile ) throws IOException { return MAPPER.readValue( jsonFile, PME.class ); }  }
JSONUtils { @SuppressWarnings("WeakerAccess") public static PME fileToJSON( File jsonFile ) throws IOException { return MAPPER.readValue( jsonFile, PME.class ); }  static String jsonToString( Object jsonReport ); @SuppressWarnings("WeakerAccess") // Public API. static PME fileToJSON( File jsonFile ); }
JSONUtils { @SuppressWarnings("WeakerAccess") public static PME fileToJSON( File jsonFile ) throws IOException { return MAPPER.readValue( jsonFile, PME.class ); }  static String jsonToString( Object jsonReport ); @SuppressWarnings("WeakerAccess") // Public API. static PME fileToJSON( File jsonFile );  }