01: package de.java2html.converter.test;
02:
03: import junit.framework.TestCase;
04:
05: import de.java2html.converter.IJavaSourceConverter;
06:
07: public abstract class AbstractJavaSourceConverterTest extends TestCase {
08:
09: private IJavaSourceConverter converter;
10:
11: protected void setUp() throws Exception {
12: super .setUp();
13: converter = createObjectUnderTest();
14: }
15:
16: protected abstract IJavaSourceConverter createObjectUnderTest();
17:
18: public void testGetMetaData() {
19: assertNotNull(converter.getMetaData().getName());
20: assertNotNull(converter.getMetaData().getPrintName());
21: assertEquals(converter.getMetaData().getDefaultFileExtension(),
22: converter.getDefaultFileExtension());
23: assertNotNull(converter.getMetaData().getDefaultFileExtension());
24: }
25:
26: }
|