blob: 42938837a2bc7114b6573a02c6dc0bb4dd30bc93 [file] [log] [blame]
Manuel L. Santillan63a4d782006-08-31 16:15:43 +00001/*
2 * Copyright 2005 The Apache Software Foundation
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *
16 */
17
18package org.apache.felix.jmood.core;
19import junit.framework.TestCase;
20
21import org.apache.felix.jmood.FelixLauncher;
22
23public class TestHarness extends TestCase {
24 private FelixLauncher launcher;
25 protected void setUp() throws Exception {
26 //ISSUE: this is not a unit test, but maven runs it as one
27 //before it builds the jar
28 super.setUp();
29 launcher=new FelixLauncher();
30 String jmood="file:target/org.apache.felix.jmood-0.8.0-SNAPSHOT.jar";
31 launcher.addBundle(jmood);
32 launcher.addPackage("org.osgi.framework");
33 launcher.addPackage("org.osgi.util.tracker");
34 launcher.addPackage("org.osgi.service.log");
35 launcher.addPackage("org.osgi.service.packageadmin");
36 launcher.addPackage("org.osgi.service.startlevel");
37 launcher.addPackage("org.osgi.service.permissionadmin");
38 launcher.addPackage("org.osgi.service.useradmin");
39 launcher.addPackage("org.osgi.service.cm");
40 launcher.addPackage("javax.management");
41 launcher.addPackage("javax.management.remote");
42 launcher.blockingStart();
43 }
44 protected void tearDown() throws Exception {
45 super.tearDown();
46 launcher.shutdown();
47 }
48 public void testDummy() {
49 //to avoid test not found assertion error
50 }
51}