Repository: stratos Updated Branches: refs/heads/docker-grouping-merge 4b8fca047 -> 77d1a7cbf
Removing unused deployer tests Project: http://git-wip-us.apache.org/repos/asf/stratos/repo Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/77d1a7cb Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/77d1a7cb Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/77d1a7cb Branch: refs/heads/docker-grouping-merge Commit: 77d1a7cbf5c9263a8a0de13b043e617241ec54da Parents: 4b8fca0 Author: Imesh Gunaratne <[email protected]> Authored: Tue Nov 4 16:45:31 2014 +0530 Committer: Imesh Gunaratne <[email protected]> Committed: Tue Nov 4 16:45:31 2014 +0530 ---------------------------------------------------------------------- .../policy/DeploymentPolicyDeployerTest.java | 52 ---------------- .../policy/PartitionDeployerTest.java | 65 -------------------- 2 files changed, 117 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/stratos/blob/77d1a7cb/components/org.apache.stratos.autoscaler/src/test/java/org/apache/stratos/autoscaler/deployment/policy/DeploymentPolicyDeployerTest.java ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.autoscaler/src/test/java/org/apache/stratos/autoscaler/deployment/policy/DeploymentPolicyDeployerTest.java b/components/org.apache.stratos.autoscaler/src/test/java/org/apache/stratos/autoscaler/deployment/policy/DeploymentPolicyDeployerTest.java deleted file mode 100644 index fd341c0..0000000 --- a/components/org.apache.stratos.autoscaler/src/test/java/org/apache/stratos/autoscaler/deployment/policy/DeploymentPolicyDeployerTest.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you 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.apache.stratos.autoscaler.deployment.policy; -// -//import static org.junit.Assert.*; -// -//import java.io.File; -// -//import org.apache.stratos.autoscaler.exception.InvalidPolicyException; -//import org.apache.stratos.autoscaler.policy.deployers.DeploymentPolicyReader; -//import org.junit.Before; -//import org.junit.Test; -// -///** -// * @author nirmal -// * -// */ -//public class DeploymentPolicyDeployerTest { -// -// DeploymentPolicyReader reader; -// -// /** -// * @throws java.lang.Exception -// */ -// @Before -// public void setUp() throws Exception { -// reader = new DeploymentPolicyReader(new File("src/test/resources/deployment-policy.xml")); -// } -// -// @Test -// public void test() throws InvalidPolicyException { -// -// DeploymentPolicy policy = reader.read(); -// } -// -//} http://git-wip-us.apache.org/repos/asf/stratos/blob/77d1a7cb/components/org.apache.stratos.autoscaler/src/test/java/org/apache/stratos/autoscaler/deployment/policy/PartitionDeployerTest.java ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.autoscaler/src/test/java/org/apache/stratos/autoscaler/deployment/policy/PartitionDeployerTest.java b/components/org.apache.stratos.autoscaler/src/test/java/org/apache/stratos/autoscaler/deployment/policy/PartitionDeployerTest.java deleted file mode 100644 index a796c1f..0000000 --- a/components/org.apache.stratos.autoscaler/src/test/java/org/apache/stratos/autoscaler/deployment/policy/PartitionDeployerTest.java +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you 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.apache.stratos.autoscaler.deployment.policy; - -import static org.junit.Assert.*; - -import java.io.File; - -import org.apache.stratos.autoscaler.exception.InvalidPolicyException; -import org.apache.stratos.autoscaler.partition.deployers.PartitionReader; -import org.apache.stratos.cloud.controller.stub.deployment.partition.*; -import org.junit.Before; -import org.junit.Test; - -/** - * @author nirmal - * - */ -public class PartitionDeployerTest { - - PartitionReader reader, reader1; - - /** - * @throws java.lang.Exception - */ - @Before - public void setUp() throws Exception { - reader = new PartitionReader(new File("src/test/resources/partitions.xml")); - reader1 = new PartitionReader(new File("src/test/resources/partition.xml")); - } - - @Test - public void testPartitionCount() throws InvalidPolicyException { - - assertEquals(2, reader.getPartitionList().size()); - } - - @Test - public void testPartition() throws InvalidPolicyException { - - assertEquals(1, reader1.getPartitionList().size()); - - Partition p = reader1.getPartitionList().get(0); - assertEquals("P1", p.getId()); - assertEquals(3, p.getPartitionMax()); - assertEquals(2, p.getProperties().getProperties().length); - } - -}
