2020import com .google .common .collect .ImmutableMap ;
2121import com .google .common .io .ByteStreams ;
2222import com .google .common .io .Closer ;
23+ import org .slf4j .Logger ;
24+ import org .slf4j .LoggerFactory ;
25+ import org .testng .annotations .Test ;
26+
2327import java .io .ByteArrayOutputStream ;
2428import java .io .IOException ;
2529import java .io .InputStream ;
2630import java .io .PrintStream ;
2731import java .util .Map ;
28- import org .slf4j .Logger ;
29- import org .slf4j .LoggerFactory ;
30- import org .testng .annotations .Test ;
3132
3233import static org .assertj .core .api .Assertions .assertThat ;
3334import static org .assertj .core .api .Assertions .fail ;
@@ -51,7 +52,7 @@ public class ExportAsStringTest extends CCMTestsSupport {
5152 * is failed.
5253 */
5354 @ Test (groups = "short" )
54- public void create_schema_and_ensure_exported_cql_is_as_expected () {
55+ public void should_create_schema_and_ensure_exported_cql_is_as_expected () {
5556 String keyspace = "complex_ks" ;
5657 Map <String , Object > replicationOptions = ImmutableMap .<String , Object >of ("class" , "SimpleStrategy" , "replication_factor" , 1 );
5758
@@ -204,6 +205,9 @@ private String getExpectedCqlString() {
204205 Closer closer = Closer .create ();
205206 try {
206207 InputStream is = ExportAsStringTest .class .getResourceAsStream (resourceName );
208+ assertThat (is )
209+ .as ("No reference script for this version (was looking for src/test/resources" + resourceName + ")" )
210+ .isNotNull ();
207211 closer .register (is );
208212 ByteArrayOutputStream baos = new ByteArrayOutputStream ();
209213 PrintStream ps = new PrintStream (baos );
0 commit comments