use of org.springframework.data.mongodb.core.script.NamedMongoScript in project spring-data-mongodb by spring-projects.
the class DefaultScriptOperationsTests method saveShouldStoreExecutableScriptCorrectly.
// DATAMONGO-479
@Test
public void saveShouldStoreExecutableScriptCorrectly() {
NamedMongoScript script = scriptOps.register(EXECUTABLE_SCRIPT);
Query query = query(where("_id").is(script.getName()));
assumeThat(template.exists(query, JAVASCRIPT_COLLECTION_NAME), is(true));
}
Aggregations