@Test public void canConstructAPersonWithAName() { // check our classpath List list = new GrowthList(); // check Jar exists File jarFile = new File(System.getProperty("jar.path")); assertTrue(jarFile.isFile()); Person person = PersonTestFixture.create("Larry"); assertEquals("Larry", person.getName()); }
public static void main(String[] args) { GrowthList l = new GrowthList(); if(System.getProperty("greeting.language").equals("en")){ System.out.println("Greetings from the sample application."); }else{ System.out.println("Bonjour, monde!"); } }
public Person(String name) { this.name = name; new GrowthList(); }
public void method() { FilenameUtils.separatorsToUnix("my/unix/filename"); ToStringBuilder.reflectionToString(new Person("name")); new GrowthList(); new PersonList().doSomethingWithImpl(); // compile with api-spi, runtime with api }
public Person(String name, String surname) { this.name = name; this.surname = surname; new GrowthList(); }