@@ -22,40 +22,40 @@ private ByteBuffer createBufferContaining(final String fileContents)
22
22
return buffer ;
23
23
}
24
24
25
- private AbstractStringAssert <?> assertThatADATA (final String content )
25
+ private AbstractStringAssert <?> assertThatADATAFormat (final String content )
26
26
throws Exception {
27
27
ByteBuffer buff = createBufferContaining (content );
28
28
29
29
return assertThat (this .instance .testDTAformat (buff ));
30
30
}
31
31
32
- private AbstractStringAssert <?> assertThatSAV (final String content )
32
+ private AbstractStringAssert <?> assertThatSAVFormat (final String content )
33
33
throws Exception {
34
34
ByteBuffer buff = createBufferContaining (content );
35
35
36
36
return assertThat (this .instance .testSAVformat (buff ));
37
37
}
38
38
39
39
@ Test
40
- public void testingADATA_returnsMimeType_forProperContent () throws Exception {
41
- assertThatADATA ("l " ).isEqualTo ("application/x-stata" );
42
- assertThatADATA (STATA_13_HEADER ).isEqualTo ("application/x-stata-13" );
40
+ public void testADATAformat_returnsMimeType_forProperContent () throws Exception {
41
+ assertThatADATAFormat ("l " ).isEqualTo ("application/x-stata" );
42
+ assertThatADATAFormat (STATA_13_HEADER ).isEqualTo ("application/x-stata-13" );
43
43
}
44
44
45
45
@ Test
46
- public void testingADATA_returnsNull_forBrokenContent () throws Exception {
47
- assertThatADATA ("" ).isNull ();
48
- assertThatADATA ("hello-non-stata-file-how-are-you" ).isNull ();
46
+ public void testADATAformat_returnsNull_forBrokenContent () throws Exception {
47
+ assertThatADATAFormat ("" ).isNull ();
48
+ assertThatADATAFormat ("hello-non-stata-file-how-are-you" ).isNull ();
49
49
}
50
50
51
51
@ Test
52
- public void testingSAV_returnsMimeType_forProperContent () throws Exception {
53
- assertThatSAV ("$FL2" ).isEqualTo ("application/x-spss-sav" );
52
+ public void testingSAVformat_returnsMimeType_forProperContent () throws Exception {
53
+ assertThatSAVFormat ("$FL2" ).isEqualTo ("application/x-spss-sav" );
54
54
}
55
55
56
56
@ Test
57
- public void testingSAV_returnsNull_forBrokenContent () throws Exception {
58
- assertThatSAV ("" ).isNull ();
59
- assertThatSAV ("i-am-not-a-x-spss-sav-file" ).isNull ();
57
+ public void testingSAVformat_returnsNull_forBrokenContent () throws Exception {
58
+ assertThatSAVFormat ("" ).isNull ();
59
+ assertThatSAVFormat ("i-am-not-a-x-spss-sav-file" ).isNull ();
60
60
}
61
61
}
0 commit comments