// Path: spanners-api/src/test/java/org/dontpanic/spanners/api/stubs/SpannerBuilder.java
// public static SpannerBuilder aTestSpanner() {
// 	return new SpannerBuilder();
// }


import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import static org.dontpanic.spanners.api.stubs.SpannerBuilder.aTestSpanner;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
package org.dontpanic.spanners.api.data;




/**
 * Tests for the Spring Boot managed SpannerRepository
 * Created by stevie on 04/06/16.
 */
@RunWith(SpringRunner.class)
@SpringBootTest
public class SpannerRepositoryTest {

    @Autowired private SpannerRepository repository;

    @Test
    public void testCreate() {

        // Create the new spanner
// Path: spanners-api/src/test/java/org/dontpanic/spanners/api/stubs/SpannerBuilder.java
// public static SpannerBuilder aTestSpanner() {
// 	return new SpannerBuilder();
// }


// Path: spanners-api/src/test/java/org/dontpanic/spanners/api/data/SpannerRepositoryTest.java
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import static org.dontpanic.spanners.api.stubs.SpannerBuilder.aTestSpanner;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;

package org.dontpanic.spanners.api.data;




/**
 * Tests for the Spring Boot managed SpannerRepository
 * Created by stevie on 04/06/16.
 */
@RunWith(SpringRunner.class)
@SpringBootTest
public class SpannerRepositoryTest {

    @Autowired private SpannerRepository repository;

    @Test
    public void testCreate() {

        // Create the new spanner
        Spanner savedSpanner = aTestSpanner().build();