Skip to content

Commit

Permalink
Corrected typos and unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
mans4singh committed Oct 3, 2016
1 parent ea41cdf commit 6d891e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ public class EmptyBucketGetUserAssignmentTest extends TestBase {

private Experiment experiment;
private List<Bucket> buckets = new ArrayList<>();
private User specialUser = UserFactory.createUser("SpecialForBucketTest");
private User specialUser2 = UserFactory.createUser("Special2ForBucketTest");

/**
Expand Down Expand Up @@ -84,10 +83,10 @@ public void t_GetUserAssignmentEmptyBucket() {
Assignment putAssignmentFor2 = putAssignment(experiment, assignment, specialUser2);
assertEqualModelItems(putAssignmentFor2, assignment, new DefaultNameInclusionStrategy("assignment"));

// Empty bucke to which use is assigned
// Empty bucket to which use is assigned
List<Bucket> emptyBucket = new ArrayList<>();
emptyBucket.add(buckets.get(0));
emptyBucket = putBucketsState(emptyBucket, Constants.BUCKET_STATE_EMPTY);
putBucketsState(emptyBucket, Constants.BUCKET_STATE_EMPTY);

// Get assignment after emptying bucket
Assignment getAssignmentAfterEmpty = getAssignment(experiment, specialUser2);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public EmptyBucketGetUserAssignmentToEmptyBucketTest() {
* Test scenario where user is being reassigned from empty bucket to another empty bucket
*/
@Test(dependsOnGroups = {"ping"})
public void t_AddUserToExperimentWith2BucektsAndEmptyBucketBothAndReassignToAnotherEmptyBucket() {
public void t_AddUserToExperimentWith2BucketsAndEmptyBucketBothAndReassignToAnotherEmptyBucket() {
Experiment exp = postExperiment(experiment);
Assert.assertNotNull(exp.creationTime, "Experiment creation failed.");
Assert.assertNotNull(exp.modificationTime, "Experiment creation failed (No modificationTime).");
Expand All @@ -76,7 +76,7 @@ public void t_AddUserToExperimentWith2BucektsAndEmptyBucketBothAndReassignToAnot
List<Bucket> emptyBucket = new ArrayList<>();
emptyBucket.add(buckets.get(0));
emptyBucket.add(buckets.get(1));
emptyBucket = putBucketsState(emptyBucket, Constants.BUCKET_STATE_EMPTY);
putBucketsState(emptyBucket, Constants.BUCKET_STATE_EMPTY);

// There should be no bucket available for user
Assignment getAssignmentAfterAllEmptyBuckets = getAssignment(experiment, specialUser);
Expand Down

0 comments on commit 6d891e5

Please sign in to comment.