Skip to content

Commit

Permalink
Issue checkstyle#11514: Update pom.xml and fix variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
pymoura committed May 21, 2023
1 parent 2078f06 commit cac529b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -874,12 +874,12 @@
<limit>
<counter>LINE</counter>
<value>COVEREDRATIO</value>
<minimum>0.09</minimum>
<minimum>0.82</minimum>
</limit>
<limit>
<counter>BRANCH</counter>
<value>COVEREDRATIO</value>
<minimum>0.00</minimum>
<minimum>0.75</minimum>
</limit>
</limits>
</rule>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,19 @@

class BaseCellEditorTest {

private final BaseCellEditor bce = new BaseCellEditor();
private final BaseCellEditor cellEditor = new BaseCellEditor();

@Test
public void testToString() {
assertWithMessage("is null")
.that(bce.getCellEditorValue() == null)
.that(cellEditor.getCellEditorValue() == null)
.isEqualTo(true);
}

@Test
public void testStopCellEditing() {
assertWithMessage("StopEditing return true")
.that(bce.stopCellEditing())
.that(cellEditor.stopCellEditing())
.isEqualTo(true);
}

Expand All @@ -66,14 +66,14 @@ public void editingCanceled(ChangeEvent e) {

};

bce.addCellEditorListener(cellEditorListener1);
bce.fireEditingStopped();
cellEditor.addCellEditorListener(cellEditorListener1);
cellEditor.fireEditingStopped();
assertWithMessage("Check if editing listener has stopped")
.that(cellEditorListenerStopped[0]).isEqualTo(true);
bce.fireEditingCanceled();
cellEditor.fireEditingCanceled();
assertWithMessage("Check if editing listener has canceled")
.that(cellEditorListenerCanceled[0]).isEqualTo(true);
bce.removeCellEditorListener(cellEditorListener1);
cellEditor.removeCellEditorListener(cellEditorListener1);

}
}

0 comments on commit cac529b

Please sign in to comment.