@Test public void testUnmarshallingWithModel() throws Exception { ConstraintsParameters constraintsParameters = ValidationPolicyFacade.newFacade() .unmarshall(new File("src/test/resources/constraint.xml")); ModelConstraint mc = new ModelConstraint(); mc.setValue(Model.SHELL); constraintsParameters.setModel(mc); String marshall = ValidationPolicyFacade.newFacade().marshall(constraintsParameters); assertNotNull(marshall); ConstraintsParameters cp = ValidationPolicyFacade.newFacade().unmarshall(marshall); assertNotNull(cp); assertNotNull(cp.getModel()); assertEquals(mc.getValue(), cp.getModel().getValue()); }
public static ValidationPolicyFacade newFacade() { return new ValidationPolicyFacade(); }
ValidationPolicyFacade extends AbstractJaxbFacade<ConstraintsParameters> { public static ValidationPolicyFacade newFacade() { return new ValidationPolicyFacade(); } }
ValidationPolicyFacade extends AbstractJaxbFacade<ConstraintsParameters> { public static ValidationPolicyFacade newFacade() { return new ValidationPolicyFacade(); }  }
ValidationPolicyFacade extends AbstractJaxbFacade<ConstraintsParameters> { public static ValidationPolicyFacade newFacade() { return new ValidationPolicyFacade(); }  static ValidationPolicyFacade newFacade(); ValidationPolicy getDefaultValidationPolicy(); ValidationPolicy getTrustedListValidationPolicy(); ValidationPolicy getValidationPolicy(String path); ValidationPolicy getValidationPolicy(InputStream is); ValidationPolicy getValidationPolicy(File file); }
ValidationPolicyFacade extends AbstractJaxbFacade<ConstraintsParameters> { public static ValidationPolicyFacade newFacade() { return new ValidationPolicyFacade(); }  static ValidationPolicyFacade newFacade(); ValidationPolicy getDefaultValidationPolicy(); ValidationPolicy getTrustedListValidationPolicy(); ValidationPolicy getValidationPolicy(String path); ValidationPolicy getValidationPolicy(InputStream is); ValidationPolicy getValidationPolicy(File file);  }