(String entryName)
| 58 | } |
| 59 | |
| 60 | private static void run(String entryName) throws Throwable { |
| 61 | InputStream bundle = getBundle(); |
| 62 | byte[] compressed; |
| 63 | try { |
| 64 | compressed = BundleHelper.readEntry(bundle, entryName); |
| 65 | } finally { |
| 66 | bundle.close(); |
| 67 | } |
| 68 | if (compressed == null) { |
| 69 | throw new RuntimeException("Can't read bundle entry: " + entryName); |
| 70 | } |
| 71 | |
| 72 | byte[] decompressed = Decoder.decompress(compressed); |
| 73 | |
| 74 | long crc = BundleHelper.fingerprintStream(new ByteArrayInputStream(decompressed)); |
| 75 | assertEquals(BundleHelper.getExpectedFingerprint(entryName), crc); |
| 76 | } |
| 77 | } |
no test coverage detected