diff --git a/spring-core/src/test/java/org/springframework/core/AbstractGenericsTests.java b/spring-core/src/test/java/org/springframework/core/AbstractGenericsTests.java deleted file mode 100644 index 3d85742f02..0000000000 --- a/spring-core/src/test/java/org/springframework/core/AbstractGenericsTests.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2002-2006 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.springframework.core; - -import java.lang.reflect.Method; -import java.lang.reflect.Type; - -import junit.framework.TestCase; - -/** - * @author Serge Bogatyrjov - */ -public abstract class AbstractGenericsTests extends TestCase { - - protected Class targetClass; - - protected String methods[]; - - protected Type expectedResults[]; - - protected void executeTest() throws NoSuchMethodException { - String methodName = getName().substring(4); - methodName = methodName.substring(0, 1).toLowerCase() + methodName.substring(1); - for (int i = 0; i < this.methods.length; i++) { - if (methodName.equals(this.methods[i])) { - Method method = this.targetClass.getMethod(methodName); - Type type = getType(method); - assertEquals(this.expectedResults[i], type); - return; - } - } - throw new IllegalStateException("Bad test data"); - } - - protected abstract Type getType(Method method); - -} \ No newline at end of file diff --git a/spring-core/src/test/java/org/springframework/core/AttributeAccessorSupportTests.java b/spring-core/src/test/java/org/springframework/core/AttributeAccessorSupportTests.java index 3a92c77c28..d0ee90870a 100644 --- a/spring-core/src/test/java/org/springframework/core/AttributeAccessorSupportTests.java +++ b/spring-core/src/test/java/org/springframework/core/AttributeAccessorSupportTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2012 the original author or authors. + * Copyright 2002-2014 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,48 +16,48 @@ package org.springframework.core; -import junit.framework.TestCase; - import java.util.Arrays; +import org.junit.Test; + +import static org.junit.Assert.*; + /** * @author Rob Harrop + * @author Sam Brannen * @since 2.0 */ -public class AttributeAccessorSupportTests extends TestCase { +public class AttributeAccessorSupportTests { private static final String NAME = "foo"; private static final String VALUE = "bar"; - private AttributeAccessor attributeAccessor; + private AttributeAccessor attributeAccessor = new SimpleAttributeAccessorSupport(); - @Override - @SuppressWarnings("serial") - protected void setUp() throws Exception { - this.attributeAccessor = new AttributeAccessorSupport() { - }; - } - - public void testSetAndGet() throws Exception { + @Test + public void setAndGet() throws Exception { this.attributeAccessor.setAttribute(NAME, VALUE); assertEquals(VALUE, this.attributeAccessor.getAttribute(NAME)); } - public void testSetAndHas() throws Exception { + @Test + public void setAndHas() throws Exception { assertFalse(this.attributeAccessor.hasAttribute(NAME)); this.attributeAccessor.setAttribute(NAME, VALUE); assertTrue(this.attributeAccessor.hasAttribute(NAME)); } - public void testRemove() throws Exception { + @Test + public void remove() throws Exception { assertFalse(this.attributeAccessor.hasAttribute(NAME)); this.attributeAccessor.setAttribute(NAME, VALUE); assertEquals(VALUE, this.attributeAccessor.removeAttribute(NAME)); assertFalse(this.attributeAccessor.hasAttribute(NAME)); } - public void testAttributeNames() throws Exception { + @Test + public void attributeNames() throws Exception { this.attributeAccessor.setAttribute(NAME, VALUE); this.attributeAccessor.setAttribute("abc", "123"); String[] attributeNames = this.attributeAccessor.attributeNames(); @@ -65,8 +65,9 @@ public class AttributeAccessorSupportTests extends TestCase { assertTrue(Arrays.binarySearch(attributeNames, NAME) > -1); assertTrue(Arrays.binarySearch(attributeNames, "abc") > -1); } - @Override - protected void tearDown() throws Exception { - this.attributeAccessor.removeAttribute(NAME); + + @SuppressWarnings("serial") + private static class SimpleAttributeAccessorSupport extends AttributeAccessorSupport { } + } diff --git a/spring-core/src/test/java/org/springframework/core/BridgeMethodResolverTests.java b/spring-core/src/test/java/org/springframework/core/BridgeMethodResolverTests.java index 86ebb9b791..06a59ad332 100644 --- a/spring-core/src/test/java/org/springframework/core/BridgeMethodResolverTests.java +++ b/spring-core/src/test/java/org/springframework/core/BridgeMethodResolverTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2013 the original author or authors. + * Copyright 2002-2014 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -394,20 +394,20 @@ public class BridgeMethodResolverTests { } - public interface Adder { + public static interface Adder { void add(T item); } - public abstract class AbstractDateAdder implements Adder { + public static abstract class AbstractDateAdder implements Adder { @Override public abstract void add(Date date); } - public class DateAdder extends AbstractDateAdder { + public static class DateAdder extends AbstractDateAdder { @Override public void add(Date date) { @@ -415,7 +415,7 @@ public class BridgeMethodResolverTests { } - public class Enclosing { + public static class Enclosing { public class Enclosed { @@ -428,7 +428,7 @@ public class BridgeMethodResolverTests { } - public class ExtendsEnclosing extends Enclosing { + public static class ExtendsEnclosing extends Enclosing { public class ExtendsEnclosed extends Enclosed { @@ -443,7 +443,7 @@ public class BridgeMethodResolverTests { } - public interface Boo { + public static interface Boo { void foo(E e); @@ -451,7 +451,7 @@ public class BridgeMethodResolverTests { } - public class MyBoo implements Boo { + public static class MyBoo implements Boo { @Override public void foo(String e) { @@ -465,17 +465,17 @@ public class BridgeMethodResolverTests { } - public interface Settings { + public static interface Settings { } - public interface ConcreteSettings extends Settings { + public static interface ConcreteSettings extends Settings { } - public interface Dao { + public static interface Dao { T load(); @@ -483,21 +483,22 @@ public class BridgeMethodResolverTests { } - public interface SettingsDao extends Dao { + public static interface SettingsDao extends Dao { @Override T load(); } - public interface ConcreteSettingsDao extends SettingsDao { + public static interface ConcreteSettingsDao extends + SettingsDao { @Override String loadFromParent(); } - abstract class AbstractDaoImpl implements Dao { + static abstract class AbstractDaoImpl implements Dao { protected T object; @@ -516,7 +517,8 @@ public class BridgeMethodResolverTests { } - class SettingsDaoImpl extends AbstractDaoImpl implements ConcreteSettingsDao { + static class SettingsDaoImpl extends AbstractDaoImpl + implements ConcreteSettingsDao { protected SettingsDaoImpl(ConcreteSettings object) { super(object, "From Parent"); @@ -693,13 +695,13 @@ public class BridgeMethodResolverTests { } - public interface Event { + public static interface Event { int getPriority(); } - public class GenericEvent implements Event { + public static class GenericEvent implements Event { private int priority; @@ -723,23 +725,24 @@ public class BridgeMethodResolverTests { } - public interface UserInitiatedEvent { + public static interface UserInitiatedEvent { //public Session getInitiatorSession(); } - public abstract class BaseUserInitiatedEvent extends GenericEvent implements UserInitiatedEvent { + public static abstract class BaseUserInitiatedEvent extends GenericEvent implements + UserInitiatedEvent { } - public class MessageEvent extends BaseUserInitiatedEvent { + public static class MessageEvent extends BaseUserInitiatedEvent { } - public interface Channel { + public static interface Channel { void send(E event); @@ -749,11 +752,11 @@ public class BridgeMethodResolverTests { } - public interface Broadcaster { + public static interface Broadcaster { } - public interface EventBroadcaster extends Broadcaster { + public static interface EventBroadcaster extends Broadcaster { public void subscribe(); @@ -763,13 +766,14 @@ public class BridgeMethodResolverTests { } - public class GenericBroadcasterImpl implements Broadcaster { + public static class GenericBroadcasterImpl implements Broadcaster { } @SuppressWarnings({ "unused", "unchecked" }) - public abstract class GenericEventBroadcasterImpl extends GenericBroadcasterImpl + public static abstract class GenericEventBroadcasterImpl extends + GenericBroadcasterImpl implements EventBroadcaster { private Class[] subscribingEvents; @@ -810,34 +814,35 @@ public class BridgeMethodResolverTests { } - public interface Receiver { + public static interface Receiver { void receive(E event); } - public interface MessageBroadcaster extends Receiver { + public static interface MessageBroadcaster extends Receiver { } - public class RemovedMessageEvent extends MessageEvent { + public static class RemovedMessageEvent extends MessageEvent { } - public class NewMessageEvent extends MessageEvent { + public static class NewMessageEvent extends MessageEvent { } - public class ModifiedMessageEvent extends MessageEvent { + public static class ModifiedMessageEvent extends MessageEvent { } @SuppressWarnings("unchecked") - public class MessageBroadcasterImpl extends GenericEventBroadcasterImpl + public static class MessageBroadcasterImpl extends + GenericEventBroadcasterImpl implements MessageBroadcaster { public MessageBroadcasterImpl() { @@ -869,7 +874,7 @@ public class BridgeMethodResolverTests { // SPR-2454 Test Classes //----------------------------- - public interface SimpleGenericRepository { + public static interface SimpleGenericRepository { public Class getPersistentClass(); @@ -885,14 +890,14 @@ public class BridgeMethodResolverTests { } - public interface RepositoryRegistry { + public static interface RepositoryRegistry { SimpleGenericRepository getFor(Class entityType); } @SuppressWarnings("unchecked") - public class SettableRepositoryRegistry> + public static class SettableRepositoryRegistry> implements RepositoryRegistry { protected void injectInto(R rep) { @@ -917,7 +922,8 @@ public class BridgeMethodResolverTests { } - public interface ConvenientGenericRepository extends SimpleGenericRepository { + public static interface ConvenientGenericRepository + extends SimpleGenericRepository { T findById(ID id, boolean lock); @@ -929,7 +935,7 @@ public class BridgeMethodResolverTests { } - public class GenericHibernateRepository + public static class GenericHibernateRepository implements ConvenientGenericRepository { /** @@ -992,7 +998,8 @@ public class BridgeMethodResolverTests { } - public class HibernateRepositoryRegistry extends SettableRepositoryRegistry> { + public static class HibernateRepositoryRegistry extends + SettableRepositoryRegistry> { @Override public void injectInto(GenericHibernateRepository rep) { @@ -1009,13 +1016,13 @@ public class BridgeMethodResolverTests { // SPR-2603 classes //------------------- - public interface Homer { + public static interface Homer { void foo(E e); } - public class MyHomer, L extends T> implements Homer { + public static class MyHomer, L extends T> implements Homer { @Override public void foo(L t) { @@ -1024,7 +1031,8 @@ public class BridgeMethodResolverTests { } - public class YourHomer, L extends T> extends MyHomer { + public static class YourHomer, L extends T> extends + MyHomer { @Override public void foo(L t) { @@ -1033,17 +1041,18 @@ public class BridgeMethodResolverTests { } - public interface GenericDao { + public static interface GenericDao { public void saveOrUpdate(T t); } - public interface ConvenienceGenericDao extends GenericDao { + public static interface ConvenienceGenericDao extends GenericDao { } - public class GenericSqlMapDao implements ConvenienceGenericDao { + public static class GenericSqlMapDao implements + ConvenienceGenericDao { @Override public void saveOrUpdate(T t) { @@ -1052,7 +1061,8 @@ public class BridgeMethodResolverTests { } - public class GenericSqlMapIntegerDao extends GenericSqlMapDao { + public static class GenericSqlMapIntegerDao extends + GenericSqlMapDao { @Override public void saveOrUpdate(T t) { @@ -1060,15 +1070,15 @@ public class BridgeMethodResolverTests { } - public class Permission { + public static class Permission { } - public class User { + public static class User { } - public interface UserDao { + public static interface UserDao { //@Transactional void save(User user); @@ -1078,7 +1088,7 @@ public class BridgeMethodResolverTests { } - public abstract class AbstractDao { + public static abstract class AbstractDao { public void save(T t) { } @@ -1088,7 +1098,7 @@ public class BridgeMethodResolverTests { } - public class UserDaoImpl extends AbstractDao implements UserDao { + public static class UserDaoImpl extends AbstractDao implements UserDao { @Override public void save(Permission perm) { @@ -1100,27 +1110,28 @@ public class BridgeMethodResolverTests { } - public interface DaoInterface { + public static interface DaoInterface { T get(P id); } - public abstract class BusinessGenericDao implements DaoInterface { + public static abstract class BusinessGenericDao + implements DaoInterface { public void save(T object) { } } - public class Business { + public static class Business { } - public class BusinessDao extends BusinessGenericDao, Long> { + public static class BusinessDao extends BusinessGenericDao, Long> { - @Override - public void save(Business business) { - } + @Override + public void save(Business business) { + } @Override public Business get(Long id) { @@ -1197,7 +1208,7 @@ public class BridgeMethodResolverTests { } - public interface IGenericInterface { + public static interface IGenericInterface { void doSomething(final D domainObject, final T value); } @@ -1262,7 +1273,7 @@ public class BridgeMethodResolverTests { // SPR-3534 classes //------------------- - public interface SearchProvider { + public static interface SearchProvider { Collection findBy(CONDITIONS_TYPE conditions); } @@ -1272,7 +1283,7 @@ public class BridgeMethodResolverTests { } - public interface IExternalMessageProvider> + public static interface IExternalMessageProvider> extends SearchProvider { } diff --git a/spring-core/src/test/java/org/springframework/core/AbstractControlFlowTests.java b/spring-core/src/test/java/org/springframework/core/ControlFlowTests.java similarity index 56% rename from spring-core/src/test/java/org/springframework/core/AbstractControlFlowTests.java rename to spring-core/src/test/java/org/springframework/core/ControlFlowTests.java index 56e59e2d99..7272e914e5 100644 --- a/spring-core/src/test/java/org/springframework/core/AbstractControlFlowTests.java +++ b/spring-core/src/test/java/org/springframework/core/ControlFlowTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2012 the original author or authors. + * Copyright 2002-2014 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,71 +16,57 @@ package org.springframework.core; -import junit.framework.TestCase; +import org.junit.Test; + +import static org.junit.Assert.*; /** * @author Rod Johnson + * @author Sam Brannen */ -public abstract class AbstractControlFlowTests extends TestCase { +public class ControlFlowTests { - protected abstract ControlFlow createControlFlow(); - - /* - * Class to test for boolean under(Class) - */ - public void testUnderClassAndMethod() { + @Test + public void underClassAndMethod() { new One().test(); new Two().testing(); new Three().test(); } - /* - public void testUnderPackage() { - ControlFlow cflow = new ControlFlow(); - assertFalse(cflow.underPackage("org.springframework.aop")); - assertTrue(cflow.underPackage("org.springframework.aop.support")); - assertFalse(cflow.underPackage("com.interface21")); - } - */ + static class One { - - public class One { - - public void test() { - ControlFlow cflow = createControlFlow(); + void test() { + ControlFlow cflow = ControlFlowFactory.createControlFlow(); assertTrue(cflow.under(One.class)); - assertTrue(cflow.under(AbstractControlFlowTests.class)); + assertTrue(cflow.under(ControlFlowTests.class)); assertFalse(cflow.under(Two.class)); assertTrue(cflow.under(One.class, "test")); assertFalse(cflow.under(One.class, "hashCode")); } - } + static class Two { - public class Two { - - public void testing() { - ControlFlow cflow = createControlFlow(); + void testing() { + ControlFlow cflow = ControlFlowFactory.createControlFlow(); assertTrue(cflow.under(Two.class)); - assertTrue(cflow.under(AbstractControlFlowTests.class)); + assertTrue(cflow.under(ControlFlowTests.class)); assertFalse(cflow.under(One.class)); assertFalse(cflow.under(Two.class, "test")); assertTrue(cflow.under(Two.class, "testing")); } } + static class Three { - public class Three { - - public void test() { + void test() { testing(); } private void testing() { - ControlFlow cflow = createControlFlow(); + ControlFlow cflow = ControlFlowFactory.createControlFlow(); assertTrue(cflow.under(Three.class)); - assertTrue(cflow.under(AbstractControlFlowTests.class)); + assertTrue(cflow.under(ControlFlowTests.class)); assertFalse(cflow.under(One.class)); assertTrue(cflow.under(Three.class, "test")); assertTrue(cflow.under(Three.class, "testing")); diff --git a/spring-core/src/test/java/org/springframework/core/DefaultControlFlowTests.java b/spring-core/src/test/java/org/springframework/core/DefaultControlFlowTests.java deleted file mode 100644 index a3929896fc..0000000000 --- a/spring-core/src/test/java/org/springframework/core/DefaultControlFlowTests.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright 2002-2012 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.springframework.core; - -/** - * Tests with ControlFlowFactory return. - * - * @author Rod Johnson - */ -public class DefaultControlFlowTests extends AbstractControlFlowTests { - - /** - * Necessary only because Eclipse won't run test suite unless - * it declares some methods as well as inherited methods. - */ - public void testThisClassPlease() { - } - - @Override - protected ControlFlow createControlFlow() { - return ControlFlowFactory.createControlFlow(); - } - -} diff --git a/spring-core/src/test/java/org/springframework/core/GenericCollectionTypeResolverTests.java b/spring-core/src/test/java/org/springframework/core/GenericCollectionTypeResolverTests.java index 08fbaa96a2..279b1f006a 100644 --- a/spring-core/src/test/java/org/springframework/core/GenericCollectionTypeResolverTests.java +++ b/spring-core/src/test/java/org/springframework/core/GenericCollectionTypeResolverTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2013 the original author or authors. + * Copyright 2002-2014 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -25,103 +25,141 @@ import java.util.List; import java.util.Map; import java.util.Set; +import org.junit.Before; +import org.junit.Test; import org.springframework.core.io.Resource; import org.springframework.tests.sample.objects.GenericObject; +import static org.junit.Assert.*; + /** * @author Serge Bogatyrjov * @author Juergen Hoeller + * @author Sam Brannen */ -public class GenericCollectionTypeResolverTests extends AbstractGenericsTests { +public class GenericCollectionTypeResolverTests { - @Override - protected void setUp() throws Exception { + protected Class targetClass; + + protected String[] methods; + + protected Type[] expectedResults; + + @Before + public void setUp() throws Exception { this.targetClass = Foo.class; - this.methods = new String[] {"a", "b", "b2", "b3", "c", "d", "d2", "d3", "e", "e2", "e3"}; - this.expectedResults = new Class[] { - Integer.class, null, Set.class, Set.class, null, Integer.class, - Integer.class, Integer.class, Integer.class, Integer.class, Integer.class}; + this.methods = new String[] { "a", "b", "b2", "b3", "c", "d", "d2", "d3", "e", + "e2", "e3" }; + this.expectedResults = new Class[] { Integer.class, null, Set.class, Set.class, + null, Integer.class, Integer.class, Integer.class, Integer.class, + Integer.class, Integer.class }; + } + + protected void executeTest(String methodName) throws NoSuchMethodException { + for (int i = 0; i < this.methods.length; i++) { + if (methodName.equals(this.methods[i])) { + Method method = this.targetClass.getMethod(methodName); + Type type = getType(method); + assertEquals(this.expectedResults[i], type); + return; + } + } + throw new IllegalStateException("Bad test data"); } - @Override protected Type getType(Method method) { return GenericCollectionTypeResolver.getMapValueReturnType(method); } - public void testA() throws Exception { - executeTest(); + @Test + public void a() throws Exception { + executeTest("a"); } - public void testB() throws Exception { - executeTest(); + @Test + public void b() throws Exception { + executeTest("b"); } - public void testB2() throws Exception { - executeTest(); + @Test + public void b2() throws Exception { + executeTest("b2"); } - public void testB3() throws Exception { - executeTest(); + @Test + public void b3() throws Exception { + executeTest("b3"); } - public void testC() throws Exception { - executeTest(); + @Test + public void c() throws Exception { + executeTest("c"); } - public void testD() throws Exception { - executeTest(); + @Test + public void d() throws Exception { + executeTest("d"); } - public void testD2() throws Exception { - executeTest(); + @Test + public void d2() throws Exception { + executeTest("d2"); } - public void testD3() throws Exception { - executeTest(); + @Test + public void d3() throws Exception { + executeTest("d3"); } - public void testE() throws Exception { - executeTest(); + @Test + public void e() throws Exception { + executeTest("e"); } - public void testE2() throws Exception { - executeTest(); + @Test + public void e2() throws Exception { + executeTest("e2"); } - public void testE3() throws Exception { - executeTest(); + @Test + public void e3() throws Exception { + executeTest("e3"); } - public void testProgrammaticListIntrospection() throws Exception { + @Test + public void programmaticListIntrospection() throws Exception { Method setter = GenericObject.class.getMethod("setResourceList", List.class); - assertEquals(Resource.class, - GenericCollectionTypeResolver.getCollectionParameterType(new MethodParameter(setter, 0))); + assertEquals( + Resource.class, + GenericCollectionTypeResolver.getCollectionParameterType(new MethodParameter( + setter, 0))); Method getter = GenericObject.class.getMethod("getResourceList"); assertEquals(Resource.class, GenericCollectionTypeResolver.getCollectionReturnType(getter)); } - public void testClassResolution() { - assertEquals(String.class, GenericCollectionTypeResolver.getCollectionType(CustomSet.class)); - assertEquals(String.class, GenericCollectionTypeResolver.getMapKeyType(CustomMap.class)); - assertEquals(Integer.class, GenericCollectionTypeResolver.getMapValueType(CustomMap.class)); + @Test + public void classResolution() { + assertEquals(String.class, + GenericCollectionTypeResolver.getCollectionType(CustomSet.class)); + assertEquals(String.class, + GenericCollectionTypeResolver.getMapKeyType(CustomMap.class)); + assertEquals(Integer.class, + GenericCollectionTypeResolver.getMapValueType(CustomMap.class)); } - - private abstract class CustomSet extends AbstractSet { + private static abstract class CustomSet extends AbstractSet { } - - private abstract class CustomMap extends AbstractMap { + private static abstract class CustomMap extends AbstractMap { } - - private abstract class OtherCustomMap implements Map { + private static abstract class OtherCustomMap implements Map { } - - private interface Foo { + @SuppressWarnings("rawtypes") + private static interface Foo { Map a(); diff --git a/spring-core/src/test/java/org/springframework/core/Jdk14ControlFlowTests.java b/spring-core/src/test/java/org/springframework/core/Jdk14ControlFlowTests.java deleted file mode 100644 index 66f1e4f79f..0000000000 --- a/spring-core/src/test/java/org/springframework/core/Jdk14ControlFlowTests.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright 2002-2012 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.springframework.core; - -/** - * Tests with ControlFlowFactory return. - * - * @author Rod Johnson - */ -public class Jdk14ControlFlowTests extends AbstractControlFlowTests { - - /** - * Necessary only because Eclipse won't run test suite unless it declares - * some methods as well as inherited methods - */ - public void testThisClassPlease() { - } - - @Override - protected ControlFlow createControlFlow() { - return ControlFlowFactory.createControlFlow(); - } - -}