@Test public void initializesValues() { Document doc = new Document(null, null, null, null); InitializationUtils.initialize(doc); assertThat(doc.bool, is(false)); assertThat(doc.integer, is(1)); assertThat(doc.state.stage, is(TaskState.TaskStage.CREATED)); assertThat(doc.uuid, is(notNullValue())); }
public static void initialize(ServiceDocument startState) throws RuntimeException { DefaultBooleanInitializer.initialize(startState); DefaultIntegerInitializer.initialize(startState); DefaultUuidInitializer.initialize(startState); DefaultTaskStateInitializer.initialize(startState); DefaultStringInitializer.initialize(startState); DefaultLongInitializer.initialize(startState); }
InitializationUtils { public static void initialize(ServiceDocument startState) throws RuntimeException { DefaultBooleanInitializer.initialize(startState); DefaultIntegerInitializer.initialize(startState); DefaultUuidInitializer.initialize(startState); DefaultTaskStateInitializer.initialize(startState); DefaultStringInitializer.initialize(startState); DefaultLongInitializer.initialize(startState); } }
InitializationUtils { public static void initialize(ServiceDocument startState) throws RuntimeException { DefaultBooleanInitializer.initialize(startState); DefaultIntegerInitializer.initialize(startState); DefaultUuidInitializer.initialize(startState); DefaultTaskStateInitializer.initialize(startState); DefaultStringInitializer.initialize(startState); DefaultLongInitializer.initialize(startState); }  }
InitializationUtils { public static void initialize(ServiceDocument startState) throws RuntimeException { DefaultBooleanInitializer.initialize(startState); DefaultIntegerInitializer.initialize(startState); DefaultUuidInitializer.initialize(startState); DefaultTaskStateInitializer.initialize(startState); DefaultStringInitializer.initialize(startState); DefaultLongInitializer.initialize(startState); }  static void initialize(ServiceDocument startState); }
InitializationUtils { public static void initialize(ServiceDocument startState) throws RuntimeException { DefaultBooleanInitializer.initialize(startState); DefaultIntegerInitializer.initialize(startState); DefaultUuidInitializer.initialize(startState); DefaultTaskStateInitializer.initialize(startState); DefaultStringInitializer.initialize(startState); DefaultLongInitializer.initialize(startState); }  static void initialize(ServiceDocument startState);  }