Package org.drools.repository

Examples of org.drools.repository.CategoryItem.addCategory()


            List childTags = tagItem1.getChildTags();
            assertNotNull(childTags);
            assertEquals(0, childTags.size());

            tagItem1.addCategory( "TestChildTag1", "description" );

            childTags = tagItem1.getChildTags();
            assertNotNull(childTags);
            assertEquals(1, childTags.size());
            assertEquals("TestChildTag1", ((CategoryItem)childTags.get(0)).getName());
View Full Code Here


            childTags = tagItem1.getChildTags();
            assertNotNull(childTags);
            assertEquals(1, childTags.size());
            assertEquals("TestChildTag1", ((CategoryItem)childTags.get(0)).getName());

            tagItem1.addCategory( "AnotherChild", "ignore me" );

            childTags = tagItem1.getChildTags();
            assertNotNull(childTags);
            assertEquals(2, childTags.size());
    }
View Full Code Here

    impl.repository.createPackage("testBuiltInSelectorPackage", "woot");
    impl.repository.createState("Dev");
    impl.repository.createState("QA");
   
    CategoryItem cat = impl.repository.loadCategory("/");
    cat.addCategory("testBuiltInSelectorCat1", "yeah");
    cat.addCategory("testBuiltInSelectorCat2", "yeah");

    String uuid1 = impl.createNewRule("test AddRule1", "a description",
        "testBuiltInSelectorCat1", "testBuiltInSelectorPackage", "txt");
    AssetItem item1 = impl.repository.loadAssetByUUID(uuid1);   
View Full Code Here

    impl.repository.createState("Dev");
    impl.repository.createState("QA");
   
    CategoryItem cat = impl.repository.loadCategory("/");
    cat.addCategory("testBuiltInSelectorCat1", "yeah");
    cat.addCategory("testBuiltInSelectorCat2", "yeah");

    String uuid1 = impl.createNewRule("test AddRule1", "a description",
        "testBuiltInSelectorCat1", "testBuiltInSelectorPackage", "txt");
    AssetItem item1 = impl.repository.loadAssetByUUID(uuid1);   
    item1.updateState("Dev");
View Full Code Here

        impl.repository.loadDefaultPackage();
        impl.repository.createPackage( "anotherPackage",
                                       "woot" );

        CategoryItem cat = impl.repository.loadCategory( "/" );
        cat.addCategory( "testDeleteUnversioned",
                         "yeah" );

        String uuid = impl.createNewRule( "test Delete Unversioned",
                                          "a description",
                                          "testDeleteUnversioned",
View Full Code Here

        impl.repository.loadDefaultPackage();
        impl.repository.createPackage( "another",
                                       "woot" );

        CategoryItem cat = impl.repository.loadCategory( "/" );
        cat.addCategory( "testAddRule",
                         "yeah" );

        String result = impl.createNewRule( "test AddRule",
                                            "a description",
                                            "testAddRule",
View Full Code Here

    }

    public void testAttemptDupeRule() throws Exception {
        ServiceImplementation impl = getService();
        CategoryItem cat = impl.repository.loadCategory( "/" );
        cat.addCategory( "testAttemptDupeRule",
                         "yeah" );

        impl.repository.createPackage( "dupes",
                                       "yeah" );
View Full Code Here

        TableConfig conf = impl.loadTableConfig( AssetItemGrid.RULE_LIST_TABLE_ID );
        assertNotNull( conf.headers );
        assertNotNull( conf.headerTypes );

        CategoryItem cat = impl.repository.loadCategory( "/" );
        cat.addCategory( "testRuleTableLoad",
                         "yeah" );

        impl.repository.createPackage( "testRuleTableLoad",
                                       "yeah" );
        impl.createNewRule( "testRuleTableLoad",
View Full Code Here

        repo.loadDefaultPackage();
        repo.createPackage( "anotherPackage",
                            "woot" );

        CategoryItem cat = impl.getRulesRepository().loadCategory( "/" );
        cat.addCategory( "testDeleteUnversioned",
                         "yeah" );

        String uuid = impl.createNewRule( "test Delete Unversioned",
                                          "a description",
                                          "testDeleteUnversioned",
View Full Code Here

        impl.getRulesRepository().loadDefaultPackage();
        impl.getRulesRepository().createPackage( "another",
                                                 "woot" );

        CategoryItem cat = impl.getRulesRepository().loadCategory( "/" );
        cat.addCategory( "testAddRule",
                         "yeah" );

        String result = impl.createNewRule( "test AddRule",
                                            "a description",
                                            "testAddRule",
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.