Advertisement
Guest User

Untitled

a guest
Dec 25th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 1.38 KB | None | 0 0
  1. @Unroll
  2. def "Method setGateway calculates gateway and put it with key GATEWAY_ENV_ATTR"() {
  3.     when:
  4.     def environment = ["Role": role, "BundleName": bundle, "ApplicationType": appType, "DeviceType": deviceType]
  5.     SessionService.setGateway(environment)
  6.     then:
  7.     environment["Gateway"] == gateway
  8.     where:
  9.     role           | bundle | appType      | deviceType    | gateway
  10.     "WEB_LIBERTEX" | null   | null         | null          | "WEB_LIBERTEX"
  11.     "foo"          | null   | null         | null          | "foo"
  12.     "WEB_LIBERTEX" | "foo"  | null         | null          | "MOBILE_LIBERTEX"
  13.     null           | null   | null         | null          | "WEB_LIBERTEX"
  14.     null           | null   | "wrapped"    | "SMART PHONE" | "MOBILE_LIBERTEX"
  15.     null           | null   | "wrapped"    | "TABLET"      | "MOBILE_LIBERTEX"
  16.     null           | null   | "wrapped"    | "foo"         | "WEB_LIBERTEX"
  17.     null           | null   | "nmp"        | null          | "MOBILE_LIBERTEX"
  18.     null           | null   | "nmp-web"    | null          | "MOBILE_LIBERTEX"
  19.     null           | null   | "tablet"     | null          | "MOBILE_LIBERTEX"
  20.     null           | null   | "tablet-web" | null          | "MOBILE_LIBERTEX"
  21.     null           | "foo"  | "bar"        | null          | "MOBILE_LIBERTEX"
  22.     null           | null   | "bar"        | null          | "WEB_LIBERTEX"
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement