forked from finos/vuu
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
663fb46
commit eb38607
Showing
4 changed files
with
37 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 17 additions & 3 deletions
20
plugin/ignite-plugin/src/test/scala/org/finos/vuu/feature/ignite/TestInput.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,20 @@ | ||
package org.finos.vuu.feature.ignite | ||
|
||
import java.sql.Date | ||
import java.math.BigDecimal | ||
|
||
object TestInput { | ||
def createTestOrderEntity(id: Int, ric: String, parentId: Int = 1, price: Double = 10.4, quantity: Int = 100, rating: Char = 'A'): TestOrderEntity = | ||
TestOrderEntity(parentId = parentId, id = id, ric = ric, price = price, quantity = quantity, rating = rating) | ||
} | ||
def createTestOrderEntity(id: Int, ric: String, parentId: Int = 1, price: Double = 10.4, quantity: Int = 100, | ||
rating: Char = 'A', createdAt: Date = Date.valueOf("2024-02-10"), | ||
totalFill: BigDecimal = new BigDecimal(10_000.3333)): TestOrderEntity = | ||
TestOrderEntity( | ||
parentId = parentId, | ||
id = id, | ||
ric = ric, | ||
price = price, | ||
quantity = quantity, | ||
rating = rating, | ||
createdAt = createdAt, | ||
totalFill = totalFill | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters