Examples of PersonProperty


Examples of org.apache.rave.model.PersonProperty

        assertThat(converter.convert(template), is(sameInstance(template)));
    }

    @Test
    public void nullConversion() {
        PersonProperty template = null;
        assertThat(converter.convert(template), is(nullValue()));
    }
View Full Code Here

Examples of org.apache.rave.model.PersonProperty

    }


    @Test
    public void convertValid() {
        PersonProperty template = new PersonPropertyImpl("42");
        template.setType("TEST_A");
        template.setValue("TEST_B");
        template.setQualifier("TEST_C");
        template.setExtendedValue("TEST_D");
        template.setPrimary(true);

        JpaPersonProperty jpaTemplate = converter.convert(template);

        assertThat(jpaTemplate, is(not(sameInstance(template))));
        assertThat(jpaTemplate, is(instanceOf(JpaPersonProperty.class)));
        assertThat(jpaTemplate.getId(), is(equalTo(template.getId())));
        assertThat(jpaTemplate.getType(), is(equalTo(template.getType())));
        assertThat(jpaTemplate.getValue(), is(equalTo(template.getValue())));
        assertThat(jpaTemplate.getQualifier(), is(equalTo(template.getQualifier())));
        assertThat(jpaTemplate.getExtendedValue(), is(equalTo(template.getExtendedValue())));
        assertThat(jpaTemplate.getPrimary(), is(equalTo(template.getPrimary())));
       
    }
View Full Code Here

Examples of org.apache.rave.model.PersonProperty

        }
        return null;
    }

    private PersonProperty convert(PersonProperty source) {
        PersonProperty converted = new PersonPropertyImpl();
        converted.setType(source.getType());
        converted.setValue(source.getValue());
        converted.setExtendedValue(source.getExtendedValue());
        converted.setQualifier(source.getQualifier());
        converted.setPrimary(source.getPrimary());
        return converted;
    }
View Full Code Here

Examples of org.apache.rave.portal.model.PersonProperty

        assertThat(converter.convert(template), is(sameInstance(template)));
    }

    @Test
    public void nullConversion() {
        PersonProperty template = null;
        assertThat(converter.convert(template), is(nullValue()));
    }
View Full Code Here

Examples of org.apache.rave.portal.model.PersonProperty

    }


    @Test
    public void convertValid() {
        PersonProperty template = new PersonPropertyImpl();
        template.setId(42L);
        template.setType("TEST_A");
        template.setValue("TEST_B");
        template.setQualifier("TEST_C");
        template.setExtendedValue("TEST_D");
        template.setPrimary(true);

        JpaPersonProperty jpaTemplate = converter.convert(template);

        assertThat(jpaTemplate, is(not(sameInstance(template))));
        assertThat(jpaTemplate, is(instanceOf(JpaPersonProperty.class)));
        assertThat(jpaTemplate.getId(), is(equalTo(template.getId())));
        assertThat(jpaTemplate.getType(), is(equalTo(template.getType())));
        assertThat(jpaTemplate.getValue(), is(equalTo(template.getValue())));
        assertThat(jpaTemplate.getQualifier(), is(equalTo(template.getQualifier())));
        assertThat(jpaTemplate.getExtendedValue(), is(equalTo(template.getExtendedValue())));
        assertThat(jpaTemplate.getPrimary(), is(equalTo(template.getPrimary())));
       
    }
View Full Code Here

Examples of org.apache.rave.portal.model.PersonProperty

        assertThat(converter.convert(template), is(sameInstance(template)));
    }

    @Test
    public void nullConversion() {
        PersonProperty template = null;
        assertThat(converter.convert(template), is(nullValue()));
    }
View Full Code Here

Examples of org.apache.rave.portal.model.PersonProperty

    }


    @Test
    public void convertValid() {
        PersonProperty template = new PersonPropertyImpl("42");
        template.setType("TEST_A");
        template.setValue("TEST_B");
        template.setQualifier("TEST_C");
        template.setExtendedValue("TEST_D");
        template.setPrimary(true);

        JpaPersonProperty jpaTemplate = converter.convert(template);

        assertThat(jpaTemplate, is(not(sameInstance(template))));
        assertThat(jpaTemplate, is(instanceOf(JpaPersonProperty.class)));
        assertThat(jpaTemplate.getId(), is(equalTo(template.getId())));
        assertThat(jpaTemplate.getType(), is(equalTo(template.getType())));
        assertThat(jpaTemplate.getValue(), is(equalTo(template.getValue())));
        assertThat(jpaTemplate.getQualifier(), is(equalTo(template.getQualifier())));
        assertThat(jpaTemplate.getExtendedValue(), is(equalTo(template.getExtendedValue())));
        assertThat(jpaTemplate.getPrimary(), is(equalTo(template.getPrimary())));
       
    }
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.