Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed tests

  • Loading branch information...
commit 0b7b371eb8b94889a930bb246805630d07241d0f 1 parent 8b72b4a
@pauloricardomg pauloricardomg authored
View
4 service/service/java/tests/unit/org/globus/workspace/spotinstances/MaximizeProfitPricingModelTest.java
@@ -39,7 +39,7 @@ public void testGetNextPriceNoOffer() {
requests.add(new SIRequest("a", 2.0, 1));
Double nextPrice = pricingModel.getNextPrice(0, requests, null);
- assertEquals(new Double(2.0+1), nextPrice);
+ assertEquals(new Double(2.0+0.1), nextPrice);
assertTrue(PricingModelTestUtils.checkPricingModelConstraints(nextPrice, 0, requests));
//case 2
@@ -49,7 +49,7 @@ public void testGetNextPriceNoOffer() {
requests.add(new SIRequest("c", 3.5, 4));
nextPrice = pricingModel.getNextPrice(0, requests, null);
- assertEquals(new Double(4.0+1), nextPrice);
+ assertEquals(new Double(4.0+0.1), nextPrice);
assertTrue(PricingModelTestUtils.checkPricingModelConstraints(nextPrice, 0, requests));
}
View
5 service/service/java/tests/unit/org/globus/workspace/spotinstances/MaximizeUtilizationPricingModelTest.java
@@ -1,7 +1,6 @@
package org.globus.workspace.spotinstances;
import static org.junit.Assert.*;
-import static org.globus.workspace.spotinstances.MaximizeProfitPricingModel.*;
import java.util.LinkedList;
@@ -42,7 +41,7 @@ public void testGetNextPriceNoOffer() {
requests.add(new SIRequest("a", 2.0, 1));
Double nextPrice = pricingModel.getNextPrice(0, requests, null);
- assertEquals(new Double(2.0+1), nextPrice);
+ assertEquals(new Double(2.0+0.1), nextPrice);
assertTrue(PricingModelTestUtils.checkPricingModelConstraints(nextPrice, 0, requests));
//case 2
@@ -52,7 +51,7 @@ public void testGetNextPriceNoOffer() {
requests.add(new SIRequest("c", 3.5, 4));
nextPrice = pricingModel.getNextPrice(0, requests, null);
- assertEquals(new Double(4.0+1), nextPrice);
+ assertEquals(new Double(4.0+0.1), nextPrice);
assertTrue(PricingModelTestUtils.checkPricingModelConstraints(nextPrice, 0, requests));
}
Please sign in to comment.
Something went wrong with that request. Please try again.