@SuppressWarnings("deprecation") @Test public void willDevelopNumericAppWhenFortranDeveloperIsHired() { // given final Developer fortranDeveloper = new com.karollotkowski.softwarehouse.dev.FortranDeveloper(); softwareHouse.hireDeveloper(fortranDeveloper); // when final Optional<Application> application = softwareHouse.developNumericApp(); // then assertThat("We are rich", application.isPresent(), is(true)); }
@Test public void willNotDevelopNumericAppWhenLastFortranDeveloperDied20YearsAgo() { // given // when final Optional<Application> application = softwareHouse.developNumericApp(); // then assertThat("We are losers", application.isPresent(), is(false)); }