Skip to content

Commit

Permalink
replace new hashset with set.of()
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-heppner-ibigroup committed Sep 27, 2024
1 parent 364cf4f commit 66dbc18
Showing 1 changed file with 36 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ void testMatchesWithNoRules() {
fareRuleSet.matches(
"A",
"B",
new HashSet<>(),
new HashSet<>(),
new HashSet<>(),
Set.of(),
Set.of(),
Set.of(),
0,
Duration.ZERO,
Duration.ZERO
Expand All @@ -101,9 +101,9 @@ void testMatchesWithOriginDestination() {
fareRuleSet.matches(
"A",
"B",
new HashSet<>(),
new HashSet<>(),
new HashSet<>(),
Set.of(),
Set.of(),
Set.of(),
0,
Duration.ZERO,
Duration.ZERO
Expand All @@ -113,9 +113,9 @@ void testMatchesWithOriginDestination() {
fareRuleSet.matches(
"B",
"C",
new HashSet<>(),
new HashSet<>(),
new HashSet<>(),
Set.of(),
Set.of(),
Set.of(),
0,
Duration.ZERO,
Duration.ZERO
Expand All @@ -135,8 +135,8 @@ void testMatchesWithContains() {
"A",
"B",
zones,
new HashSet<>(),
new HashSet<>(),
Set.of(),
Set.of(),
0,
Duration.ZERO,
Duration.ZERO
Expand All @@ -146,9 +146,9 @@ void testMatchesWithContains() {
fareRuleSet.matches(
"A",
"B",
new HashSet<>(),
new HashSet<>(),
new HashSet<>(),
Set.of(),
Set.of(),
Set.of(),
0,
Duration.ZERO,
Duration.ZERO
Expand All @@ -167,9 +167,9 @@ void testMatchesWithRoutes() {
fareRuleSet.matches(
"A",
"B",
new HashSet<>(),
Set.of(),
routes,
new HashSet<>(),
Set.of(),
0,
Duration.ZERO,
Duration.ZERO
Expand All @@ -179,9 +179,9 @@ void testMatchesWithRoutes() {
fareRuleSet.matches(
"A",
"B",
new HashSet<>(),
Set.of(),
Set.of(otherRouteId),
new HashSet<>(),
Set.of(),
0,
Duration.ZERO,
Duration.ZERO
Expand All @@ -195,9 +195,9 @@ void testMatchesWithTransfers() {
fareRuleSet.matches(
"A",
"B",
new HashSet<>(),
new HashSet<>(),
new HashSet<>(),
Set.of(),
Set.of(),
Set.of(),
1,
Duration.ZERO,
Duration.ZERO
Expand All @@ -207,9 +207,9 @@ void testMatchesWithTransfers() {
fareRuleSet.matches(
"A",
"B",
new HashSet<>(),
new HashSet<>(),
new HashSet<>(),
Set.of(),
Set.of(),
Set.of(),
2,
Duration.ZERO,
Duration.ZERO
Expand All @@ -223,9 +223,9 @@ void testMatchesWithTransferDuration() {
fareRuleSet.matches(
"A",
"B",
new HashSet<>(),
new HashSet<>(),
new HashSet<>(),
Set.of(),
Set.of(),
Set.of(),
0,
Duration.ofSeconds(7000),
Duration.ZERO
Expand All @@ -235,9 +235,9 @@ void testMatchesWithTransferDuration() {
fareRuleSet.matches(
"A",
"B",
new HashSet<>(),
new HashSet<>(),
new HashSet<>(),
Set.of(),
Set.of(),
Set.of(),
0,
Duration.ofSeconds(8000),
Duration.ZERO
Expand All @@ -259,9 +259,9 @@ void testMatchesWithJourneyDuration() {
journeyRuleSet.matches(
"A",
"B",
new HashSet<>(),
new HashSet<>(),
new HashSet<>(),
Set.of(),
Set.of(),
Set.of(),
0,
Duration.ZERO,
Duration.ofSeconds(7000)
Expand All @@ -271,9 +271,9 @@ void testMatchesWithJourneyDuration() {
journeyRuleSet.matches(
"A",
"B",
new HashSet<>(),
new HashSet<>(),
new HashSet<>(),
Set.of(),
Set.of(),
Set.of(),
0,
Duration.ZERO,
Duration.ofSeconds(8000)
Expand Down

0 comments on commit 66dbc18

Please sign in to comment.