Commit 74469636 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

unnecessary anonymous classes removed

parent 02a7b0f9
......@@ -34,11 +34,8 @@ public class PolylineDataComparatorTest extends ModelTestFunctions {
@Test(expected = NotImplementedException.class)
public void testInvalid() {
class Tmp extends PolylineData {
private static final long serialVersionUID = 1L;
}
Tmp pd1 = new Tmp();
Tmp pd2 = new Tmp();
PolylineData pd1 = Mockito.mock(PolylineData.class);
PolylineData pd2 = Mockito.mock(PolylineData.class);
comparator.compare(pd1, pd2);
}
......
......@@ -113,11 +113,8 @@ public class LayerOvalComparatorTest extends ModelTestFunctions {
@Test(expected = NotImplementedException.class)
public void testInvalid() {
class Tmp extends LayerOval {
private static final long serialVersionUID = 1L;
}
Tmp layer1 = new Tmp();
Tmp layer2 = new Tmp();
LayerOval layer1 = Mockito.mock(LayerOval.class);
LayerOval layer2 = Mockito.mock(LayerOval.class);
comparator.compare(layer1, layer2);
}
......
......@@ -112,11 +112,8 @@ public class LayerRectComparatorTest extends ModelTestFunctions {
@Test(expected = NotImplementedException.class)
public void testInvalid() {
class Tmp extends LayerRect {
private static final long serialVersionUID = 1L;
}
Tmp layer1 = new Tmp();
Tmp layer2 = new Tmp();
LayerRect layer1 = Mockito.mock(LayerRect.class);
LayerRect layer2 = Mockito.mock(LayerRect.class);
comparator.compare(layer1, layer2);
}
......
......@@ -42,11 +42,8 @@ public class LayerTextComparatorTest extends ModelTestFunctions {
@Test(expected = NotImplementedException.class)
public void testInvalid() {
class Tmp extends LayerText {
private static final long serialVersionUID = 1L;
}
Tmp layer1 = new Tmp();
Tmp layer2 = new Tmp();
LayerText layer1 = Mockito.mock(LayerText.class);
LayerText layer2 = Mockito.mock(LayerText.class);
comparator.compare(layer1, layer2);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment