@Test public void nullobjectIdShouldNotBlowUp() { assertThat(facebookOGResources.getArticle("blahblah"), is(equalTo(""))); assertThat(facebookOGResources.getTitle("blahblah"), is(equalTo(""))); assertThat(facebookOGResources.getDescription("blahblah"), is(equalTo(""))); }
@Test public void getTitleShouldReturnTitleWithNoArticle() { assertThat(facebookOGResources.getTitle("blah"), is(equalTo("blah"))); }