Skip to content
Snippets Groups Projects
Commit 00c45779 authored by srosse's avatar srosse
Browse files

Merge branch 'tomgross-mock_exception' into OpenOLAT_14.1

Merge exception for mockito
parents 0202bbe8 9428e39a
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