Skip to content

Commit

Permalink
fixed errors caused by rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
sofi2002sofi committed Jul 2, 2023
1 parent 72e3249 commit 8befaf5
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public void childNodeChangedForNotFormNodeReturnsAnswerCompletionStatusEditor()
}

@Test
public void enterForFormNodeAddsDifferentStatusFlags() throws CommitFailedException, RepositoryException
public void leaveForFormNodeAddsDifferentStatusFlags() throws CommitFailedException, RepositoryException
{
initAnswerCompletionStatusEditor(true);
when(this.formUtils.isAnswer(any(NodeBuilder.class))).thenReturn(true, false, true, false);
Expand All @@ -144,7 +144,7 @@ public void enterForFormNodeAddsDifferentStatusFlags() throws CommitFailedExcept
this.session.getNode(TEST_QUESTIONNAIRE_PATH + "/question_1"));
when(this.formUtils.isAnswerSection(any(NodeBuilder.class))).thenReturn(true);

this.answerCompletionStatusEditor.enter(mock(NodeState.class), mock(NodeState.class));
this.answerCompletionStatusEditor.leave(mock(NodeState.class), mock(NodeState.class));
assertTrue(this.currentNodeBuilder.hasProperty(STATUS_FLAGS));
Iterator<String> statusFlagsIterator =
this.currentNodeBuilder.getProperty(STATUS_FLAGS).getValue(Type.STRINGS).iterator();
Expand All @@ -154,12 +154,12 @@ public void enterForFormNodeAddsDifferentStatusFlags() throws CommitFailedExcept
}

@Test
public void enterForEmptyFormNode() throws CommitFailedException
public void leaveForEmptyFormNode() throws CommitFailedException
{
this.currentNodeBuilder = EmptyNodeState.EMPTY_NODE.builder();
initAnswerCompletionStatusEditor(true);

this.answerCompletionStatusEditor.enter(mock(NodeState.class), mock(NodeState.class));
this.answerCompletionStatusEditor.leave(mock(NodeState.class), mock(NodeState.class));
assertTrue(this.currentNodeBuilder.hasProperty(STATUS_FLAGS));
Iterator<String> statusFlagsIterator =
this.currentNodeBuilder.getProperty(STATUS_FLAGS).getValue(Type.STRINGS).iterator();
Expand Down

0 comments on commit 8befaf5

Please sign in to comment.