@Test public void itThrowsRequiredArgumentMissingExceptionWhenRequiredParametersAreMissing() throws Exception { expectedException.expect(RequiredArgumentMissingException.class); expectedException.expectMessage("fieldValueMap"); String stagePropertiesJsonString = "{\n" + " stageClass: \"" + TestStage.class.getName() + "\"" + "}"; AbstractProcessStageMapper.fromJsonString(stagePropertiesJsonString); }
public static AbstractProcessStage fromJsonString(String json) throws JsonException, ClassNotFoundException, InstantiationException, IllegalAccessException, InitFailedException, RequiredArgumentMissingException { Map<String, Object> properties = SerializationUtils.fromJson(json); return fromMap(properties); }
AbstractProcessStageMapper { public static AbstractProcessStage fromJsonString(String json) throws JsonException, ClassNotFoundException, InstantiationException, IllegalAccessException, InitFailedException, RequiredArgumentMissingException { Map<String, Object> properties = SerializationUtils.fromJson(json); return fromMap(properties); } }
AbstractProcessStageMapper { public static AbstractProcessStage fromJsonString(String json) throws JsonException, ClassNotFoundException, InstantiationException, IllegalAccessException, InitFailedException, RequiredArgumentMissingException { Map<String, Object> properties = SerializationUtils.fromJson(json); return fromMap(properties); }  }
AbstractProcessStageMapper { public static AbstractProcessStage fromJsonString(String json) throws JsonException, ClassNotFoundException, InstantiationException, IllegalAccessException, InitFailedException, RequiredArgumentMissingException { Map<String, Object> properties = SerializationUtils.fromJson(json); return fromMap(properties); }  static AbstractProcessStage fromJsonString(String json); static List<Field> getParameterFields(Object o); }
AbstractProcessStageMapper { public static AbstractProcessStage fromJsonString(String json) throws JsonException, ClassNotFoundException, InstantiationException, IllegalAccessException, InitFailedException, RequiredArgumentMissingException { Map<String, Object> properties = SerializationUtils.fromJson(json); return fromMap(properties); }  static AbstractProcessStage fromJsonString(String json); static List<Field> getParameterFields(Object o); static final String ARG_NAME_STAGE_CLASS; }