You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by zh...@apache.org on 2022/06/27 17:10:40 UTC

[shardingsphere] branch master updated: Remove blank lines. (#18638)

This is an automated email from the ASF dual-hosted git repository.

zhangliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new 47371411a50 Remove blank lines. (#18638)
47371411a50 is described below

commit 47371411a501c0cc149e32cf3aeff8a2d624b6b3
Author: yx9o <ya...@163.com>
AuthorDate: Tue Jun 28 01:10:32 2022 +0800

    Remove blank lines. (#18638)
---
 .../apache/shardingsphere/driver/state/DriverStateFactoryTest.java   | 5 ++---
 .../shardingsphere/driver/state/fixture/DriverStateFixture.java      | 1 -
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/shardingsphere-jdbc/shardingsphere-jdbc-core/src/test/java/org/apache/shardingsphere/driver/state/DriverStateFactoryTest.java b/shardingsphere-jdbc/shardingsphere-jdbc-core/src/test/java/org/apache/shardingsphere/driver/state/DriverStateFactoryTest.java
index 04f79070f67..b9465d51c1b 100644
--- a/shardingsphere-jdbc/shardingsphere-jdbc-core/src/test/java/org/apache/shardingsphere/driver/state/DriverStateFactoryTest.java
+++ b/shardingsphere-jdbc/shardingsphere-jdbc-core/src/test/java/org/apache/shardingsphere/driver/state/DriverStateFactoryTest.java
@@ -19,19 +19,18 @@ package org.apache.shardingsphere.driver.state;
 
 import org.apache.shardingsphere.infra.state.StateType;
 import org.junit.Test;
-import org.mockito.Mockito;
 
 import static org.hamcrest.CoreMatchers.instanceOf;
 import static org.junit.Assert.assertThat;
+import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.when;
 
 public final class DriverStateFactoryTest {
     
     @Test
     public void assertGetInstance() {
-        StateType stateType = Mockito.mock(StateType.class);
+        StateType stateType = mock(StateType.class);
         when(stateType.name()).thenReturn("FIXTURE");
         assertThat(DriverStateFactory.getInstance(stateType), instanceOf(DriverState.class));
     }
-    
 }
diff --git a/shardingsphere-jdbc/shardingsphere-jdbc-core/src/test/java/org/apache/shardingsphere/driver/state/fixture/DriverStateFixture.java b/shardingsphere-jdbc/shardingsphere-jdbc-core/src/test/java/org/apache/shardingsphere/driver/state/fixture/DriverStateFixture.java
index e422c7ef416..b0cb0906e31 100644
--- a/shardingsphere-jdbc/shardingsphere-jdbc-core/src/test/java/org/apache/shardingsphere/driver/state/fixture/DriverStateFixture.java
+++ b/shardingsphere-jdbc/shardingsphere-jdbc-core/src/test/java/org/apache/shardingsphere/driver/state/fixture/DriverStateFixture.java
@@ -34,5 +34,4 @@ public final class DriverStateFixture implements DriverState {
     public String getType() {
         return "FIXTURE";
     }
-    
 }