Skip to content

Commit

Permalink
Remove compilation warnings for test deprecation and trivial correction
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanopagano committed Sep 7, 2020
1 parent 26280a0 commit f9af187
Showing 1 changed file with 30 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1670,7 +1670,7 @@ class TezosDataOperationsTest
)
}

"should aggregate with COUNT function" in {
"aggregate with COUNT function" in {
val feesTmp = List(
FeesRow(0, 2, 4, new Timestamp(0), "kind"),
FeesRow(0, 4, 8, new Timestamp(1), "kind"),
Expand Down Expand Up @@ -1705,7 +1705,7 @@ class TezosDataOperationsTest
)
}

"should aggregate with MAX function" in {
"aggregate with MAX function" in {
val feesTmp = List(
FeesRow(0, 2, 4, new Timestamp(0), "kind"),
FeesRow(0, 4, 8, new Timestamp(1), "kind"),
Expand Down Expand Up @@ -1740,7 +1740,7 @@ class TezosDataOperationsTest
)
}

"should aggregate with MIN function" in {
"aggregate with MIN function" in {
val feesTmp = List(
FeesRow(0, 2, 4, new Timestamp(0), "kind"),
FeesRow(0, 4, 8, new Timestamp(1), "kind"),
Expand Down Expand Up @@ -1775,7 +1775,7 @@ class TezosDataOperationsTest
)
}

"should aggregate with SUM function" in {
"aggregate with SUM function" in {
val feesTmp = List(
FeesRow(0, 2, 4, new Timestamp(0), "kind"),
FeesRow(0, 4, 8, new Timestamp(1), "kind"),
Expand Down Expand Up @@ -1810,7 +1810,7 @@ class TezosDataOperationsTest
)
}

"should aggregate with SUM function and order by SUM()" in {
"aggregate with SUM function and order by SUM()" in {
val feesTmp = List(
FeesRow(0, 2, 4, new Timestamp(0), "kind"),
FeesRow(0, 4, 8, new Timestamp(1), "kind"),
Expand Down Expand Up @@ -1845,7 +1845,7 @@ class TezosDataOperationsTest
)
}

"should order correctly by the field not existing in query)" in {
"order correctly by the field not existing in query)" in {
val feesTmp = List(
FeesRow(0, 2, 4, new Timestamp(0), "kind"),
FeesRow(0, 4, 8, new Timestamp(1), "kind"),
Expand Down Expand Up @@ -1877,7 +1877,7 @@ class TezosDataOperationsTest
)
}

"should correctly check use between in the timestamps" in {
"correctly check use between in the timestamps" in {
val feesTmp = List(
FeesRow(0, 2, 4, new Timestamp(0), "kind"),
FeesRow(0, 4, 8, new Timestamp(2), "kind"),
Expand Down Expand Up @@ -1916,7 +1916,7 @@ class TezosDataOperationsTest
)
}

"should correctly execute BETWEEN operation using numeric comparison instead of lexicographical" in {
"correctly execute BETWEEN operation using numeric comparison instead of lexicographical" in {
val feesTmp = List(
FeesRow(0, 0, 0, new Timestamp(0), "kind"),
FeesRow(0, 0, 10, new Timestamp(3), "kind"),
Expand Down Expand Up @@ -1951,7 +1951,7 @@ class TezosDataOperationsTest
result shouldBe List(Map("high" -> Some(2)))
}

"should return correct query when asked for SQL" in {
"return correct query when asked for SQL" in {
val predicates = List(
Predicate(
field = "medium",
Expand Down Expand Up @@ -2002,7 +2002,7 @@ class TezosDataOperationsTest
result shouldBe List(Map("sql" -> Some(expectedQuery)))
}

"should aggregate with multiple aggregations on the same field" in {
"aggregate with multiple aggregations on the same field" in {
val feesTmp = List(
FeesRow(0, 2, 4, new Timestamp(0), "kind"),
FeesRow(0, 4, 8, new Timestamp(1), "kind"),
Expand Down Expand Up @@ -2038,7 +2038,7 @@ class TezosDataOperationsTest
)
}

"should aggregate with single aggegation when there is only one field" in {
"aggregate with single aggegation when there is only one field" in {
val feesTmp = List(
FeesRow(0, 2, 4, new Timestamp(0), "kind"),
FeesRow(0, 4, 8, new Timestamp(1), "kind"),
Expand Down Expand Up @@ -2087,7 +2087,7 @@ class TezosDataOperationsTest
)
}

"should aggregate with correct predicate field when aggregation is using predicate" in {
"aggregate with correct predicate field when aggregation is using predicate" in {
val feesTmp = List(
FeesRow(0, 2, 4, new Timestamp(0), "kind1"),
FeesRow(0, 4, 8, new Timestamp(1), "kind2"),
Expand Down Expand Up @@ -2144,7 +2144,7 @@ class TezosDataOperationsTest
)
}

"should aggregate correctly with multiple aggregation fields with predicate" in {
"aggregate correctly with multiple aggregation fields with predicate" in {
val feesTmp = List(
FeesRow(0, 2, 4, new Timestamp(0), "kind1"),
FeesRow(0, 4, 8, new Timestamp(1), "kind2"),
Expand Down Expand Up @@ -2219,14 +2219,14 @@ class TezosDataOperationsTest
)
}

"should aggregate with datePart aggregation" in {
"aggregate with datePart aggregation" in {
val feesTmp = List(
FeesRow(0, 2, 4, new Timestamp(100, 0, 1, 0, 0, 0, 0), "kind"),
FeesRow(0, 4, 8, new Timestamp(100, 0, 2, 0, 0, 0, 0), "kind"),
FeesRow(0, 3, 4, new Timestamp(100, 0, 2, 0, 0, 0, 0), "kind"),
FeesRow(0, 3, 4, new Timestamp(100, 0, 2, 0, 0, 0, 0), "kind"),
FeesRow(0, 3, 4, new Timestamp(100, 0, 3, 0, 0, 0, 0), "kind"),
FeesRow(0, 3, 4, new Timestamp(100, 0, 3, 0, 0, 0, 0), "kind")
FeesRow(0, 2, 4, Timestamp.valueOf("2000-01-01 00:00:00"), "kind"),
FeesRow(0, 4, 8, Timestamp.valueOf("2000-01-02 00:00:00"), "kind"),
FeesRow(0, 3, 4, Timestamp.valueOf("2000-01-02 00:00:00"), "kind"),
FeesRow(0, 3, 4, Timestamp.valueOf("2000-01-02 00:00:00"), "kind"),
FeesRow(0, 3, 4, Timestamp.valueOf("2000-01-03 00:00:00"), "kind"),
FeesRow(0, 3, 4, Timestamp.valueOf("2000-01-03 00:00:00"), "kind")
)

val aggregate = List(
Expand Down Expand Up @@ -2259,14 +2259,14 @@ class TezosDataOperationsTest

}

"should map date with datePart aggregation when it is only type of aggregation" in {
"map date with datePart aggregation when it is only type of aggregation" in {
val feesTmp = List(
FeesRow(0, 1, 4, new Timestamp(100, 0, 1, 0, 0, 0, 0), "kind"),
FeesRow(0, 2, 8, new Timestamp(100, 0, 2, 0, 0, 0, 0), "kind"),
FeesRow(0, 3, 4, new Timestamp(100, 0, 2, 0, 0, 0, 0), "kind"),
FeesRow(0, 4, 4, new Timestamp(100, 0, 2, 0, 0, 0, 0), "kind"),
FeesRow(0, 5, 4, new Timestamp(100, 0, 3, 0, 0, 0, 0), "kind"),
FeesRow(0, 6, 4, new Timestamp(100, 0, 3, 0, 0, 0, 0), "kind")
FeesRow(0, 1, 4, Timestamp.valueOf("2000-01-01 00:00:00"), "kind"),
FeesRow(0, 2, 8, Timestamp.valueOf("2000-01-02 00:00:00"), "kind"),
FeesRow(0, 3, 4, Timestamp.valueOf("2000-01-02 00:00:00"), "kind"),
FeesRow(0, 4, 4, Timestamp.valueOf("2000-01-02 00:00:00"), "kind"),
FeesRow(0, 5, 4, Timestamp.valueOf("2000-01-03 00:00:00"), "kind"),
FeesRow(0, 6, 4, Timestamp.valueOf("2000-01-03 00:00:00"), "kind")
)

val populateAndTest = for {
Expand Down Expand Up @@ -2297,7 +2297,7 @@ class TezosDataOperationsTest
)
}

"should correctly use query on temporal table" in {
"correctly use query on temporal table" in {

val accountsHistoryRow = AccountsHistoryRow(
accountId = "id",
Expand Down Expand Up @@ -2336,7 +2336,7 @@ class TezosDataOperationsTest

}

"should get the balance of an account at a specific timestamp where there are multiple entities for given account_id" in {
"get the balance of an account at a specific timestamp where there are multiple entities for given account_id" in {

val accountsHistoryRows = List(
AccountsHistoryRow(
Expand Down Expand Up @@ -2390,7 +2390,7 @@ class TezosDataOperationsTest
)
}

"should get the balance of an account at a specific timestamp" in {
"get the balance of an account at a specific timestamp" in {

val accountsHistoryRows = List(
AccountsHistoryRow(
Expand Down

0 comments on commit f9af187

Please sign in to comment.