Skip to content
Snippets Groups Projects
Commit 9428e39a authored by srosse's avatar srosse
Browse files

Merge branch 'mock_exception' of git://github.com/tomgross/OpenOLAT into tomgross-mock_exception

Merge exception for mockito
parents 0202bbe8 14d5701d
No related branches found
No related tags found
No related merge requests found
...@@ -125,7 +125,7 @@ public class DifferenceCheckerTest { ...@@ -125,7 +125,7 @@ public class DifferenceCheckerTest {
@Test @Test
public void shouldDeleteNullIfNotConfigured() { public void shouldDeleteNullIfNotConfigured() {
when(shibbolethModuleMock.getDeleteIfNull().get(ATTRIBUTE_NAME)).thenThrow(Exception.class); when(shibbolethModuleMock.getDeleteIfNull().get(ATTRIBUTE_NAME)).thenThrow(new RuntimeException());
boolean isDifferent = sut.isDifferent(ATTRIBUTE_NAME, null, OLAT_ONLY); boolean isDifferent = sut.isDifferent(ATTRIBUTE_NAME, null, OLAT_ONLY);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment