Examples of Person


Examples of org.infinispan.statetransfer.Person

      marshallAndAssertEquality(s1);
      marshallAndAssertEquality(s2);
   }

   public void testMarshalledValueMarshalling() throws Exception {
      Person p = new Person();
      p.setName("Bob Dylan");
      MarshalledValue mv = new MarshalledValue(p, true, marshaller);
      marshallAndAssertEquality(mv);     
   }
View Full Code Here

Examples of org.infinispan.test.data.Person

      }
      marshallAndAssertEquality(treeSet);
   }

   public void testMarshalledValueMarshalling() throws Exception {
      Person p = new Person();
      p.setName("Bob Dylan");
      MarshalledValue mv = new MarshalledValue(p, true, marshaller);
      marshallAndAssertEquality(mv);
   }
View Full Code Here

Examples of org.intabulas.sandler.elements.Person

            //  Fetch the obligatory parts of the content.
            //
            Content title   = entry.getTitle();
            Content content = entry.getContent(0);

            Person  author  = entry.getAuthor();

            //FIXME: Sandler 0.5 does not support generator

            //
            //  Generate new blog entry.
            //
            WeblogEntryPlugin plugin = new WeblogEntryPlugin();

            String pageName = plugin.getNewEntryPage( m_engine, blogid );
            String username = author.getName();

            WikiPage entryPage = new WikiPage( m_engine, pageName );
            entryPage.setAuthor( username );

            WikiContext context = new WikiContext( m_engine, request, entryPage );
View Full Code Here

Examples of org.itsnat.feashow.features.comp.shared.Person

    public void renderListCell(ItsNatList list, int index, Object value, boolean isSelected, boolean hasFocus, Element cellContentElem, boolean isNew)
    {
        ItsNatListMultSel listMult = (ItsNatListMultSel)list;

        final DefaultListModel listModel = (DefaultListModel)listMult.getListModel();
        final Person person = (Person)listModel.getElementAt(index);

        if (isNew)
        {
            ItsNatDocument itsNatDoc = listMult.getItsNatDocument();

            if (!itsNatDoc.getItsNatDocumentTemplate().isAutoBuildComponents())
            {
                ItsNatComponentManager compMgr = listMult.getItsNatComponentManager();
                compMgr.buildItsNatComponents(cellContentElem);
            }

            final ItsNatHTMLInputText firstNameComp = getInputText("firstNameId",cellContentElem,listMult);
            final ItsNatHTMLInputText lastNameComp = getInputText("lastNameId",cellContentElem,listMult);

            firstNameComp.setText(person.getFirstName());
            lastNameComp.setText(person.getLastName());

            DocumentListener firstNameListener = new DocumentListener()
            {
                public void insertUpdate(DocumentEvent e)
                {
                    update();
                }

                public void removeUpdate(DocumentEvent e)
                {
                    update();
                }

                public void changedUpdate(DocumentEvent e)
                {
                    update();
                }

                public void update()
                {
                    person.setFirstName(firstNameComp.getText());
                }
            };

            firstNameComp.getDocument().addDocumentListener(firstNameListener);

            DocumentListener lastNameListener = new DocumentListener()
            {
                public void insertUpdate(DocumentEvent e)
                {
                    update();
                }

                public void removeUpdate(DocumentEvent e)
                {
                    update();
                }

                public void changedUpdate(DocumentEvent e)
                {
                    update();
                }

                public void update()
                {
                    person.setLastName(lastNameComp.getText());
                }

            };

            lastNameComp.getDocument().addDocumentListener(lastNameListener);
        }
        else
        {
            ItsNatHTMLInputText firstNameComp = getInputText("firstNameId",cellContentElem,listMult);
            ItsNatHTMLInputText lastNameComp = getInputText("lastNameId",cellContentElem,listMult);

            firstNameComp.setText(person.getFirstName());
            lastNameComp.setText(person.getLastName());
        }
    }
View Full Code Here

Examples of org.jacorb.test.notification.Person

        TestUnionHelper.insert(testUnion5_, _t5);
    }

    private Person setUpPerson()
    {
        Person _person = new Person();
        Address _address = new Address();
        NamedValue _nv1 = new NamedValue();
        NamedValue _nv2 = new NamedValue();
        Profession _p = Profession.STUDENT;
View Full Code Here

Examples of org.javalite.activejdbc.test_models.Person

*/
public class LongIdTest extends ActiveJDBCTest {

    @Test(expected = NullPointerException.class)
    public void shouldThrowNPEIfIdIsNull(){
        Person p = new Person();
        p.getLongId();
    }
View Full Code Here

Examples of org.jboss.as.quickstarts.bean_validation_custom_constraint.Person

    /**
     * Validating the model data which has correct values. Tests {@code @Address} constraint
     */
    @Test
    public void testAddressViolation() {
        Person person = createValidPerson();
        validateAddressConstraints(person);

        // Setting city field of address.
        person.getPersonAddress().setCity("Carolina");
        validateAddressConstraints(person);

        // Setting pin code equal to valid length of 6 characters.
        person.getPersonAddress().setPinCode("123456");
        person.getPersonAddress().setCity("Auckland");
        validateAddressConstraints(person);

        // Setting country name with valid length of more than 4 characters
        person.getPersonAddress().setPinCode("123456");
        person.getPersonAddress().setCountry("Mexico");
        validateAddressConstraints(person);

    }
View Full Code Here

Examples of org.jboss.as.test.integration.jpa.hibernate.envers.Person

    }

  @Test
  public void testSimpleEnversOperation() throws Exception {
        SLSBPU slsbpu = lookup("SLSBPU",SLSBPU.class);
    Person p1= slsbpu.createPerson( "Strong","Liu","kexueyuan source road",307 );
    Person p2= slsbpu.createPerson( "tom","cat","apache",34 );
    Address a1 =p1.getAddress();
    a1.setHouseNumber( 5 );

    p2.setAddress( a1 );
    slsbpu.updateAddress( a1 );
    slsbpu.updatePerson( p2 );

    int size = slsbpu.retrieveOldPersonVersionFromAddress( a1.getId() );
    Assert.assertEquals( 1, size );
View Full Code Here

Examples of org.jboss.cache.aop.test.Person

   public void testSimpleTxWithRollback() throws Exception
   {
      log.info("testSimpleTxWithRollback() ....");
      UserTransaction tx = getTransaction();

      Person joe = new Person();
      joe.setName("Joe");
      Address add = new Address();
      add.setZip(104);
      add.setCity("Taipei");
      joe.setAddress(add);

      tx.begin();
      cache_.putObject("/person/joe", joe);
      tx.commit();
      Person p = (Person)cache1_.getObject("/person/joe");
      assertEquals("Zip should be the same ", joe.getAddress().getZip(), p.getAddress().getZip());

      // test rollback
      Person ben = new Person();
      ben.setName("Ben");
      add = new Address();
      add.setZip(104);
      add.setCity("Taipei");
      joe.setAddress(add);
      tx.begin();
View Full Code Here

Examples of org.jboss.cache.marshall.data.Person

      srtl.cache1 = createCache("TestCache");

      srtl.cache2 = createCache("TestCache");
      srtl.addr_ = new Address();
      srtl.addr_.setCity("San Jose");
      srtl.ben_ = new Person();
      srtl.ben_.setName("Ben");
      srtl.ben_.setAddress(srtl.addr_);

      // Pause to give caches time to see each other
      TestingUtil.blockUntilViewsReceived(new CacheSPI[]{srtl.cache1, srtl.cache2}, 60000);
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.