Skip to content

Commit 2ef3c75

Browse files
author
lbownik
committed
comments addressed
1 parent b899f28 commit 2ef3c75

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

dataverse-webapp/src/test/java/edu/harvard/iq/dataverse/ingest/IngestableDataCheckerTest.java

+13-13
Original file line numberDiff line numberDiff line change
@@ -22,40 +22,40 @@ private ByteBuffer createBufferContaining(final String fileContents)
2222
return buffer;
2323
}
2424

25-
private AbstractStringAssert<?> assertThatADATA(final String content)
25+
private AbstractStringAssert<?> assertThatADATAFormat(final String content)
2626
throws Exception {
2727
ByteBuffer buff = createBufferContaining(content);
2828

2929
return assertThat(this.instance.testDTAformat(buff));
3030
}
3131

32-
private AbstractStringAssert<?> assertThatSAV(final String content)
32+
private AbstractStringAssert<?> assertThatSAVFormat(final String content)
3333
throws Exception {
3434
ByteBuffer buff = createBufferContaining(content);
3535

3636
return assertThat(this.instance.testSAVformat(buff));
3737
}
3838

3939
@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");
4343
}
4444

4545
@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();
4949
}
5050

5151
@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");
5454
}
5555

5656
@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();
6060
}
6161
}

0 commit comments

Comments
 (0)