01: /**
02: *
03: * Licensed to the Apache Software Foundation (ASF) under one or more
04: * contributor license agreements. See the NOTICE file distributed with
05: * this work for additional information regarding copyright ownership.
06: * The ASF licenses this file to You under the Apache License, Version 2.0
07: * (the "License"); you may not use this file except in compliance with
08: * the License. You may obtain a copy of the License at
09: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing, software
13: * distributed under the License is distributed on an "AS IS" BASIS,
14: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15: * See the License for the specific language governing permissions and
16: * limitations under the License.
17: */package org.apache.openejb;
18:
19: import junit.framework.TestCase;
20: import junit.framework.Test;
21:
22: /**
23: * Surefire hack for running RemoteiTest class via maven. Not for use in IDEs
24: *
25: * At some point Surefire decided it wasn't going to run anything that wasn't an
26: * immediate subclass of TestCase, even if your parent's parent was TestCase or
27: * your class was assignable to TestCase.
28: *
29: * So this class is a dirty hack to get the RemoteiTest class to run with the build.
30: *
31: * NOTE: use the iTest class in your IDE instead of this one.
32: *
33: * @see RemoteiTest
34: * @version $Revision: 576056 $ $Date: 2007-09-16 00:14:42 -0700 $
35: */
36: public class SomeoneBrokeSurefireAndThisIsADirtyHackForItTest extends
37: TestCase {
38: public static Test suite() {
39: System.setProperty("openejb.assembler",
40: org.apache.openejb.assembler.classic.Assembler.class
41: .getName());
42: System.setProperty("openejb.deployments.classpath.include",
43: ".*openejb-itests-beans.*");
44: System.setProperty(
45: "openejb.deployments.classpath.filter.systemapps",
46: "false");
47:
48: return RemoteiTest.suite();
49: }
50: }
|