Author: mbenson Date: Thu Sep 16 15:52:53 2010 New Revision: 997806 URL: http://svn.apache.org/viewvc?rev=997806&view=rev Log: format
Modified: commons/proper/proxy/branches/version-2.0-work/stub/src/test/java/org/apache/commons/proxy2/stub/AbstractAnnotationFactoryTest.java Modified: commons/proper/proxy/branches/version-2.0-work/stub/src/test/java/org/apache/commons/proxy2/stub/AbstractAnnotationFactoryTest.java URL: http://svn.apache.org/viewvc/commons/proper/proxy/branches/version-2.0-work/stub/src/test/java/org/apache/commons/proxy2/stub/AbstractAnnotationFactoryTest.java?rev=997806&r1=997805&r2=997806&view=diff ============================================================================== --- commons/proper/proxy/branches/version-2.0-work/stub/src/test/java/org/apache/commons/proxy2/stub/AbstractAnnotationFactoryTest.java (original) +++ commons/proper/proxy/branches/version-2.0-work/stub/src/test/java/org/apache/commons/proxy2/stub/AbstractAnnotationFactoryTest.java Thu Sep 16 15:52:53 2010 @@ -40,8 +40,7 @@ public abstract class AbstractAnnotation @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 @@ public abstract class AbstractAnnotation @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()); }