@@ -0,0 +1,1010 @@
+package bamboo.crawl;%0A%0Aimport bamboo.core.Fixtures;%0Aimport org.junit.ClassRule;%0Aimport org.junit.Rule;%0Aimport org.junit.Test;%0Aimport org.junit.rules.TemporaryFolder;%0A%0Aimport java.io.IOException;%0Aimport java.nio.file.Path;%0Aimport java.util.Arrays;%0A%0Apublic class WarcsTest %7B%0A%0A    @ClassRule%0A    public static Fixtures fixtures = new Fixtures();%0A%0A    @ClassRule%0A    public static TemporaryFolder tmp = new TemporaryFolder();%0A%0A    @Test%0A    public void testUpdateRecordStats() throws IOException %7B%0A        Warcs warcs = new Warcs(fixtures.dao.warcs());%0A        Serieses serieses = new Serieses(fixtures.dao.serieses());%0A        Crawls crawls = new Crawls(fixtures.dao.crawls(), serieses, warcs);%0A%0A        Path testFile = tmp.newFile(%22test.warc.gz%22).toPath();%0A%0A        Crawl crawl = new Crawl();%0A        crawl.setName(%22test crawl%22);%0A        long crawlId = crawls.createInPlace(crawl, Arrays.asList(testFile));%0A%0A        RecordStats stats = new RecordStats();%0A        warcs.updateRecordStats(crawlId, stats);%0A    %7D%0A%7D%0A

Add WarcsTest