@Test(expectedExceptions = IllegalArgumentException.class) public void cantSetBadMemoryValue() { new MantaJobPhase() .setMemory(0); }
public MantaJobPhase setMemory(final Integer memory) { if (memory != null && memory < 1) { throw new IllegalArgumentException("Count must be null or greater than 1"); } this.memory = memory; return this; }
MantaJobPhase { public MantaJobPhase setMemory(final Integer memory) { if (memory != null && memory < 1) { throw new IllegalArgumentException("Count must be null or greater than 1"); } this.memory = memory; return this; } }
MantaJobPhase { public MantaJobPhase setMemory(final Integer memory) { if (memory != null && memory < 1) { throw new IllegalArgumentException("Count must be null or greater than 1"); } this.memory = memory; return this; } MantaJobPhase(); }
MantaJobPhase { public MantaJobPhase setMemory(final Integer memory) { if (memory != null && memory < 1) { throw new IllegalArgumentException("Count must be null or greater than 1"); } this.memory = memory; return this; } MantaJobPhase(); String getExec(); MantaJobPhase setExec(final String exec); String getType(); MantaJobPhase setType(final String type); List<String> getAssets(); MantaJobPhase setAssets(final List<String> assets); String getInit(); MantaJobPhase setInit(final String init); Integer getCount(); MantaJobPhase setCount(final Integer count); Integer getMemory(); MantaJobPhase setMemory(final Integer memory); Integer getDisk(); MantaJobPhase setDisk(final Integer disk); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString(); }
MantaJobPhase { public MantaJobPhase setMemory(final Integer memory) { if (memory != null && memory < 1) { throw new IllegalArgumentException("Count must be null or greater than 1"); } this.memory = memory; return this; } MantaJobPhase(); String getExec(); MantaJobPhase setExec(final String exec); String getType(); MantaJobPhase setType(final String type); List<String> getAssets(); MantaJobPhase setAssets(final List<String> assets); String getInit(); MantaJobPhase setInit(final String init); Integer getCount(); MantaJobPhase setCount(final Integer count); Integer getMemory(); MantaJobPhase setMemory(final Integer memory); Integer getDisk(); MantaJobPhase setDisk(final Integer disk); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString();  }