Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(145)

Side by Side Diff: javatests/org/chromium/distiller/PageParameterDetectorTest.java

Issue 1725243002: Fix some warnings in Eclipse (Closed) Base URL: git@github.com:chromium/dom-distiller.git@master
Patch Set: address comments Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.distiller; 5 package org.chromium.distiller;
6 6
7 import java.util.ArrayList;
8 import java.util.HashMap;
9 import java.util.List;
10 import java.util.Map;
11
12 public class PageParameterDetectorTest extends DomDistillerJsTestCase { 7 public class PageParameterDetectorTest extends DomDistillerJsTestCase {
13 8
14 public void testDynamicPara() { 9 public void testDynamicPara() {
15 final String testUrl = "http://bbs.globalimporter.net/bbslist-N11101107- 33-0.htm"; 10 final String testUrl = "http://bbs.globalimporter.net/bbslist-N11101107- 33-0.htm";
16 final PageParamContentInfo[] allContentInfo = { 11 final PageParamContentInfo[] allContentInfo = {
17 NumericOutlink("http://bbs.globalimporter.net/bbslist-N11101107-32-0 .htm", 32), 12 NumericOutlink("http://bbs.globalimporter.net/bbslist-N11101107-32-0 .htm", 32),
18 NumberInPlainText(33), 13 NumberInPlainText(33),
19 NumericOutlink("http://bbs.globalimporter.net/bbslist-N11101107-34-0 .htm", 34), 14 NumericOutlink("http://bbs.globalimporter.net/bbslist-N11101107-34-0 .htm", 34),
20 NumericOutlink("http://bbs.globalimporter.net/bbslist-N11101107-35-0 .htm", 35), 15 NumericOutlink("http://bbs.globalimporter.net/bbslist-N11101107-35-0 .htm", 35),
21 }; 16 };
(...skipping 872 matching lines...) Expand 10 before | Expand all | Expand 10 after
894 } 889 }
895 890
896 static void expectEmptyPageParamInfo(PageParamInfo info) { 891 static void expectEmptyPageParamInfo(PageParamInfo info) {
897 assertEquals(PageParamInfo.Type.UNSET, info.mType); 892 assertEquals(PageParamInfo.Type.UNSET, info.mType);
898 assertEquals(0, info.mAllPageInfo.size()); 893 assertEquals(0, info.mAllPageInfo.size());
899 assertTrue(info.mFormula == null); 894 assertTrue(info.mFormula == null);
900 assertTrue(info.mNextPagingUrl.isEmpty()); 895 assertTrue(info.mNextPagingUrl.isEmpty());
901 } 896 }
902 897
903 } 898 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698