Example usage for org.springframework.data.solr.core.schema SchemaDefinition getName

List of usage examples for org.springframework.data.solr.core.schema SchemaDefinition getName

Introduction

In this page you can find the example usage for org.springframework.data.solr.core.schema SchemaDefinition getName.

Prototype

@Nullable
    public String getName() 

Source Link

Usage

From source file:org.springframework.data.solr.core.schema.SolrSchemaWriterTests.java

/**
 * @see DATASOLR-72//from ww w. j  a v  a  2 s . c o  m
 */
@Test
public void loadExistingSchemaShouldMapSchemaInformationCorrectly() {

    setUpJsonResponse(JSON_RESPONSE_DEFAULT_SCHEMA);
    SchemaDefinition schemaDef = writer.loadExistingSchema("collection1");

    Assert.assertEquals("example", schemaDef.getName());
    Assert.assertEquals("id", schemaDef.getUniqueKey());
}