Sculptor is an open source productivity tool. You express your design intent in a textual DSL, from which Sculptor generates high quality Java code and configuration.
public class PlanetTest { @Test public void shouldSayHelloWhenHasPopulation() { Planet earth = new Planet("Earth"); earth.setPopulation(7000000000L); String message = earth.greeting(); assertEquals("Hello from Earth", message); } @Test public void shouldBeQuietWhenNoPopulation() { Planet pluto = new Planet("Pluto"); String message = pluto.greeting(); assertEquals("", message); }}
No comments:
Post a Comment