Package org.cassandraunit.dataset

Examples of org.cassandraunit.dataset.DataSet


    assertThat(dataSet.getColumnFamilies().get(0).getSubComparatorType(), nullValue());
  }

  @Test(expected = ParseException.class)
  public void shouldNotGetAYamlDataSetStructureBecauseOfNull() {
    DataSet dataSet = new ClassPathYamlDataSet(null);
    dataSet.getKeyspace();
  }
View Full Code Here


    dataSet.getKeyspace();
  }

  @Test(expected = ParseException.class)
  public void shouldNotGetAYamlDataSetStructureBecauseOfDataSetNotExist() {
    DataSet dataSet = new ClassPathYamlDataSet("yaml/unknown.yaml");
    dataSet.getKeyspace();
  }
View Full Code Here

    dataSet.getKeyspace();
  }

  @Test(expected = ParseException.class)
  public void shouldNotGetAYamlDataSetStructureBecauseOfDataSetEmpty() {
    DataSet dataSet = new ClassPathYamlDataSet("yaml/dataSetBadMissingKeyspaceName.yaml");
    dataSet.getKeyspace();
  }
View Full Code Here

    dataSet.getKeyspace();
  }

  @Test(expected = ParseException.class)
  public void shouldNotGetAYamlDataSetStructureBecauseOfMissingKeyspaceName() {
    DataSet dataSet = new ClassPathYamlDataSet("yaml/dataSetBadMissingKeyspaceName.yaml");
    dataSet.getKeyspace();
  }
View Full Code Here

    dataSet.getKeyspace();
  }

  @Test(expected = ParseException.class)
  public void shouldNotGetAYamlDataSetStructureBecauseOfInvalidStrategy() {
    DataSet dataSet = new ClassPathYamlDataSet("yaml/dataSetBadUnknownStrategy.yaml");
    dataSet.getKeyspace();
  }
View Full Code Here

    dataSet.getKeyspace();
  }

  @Test(expected = ParseException.class)
  public void shouldNotGetAYamlDataSetStructureBecauseOfMissingColumnFamilyName() {
    DataSet dataSet = new ClassPathYamlDataSet("yaml/dataSetBadMissingColumnFamilyName.yaml");
    dataSet.getKeyspace();
  }
View Full Code Here

    dataSet.getKeyspace();
  }

  @Test(expected = ParseException.class)
  public void shouldNotGetAYamlDataSetStructureBecauseOfInvalidColumnFamilyType() {
    DataSet dataSet = new ClassPathYamlDataSet("yaml/dataSetBadInvalidColumnFamilyType.yaml");
    dataSet.getKeyspace();
  }
View Full Code Here

    dataSet.getKeyspace();
  }

  @Test(expected = ParseException.class)
  public void shouldNotGetAYamlDataSetStructureBecauseOfInvalidRowKeyType() {
    DataSet dataSet = new ClassPathYamlDataSet("yaml/dataSetBadInvalidKeyType.yaml");
    dataSet.getKeyspace();
  }
View Full Code Here

    dataSet.getKeyspace();
  }

  @Test(expected = ParseException.class)
  public void shouldNotGetAYamlDataSetStructureBecauseOfInvalidComparatorType() {
    DataSet dataSet = new ClassPathYamlDataSet("yaml/dataSetBadInvalidComparatorType.yaml");
    dataSet.getKeyspace();
  }
View Full Code Here

    dataSet.getKeyspace();
  }

  @Test(expected = ParseException.class)
  public void shouldNotGetAYamlDataSetStructureBecauseOfInvalidSubComparatorType() {
    DataSet dataSet = new ClassPathYamlDataSet("yaml/dataSetBadInvalidSubComparatorType.yaml");
    dataSet.getKeyspace();
  }
View Full Code Here

TOP

Related Classes of org.cassandraunit.dataset.DataSet

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.