Code example for TreeSet

Methods: add

0
        Assert.assertEquals(convertToColumnName(cols), uniqueKey.getColumnNames());
    } 
     
    @Test(expected = ModelException.class) 
    public void testCreateInvalidColumn() throws ModelException { 
        SortedSet<CharSequence> cols = new TreeSet<CharSequence>();
        cols.add("test_uk1");
        cols.add("test_xx");
        new UniqueKeyImpl("uk_test", cols, table);
    } 
     
    @Test(expected = ModelException.class) 
    public void testCreateNullName() throws ModelException { 
        SortedSet<CharSequence> cols = new TreeSet<CharSequence>();
        cols.add("test_uk1");
        cols.add("test_uk2");
        new UniqueKeyImpl(null, cols, table);
    } 
     
    @Test(expected = ModelException.class) 
    public void testCreateNullTable() throws ModelException {