Package org.drools.world.impl

Source Code of org.drools.world.impl.ShadowContextTest

package org.drools.world.impl;

import org.drools.command.Context;
import org.drools.command.ShadowWorld;
import org.drools.command.World;

import org.junit.Ignore;
import org.junit.Test;
import static org.junit.Assert.*;

public class ShadowContextTest {

    @Test @Ignore
    public void test1() {
        World world = new WorldImpl();
       
        world.set( "k1", "v1" );
        assertEquals( "v1", world.get( "k1" ) );
/*       
        Context ctx1 = null; //world.createContext( "p1" );
       
        ctx1.set( "k2", "v2" );
               
        assertEquals( "v2", ctx1.get( "k2" ) );
        assertEquals( "v1", ctx1.get( "k1" ) );
       
        //Context ctx2 = world.createContext( "p1" );
*/
    }
   
    @Test
    public void test2() {
        World world = new WorldImpl();
       
        ShadowWorld shadowWorld = new ShadowWorldImpl( world );
    }
}
TOP

Related Classes of org.drools.world.impl.ShadowContextTest

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.