1
2
3
4
5
6
7
8
9
10
11
12
13
14 package org.slf4j.test_osgi;
15
16 import java.io.File;
17
18 import junit.framework.TestCase;
19
20 public class BundleTest extends TestCase {
21
22 FrameworkErrorListener fel = new FrameworkErrorListener();
23 CheckingBundleListener mbl = new CheckingBundleListener();
24
25 FelixHost felixHost = new FelixHost(fel, mbl);
26
27 protected void setUp() throws Exception {
28 super.setUp();
29 felixHost.doLaunch();
30 }
31
32 protected void tearDown() throws Exception {
33 super.tearDown();
34 felixHost.stop();
35 }
36
37 public void testSmoke() {
38 System.out.println("===========" + new File(".").getAbsolutePath());
39 mbl.dumpAll();
40
41 assertTrue(mbl.exists("iBundle"));
42 if (fel.errorList.size() != 0) {
43 fel.dumpAll();
44 }
45
46 assertEquals(0, fel.errorList.size());
47 }
48 }