@Test(expected = IllegalArgumentException.class) public void checkArguments() { MongoConnection c = connectionFactory.getConnection(); assertNotNull(c); MongoCollection collection = c.getDatabase().getCollection("test"); MongoUtils.createIndex(collection, new String[]{"foo", "bar"}, new boolean[]{true}, false, true); }
static void createIndex(MongoCollection<?> collection, String field, boolean ascending, boolean unique, boolean sparse) throws MongoException { createIndex(collection, new String[]{field}, new boolean[]{ascending}, unique, sparse); }
MongoUtils { static void createIndex(MongoCollection<?> collection, String field, boolean ascending, boolean unique, boolean sparse) throws MongoException { createIndex(collection, new String[]{field}, new boolean[]{ascending}, unique, sparse); } }
MongoUtils { static void createIndex(MongoCollection<?> collection, String field, boolean ascending, boolean unique, boolean sparse) throws MongoException { createIndex(collection, new String[]{field}, new boolean[]{ascending}, unique, sparse); }  }
MongoUtils { static void createIndex(MongoCollection<?> collection, String field, boolean ascending, boolean unique, boolean sparse) throws MongoException { createIndex(collection, new String[]{field}, new boolean[]{ascending}, unique, sparse); }   }
MongoUtils { static void createIndex(MongoCollection<?> collection, String field, boolean ascending, boolean unique, boolean sparse) throws MongoException { createIndex(collection, new String[]{field}, new boolean[]{ascending}, unique, sparse); }    }