Skip to content

Commit

Permalink
NXP-20015: replace system.out.println by a logger at debug level
Browse files Browse the repository at this point in the history
  • Loading branch information
ChevalierFrugier authored and nuxeojenkins committed Jul 15, 2016
1 parent cda31e5 commit 7f2af95
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,14 @@

import java.util.List;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.junit.Test;

public class TestUserAgent {

private static final Log log = LogFactory.getLog(TestUserAgent.class);

public static final String MSIE6_UA = "Mozilla/4.0 (compatible; MSIE 6.1;"
+ " Windows XP; .NET CLR 1.1.4322; .NET CLR 2.0.50727)";

Expand Down Expand Up @@ -61,14 +65,14 @@ public void testSupportedBrowsers() throws Exception {

for (String UA : UAs) {
if (!UA.startsWith("#") && !UA.isEmpty()) {
System.out.println("Testing user agent : " + UA);
log.debug("Testing user agent : " + UA);
assertTrue(UserAgentMatcher.html5DndIsSupported(UA));
}
}

for (String UA : BadUAs) {
if (!UA.startsWith("#") && !UA.isEmpty()) {
System.out.println("Testing bad user agent : " + UA);
log.debug("Testing bad user agent : " + UA);
assertFalse(UserAgentMatcher.html5DndIsSupported(UA));
}
}
Expand Down

0 comments on commit 7f2af95

Please sign in to comment.