@Test(timeout = TIMEOUT) public void userWithNoDetailsDoesNotContainTwitterHandle() throws CoderWallException { CoderWall cw = new CoderWallImpl(); User bjoern = cw.getUser("bkimminich", false); assertThat(bjoern.getAccounts().getTwitter(), is(nullValue())); }
@Test(timeout = TIMEOUT) public void userWithFullDetailsContainsTwitterHandle() throws CoderWallException { CoderWall cw = new CoderWallImpl(); User bjoern = cw.getUser("bkimminich"); assertThat(bjoern.getAccounts().getTwitter(), is("bkimminich")); }