Collection INIT

init java collections in test casejava

            final Map<String, String> attributes = new HashMap<String, String>() {{
                    put("key1","e1-value");
                    put("key2","e2-value");
                    put("key3","e3-value");
                    put("key4","e4-value");
                    put("key5","e5-value");
            }};

similarlyspa

            Collection<String> columnNames = new ArrayList<String>() {{
                    add("e1");
                    add("e2");
            }};
相關文章
相關標籤/搜索