@Test public void name_description() throws JsonProcessingException { assertEquals( new NameDescription("12", "Build 12"), new BuildRequest( "12", "Build 12", Collections.emptyList() ).asNameDescription() ); }
public NameDescription asNameDescription() { return new NameDescription(name, description); }
BuildRequest { public NameDescription asNameDescription() { return new NameDescription(name, description); } }
BuildRequest { public NameDescription asNameDescription() { return new NameDescription(name, description); } @ConstructorProperties({"name", "description", "properties"})  BuildRequest(String name, String description, List<PropertyCreationRequest> properties); }
BuildRequest { public NameDescription asNameDescription() { return new NameDescription(name, description); } @ConstructorProperties({"name", "description", "properties"})  BuildRequest(String name, String description, List<PropertyCreationRequest> properties); NameDescription asNameDescription(); }
BuildRequest { public NameDescription asNameDescription() { return new NameDescription(name, description); } @ConstructorProperties({"name", "description", "properties"})  BuildRequest(String name, String description, List<PropertyCreationRequest> properties); NameDescription asNameDescription();  }