package com.cloudant.sync.datastore;

import org.junit.Assert;
import org.junit.Test;

import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.not;
import static org.hamcrest.MatcherAssert.assertThat;

/**
 * Created by tomblench on 15/04/2014.
 */
public class DatastoreSchemaTests {

    @Test
    public void testSchema4UuidsDifferent() {
        // privateUuid and publicUuid have to be unique on the info table for each DB
        String[] schema_Alpha = DatastoreConstants.getSchemaVersion4();
        String[] schema_Beta  = DatastoreConstants.getSchemaVersion4();
        assertThat("", schema_Alpha, not(equalTo(schema_Beta)));
    }

    @Test
    public void testSchemasSame() {
        // for contrast with above test, schema 3 and 5 are identical each time
        String[] schema_Alpha3 = DatastoreConstants.getSchemaVersion3();
        String[] schema_Beta3  = DatastoreConstants.getSchemaVersion3();
        assertThat("", schema_Alpha3, equalTo(schema_Beta3));

        String[] schema_Alpha5 = DatastoreConstants.getSchemaVersion5();
        String[] schema_Beta5  = DatastoreConstants.getSchemaVersion5();
        assertThat("", schema_Alpha5, equalTo(schema_Beta5));
    }

}

@@ -610,32 +610,59 @@
     assertThat(%22
+Schemas should be different
 %22, schema_Alpha,
@@ -981,32 +981,58 @@
     assertThat(%22
+Schemas should be the same
 %22, schema_Alpha3
@@ -1224,16 +1224,42 @@
 rtThat(%22
+Schemas should be the same
 %22, schem

Add message to asserts