Examples of Person


Examples of org.drools.model.Person

        str += "end\n";

        KnowledgeBase kbase = loadKnowledgeBaseFromString(str);
        StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();

        Person p1 = new Person( "darth",
                                "stilton",
                                100 );
        Person p2 = new Person( "yoda",
                                "stilton",
                                300 );
        Person p3 = new Person( "luke",
                                "brie",
                                300 );
        Person p4 = new Person( "bobba",
                                "cheddar",
                                300 );

        ksession.insert( p1 );
        ksession.insert( p2 );
View Full Code Here

Examples of org.drools.pipeline.camel.Person

        BatchExecutionCommandImpl cmd = new BatchExecutionCommandImpl();
        cmd.setLookup( "ksession1" );

        StartProcessCommand start = new StartProcessCommand( "org.drools.actions" , "process-instance-id" );
        start.putParameter( "person",
                            new Person( "lucaz",
                                        25 ) );
        start.putParameter( "person2",
                            new Person( "hadrian",
                                        25 ) );
        start.putParameter( "person3",
                            new Person( "baunax",
                                        21 ) );

        cmd.getCommands().add( start );

        StringWriter xmlReq = new StringWriter();
View Full Code Here

Examples of org.drools.simulation.impl.Person

import org.junit.Test;
import org.kie.internal.fluent.test.ReflectiveMatcherAssert;
public class ReflectiveMatcherFactoryTest {   
    @Test
    public void test1() {
        Person p = new Person( "yoda", 150 );
       
        assertThat( p.getName(), equalTo("yoda") );
        assertThat( p.getAge(), equalTo(150) );
       
        List<String> imports = new ArrayList<String>();
        imports.add( "org.junit.Assert.assertThat" );
        imports.add( "org.hamcrest.CoreMatchers.is" );
        imports.add( "org.hamcrest.CoreMatchers.equalTo" );
View Full Code Here

Examples of org.drools.workbench.models.testscenarios.backend.Person

        factPopulator.populate();

        assertTrue( populatedData.containsKey( "p1" ) );

        Person person = (Person) populatedData.get( "p1" );
        assertEquals( "mic",
                      person.getName() );
        assertEquals( 33,
                      person.getAge() );
    }
View Full Code Here

Examples of org.easycassandra.bean.model.Person

        Drink drink = new Drink();
        drink.setId(1L);
        drink.setFlavor("orange");
        drink.setName("cup of juice");

        Person person = new Person();
        person.setId(1L);
        person.setName("otávio");
        person.setYear(YEAR);
        personDao.insert(person);

        Assert.assertTrue(dao.insert(drink));
    }
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.examples.data.person.Person

        // add labels to provider conditional styling
        bodyDataLayer.setConfigLabelAccumulator(new IConfigLabelAccumulator() {
            @Override
            public void accumulateConfigLabels(LabelStack configLabels,
                    int columnPosition, int rowPosition) {
                Person p = bodyDataProvider.getRowObject(rowPosition);
                if (p != null) {
                    configLabels
                            .addLabel(p.getGender().equals(Gender.FEMALE) ? FEMALE_LABEL
                                    : MALE_LABEL);
                }
            }
        });
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.examples.fixtures.Person

    private static final String BAR_LABEL = "BAR";

    public Control createExampleControl(Composite parent) {
        List<Person> myList = new ArrayList<Person>();
        for (int i = 1; i <= 100; i++) {
            myList.add(new Person(i, "Joe" + i, new Date()));
        }

        String[] propertyNames = { "id", "name", "birthDate" };

        IColumnPropertyAccessor<Person> columnPropertyAccessor = new ReflectiveColumnPropertyAccessor<Person>(
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.test.data.Person

    private class PersonTreeFormat implements TreeList.Format<Object> {

        @Override
        public void getPath(List<Object> path, Object element) {
            if (element instanceof Person) {
                Person ele = (Person) element;
                path.add(ele.getLastName());
                path.add(ele.getFirstName());
            }
            path.add(element);
        }
View Full Code Here

Examples of org.eclipselabs.mongoemf.query.simple.junit.model.Person

    assertThat(resource, is(notNullValue()));
    assertThat(resource.getContents().size(), is(1));

    ECollection eCollection = (ECollection) resource.getContents().get(0);
    assertThat(eCollection.getValues().size(), is(1));
    Person person = (Person) eCollection.getValues().get(0);
    assertThat(person.getName(), is((String) null));
  }
View Full Code Here

Examples of org.eurekastreams.server.domain.Person

    {
        final ExtendedUserDetails userMock = context.mock(ExtendedUserDetails.class);

        final String expectedUserName = "user";

        final Person expectedPerson = context.mock(Person.class);

        context.checking(new Expectations()
        {
            {
                // get user's account id
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.