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