Skip to content

Commit

Permalink
Optmised imports for modified java classes
Browse files Browse the repository at this point in the history
  • Loading branch information
sacOO7 committed Jun 22, 2023
1 parent 7eb0d78 commit 1052e13
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 36 deletions.
9 changes: 7 additions & 2 deletions lib/src/test/java/io/ably/lib/test/common/Helpers.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,13 @@
import org.hamcrest.Matcher;

import static junit.framework.Assert.assertTrue;
import static org.hamcrest.Matchers.*;
import static org.junit.Assert.*;
import static org.hamcrest.Matchers.allOf;
import static org.hamcrest.Matchers.greaterThanOrEqualTo;
import static org.hamcrest.Matchers.lessThanOrEqualTo;
import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertThat;

public class Helpers {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,36 +1,7 @@
package io.ably.lib.test.realtime;

import static io.ably.lib.test.common.Helpers.assertTimeoutBetween;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;

import io.ably.lib.util.ReconnectionStrategy;
import io.ably.lib.util.ReconnectionStrategyTest;
import org.junit.Ignore;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.Stopwatch;
import org.junit.rules.Timeout;

import java.lang.reflect.Field;
import java.time.Duration;
import java.time.Instant;
import java.util.*;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.atomic.AtomicLong;

import io.ably.lib.debug.DebugOptions;
import io.ably.lib.realtime.AblyRealtime;
import io.ably.lib.realtime.Channel;
import io.ably.lib.realtime.ChannelState;
import io.ably.lib.realtime.ChannelStateListener;
import io.ably.lib.realtime.CompletionListener;
import io.ably.lib.realtime.ConnectionEvent;
import io.ably.lib.realtime.ConnectionState;
import io.ably.lib.realtime.ConnectionStateListener;
import io.ably.lib.realtime.*;
import io.ably.lib.rest.AblyRest;
import io.ably.lib.rest.Auth;
import io.ably.lib.rest.Auth.TokenCallback;
Expand All @@ -45,6 +16,21 @@
import io.ably.lib.types.ClientOptions;
import io.ably.lib.types.ErrorInfo;
import io.ably.lib.types.ProtocolMessage;
import org.junit.Ignore;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.Timeout;

import java.lang.reflect.Field;
import java.time.Duration;
import java.time.Instant;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Locale;

import static io.ably.lib.test.common.Helpers.assertTimeoutBetween;
import static org.junit.Assert.*;

public class RealtimeConnectFailTest extends ParameterizedTest {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
package io.ably.lib.util;

import static io.ably.lib.test.common.Helpers.assertTimeoutBetween;
import static io.ably.lib.test.common.Helpers.between;
import static org.junit.Assert.assertThat;

import com.sun.tools.javac.util.Pair;
import org.junit.Test;

import java.util.Arrays;

import static io.ably.lib.test.common.Helpers.assertTimeoutBetween;

public class ReconnectionStrategyTest {

@Test
Expand Down

0 comments on commit 1052e13

Please sign in to comment.