Creates a test suite.
()
| 30 | |
| 31 | /** Creates a test suite. */ |
| 32 | public static TestSuite suite() throws IOException { |
| 33 | TestSuite suite = new TestSuite(); |
| 34 | InputStream bundle = getBundle(); |
| 35 | try { |
| 36 | List<String> entries = BundleHelper.listEntries(bundle); |
| 37 | for (String entry : entries) { |
| 38 | suite.addTest(new DecoderTestCase(entry)); |
| 39 | } |
| 40 | } finally { |
| 41 | bundle.close(); |
| 42 | } |
| 43 | return suite; |
| 44 | } |
| 45 | |
| 46 | /** Test case with a unique name. */ |
| 47 | static class DecoderTestCase extends TestCase { |
nothing calls this directly
no test coverage detected