Package org.cassandraunit

Source Code of org.cassandraunit.CassandraStartAndLoadTest

package org.cassandraunit;

import static org.cassandraunit.SampleDataSetChecker.assertDataSetLoaded;
import static org.hamcrest.Matchers.notNullValue;
import static org.junit.Assert.assertThat;

import org.cassandraunit.dataset.DataSet;
import org.cassandraunit.dataset.xml.ClassPathXmlDataSet;
import org.junit.Test;

/**
*
* @author Jeremy Sevellec
*
*/
public class CassandraStartAndLoadTest extends AbstractCassandraUnit4TestCase {

  @Override
  public DataSet getDataSet() {
    return new ClassPathXmlDataSet("xml/dataSetDefaultValues.xml");
  }

  @Test
  public void shouldWork() throws Exception {
    assertThat(getKeyspace(), notNullValue());
    assertDataSetLoaded(getKeyspace());
  }

  @Test
  public void shouldWorkToo() throws Exception {
    assertThat(getKeyspace(), notNullValue());
    assertDataSetLoaded(getKeyspace());
  }

}
TOP

Related Classes of org.cassandraunit.CassandraStartAndLoadTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.