From b9c4c3130a370f05ca6e126d093b47d49bfa436b Mon Sep 17 00:00:00 2001 From: Simon Redfern Date: Sat, 30 Apr 2016 04:23:35 +0200 Subject: [PATCH] Using UUID for consumer key generation in DirectLogin test --- README.md | 7 +++++-- src/test/scala/code/api/directloginTest.scala | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 70063c518..4f9961aa2 100644 --- a/README.md +++ b/README.md @@ -36,8 +36,6 @@ To compile and run jetty, install Maven 3 and execute: ./mvn.sh jetty:run - - ## To run with IntelliJ IDEA * Make sure you have the IntelliJ Scala plugin installed. @@ -82,6 +80,11 @@ To compile and run jetty, install Maven 3 and execute: set bank_account_creation_listener=false in test.default.props +## Other ways to run tests + +* See http://www.scalatest.org/user_guide + + ---- ## Ubuntu diff --git a/src/test/scala/code/api/directloginTest.scala b/src/test/scala/code/api/directloginTest.scala index 7143f77f0..b509b34c3 100644 --- a/src/test/scala/code/api/directloginTest.scala +++ b/src/test/scala/code/api/directloginTest.scala @@ -15,8 +15,8 @@ import code.api.DirectLogin.registeredApplication class directloginTest extends ServerSetup { - val KEY = randomString(20) - val SECRET = randomString(20) + val KEY = java.util.UUID.randomUUID.toString + val SECRET = java.util.UUID.randomUUID.toString val EMAIL = randomString(10) val PASSWORD = randomString(20)