Examples of ValueType


Examples of org.qi4j.api.type.ValueType

    @Test
    public void givenJsonOfByteSetWhenDeserializingExpectCorrectValueOutput()
        throws Exception
    {
        ValueType collectedType = new ValueType( Byte.class );
        CollectionType collectionType = new CollectionType( Set.class, collectedType );
        Object json = new JSONArray( byteJson() );
        Set<Byte> result = (Set<Byte>) new JSONDeserializer( null ).deserialize( json, collectionType );
        Set<Byte> bytes = new LinkedHashSet<Byte>( byteCollection() );
        assertEquals( bytes, result );
View Full Code Here

Examples of org.qi4j.api.type.ValueType

    @Test
    public void givenJsonOfByteCollectionWhenDeserializingExpectCorrectValueOutput()
        throws Exception
    {
        ValueType collectedType = new ValueType( Byte.class );
        CollectionType collectionType = new CollectionType( Collection.class, collectedType );
        Object json = new JSONArray( byteJson() );
        List<Byte> result = (List<Byte>) new JSONDeserializer( null ).deserialize( json, collectionType );
        assertEquals( byteCollection(), result );
    }
View Full Code Here

Examples of org.qi4j.api.type.ValueType

    @Test
    public void givenJsonOfShortCollectionWhenDeserializingExpectCorrectValueOutput()
        throws Exception
    {
        ValueType collectedType = new ValueType( Short.class );
        CollectionType collectionType = new CollectionType( Collection.class, collectedType );
        Object json = new JSONArray( shortJson() );
        List<Short> result = (List<Short>) new JSONDeserializer( null ).deserialize( json, collectionType );
        assertEquals( shortCollection(), result );
    }
View Full Code Here

Examples of org.qi4j.api.type.ValueType

    private ValueType underTest;

    @Before
    public void setup()
    {
        underTest = new ValueType( LocalDate.class );
    }
View Full Code Here

Examples of org.qi4j.api.type.ValueType

    private ValueType underTest;

    @Before
    public void setup()
    {
        underTest = new ValueType( LocalDateTime.class );
    }
View Full Code Here

Examples of org.qi4j.api.type.ValueType

    private ValueType underTest;

    @Before
    public void setup()
    {
        underTest = new ValueType( DateTime.class );
    }
View Full Code Here

Examples of org.staxnav.ValueType

            try
            {
               in = IOTools.safeBufferedWrapper(url.openStream());

               //
               ValueType vt = null;

               //
               PortletApplicationMetaDataBuilder builder = new PortletApplicationMetaDataBuilder();

               //
View Full Code Here

Examples of uk.ac.soton.itinnovation.pes.data.model.ValueType

    private AttributeType newCpuModelAttrib()
    {
        AttributeType a = new AttributeType();
        a.setName("cpuModel");
        a.setType(BasicType.STRING);
        a.addAValue(new ValueType("x86_80486", MetricType.EXACT));
        return a;
    }
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.