Package org.cassandraunit.dataset.xml

Examples of org.cassandraunit.dataset.xml.ClassPathXmlDataSet


    public ClassPathDataSet(String dataSetLocation) {
        DataSetFileExtensionEnum dataSetExtensionEnum = getDataSetExtension(dataSetLocation);
        switch (dataSetExtensionEnum) {
            case xml:
                dataSet = new ClassPathXmlDataSet(dataSetLocation);
                break;
            case json:
                dataSet = new ClassPathJsonDataSet(dataSetLocation);
                break;
            case yaml:
View Full Code Here


    @Test
    public void shouldParseXmlAndCreateKeyspaceWithComparatorTypeAndMetadatas() throws Exception {
        startEmbeddedCassandra();
        new DataLoader(CassandraUnit.clusterName, CassandraUnit.host)
                .load(new ClassPathXmlDataSet("xml/dataSetWithComparatorType.xml"));
    }
View Full Code Here

    }

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

  @Test(expected = CassandraUnitException.class)
  public void shouldNotGetLoadData() throws TTransportException, IOException, InterruptedException,
            ConfigurationException {
    EmbeddedCassandraServerHelper.startEmbeddedCassandra();
    DataLoader dataLoader = new DataLoader(CassandraUnit.clusterName, CassandraUnit.host);
    dataLoader.load(new ClassPathXmlDataSet("xml/dataSetWithBadBytesKey.xml"));
  }
View Full Code Here

*/
public class CassandraStartAndLoadTest extends AbstractCassandraUnit4TestCase {

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

TOP

Related Classes of org.cassandraunit.dataset.xml.ClassPathXmlDataSet

Copyright © 2018 www.massapicom. 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.