@Test public void testSimpleConcat() throws Exception { String results = addComment(SCRT1, URL1.toString()) + addComment(SCRT2,URL2.toString()); runConcat(sequentialExecutor, results, null, URL1, URL2); }
@Test public void testAsJsonConcat() throws Exception { String results = "_js={\r\n" + addVar(URL1.toString(), SCRT1_ESCAPED) + addLastVar(URL2.toString(), SCRT2_ESCAPED) + "};\r\n"; runConcat(sequentialExecutor, results, "_js", URL1, URL2); }
@Test public void testAsJsonConcat() throws Exception { String results = "_js={\r\n" + addVar(URL1.toString(), SCRT1_ESCAPED) + addLastVar(URL2.toString(), SCRT2_ESCAPED) + "};\r\n"; runConcat(sequentialExecutor, results, "_js", URL1, URL2); }
@Test public void testAsJsonConcat() throws Exception { String results = "_js={\r\n" + addVar(URL1.toString(), SCRT1_ESCAPED) + addVar(URL2.toString(), SCRT2_ESCAPED) + "};\r\n"; runConcat(sequentialExecutor, results, "_js", URL1, URL2); }
@Test public void testSimpleConcatThreaded() throws Exception { String results = addComment(SCRT1, URL1.toString()) + addComment(SCRT2,URL2.toString()); runConcat(threadedExecutor, results, null, URL1, URL2); }
@Test public void testSimpleConcat() throws Exception { String results = addComment(SCRT1, URL1.toString()) + addComment(SCRT2,URL2.toString()); runConcat(sequentialExecutor, results, null, URL1, URL2); }
@Test public void testSimpleConcatThreaded() throws Exception { String results = addComment(SCRT1, URL1.toString()) + addComment(SCRT2,URL2.toString()); runConcat(threadedExecutor, results, null, URL1, URL2); }
@Test public void testSimpleConcat() throws Exception { String results = addComment(SCRT1, URL1.toString()) + addComment(SCRT2,URL2.toString()); runConcat(sequentialExecutor, results, null, URL1, URL2); }
@Test public void testSimpleConcatThreaded() throws Exception { String results = addComment(SCRT1, URL1.toString()) + addComment(SCRT2,URL2.toString()); runConcat(threadedExecutor, results, null, URL1, URL2); }
@Test public void testAsJsonConcat404() throws Exception { final Uri URL4 = Uri.parse("http://example.org/4.js"); HttpRequest req = new HttpRequest(URL4); HttpResponse resp = new HttpResponseBuilder().setHttpStatusCode(404).create(); expect(pipeline.execute(req)).andReturn(resp).anyTimes(); String results = "_js={\r\n" + addLastVar(URL1.toString(), SCRT1_ESCAPED) + "/* ---- Error 404 (http://example.org/4.js) ---- */\r\n" + "};\r\n"; runConcat(sequentialExecutor, results, "_js", URL1, URL4); }
@Test public void testAsJsonConcat404() throws Exception { final Uri URL4 = Uri.parse("http://example.org/4.js"); HttpRequest req = new HttpRequest(URL4); HttpResponse resp = new HttpResponseBuilder().setHttpStatusCode(404).create(); expect(pipeline.execute(req)).andReturn(resp).anyTimes(); String results = "_js={\r\n" + addLastVar(URL1.toString(), SCRT1_ESCAPED) + "/* ---- Error 404 (http://example.org/4.js) ---- */\r\n" + "};\r\n"; runConcat(sequentialExecutor, results, "_js", URL1, URL4); }
@Test public void testAsJsonConcat404() throws Exception { final Uri URL4 = Uri.parse("http://example.org/4.js"); HttpRequest req = new HttpRequest(URL4); HttpResponse resp = new HttpResponseBuilder().setHttpStatusCode(404).create(); expect(pipeline.execute(req)).andReturn(resp).anyTimes(); String results = "_js={\r\n" + addVar(URL1.toString(), SCRT1_ESCAPED) + "/* ---- Error 404 (http://example.org/4.js) ---- */\r\n" + "};\r\n"; runConcat(sequentialExecutor, results, "_js", URL1, URL4); }
@Test public void testThreeConcat() throws Exception { String results = addComment(SCRT1, URL1.toString()) + addComment(SCRT2,URL2.toString()) + addComment(SCRT3, URL3.toString()); runConcat(sequentialExecutor, results, null, URL1, URL2, URL3); }
@Test public void testThreeConcatThreaded() throws Exception { String results = addComment(SCRT1, URL1.toString()) + addComment(SCRT2,URL2.toString()) + addComment(SCRT3, URL3.toString()); runConcat(threadedExecutor, results, null, URL1, URL2, URL3); }
@Test public void testThreeAsJsonConcat() throws Exception { String results = "_js={\r\n" + addVar(URL1.toString(), SCRT1_ESCAPED) + addVar(URL2.toString(), SCRT2_ESCAPED) + addLastVar(URL3.toString(), SCRT3_ESCAPED) + "};\r\n"; runConcat(sequentialExecutor, results, "_js", URL1, URL2, URL3); }
@Test public void testThreeAsJsonConcat() throws Exception { String results = "_js={\r\n" + addVar(URL1.toString(), SCRT1_ESCAPED) + addVar(URL2.toString(), SCRT2_ESCAPED) + addLastVar(URL3.toString(), SCRT3_ESCAPED) + "};\r\n"; runConcat(sequentialExecutor, results, "_js", URL1, URL2, URL3); }
@Test public void testThreeConcat() throws Exception { String results = addComment(SCRT1, URL1.toString()) + addComment(SCRT2,URL2.toString()) + addComment(SCRT3, URL3.toString()); runConcat(sequentialExecutor, results, null, URL1, URL2, URL3); }
@Test public void testThreeConcat() throws Exception { String results = addComment(SCRT1, URL1.toString()) + addComment(SCRT2,URL2.toString()) + addComment(SCRT3, URL3.toString()); runConcat(sequentialExecutor, results, null, URL1, URL2, URL3); }
@Test public void testThreeConcatThreaded() throws Exception { String results = addComment(SCRT1, URL1.toString()) + addComment(SCRT2,URL2.toString()) + addComment(SCRT3, URL3.toString()); runConcat(threadedExecutor, results, null, URL1, URL2, URL3); }
@Test public void testThreeConcatThreaded() throws Exception { String results = addComment(SCRT1, URL1.toString()) + addComment(SCRT2,URL2.toString()) + addComment(SCRT3, URL3.toString()); runConcat(threadedExecutor, results, null, URL1, URL2, URL3); }