Package org.hibernate.search.bridge.builtin

Examples of org.hibernate.search.bridge.builtin.CalendarBridge


    tx.commit();
    s.close();

    //now unit-test the bridge directly:

    CalendarBridge bridge = new CalendarBridge();
    HashMap<String, String> bridgeParams = new HashMap<String, String>();
    bridgeParams.put( CalendarBridge.RESOLUTION_PARAMETER, Resolution.YEAR.toString() );
    bridge.setParameterValues( bridgeParams );
    assertEquals( "2000", bridge.objectToString( c ) );
    bridgeParams.put( CalendarBridge.RESOLUTION_PARAMETER, Resolution.DAY.toString() );
    bridge.setParameterValues( bridgeParams );
    assertEquals( "20001215", bridge.objectToString( c ) );
  }
View Full Code Here

TOP

Related Classes of org.hibernate.search.bridge.builtin.CalendarBridge

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.