new error
This commit is contained in:
snoop 2017-05-23 19:11:19 +09:00
parent c3f8889bdd
commit dfe4de7128
2 changed files with 26 additions and 2 deletions

View File

@ -77,8 +77,7 @@ public class WMICrawlerLinux extends WMICrawlerOS {
String errStr = checkError(result); String errStr = checkError(result);
if(errStr.length() > 0) { if(errStr.length() > 0) {
// map.put("ERROR", errStr); throw new Exception(errStr);
return null;
} }
String[] lines = result.split("\\n"); String[] lines = result.split("\\n");

View File

@ -205,6 +205,31 @@ public class WMICrawlerTest {
}
@Test
public void testMap() {
Map<String, String> aa = new HashMap<>();
aa.put("111", "123123123");
aa.put("222", "123123123");
Map<String, String> bb = new HashMap<>();
bb.put("333", "123123123");
bb.put("444", "123123123");
aa.putAll(bb);
for( String key : aa.keySet() ){
System.out.println( String.format("key : %s ||| value : %s", key, aa.get(key)) );
}
} }
} }