@Test public void shouldHaveNullNameUsingDefaultConstructor() { World w = new World(); assertNull(w.getName()); }
public String getName() { return name; }
World { public String getName() { return name; } }
World { public String getName() { return name; } World( String name, int moons );  World(); }
World { public String getName() { return name; } World( String name, int moons );  World(); String getName(); int getMoons(); @Override String toString(); void addRocketRouteTo( World otherWorld ); boolean canBeReachedFrom( World otherWorld ); }
World { public String getName() { return name; } World( String name, int moons );  World(); String getName(); int getMoons(); @Override String toString(); void addRocketRouteTo( World otherWorld ); boolean canBeReachedFrom( World otherWorld );  }