/
Integer2TextFactoryTest.java
42 lines (33 loc) · 1.1 KB
/
Integer2TextFactoryTest.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package osgi;
import static org.ops4j.pax.exam.CoreOptions.junitBundles;
import static org.ops4j.pax.exam.CoreOptions.options;
import javax.inject.Inject;
import org.daisy.dotify.api.text.Integer2TextFactoryMakerService;
import org.junit.runner.RunWith;
import org.ops4j.pax.exam.Configuration;
import org.ops4j.pax.exam.Option;
import org.ops4j.pax.exam.junit.PaxExam;
import org.ops4j.pax.exam.spi.reactors.ExamReactorStrategy;
import org.ops4j.pax.exam.spi.reactors.PerClass;
import org.ops4j.pax.exam.util.Filter;
import osgi.config.ConfigurationOptions;
import base.Integer2TextFactoryTestbase;
@SuppressWarnings("javadoc")
@RunWith(PaxExam.class)
@ExamReactorStrategy(PerClass.class)
public class Integer2TextFactoryTest extends Integer2TextFactoryTestbase {
@Configuration
public Option[] configure() {
return options(
ConfigurationOptions.felixDS(),
ConfigurationOptions.dotifyText(),
junitBundles()
);
}
@Inject @Filter(timeout=5000)
Integer2TextFactoryMakerService int2textFactory;
@Override
public Integer2TextFactoryMakerService getInteger2TextFMS() {
return int2textFactory;
}
}