Examples of loadPackageSnapshot()


Examples of org.drools.repository.RulesRepository.loadPackageSnapshot()

        repositoryPackageService.createPackageSnapshot( "testSnapshotRebuild",
                                                        "SNAP",
                                                        false,
                                                        "" );

        PackageItem snap = repo.loadPackageSnapshot( "testSnapshotRebuild",
                                                     "SNAP" );
        long snapTime = snap.getLastModified().getTimeInMillis();

        Thread.sleep( 100 );
View Full Code Here

Examples of org.drools.repository.RulesRepository.loadPackageSnapshot()

        Thread.sleep( 100 );

        repositoryPackageService.rebuildSnapshots();

        PackageItem snap_ = repo.loadPackageSnapshot( "testSnapshotRebuild",
                                                      "SNAP" );
        long newTime = snap_.getLastModified().getTimeInMillis();

        assertTrue( newTime > snapTime );
View Full Code Here

Examples of org.drools.repository.RulesRepository.loadPackageSnapshot()

                      result.getLines().get( 0 ).getAssetFormat() );
        assertNotNull( result.getLines().get( 0 ).getMessage() );
        assertEquals( rule1.getUUID(),
                      result.getLines().get( 0 ).getUuid() );

        pkg = repo.loadPackageSnapshot( "testBinaryPackageCompile",
                                        "SNAP1" );
        result = repositoryPackageService.buildPackage( pkg.getUUID(),
                                                        true );
        assertNull( result );
View Full Code Here

Examples of org.drools.repository.RulesRepository.loadPackageSnapshot()

                      result.getLines().get( 0 ).getAssetFormat() );
        assertNotNull( result.getLines().get( 0 ).getMessage() );
        assertEquals( rule2.getUUID(),
                      result.getLines().get( 0 ).getUuid() );

        pkg = repo.loadPackageSnapshot( "testBinaryPackageCompileBRL",
                                        "SNAP1" );
        result = repositoryPackageService.buildPackage( pkg.getUUID(),
                                                        true );
        assertNull( result );
View Full Code Here

Examples of org.drools.repository.RulesRepository.loadPackageSnapshot()

        asm = new PackageAssembler(pkg);
        asm.compile();
        assertTrue(asm.hasErrors());

        //check the snapshot is kosher
        pkg = repo.loadPackageSnapshot(pkg.getName(),
                "SNAP_1");
        asm = new PackageAssembler(pkg);
        asm.compile();
        assertFalse(asm.hasErrors());
View Full Code Here

Examples of org.drools.repository.RulesRepository.loadPackageSnapshot()

    assertTrue(pkg.containsAsset("drools"));
    AssetItem as = pkg.loadAsset("drools");
    assertEquals("some header", as.getContent());


    pkg = repo.loadPackageSnapshot("testMigratePackage", "SNAP1");
    assertTrue(pkg.containsAsset("drools"));
    as = pkg.loadAsset("drools");
    assertEquals("some header", as.getContent());

    pkg = repo.loadPackageSnapshot("testMigratePackage", "SNAP2");
View Full Code Here

Examples of org.drools.repository.RulesRepository.loadPackageSnapshot()

    pkg = repo.loadPackageSnapshot("testMigratePackage", "SNAP1");
    assertTrue(pkg.containsAsset("drools"));
    as = pkg.loadAsset("drools");
    assertEquals("some header", as.getContent());

    pkg = repo.loadPackageSnapshot("testMigratePackage", "SNAP2");
    assertTrue(pkg.containsAsset("drools"));
    as = pkg.loadAsset("drools");
    assertEquals("some header", as.getContent());

View Full Code Here

Examples of org.drools.repository.RulesRepository.loadPackageSnapshot()

                                                  pkg );
        asm = new ContentPackageAssembler( pkg );
        assertTrue( asm.hasErrors() );

        //check the snapshot is kosher
        pkg = repo.loadPackageSnapshot( pkg.getName(),
                                        "SNAP_1" );
        asm = new ContentPackageAssembler( pkg );
        assertFalse( asm.hasErrors() );

    }
View Full Code Here

Examples of org.drools.repository.RulesRepository.loadPackageSnapshot()

        impl.createPackageSnapshot( "testSnapshotRebuild",
                                    "SNAP",
                                    false,
                                    "" );

        PackageItem snap = repo.loadPackageSnapshot( "testSnapshotRebuild",
                                                     "SNAP" );
        long snapTime = snap.getLastModified().getTimeInMillis();

        Thread.sleep( 100 );
View Full Code Here

Examples of org.drools.repository.RulesRepository.loadPackageSnapshot()

        Thread.sleep( 100 );

        impl.rebuildSnapshots();

        PackageItem snap_ = repo.loadPackageSnapshot( "testSnapshotRebuild",
                                                      "SNAP" );
        long newTime = snap_.getLastModified().getTimeInMillis();

        assertTrue( newTime > snapTime );
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.