// Path: src/test/java/org/trustedanalytics/servicebroker/hdfs/plans/binding/HdfsBindingClientFactory.java
// public class HdfsBindingClientFactory {
//   public static HdfsBindingClient create(Credentials credentials, String userspacePathTemplate){
//     return new HdfsBindingClient(credentials, userspacePathTemplate);
//   }
// }


import static org.hamcrest.Matchers.equalTo;
import static org.junit.Assert.assertThat;
import static org.trustedanalytics.servicebroker.test.cloudfoundry.CfModelsFactory.getServiceInstance;
import java.util.Map;
import com.google.common.collect.ImmutableMap;
import org.cloudfoundry.community.servicebroker.model.ServiceInstance;
import org.junit.Test;
import org.trustedanalytics.servicebroker.hdfs.plans.binding.HdfsBindingClientFactory;
/**
 * Copyright (c) 2015 Intel Corporation
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.trustedanalytics.servicebroker.hdfs.plans;





public final class HdfsPlanBareTest extends HdfsPlanTestBase {

  @Test
  public void bind_templateWithOrgAndInstanceVariables_replaceVariablesWithValuesAndAppendUriToCredentialsMap()
      throws Exception {
    //arrange
    HdfsPlanBare plan =
        new HdfsPlanBare(HdfsBindingClientFactory.create(getInputCredentials(), USERSPACE_PATH_TEMPLATE));

    //act
    ServiceInstance serviceInstance = getServiceInstance();
// Path: src/test/java/org/trustedanalytics/servicebroker/hdfs/plans/binding/HdfsBindingClientFactory.java
// public class HdfsBindingClientFactory {
//   public static HdfsBindingClient create(Credentials credentials, String userspacePathTemplate){
//     return new HdfsBindingClient(credentials, userspacePathTemplate);
//   }
// }


// Path: src/test/java/org/trustedanalytics/servicebroker/hdfs/plans/HdfsPlanBareTest.java
import static org.hamcrest.Matchers.equalTo;
import static org.junit.Assert.assertThat;
import static org.trustedanalytics.servicebroker.test.cloudfoundry.CfModelsFactory.getServiceInstance;
import java.util.Map;
import com.google.common.collect.ImmutableMap;
import org.cloudfoundry.community.servicebroker.model.ServiceInstance;
import org.junit.Test;
import org.trustedanalytics.servicebroker.hdfs.plans.binding.HdfsBindingClientFactory;

/**
 * Copyright (c) 2015 Intel Corporation
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.trustedanalytics.servicebroker.hdfs.plans;





public final class HdfsPlanBareTest extends HdfsPlanTestBase {

  @Test
  public void bind_templateWithOrgAndInstanceVariables_replaceVariablesWithValuesAndAppendUriToCredentialsMap()
      throws Exception {
    //arrange
    HdfsPlanBare plan =
        new HdfsPlanBare(HdfsBindingClientFactory.create(getInputCredentials(), USERSPACE_PATH_TEMPLATE));

    //act
    ServiceInstance serviceInstance = getServiceInstance();
    Map<String, Object> actualOutputCredentials = plan.bind(serviceInstance);