• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java HashedMap类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.apache.commons.collections4.map.HashedMap的典型用法代码示例。如果您正苦于以下问题:Java HashedMap类的具体用法?Java HashedMap怎么用?Java HashedMap使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



HashedMap类属于org.apache.commons.collections4.map包,在下文中一共展示了HashedMap类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: testIterableMap_literalMutation2766

import org.apache.commons.collections4.map.HashedMap; //导入依赖的package包/类
public void testIterableMap_literalMutation2766() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testIterableMap_literalMutation2766");
    try {
        org.apache.commons.collections4.MapUtils.iterableMap(null);
    } catch (final IllegalArgumentException e) {
    }
    final HashMap<java.lang.String, java.lang.String> map = new HashMap<java.lang.String, java.lang.String>();
    map.put("foo", "foov");
    map.put("foo", "barv");
    map.put("baz", "bazv");
    final IterableMap<java.lang.String, java.lang.String> iMap = org.apache.commons.collections4.MapUtils.iterableMap(map);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7836,map);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7837,iMap);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7838,map);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7839,iMap);
    final HashedMap<java.lang.String, java.lang.String> hMap = new HashedMap<java.lang.String, java.lang.String>(map);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7840,hMap);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7842,null,7841,org.apache.commons.collections4.MapUtils.iterableMap(hMap));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
 
开发者ID:DIVERSIFY-project,项目名称:sosiefier,代码行数:21,代码来源:MapUtilsTest.java


示例2: getJiraIssues

import org.apache.commons.collections4.map.HashedMap; //导入依赖的package包/类
private Map<String, String> getJiraIssues() throws IOException {
    String queryUrl = jiraApiUrl.concat("/search/?jql=").concat(URLEncoder.encode(jiraJql, CharEncoding.UTF_8).replace("+", "%20"));
    System.out.println("Jira query url: ".concat(queryUrl));

    HttpClient client = HttpClientBuilder.create().build();
    HttpGet request = new HttpGet(queryUrl);

    // add request headers
    for (Map.Entry<String, String> entry : jiraHeaders.entrySet()) {
        request.addHeader(entry.getKey(), entry.getValue());
    }
    request.addHeader("Content-Type", "application/json");
    HttpResponse response = client.execute(request);
    String searchResp = IOUtils.toString(response.getEntity().getContent());
    System.out.println("Jira call response code: " + response.getStatusLine().getStatusCode());
    Map<String, String> issueDescriptionMap = new HashedMap<>();
    List<Map<String, Object>> issues = JsonPath.read(searchResp, "$.issues[*]");
    for (Map<String, Object> issue : issues) {
        String issueId = (String) issue.get("key");
        String description = JsonPath.read(issue.get("fields"), "$.description");
        issueDescriptionMap.put(issueId, description);
    }
    System.out.println("Issues found: ".concat(issueDescriptionMap.keySet().toString()));
    return issueDescriptionMap;
}
 
开发者ID:nacuteodor,项目名称:SearchInJenkinsLogs,代码行数:26,代码来源:ToolArgs.java


示例3: getIssuesLinks

import org.apache.commons.collections4.map.HashedMap; //导入依赖的package包/类
private static String getIssuesLinks(ToolArgs toolArgs, String shortTestName) {
    if (!testsIssuesMap.containsKey(shortTestName)) {
        Map<String, String> issuesMap = new HashedMap<>();
        for (Map.Entry<String, String> issueDescription : toolArgs.issueDescriptionMap.entrySet()) {
            if (issueDescription.getValue().contains(shortTestName)) {
                issuesMap.put(issueDescription.getKey(), toolArgs.jiraUrl.concat("/browse/").concat(issueDescription.getKey()));
            }
        }
        String issuesLinks = "";
        for (Map.Entry<String, String> entry : issuesMap.entrySet()) {
            issuesLinks = issuesLinks.concat("<a href=\"").concat(entry.getValue()).concat("\">").concat(entry.getKey()).concat("</a>&#44;&nbsp;");
        }
        if (!issuesLinks.isEmpty()) {
            issuesLinks = issuesLinks.substring(0, issuesLinks.lastIndexOf("&#44;&nbsp;"));
        }
        testsIssuesMap.put(shortTestName, issuesLinks);
    }
    return testsIssuesMap.get(shortTestName);
}
 
开发者ID:nacuteodor,项目名称:SearchInJenkinsLogs,代码行数:20,代码来源:Main.java


示例4: testIterableMap_add2659

import org.apache.commons.collections4.map.HashedMap; //导入依赖的package包/类
@org.junit.Test(timeout = 1000)
public void testIterableMap_add2659() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testIterableMap_add2659");
    try {
        org.apache.commons.collections4.MapUtils.iterableMap(null);
        org.apache.commons.collections4.MapUtils.iterableMap(null);
    } catch (final IllegalArgumentException e) {
    }
    final HashMap<java.lang.String, java.lang.String> map = new HashMap<java.lang.String, java.lang.String>();
    map.put("foo", "foov");
    map.put("bar", "barv");
    map.put("baz", "bazv");
    final IterableMap<java.lang.String, java.lang.String> iMap = org.apache.commons.collections4.MapUtils.iterableMap(map);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7836,map);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7837,iMap);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7838,map);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7839,iMap);
    final HashedMap<java.lang.String, java.lang.String> hMap = new HashedMap<java.lang.String, java.lang.String>(map);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7840,hMap);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7842,null,7841,org.apache.commons.collections4.MapUtils.iterableMap(hMap));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
 
开发者ID:DIVERSIFY-project,项目名称:sosiefier,代码行数:23,代码来源:MapUtilsTest.java


示例5: testIterableMap_add2660

import org.apache.commons.collections4.map.HashedMap; //导入依赖的package包/类
@org.junit.Test(timeout = 1000)
public void testIterableMap_add2660() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testIterableMap_add2660");
    try {
        org.apache.commons.collections4.MapUtils.iterableMap(null);
    } catch (final IllegalArgumentException e) {
    }
    final HashMap<java.lang.String, java.lang.String> map = new HashMap<java.lang.String, java.lang.String>();
    map.put("foo", "foov");
    map.put("foo", "foov");
    map.put("bar", "barv");
    map.put("baz", "bazv");
    final IterableMap<java.lang.String, java.lang.String> iMap = org.apache.commons.collections4.MapUtils.iterableMap(map);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7836,map);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7837,iMap);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7838,map);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7839,iMap);
    final HashedMap<java.lang.String, java.lang.String> hMap = new HashedMap<java.lang.String, java.lang.String>(map);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7840,hMap);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7842,null,7841,org.apache.commons.collections4.MapUtils.iterableMap(hMap));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
 
开发者ID:DIVERSIFY-project,项目名称:sosiefier,代码行数:23,代码来源:MapUtilsTest.java


示例6: testIterableMap_add2661

import org.apache.commons.collections4.map.HashedMap; //导入依赖的package包/类
@org.junit.Test(timeout = 1000)
public void testIterableMap_add2661() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testIterableMap_add2661");
    try {
        org.apache.commons.collections4.MapUtils.iterableMap(null);
    } catch (final IllegalArgumentException e) {
    }
    final HashMap<java.lang.String, java.lang.String> map = new HashMap<java.lang.String, java.lang.String>();
    map.put("foo", "foov");
    map.put("bar", "barv");
    map.put("bar", "barv");
    map.put("baz", "bazv");
    final IterableMap<java.lang.String, java.lang.String> iMap = org.apache.commons.collections4.MapUtils.iterableMap(map);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7836,map);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7837,iMap);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7838,map);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7839,iMap);
    final HashedMap<java.lang.String, java.lang.String> hMap = new HashedMap<java.lang.String, java.lang.String>(map);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7840,hMap);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7842,null,7841,org.apache.commons.collections4.MapUtils.iterableMap(hMap));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
 
开发者ID:DIVERSIFY-project,项目名称:sosiefier,代码行数:23,代码来源:MapUtilsTest.java


示例7: testIterableMap_add2662

import org.apache.commons.collections4.map.HashedMap; //导入依赖的package包/类
@org.junit.Test(timeout = 1000)
public void testIterableMap_add2662() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testIterableMap_add2662");
    try {
        org.apache.commons.collections4.MapUtils.iterableMap(null);
    } catch (final IllegalArgumentException e) {
    }
    final HashMap<java.lang.String, java.lang.String> map = new HashMap<java.lang.String, java.lang.String>();
    map.put("foo", "foov");
    map.put("bar", "barv");
    map.put("baz", "bazv");
    map.put("baz", "bazv");
    final IterableMap<java.lang.String, java.lang.String> iMap = org.apache.commons.collections4.MapUtils.iterableMap(map);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7836,map);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7837,iMap);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7838,map);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7839,iMap);
    final HashedMap<java.lang.String, java.lang.String> hMap = new HashedMap<java.lang.String, java.lang.String>(map);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7840,hMap);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7842,null,7841,org.apache.commons.collections4.MapUtils.iterableMap(hMap));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
 
开发者ID:DIVERSIFY-project,项目名称:sosiefier,代码行数:23,代码来源:MapUtilsTest.java


示例8: testIterableMap

import org.apache.commons.collections4.map.HashedMap; //导入依赖的package包/类
public void testIterableMap() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testIterableMap");
    try {
        org.apache.commons.collections4.MapUtils.iterableMap(null);
    } catch (final IllegalArgumentException e) {
    }
    final HashMap<java.lang.String, java.lang.String> map = new HashMap<java.lang.String, java.lang.String>();
    map.put("foo", "foov");
    map.put("bar", "barv");
    map.put("baz", "bazv");
    final IterableMap<java.lang.String, java.lang.String> iMap = org.apache.commons.collections4.MapUtils.iterableMap(map);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7836,map);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7837,iMap);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7838,map);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7839,iMap);
    final HashedMap<java.lang.String, java.lang.String> hMap = new HashedMap<java.lang.String, java.lang.String>(map);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7840,hMap);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7842,null,7841,org.apache.commons.collections4.MapUtils.iterableMap(hMap));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
 
开发者ID:DIVERSIFY-project,项目名称:sosiefier,代码行数:21,代码来源:MapUtilsTest.java


示例9: testIterableMap_literalMutation2765

import org.apache.commons.collections4.map.HashedMap; //导入依赖的package包/类
public void testIterableMap_literalMutation2765() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testIterableMap_literalMutation2765");
    try {
        org.apache.commons.collections4.MapUtils.iterableMap(null);
    } catch (final IllegalArgumentException e) {
    }
    final HashMap<java.lang.String, java.lang.String> map = new HashMap<java.lang.String, java.lang.String>();
    map.put("foo", "foo");
    map.put("bar", "barv");
    map.put("baz", "bazv");
    final IterableMap<java.lang.String, java.lang.String> iMap = org.apache.commons.collections4.MapUtils.iterableMap(map);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7836,map);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7837,iMap);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7838,map);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7839,iMap);
    final HashedMap<java.lang.String, java.lang.String> hMap = new HashedMap<java.lang.String, java.lang.String>(map);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7840,hMap);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7842,null,7841,org.apache.commons.collections4.MapUtils.iterableMap(hMap));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
 
开发者ID:DIVERSIFY-project,项目名称:sosiefier,代码行数:21,代码来源:MapUtilsTest.java


示例10: testIterableMap_literalMutation2767

import org.apache.commons.collections4.map.HashedMap; //导入依赖的package包/类
public void testIterableMap_literalMutation2767() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testIterableMap_literalMutation2767");
    try {
        org.apache.commons.collections4.MapUtils.iterableMap(null);
    } catch (final IllegalArgumentException e) {
    }
    final HashMap<java.lang.String, java.lang.String> map = new HashMap<java.lang.String, java.lang.String>();
    map.put("foo", "foov");
    map.put("bar", "foo");
    map.put("baz", "bazv");
    final IterableMap<java.lang.String, java.lang.String> iMap = org.apache.commons.collections4.MapUtils.iterableMap(map);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7836,map);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7837,iMap);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7838,map);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7839,iMap);
    final HashedMap<java.lang.String, java.lang.String> hMap = new HashedMap<java.lang.String, java.lang.String>(map);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7840,hMap);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7842,null,7841,org.apache.commons.collections4.MapUtils.iterableMap(hMap));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
 
开发者ID:DIVERSIFY-project,项目名称:sosiefier,代码行数:21,代码来源:MapUtilsTest.java


示例11: testIterableMap_literalMutation2768

import org.apache.commons.collections4.map.HashedMap; //导入依赖的package包/类
public void testIterableMap_literalMutation2768() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testIterableMap_literalMutation2768");
    try {
        org.apache.commons.collections4.MapUtils.iterableMap(null);
    } catch (final IllegalArgumentException e) {
    }
    final HashMap<java.lang.String, java.lang.String> map = new HashMap<java.lang.String, java.lang.String>();
    map.put("foo", "foov");
    map.put("bar", "barv");
    map.put("foo", "bazv");
    final IterableMap<java.lang.String, java.lang.String> iMap = org.apache.commons.collections4.MapUtils.iterableMap(map);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7836,map);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7837,iMap);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7838,map);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7839,iMap);
    final HashedMap<java.lang.String, java.lang.String> hMap = new HashedMap<java.lang.String, java.lang.String>(map);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7840,hMap);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7842,null,7841,org.apache.commons.collections4.MapUtils.iterableMap(hMap));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
 
开发者ID:DIVERSIFY-project,项目名称:sosiefier,代码行数:21,代码来源:MapUtilsTest.java


示例12: testIterableMap_literalMutation2769

import org.apache.commons.collections4.map.HashedMap; //导入依赖的package包/类
public void testIterableMap_literalMutation2769() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testIterableMap_literalMutation2769");
    try {
        org.apache.commons.collections4.MapUtils.iterableMap(null);
    } catch (final IllegalArgumentException e) {
    }
    final HashMap<java.lang.String, java.lang.String> map = new HashMap<java.lang.String, java.lang.String>();
    map.put("foo", "foov");
    map.put("bar", "barv");
    map.put("baz", "foo");
    final IterableMap<java.lang.String, java.lang.String> iMap = org.apache.commons.collections4.MapUtils.iterableMap(map);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7836,map);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7837,iMap);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7838,map);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7839,iMap);
    final HashedMap<java.lang.String, java.lang.String> hMap = new HashedMap<java.lang.String, java.lang.String>(map);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7840,hMap);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7842,null,7841,org.apache.commons.collections4.MapUtils.iterableMap(hMap));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
 
开发者ID:DIVERSIFY-project,项目名称:sosiefier,代码行数:21,代码来源:MapUtilsTest.java


示例13: testIterableMap_remove2104

import org.apache.commons.collections4.map.HashedMap; //导入依赖的package包/类
@org.junit.Test(timeout = 1000)
public void testIterableMap_remove2104() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testIterableMap_remove2104");
    try {
        org.apache.commons.collections4.MapUtils.iterableMap(null);
    } catch (final IllegalArgumentException e) {
    }
    final HashMap<java.lang.String, java.lang.String> map = new HashMap<java.lang.String, java.lang.String>();
    map.put("bar", "barv");
    map.put("baz", "bazv");
    final IterableMap<java.lang.String, java.lang.String> iMap = org.apache.commons.collections4.MapUtils.iterableMap(map);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7836,map);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7837,iMap);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7838,map);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7839,iMap);
    final HashedMap<java.lang.String, java.lang.String> hMap = new HashedMap<java.lang.String, java.lang.String>(map);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7840,hMap);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7842,null,7841,org.apache.commons.collections4.MapUtils.iterableMap(hMap));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
 
开发者ID:DIVERSIFY-project,项目名称:sosiefier,代码行数:21,代码来源:MapUtilsTest.java


示例14: testIterableMap_remove2105

import org.apache.commons.collections4.map.HashedMap; //导入依赖的package包/类
@org.junit.Test(timeout = 1000)
public void testIterableMap_remove2105() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testIterableMap_remove2105");
    try {
        org.apache.commons.collections4.MapUtils.iterableMap(null);
    } catch (final IllegalArgumentException e) {
    }
    final HashMap<java.lang.String, java.lang.String> map = new HashMap<java.lang.String, java.lang.String>();
    map.put("bar", "barv");
    map.put("baz", "bazv");
    final IterableMap<java.lang.String, java.lang.String> iMap = org.apache.commons.collections4.MapUtils.iterableMap(map);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7836,map);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7837,iMap);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7838,map);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7839,iMap);
    final HashedMap<java.lang.String, java.lang.String> hMap = new HashedMap<java.lang.String, java.lang.String>(map);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7840,hMap);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7842,null,7841,org.apache.commons.collections4.MapUtils.iterableMap(hMap));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
 
开发者ID:DIVERSIFY-project,项目名称:sosiefier,代码行数:21,代码来源:MapUtilsTest.java


示例15: testIterableMap_remove2106

import org.apache.commons.collections4.map.HashedMap; //导入依赖的package包/类
@org.junit.Test(timeout = 1000)
public void testIterableMap_remove2106() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testIterableMap_remove2106");
    try {
        org.apache.commons.collections4.MapUtils.iterableMap(null);
    } catch (final IllegalArgumentException e) {
    }
    final HashMap<java.lang.String, java.lang.String> map = new HashMap<java.lang.String, java.lang.String>();
    map.put("bar", "barv");
    map.put("baz", "bazv");
    final IterableMap<java.lang.String, java.lang.String> iMap = org.apache.commons.collections4.MapUtils.iterableMap(map);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7836,map);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7837,iMap);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7838,map);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7839,iMap);
    final HashedMap<java.lang.String, java.lang.String> hMap = new HashedMap<java.lang.String, java.lang.String>(map);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7840,hMap);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7842,null,7841,org.apache.commons.collections4.MapUtils.iterableMap(hMap));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
 
开发者ID:DIVERSIFY-project,项目名称:sosiefier,代码行数:21,代码来源:MapUtilsTest.java


示例16: findFromWindowsRegistry

import org.apache.commons.collections4.map.HashedMap; //导入依赖的package包/类
private String findFromWindowsRegistry() {

		// Map of possible Lotus Notes locations in the Windows registry
		final Map<String, String> registryKeys = new HashedMap<String, String>();
		registryKeys.put("HKEY_LOCAL_MACHINE\\Software\\Lotus\\Notes", "Path"); //$NON-NLS-1$//$NON-NLS-2$
		registryKeys.put("HKEY_CURRENT_USER\\Software\\Lotus\\Notes\\Installer", "PROGDIR"); //$NON-NLS-1$ //$NON-NLS-2$
		registryKeys.put("HKEY_CURRENT_USER\\Software\\IBM\\Notes\\Installer", "PROGDIR"); //$NON-NLS-1$ //$NON-NLS-2$

		final WindowsRegistry windowsRegistry = new WindowsRegistry(new DefaultRegistryQueryProcessFactory());
		final Iterator<String> locations = registryKeys.keySet().iterator();
		String lotusNotesHome = null;
		while (lotusNotesHome == null && locations.hasNext()) {
			final String location = locations.next();
			log.warn(TechMessage.get().MSG_CHECKING_REGISTRY_KEY_(location, registryKeys.get(location)));
			lotusNotesHome = windowsRegistry.readRegistry(location, registryKeys.get(location));
		}

		return lotusNotesHome;
	}
 
开发者ID:fjakop,项目名称:ngcalsync,代码行数:20,代码来源:NotesHelper.java


示例17: createClaims

import org.apache.commons.collections4.map.HashedMap; //导入依赖的package包/类
private Map<String, Object> createClaims(final String username, final String email, long exp ) {
    return new HashedMap<String, Object>() {{
            put("jti","c7df0339-3847-450b-a925-628ef237953a");
            put("sub","b6d62259-217b-4e96-8f49-e00c366e4fed");
            put("scope","size = 5");
            put("client_id", "dummy1");
            put("azp","dummy2");
            put("grant_type" ,"password");
            put("user_id","b6d62259-217b-4e96-8f49-e00c366e4fed");
            put("origin","usergrid");
            put("user_name", username );
            put("email", email);
            put("rev_sig","dfe5d0d3");
            put("exp", exp);
            put("iat", System.currentTimeMillis());
            put("iss", "https://jwt.example.com/token");
            put("zid","uaa");
            put("aud"," size = 6");
        }};
}
 
开发者ID:apache,项目名称:usergrid,代码行数:21,代码来源:ApigeeSSO2ProviderIT.java


示例18: genrateToken

import org.apache.commons.collections4.map.HashedMap; //导入依赖的package包/类
private String genrateToken(){
    Map<String, Object> claims = new HashedMap<String, Object>();
    claims.put("jti","c7df0339-3847-450b-a925-628ef237953a");
    claims.put("sub","b6d62259-217b-4e96-8f49-e00c366e4fed");
    claims.put("scope","size = 5");
    claims.put("client_id", "edgecli");
    claims.put("azp","edgecli");
    claims.put("grant_type" ,"password");
    claims.put("user_id","b6d62259-217b-4e96-8f49-e00c366e4fed");
    claims.put( "origin","usergrid");
    claims.put("user_name","AyeshaSSOUser");
    claims.put("email", "[email protected]");
    claims.put( "rev_sig","dfe5d0d3");
    claims.put("iat","1466550862");
    claims.put("exp", System.currentTimeMillis() + 1000);
    claims.put("iss", "https://login.apigee.com/oauth/token");
    claims.put( "zid","uaa");
    claims.put( "aud"," size = 6");
    claims.put("grant_type","password");

    String jwt = Jwts.builder().setClaims(claims).signWith(SignatureAlgorithm.RS256, privateKey).compact();
    return jwt;

}
 
开发者ID:apache,项目名称:usergrid,代码行数:25,代码来源:ExternalSSOEnabledIT.java


示例19: convertListTest

import org.apache.commons.collections4.map.HashedMap; //导入依赖的package包/类
@Test
public void convertListTest(){

    listConverter.setListClass(Attachment.class);
    
    Class type = List.class;
    List value = new ArrayList();
    
    LinkedTreeMap ltm = new LinkedTreeMap();
    ltm.put("id","id0001");
    ltm.put("url","http://test.com");
    ltm.put("filename","filename.txt");
    ltm.put("size","10");
    ltm.put("type","image/jpeg");
    
    Map<String,Thumbnail> thumbnails = new HashedMap<>();
    Thumbnail tmb = new Thumbnail();
    
    tmb.setName("Thumbnail");
    tmb.setUrl("http:example.com");
    tmb.setWidth(Float.valueOf(10));
    tmb.setHeight(Float.valueOf(10));
    
    thumbnails.put("small", tmb);
            
    ltm.put("thumbnails",thumbnails);
    
    value.add(0, ltm);
    
    List<Attachment> list = (List<Attachment>) listConverter.convert(type, value);
    assertNotNull(list);
    assertNotNull(list.get(0).getId());
    assertNotNull(list.get(0).getFilename());
    assertNotNull(list.get(0).getSize());
    assertNotNull(list.get(0).getType());
    assertNotNull(list.get(0).getUrl());
    assertNotNull(list.get(0).getThumbnails());        
    
}
 
开发者ID:Sybit-Education,项目名称:airtable.java,代码行数:40,代码来源:CustomObjectMapperTest.java


示例20: stateToMap

import org.apache.commons.collections4.map.HashedMap; //导入依赖的package包/类
public Map<String, Object> stateToMap() {
    Map<String, Object> result = new HashedMap<>();
    result.put("btcTxHashesAlreadyProcessed", this.formatedAlreadyProcessedHashes());
    result.put("rskTxsWaitingForSignatures", this.toStringList(rskTxsWaitingForSignatures.keySet()));
    result.put("btcBlockchainBestChainHeight", this.btcBlockchainBestChainHeight);
    return result;
}
 
开发者ID:rsksmart,项目名称:rskj,代码行数:8,代码来源:BridgeState.java



注:本文中的org.apache.commons.collections4.map.HashedMap类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java MediaList类代码示例发布时间:2022-05-21
下一篇:
Java XMLX509SKI类代码示例发布时间:2022-05-21
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap