Skip to content

Commit

Permalink
Fixed failing "no name" test.
Browse files Browse the repository at this point in the history
  • Loading branch information
mederly committed Sep 11, 2015
1 parent e3f3520 commit 2353f9a
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -28,6 +28,7 @@

import javax.xml.bind.JAXBException;

import com.evolveum.midpoint.util.exception.NoFocusNameSchemaException;
import org.mockito.Mockito;
import org.mockito.invocation.InvocationOnMock;
import org.mockito.stubbing.Answer;
Expand Down Expand Up @@ -118,7 +119,7 @@ public void nullResult() throws Exception {
controller.addObject(new UserType().asPrismObject(), null, taskManager.createTaskInstance(), null);
}

@Test(expectedExceptions = IllegalArgumentException.class)
@Test(expectedExceptions = NoFocusNameSchemaException.class)
@SuppressWarnings("unchecked")
public void addUserWithoutName() throws Exception {
TestUtil.displayTestTile("addUserWithoutName");
Expand Down

0 comments on commit 2353f9a

Please sign in to comment.