Code example for ConcurrentSkipListMap

Methods: put

0
     */ 
    @Test 
    public void testIsModelContainsRow() { 
        System.out.println("isModelContainsRow");
 
        ConcurrentSkipListMap<String, AbstractGraphRow> testModel = new ConcurrentSkipListMap<String, AbstractGraphRow>();
 
        AbstractGraphRow rowIncluded = new GraphRowAverages();
        rowIncluded.setLabel("rowIncluded");
        AbstractGraphRow rowExcluded = new GraphRowAverages();
        rowExcluded.setLabel("rowExcluded");
 
        testModel.put("rowIncluded", rowIncluded);
 
        GraphPanelChart instance = new GraphPanelChart();
        instance.setRows(testModel);
        boolean expResult = true;
        boolean result = instance.isModelContainsRow(rowIncluded);
        assertEquals(expResult, result);
 
        expResult = false;