Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SpreadsheetMetadataPropertyNameXXXTest.testCheckValue prefix #5135

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public abstract class SpreadsheetMetadataPropertyNameEmailAddressTestCase<N exte
}

@Test
public final void testInvalidEmailFails() {
public final void testCheckValueWithInvalidEmailFails() {
this.checkValueFails("invalid email", "Expected EmailAddress, but got \"invalid email\" for \"" + this.createName().name + "\"");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,11 @@
public final class SpreadsheetMetadataPropertyNameExpressionNumberKindTest extends SpreadsheetMetadataPropertyNameTestCase<SpreadsheetMetadataPropertyNameExpressionNumberKind, ExpressionNumberKind> {

@Test
public void testInvalidExpressionNumberKindFails() {
this.checkValueFails("invalid", "Expected ExpressionNumberKind, but got \"invalid\" for \"expression-number-kind\"");
public void testCheckValueWithInvalidExpressionNumberKindFails() {
this.checkValueFails(
"invalid",
"Expected ExpressionNumberKind, but got \"invalid\" for \"expression-number-kind\""
);
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
public final class SpreadsheetMetadataPropertyNameFrozenColumnsTest extends SpreadsheetMetadataPropertyNameTestCase<SpreadsheetMetadataPropertyNameFrozenColumns, SpreadsheetColumnRangeReference> {

@Test
public void testInvalidSpreadsheetColumnRangeReferenceFails() {
public void testCheckValueWithInvalidSpreadsheetColumnRangeReferenceFails() {
this.checkValueFails(
SpreadsheetSelection.parseColumnRange("C:D"),
"Range must begin at 'A', but got C:D for \"frozen-columns\""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
public final class SpreadsheetMetadataPropertyNameFrozenRowsTest extends SpreadsheetMetadataPropertyNameTestCase<SpreadsheetMetadataPropertyNameFrozenRows, SpreadsheetRowRangeReference> {

@Test
public void testInvalidSpreadsheetRowRangeReferenceFails() {
public void testCheckValueWithInvalidSpreadsheetRowRangeReferenceFails() {
this.checkValueFails(
SpreadsheetSelection.parseRowRange("2:3"),
"Range must begin at '1', but got 2:3 for \"frozen-rows\""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
public final class SpreadsheetMetadataPropertyNameRoundingModeTest extends SpreadsheetMetadataPropertyNameTestCase<SpreadsheetMetadataPropertyNameRoundingMode, RoundingMode> {

@Test
public void testInvalidRoundingModeFails() {
public void testCheckValueWithInvalidRoundingModeFails() {
this.checkValueFails("invalid", "Expected RoundingMode, but got \"invalid\" for \"rounding-mode\"");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,11 @@
public final class SpreadsheetMetadataPropertyNameSpreadsheetIdTest extends SpreadsheetMetadataPropertyNameTestCase<SpreadsheetMetadataPropertyNameSpreadsheetId, SpreadsheetId> {

@Test
public void testInvalidSpreadsheetIdFails() {
this.checkValueFails("123-invalid", "Expected SpreadsheetId, but got \"123-invalid\" for \"spreadsheet-id\"");
public void testCheckValueWithInvalidSpreadsheetIdFails() {
this.checkValueFails(
"123-invalid",
"Expected SpreadsheetId, but got \"123-invalid\" for \"spreadsheet-id\""
);
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,11 @@
public final class SpreadsheetMetadataPropertyNameSpreadsheetNameTest extends SpreadsheetMetadataPropertyNameTestCase<SpreadsheetMetadataPropertyNameSpreadsheetName, SpreadsheetName> {

@Test
public void testInvalidSpreadsheetNameFails() {
this.checkValueFails("\r", "Expected SpreadsheetName, but got \"\\r\" for \"spreadsheet-name\"");
public void testCheckValueWithInvalidSpreadsheetNameFails() {
this.checkValueFails(
"\r",
"Expected SpreadsheetName, but got \"\\r\" for \"spreadsheet-name\""
);
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
public final class SpreadsheetMetadataPropertyNameStyleTest extends SpreadsheetMetadataPropertyNameTestCase<SpreadsheetMetadataPropertyNameStyle, TextStyle> {

@Test
public void testCheckEmptyTextStyle() {
public void testCheckValueEmptyTextStyle() {
this.checkValue(TextStyle.EMPTY);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,19 +89,19 @@ public final void testSpreadsheetMetadataJsonRoundtrip() {
}

@Test
public final void testCheckValueNullFails() {
public final void testCheckValueWithNullFails() {
this.checkValueFails(null,
"Missing value, but got null for " + CharSequences.quote(this.createName().value()));
}

@Test
public final void testCheckValueInvalidFails() {
public final void testCheckValueWithInvalidFails() {
this.checkValueFails(this,
"Expected " + this.propertyValueType() + ", but got " + this + " for " + CharSequences.quote(this.createName().value()));
}

@Test
public final void testCheckInvalidValueFails2() {
public final void testCheckValueWithInvalidValueFails2() {
final StringBuilder value = new StringBuilder("123abc");
this.checkValueFails(value,
"Expected " + this.propertyValueType() + ", but got \"123abc\" for " + CharSequences.quote(this.createName().value()));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public final class SpreadsheetMetadataPropertyNameViewportTest extends Spreadshe
SpreadsheetViewport> {

@Test
public void testCheckCellRange() {
public void testCheckValueWithCellRange() {
this.checkValue(
SpreadsheetSelection.A1.viewportRectangle(100, 40)
.viewport()
Expand All @@ -46,7 +46,7 @@ public void testCheckCellRange() {
}

@Test
public void testCheckColumn() {
public void testCheckValueWithColumn() {
this.checkValue(
SpreadsheetSelection.A1.viewportRectangle(100, 40)
.viewport()
Expand All @@ -60,7 +60,7 @@ public void testCheckColumn() {
}

@Test
public void testCheckLabel() {
public void testCheckValueWithLabel() {
this.checkValue(
SpreadsheetSelection.A1.viewportRectangle(100, 40)
.viewport()
Expand All @@ -74,7 +74,7 @@ public void testCheckLabel() {
}

@Test
public void testCheckRow() {
public void testCheckValueWithRow() {
this.checkValue(
SpreadsheetSelection.A1.viewportRectangle(100, 40)
.viewport()
Expand All @@ -88,7 +88,7 @@ public void testCheckRow() {
}

@Test
public void testInvalidValueFails() {
public void testCheckValueWithInvalidFails3() {
this.checkValueFails(
"invalid",
"Expected SpreadsheetViewport, but got \"invalid\" for \"viewport\""
Expand Down
Loading