Package org.springframework.data.mongodb.gridfs

Examples of org.springframework.data.mongodb.gridfs.GridFsOperations


   */
  @Test
  public void testGridFsTemplateFactory() {

    assertTrue(ctx.containsBean("gridFsTemplate"));
    GridFsOperations operations = (GridFsOperations) ctx.getBean("gridFsTemplate");

    MongoDbFactory dbf = (MongoDbFactory) getField(operations, "dbFactory");
    assertEquals("database", getField(dbf, "databaseName"));

    MongoConverter converter = (MongoConverter) getField(operations, "converter");
View Full Code Here


   */
  @Test
  public void testSecondGridFsTemplateFactory() {

    assertTrue(ctx.containsBean("secondGridFsTemplate"));
    GridFsOperations operations = (GridFsOperations) ctx.getBean("secondGridFsTemplate");

    MongoDbFactory dbf = (MongoDbFactory) getField(operations, "dbFactory");
    assertEquals("database", getField(dbf, "databaseName"));
    assertEquals(null, getField(operations, "bucket"));

View Full Code Here

   */
  @Test
  public void testThirdGridFsTemplateFactory() {

    assertTrue(ctx.containsBean("thirdGridFsTemplate"));
    GridFsOperations operations = (GridFsOperations) ctx.getBean("thirdGridFsTemplate");

    MongoDbFactory dbf = (MongoDbFactory) getField(operations, "dbFactory");
    assertEquals("database", getField(dbf, "databaseName"));
    assertEquals("bucketString", getField(operations, "bucket"));

View Full Code Here

TOP

Related Classes of org.springframework.data.mongodb.gridfs.GridFsOperations

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.