Package org.eurekastreams.commons.search.modelview

Examples of org.eurekastreams.commons.search.modelview.MyModelView


    public void testTransformTuple()
    {
        String[] aliases = new String[] { "_hibernate_class", "foo", "bar" };
        Object[] tuple = new Object[] { String.class, "Hi there!", "Hello right back at ya, buddy!" };

        MyModelView myModelView = (MyModelView) sut.transformTuple(tuple, aliases);
        assertEquals("Hi there!", myModelView.getFoo());
        assertEquals("Hello right back at ya, buddy!", myModelView.getBar());
    }
View Full Code Here


    public void testTransformTupleWithSearchExplanation()
    {
        String[] aliases = new String[] { "__HSearch_Explanation", "_hibernate_class", "foo", "bar" };
        Object[] tuple = new Object[] { explanation, String.class, "Hi there!", "Hello right back at ya, buddy!" };

        MyModelView myModelView = (MyModelView) sut.transformTuple(tuple, aliases);
        assertEquals("Hi there!", myModelView.getFoo());
        assertEquals("Hello right back at ya, buddy!", myModelView.getBar());
        assertEquals(explanation.toString(), myModelView.getSearchIndexExplanationString());
    }
View Full Code Here

TOP

Related Classes of org.eurekastreams.commons.search.modelview.MyModelView

Copyright © 2018 www.massapicom. 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.