added
new error
This commit is contained in:
parent
c3f8889bdd
commit
dfe4de7128
|
@ -77,8 +77,7 @@ public class WMICrawlerLinux extends WMICrawlerOS {
|
|||
|
||||
String errStr = checkError(result);
|
||||
if(errStr.length() > 0) {
|
||||
// map.put("ERROR", errStr);
|
||||
return null;
|
||||
throw new Exception(errStr);
|
||||
}
|
||||
|
||||
String[] lines = result.split("\\n");
|
||||
|
|
|
@ -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)) );
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user