Class AbstractCfEnvTests

java.lang.Object
io.pivotal.cfenv.test.AbstractCfEnvTests

public abstract class AbstractCfEnvTests extends Object
Author:
Mark Pollack, David Turanski
  • Field Details

  • Constructor Details

    • AbstractCfEnvTests

      public AbstractCfEnvTests()
  • Method Details

    • getServicesPayload

      protected static String getServicesPayload(String... servicePayloads)
    • mockVcapServices

      protected io.pivotal.cfenv.core.test.CfEnvMock mockVcapServices(String vcapServicesJson)
    • after

      public void after() throws Exception
      Throws:
      Exception
    • getTemplatedPayload

      protected String getTemplatedPayload(String templateFile, String serviceName, String hostname, int port, String user, String password, String name)
    • getEnvironment

      public Environment getEnvironment()
    • getEnvironment

      public Environment getEnvironment(Map<String,Object> properties)
    • readTestDataFile

      protected String readTestDataFile(String fileName)
    • getUserProvidedServicePayload

      protected String getUserProvidedServicePayload(String serviceName, String hostname, int port, String user, String password, String name, String scheme)
    • getUserProvidedServicePayloadWithNoUri

      protected String getUserProvidedServicePayloadWithNoUri(String serviceName, String hostname, int port, String user, String password, String name)
    • assertUriInfo

      protected void assertUriInfo(io.pivotal.cfenv.core.UriInfo uriInfo, String scheme, String instanceName)
    • assertUriInfo

      protected void assertUriInfo(io.pivotal.cfenv.core.UriInfo uriInfo, String scheme, String instanceName, String uname, String pwd)