format
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/proxy/branches/version-2.0-work@997806 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/stub/src/test/java/org/apache/commons/proxy2/stub/AbstractAnnotationFactoryTest.java b/stub/src/test/java/org/apache/commons/proxy2/stub/AbstractAnnotationFactoryTest.java
index 1c76c70..39b711f 100644
--- a/stub/src/test/java/org/apache/commons/proxy2/stub/AbstractAnnotationFactoryTest.java
+++ b/stub/src/test/java/org/apache/commons/proxy2/stub/AbstractAnnotationFactoryTest.java
@@ -40,8 +40,7 @@
@Test
public void testDefaultAnnotation() {
- CustomAnnotation customAnnotation = annotationFactory
- .create(CustomAnnotation.class);
+ CustomAnnotation customAnnotation = annotationFactory.create(CustomAnnotation.class);
assertEquals(CustomAnnotation.class, customAnnotation.annotationType());
assertEquals("", customAnnotation.annString());
assertEquals(0, customAnnotation.finiteValues().length);
@@ -51,21 +50,18 @@
@Test
public void testStubbedAnnotation() {
- CustomAnnotation customAnnotation = annotationFactory
- .create(new AnnotationStubConfigurer<CustomAnnotation>() {
+ CustomAnnotation customAnnotation = annotationFactory.create(new AnnotationStubConfigurer<CustomAnnotation>() {
- @Override
- protected void configureAnnotation(CustomAnnotation stub) {
- when(stub.someType()).thenReturn(Object.class)
- .when(stub.finiteValues()).thenReturn(FiniteValues.ONE, FiniteValues.THREE)
- .when(stub.annString()).thenReturn("hey");
- }
+ @Override
+ protected void configureAnnotation(CustomAnnotation stub) {
+ when(stub.someType()).thenReturn(Object.class).when(stub.finiteValues())
+ .thenReturn(FiniteValues.ONE, FiniteValues.THREE).when(stub.annString()).thenReturn("hey");
+ }
- });
+ });
assertEquals(CustomAnnotation.class, customAnnotation.annotationType());
assertEquals("hey", customAnnotation.annString());
- assertArrayEquals(new FiniteValues[] { FiniteValues.ONE,
- FiniteValues.THREE }, customAnnotation.finiteValues());
+ assertArrayEquals(new FiniteValues[] { FiniteValues.ONE, FiniteValues.THREE }, customAnnotation.finiteValues());
assertEquals(Object.class, customAnnotation.someType());
}