Class wine.alert.RollupServiceSpec

6

tests

4

failures

0

ignored

0.372s

duration

33%

successful

Failed tests

test filterByMedianPrice case 1

Condition not satisfied:

filtered == [ list[1], list[2], list[3], list[4], list[5] ]
|        |    |   |    |   |    |   |    |   |    |   |
|        false|   |    |   |    |   |    |   |    |   wine.alert.model.RollupOutput@a01f2a3
|             |   |    |   |    |   |    |   |    [wine.alert.model.RollupOutput@16ed9c76, wine.alert.model.RollupOutput@e06d378, wine.alert.model.RollupOutput@2ce6a05b, wine.alert.model.RollupOutput@485051dc, wine.alert.model.RollupOutput@32247a8c, wine.alert.model.RollupOutput@a01f2a3, wine.alert.model.RollupOutput@137c7fc0]
|             |   |    |   |    |   |    |   wine.alert.model.RollupOutput@32247a8c
|             |   |    |   |    |   |    [wine.alert.model.RollupOutput@16ed9c76, wine.alert.model.RollupOutput@e06d378, wine.alert.model.RollupOutput@2ce6a05b, wine.alert.model.RollupOutput@485051dc, wine.alert.model.RollupOutput@32247a8c, wine.alert.model.RollupOutput@a01f2a3, wine.alert.model.RollupOutput@137c7fc0]
|             |   |    |   |    |   wine.alert.model.RollupOutput@485051dc
|             |   |    |   |    [wine.alert.model.RollupOutput@16ed9c76, wine.alert.model.RollupOutput@e06d378, wine.alert.model.RollupOutput@2ce6a05b, wine.alert.model.RollupOutput@485051dc, wine.alert.model.RollupOutput@32247a8c, wine.alert.model.RollupOutput@a01f2a3, wine.alert.model.RollupOutput@137c7fc0]
|             |   |    |   wine.alert.model.RollupOutput@2ce6a05b
|             |   |    [wine.alert.model.RollupOutput@16ed9c76, wine.alert.model.RollupOutput@e06d378, wine.alert.model.RollupOutput@2ce6a05b, wine.alert.model.RollupOutput@485051dc, wine.alert.model.RollupOutput@32247a8c, wine.alert.model.RollupOutput@a01f2a3, wine.alert.model.RollupOutput@137c7fc0]
|             |   wine.alert.model.RollupOutput@e06d378
|             [wine.alert.model.RollupOutput@16ed9c76, wine.alert.model.RollupOutput@e06d378, wine.alert.model.RollupOutput@2ce6a05b, wine.alert.model.RollupOutput@485051dc, wine.alert.model.RollupOutput@32247a8c, wine.alert.model.RollupOutput@a01f2a3, wine.alert.model.RollupOutput@137c7fc0]
[wine.alert.model.RollupOutput@16ed9c76, wine.alert.model.RollupOutput@e06d378, wine.alert.model.RollupOutput@2ce6a05b, wine.alert.model.RollupOutput@485051dc, wine.alert.model.RollupOutput@32247a8c, wine.alert.model.RollupOutput@a01f2a3, wine.alert.model.RollupOutput@137c7fc0]

	at wine.alert.RollupServiceSpec.test filterByMedianPrice case 1(RollupServiceSpec.groovy:58)

test filterByMedianPrice case 2

Condition not satisfied:

filtered == [ list[0], list[1], list[3], list[4] ]
|        |    |   |    |   |    |   |    |   |
|        false|   |    |   |    |   |    |   wine.alert.model.RollupOutput@6efc2648
|             |   |    |   |    |   |    [wine.alert.model.RollupOutput@23982693, wine.alert.model.RollupOutput@2aa8074d, wine.alert.model.RollupOutput@442d712d, wine.alert.model.RollupOutput@c3225e3, wine.alert.model.RollupOutput@6efc2648, wine.alert.model.RollupOutput@404c6b5]
|             |   |    |   |    |   wine.alert.model.RollupOutput@c3225e3
|             |   |    |   |    [wine.alert.model.RollupOutput@23982693, wine.alert.model.RollupOutput@2aa8074d, wine.alert.model.RollupOutput@442d712d, wine.alert.model.RollupOutput@c3225e3, wine.alert.model.RollupOutput@6efc2648, wine.alert.model.RollupOutput@404c6b5]
|             |   |    |   wine.alert.model.RollupOutput@2aa8074d
|             |   |    [wine.alert.model.RollupOutput@23982693, wine.alert.model.RollupOutput@2aa8074d, wine.alert.model.RollupOutput@442d712d, wine.alert.model.RollupOutput@c3225e3, wine.alert.model.RollupOutput@6efc2648, wine.alert.model.RollupOutput@404c6b5]
|             |   wine.alert.model.RollupOutput@23982693
|             [wine.alert.model.RollupOutput@23982693, wine.alert.model.RollupOutput@2aa8074d, wine.alert.model.RollupOutput@442d712d, wine.alert.model.RollupOutput@c3225e3, wine.alert.model.RollupOutput@6efc2648, wine.alert.model.RollupOutput@404c6b5]
[wine.alert.model.RollupOutput@23982693, wine.alert.model.RollupOutput@2aa8074d, wine.alert.model.RollupOutput@442d712d, wine.alert.model.RollupOutput@c3225e3, wine.alert.model.RollupOutput@6efc2648, wine.alert.model.RollupOutput@404c6b5]

	at wine.alert.RollupServiceSpec.test filterByMedianPrice case 2(RollupServiceSpec.groovy:77)

test filterByMedianPricePerWineId case 1

Condition not satisfied:

filtered == [ list[1], list[2], list[3], list[4], list[5], list[7], list[8], list[10], list[11] ]
|        |    |   |    |   |    |   |    |   |    |   |    |   |    |   |    |   |     |   |
|        false|   |    |   |    |   |    |   |    |   |    |   |    |   |    |   |     |   wine.alert.model.RollupOutput@6deebcb
|             |   |    |   |    |   |    |   |    |   |    |   |    |   |    |   |     [wine.alert.model.RollupOutput@65d8615c, wine.alert.model.RollupOutput@4ef18f00, wine.alert.model.RollupOutput@1b3a955c, wine.alert.model.RollupOutput@1d73620a, wine.alert.model.RollupOutput@3b073279, wine.alert.model.RollupOutput@79cc2396, wine.alert.model.RollupOutput@3613d986, wine.alert.model.RollupOutput@30f69e7c, wine.alert.model.RollupOutput@32e0f6e1, wine.alert.model.RollupOutput@2aa8a3b8, wine.alert.model.RollupOutput@25f9082, wine.alert.model.RollupOutput@6deebcb, wine.alert.model.RollupOutput@333c520f]
|             |   |    |   |    |   |    |   |    |   |    |   |    |   |    |   wine.alert.model.RollupOutput@25f9082
|             |   |    |   |    |   |    |   |    |   |    |   |    |   |    [wine.alert.model.RollupOutput@65d8615c, wine.alert.model.RollupOutput@4ef18f00, wine.alert.model.RollupOutput@1b3a955c, wine.alert.model.RollupOutput@1d73620a, wine.alert.model.RollupOutput@3b073279, wine.alert.model.RollupOutput@79cc2396, wine.alert.model.RollupOutput@3613d986, wine.alert.model.RollupOutput@30f69e7c, wine.alert.model.RollupOutput@32e0f6e1, wine.alert.model.RollupOutput@2aa8a3b8, wine.alert.model.RollupOutput@25f9082, wine.alert.model.RollupOutput@6deebcb, wine.alert.model.RollupOutput@333c520f]
|             |   |    |   |    |   |    |   |    |   |    |   |    |   wine.alert.model.RollupOutput@32e0f6e1
|             |   |    |   |    |   |    |   |    |   |    |   |    [wine.alert.model.RollupOutput@65d8615c, wine.alert.model.RollupOutput@4ef18f00, wine.alert.model.RollupOutput@1b3a955c, wine.alert.model.RollupOutput@1d73620a, wine.alert.model.RollupOutput@3b073279, wine.alert.model.RollupOutput@79cc2396, wine.alert.model.RollupOutput@3613d986, wine.alert.model.RollupOutput@30f69e7c, wine.alert.model.RollupOutput@32e0f6e1, wine.alert.model.RollupOutput@2aa8a3b8, wine.alert.model.RollupOutput@25f9082, wine.alert.model.RollupOutput@6deebcb, wine.alert.model.RollupOutput@333c520f]
|             |   |    |   |    |   |    |   |    |   |    |   wine.alert.model.RollupOutput@30f69e7c
|             |   |    |   |    |   |    |   |    |   |    [wine.alert.model.RollupOutput@65d8615c, wine.alert.model.RollupOutput@4ef18f00, wine.alert.model.RollupOutput@1b3a955c, wine.alert.model.RollupOutput@1d73620a, wine.alert.model.RollupOutput@3b073279, wine.alert.model.RollupOutput@79cc2396, wine.alert.model.RollupOutput@3613d986, wine.alert.model.RollupOutput@30f69e7c, wine.alert.model.RollupOutput@32e0f6e1, wine.alert.model.RollupOutput@2aa8a3b8, wine.alert.model.RollupOutput@25f9082, wine.alert.model.RollupOutput@6deebcb, wine.alert.model.RollupOutput@333c520f]
|             |   |    |   |    |   |    |   |    |   wine.alert.model.RollupOutput@79cc2396
|             |   |    |   |    |   |    |   |    [wine.alert.model.RollupOutput@65d8615c, wine.alert.model.RollupOutput@4ef18f00, wine.alert.model.RollupOutput@1b3a955c, wine.alert.model.RollupOutput@1d73620a, wine.alert.model.RollupOutput@3b073279, wine.alert.model.RollupOutput@79cc2396, wine.alert.model.RollupOutput@3613d986, wine.alert.model.RollupOutput@30f69e7c, wine.alert.model.RollupOutput@32e0f6e1, wine.alert.model.RollupOutput@2aa8a3b8, wine.alert.model.RollupOutput@25f9082, wine.alert.model.RollupOutput@6deebcb, wine.alert.model.RollupOutput@333c520f]
|             |   |    |   |    |   |    |   wine.alert.model.RollupOutput@3b073279
|             |   |    |   |    |   |    [wine.alert.model.RollupOutput@65d8615c, wine.alert.model.RollupOutput@4ef18f00, wine.alert.model.RollupOutput@1b3a955c, wine.alert.model.RollupOutput@1d73620a, wine.alert.model.RollupOutput@3b073279, wine.alert.model.RollupOutput@79cc2396, wine.alert.model.RollupOutput@3613d986, wine.alert.model.RollupOutput@30f69e7c, wine.alert.model.RollupOutput@32e0f6e1, wine.alert.model.RollupOutput@2aa8a3b8, wine.alert.model.RollupOutput@25f9082, wine.alert.model.RollupOutput@6deebcb, wine.alert.model.RollupOutput@333c520f]
|             |   |    |   |    |   wine.alert.model.RollupOutput@1d73620a
|             |   |    |   |    [wine.alert.model.RollupOutput@65d8615c, wine.alert.model.RollupOutput@4ef18f00, wine.alert.model.RollupOutput@1b3a955c, wine.alert.model.RollupOutput@1d73620a, wine.alert.model.RollupOutput@3b073279, wine.alert.model.RollupOutput@79cc2396, wine.alert.model.RollupOutput@3613d986, wine.alert.model.RollupOutput@30f69e7c, wine.alert.model.RollupOutput@32e0f6e1, wine.alert.model.RollupOutput@2aa8a3b8, wine.alert.model.RollupOutput@25f9082, wine.alert.model.RollupOutput@6deebcb, wine.alert.model.RollupOutput@333c520f]
|             |   |    |   wine.alert.model.RollupOutput@1b3a955c
|             |   |    [wine.alert.model.RollupOutput@65d8615c, wine.alert.model.RollupOutput@4ef18f00, wine.alert.model.RollupOutput@1b3a955c, wine.alert.model.RollupOutput@1d73620a, wine.alert.model.RollupOutput@3b073279, wine.alert.model.RollupOutput@79cc2396, wine.alert.model.RollupOutput@3613d986, wine.alert.model.RollupOutput@30f69e7c, wine.alert.model.RollupOutput@32e0f6e1, wine.alert.model.RollupOutput@2aa8a3b8, wine.alert.model.RollupOutput@25f9082, wine.alert.model.RollupOutput@6deebcb, wine.alert.model.RollupOutput@333c520f]
|             |   wine.alert.model.RollupOutput@4ef18f00
|             [wine.alert.model.RollupOutput@65d8615c, wine.alert.model.RollupOutput@4ef18f00, wine.alert.model.RollupOutput@1b3a955c, wine.alert.model.RollupOutput@1d73620a, wine.alert.model.RollupOutput@3b073279, wine.alert.model.RollupOutput@79cc2396, wine.alert.model.RollupOutput@3613d986, wine.alert.model.RollupOutput@30f69e7c, wine.alert.model.RollupOutput@32e0f6e1, wine.alert.model.RollupOutput@2aa8a3b8, wine.alert.model.RollupOutput@25f9082, wine.alert.model.RollupOutput@6deebcb, wine.alert.model.RollupOutput@333c520f]
[wine.alert.model.RollupOutput@65d8615c, wine.alert.model.RollupOutput@4ef18f00, wine.alert.model.RollupOutput@1b3a955c, wine.alert.model.RollupOutput@1d73620a, wine.alert.model.RollupOutput@3b073279, wine.alert.model.RollupOutput@79cc2396, wine.alert.model.RollupOutput@3613d986, wine.alert.model.RollupOutput@30f69e7c, wine.alert.model.RollupOutput@32e0f6e1, wine.alert.model.RollupOutput@2aa8a3b8, wine.alert.model.RollupOutput@25f9082, wine.alert.model.RollupOutput@6deebcb, wine.alert.model.RollupOutput@333c520f]

	at wine.alert.RollupServiceSpec.test filterByMedianPricePerWineId case 1(RollupServiceSpec.groovy:110)

test standardizePrice with non-standard bottles

Condition not satisfied:

Math.round(service.standardizePrice("12 Bottle Case -  187 ml - Splits", 100.0)) == Math.round(100.0 / 12 * 750 / 187)
     |     |       |                                                             |       |           |    |     |
     100   |       100                                                           false   33          |    |     33.4224598929
           wine.alert.RollupService@70f13a48                                                         |    6249.9999999750
                                                                                                     8.3333333333

	at wine.alert.RollupServiceSpec.test standardizePrice with non-standard bottles(RollupServiceSpec.groovy:36)

Tests

Test Duration Result
test filterByMedianPrice case 1 0.024s failed
test filterByMedianPrice case 2 0.005s failed
test filterByMedianPricePerWineId case 1 0.019s failed
test standardizePrice with multiple standard bottles 0.022s passed
test standardizePrice with non-standard bottles 0.015s failed
test standardizePrice with standard bottle 0.287s passed