|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
/*
|
|
|
|
|
* Copyright 2012-2014 the original author or authors.
|
|
|
|
|
* Copyright 2012-2015 the original author or authors.
|
|
|
|
|
*
|
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
@ -75,6 +75,10 @@ public class VcapApplicationListenerTests {
|
|
|
|
|
this.initializer.onApplicationEvent(this.event);
|
|
|
|
|
assertEquals("mysql",
|
|
|
|
|
this.context.getEnvironment().getProperty("vcap.services.mysql.name"));
|
|
|
|
|
assertEquals(
|
|
|
|
|
"3306",
|
|
|
|
|
this.context.getEnvironment().getProperty(
|
|
|
|
|
"vcap.services.mysql.credentials.port"));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@ -86,5 +90,9 @@ public class VcapApplicationListenerTests {
|
|
|
|
|
this.initializer.onApplicationEvent(this.event);
|
|
|
|
|
assertEquals("mysql",
|
|
|
|
|
this.context.getEnvironment().getProperty("vcap.services.mysql.name"));
|
|
|
|
|
assertEquals(
|
|
|
|
|
"3306",
|
|
|
|
|
this.context.getEnvironment().getProperty(
|
|
|
|
|
"vcap.services.mysql.credentials.port"));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|