@Test public void test() { context.checking(new Expectations() { { allowing(getThemeCssByUuidMapper).execute("uuid1"); will(returnValue("string 1")); oneOf(getThemeCssByUuidMapper).execute("uuid2"); will(returnValue("string 2")); } }); assertTrue(!(sut.execute("uuid1").equals(sut.execute("uuid2")))); assertTrue(sut.execute("uuid1").equals(sut.execute("uuid1"))); context.assertIsSatisfied(); }
@Override public String execute(final String inRequest) { return DigestUtils.md5Hex(getThemeCssByUuidMapper.execute(inRequest)); }
GetThemeVersionByUuidDbMapper implements DomainMapper<String, String> { @Override public String execute(final String inRequest) { return DigestUtils.md5Hex(getThemeCssByUuidMapper.execute(inRequest)); } }
GetThemeVersionByUuidDbMapper implements DomainMapper<String, String> { @Override public String execute(final String inRequest) { return DigestUtils.md5Hex(getThemeCssByUuidMapper.execute(inRequest)); } GetThemeVersionByUuidDbMapper(final DomainMapper<String, String> inGetThemeCssByUuidMapper); }
GetThemeVersionByUuidDbMapper implements DomainMapper<String, String> { @Override public String execute(final String inRequest) { return DigestUtils.md5Hex(getThemeCssByUuidMapper.execute(inRequest)); } GetThemeVersionByUuidDbMapper(final DomainMapper<String, String> inGetThemeCssByUuidMapper); @Override String execute(final String inRequest); }
GetThemeVersionByUuidDbMapper implements DomainMapper<String, String> { @Override public String execute(final String inRequest) { return DigestUtils.md5Hex(getThemeCssByUuidMapper.execute(inRequest)); } GetThemeVersionByUuidDbMapper(final DomainMapper<String, String> inGetThemeCssByUuidMapper); @Override String execute(final String inRequest);  }