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