Skip to content
Merged
Original file line number Diff line number Diff line change
Expand Up @@ -16,38 +16,29 @@
*/
package com.optimizely.ab.bucketing;

import ch.qos.logback.classic.Level;
import com.optimizely.ab.bucketing.internal.MurmurHash3;
import com.optimizely.ab.categories.ExhaustiveTest;
import com.optimizely.ab.config.Experiment;
import com.optimizely.ab.config.ProjectConfig;
import com.optimizely.ab.config.TrafficAllocation;
import com.optimizely.ab.config.Variation;
import com.optimizely.ab.internal.LogbackVerifier;

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import org.junit.Assume;
import org.junit.Rule;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.junit.rules.ExpectedException;

import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.*;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's use explicit imports

import java.util.concurrent.atomic.AtomicInteger;

import ch.qos.logback.classic.Level;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;

import static com.optimizely.ab.config.ProjectConfigTestUtils.validProjectConfigV2;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
import static org.junit.Assert.*;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

explicit imports

import static org.mockito.Mockito.*;

/**
* Tests for {@link Bucketer}.
Expand Down Expand Up @@ -79,6 +70,7 @@ public void generateBucketValueForNegativeHashCodes() throws Exception {
@Test
@Category(ExhaustiveTest.class)
public void generateBucketValueDistribution() throws Exception {
Assume.assumeTrue(System.getenv("CI").equals("true"));
long lowerHalfCount = 0;
long totalCount = 0;
int outOfRangeCount = 0;
Expand Down