/*
# Licensed Materials - Property of IBM
# Copyright IBM Corp. 2018
 */

package com.ibm.streamsx.rest.test;

import java.io.IOException;

import com.ibm.streamsx.rest.Instance;

/**
 * Test use of ApplicationBundle including Job submission
 * to a service.
 *
 */
public class AppBundleSasTest extends AppBundleTest {
	
	@Override
	protected Instance getInstance() throws IOException {
		return StreamingAnalyticsConnectionTest.getTestService().getInstance();
	}
}

@@ -115,27 +115,100 @@
 ort 
-java.io.IOException
+static org.junit.Assume.assumeNotNull;%0A%0Aimport java.io.IOException;%0A%0Aimport org.junit.Before
 ;%0A%0Ai
@@ -332,16 +332,16 @@
 %0A *%0A */%0A
-
 public c
@@ -386,16 +386,252 @@
 eTest %7B%0A
+    %0A    @Before%0A    public void checkForService() %7B%0A        // if we don't have serviceName or vcapServices, skip the test%0A        assumeNotNull(System.getenv(%22STREAMING_ANALYTICS_SERVICE_NAME%22), System.getenv(%22VCAP_SERVICES%22));%0A    %7D%0A
 %09%0A%09@Over

Check for Sas setup before compiling