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/07/10 16:01:46 UTC

[shardingsphere] branch revert-19004-fix18970 created (now 5ba89091bad)

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

zhangliang pushed a change to branch revert-19004-fix18970
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


      at 5ba89091bad Revert "add tests (#19004)"

This branch includes the following new commits:

     new 5ba89091bad Revert "add tests (#19004)"

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[shardingsphere] 01/01: Revert "add tests (#19004)"

Posted by zh...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

zhangliang pushed a commit to branch revert-19004-fix18970
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git

commit 5ba89091badf96eee870df8edad2985d233935d0
Author: Liang Zhang <zh...@apache.org>
AuthorDate: Mon Jul 11 00:01:40 2022 +0800

    Revert "add tests (#19004)"
    
    This reverts commit 529b96cae1a7c2d5190a2a9ba3dcd294fc12bb94.
---
 .../AssistQueryAndPlainInsertColumnsTokenGeneratorTest.java  | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)

diff --git a/shardingsphere-features/shardingsphere-encrypt/shardingsphere-encrypt-core/src/test/java/org/apache/shardingsphere/encrypt/rewrite/token/AssistQueryAndPlainInsertColumnsTokenGeneratorTest.java b/shardingsphere-features/shardingsphere-encrypt/shardingsphere-encrypt-core/src/test/java/org/apache/shardingsphere/encrypt/rewrite/token/AssistQueryAndPlainInsertColumnsTokenGeneratorTest.java
index 8152df06918..58907728fec 100644
--- a/shardingsphere-features/shardingsphere-encrypt/shardingsphere-encrypt-core/src/test/java/org/apache/shardingsphere/encrypt/rewrite/token/AssistQueryAndPlainInsertColumnsTokenGeneratorTest.java
+++ b/shardingsphere-features/shardingsphere-encrypt/shardingsphere-encrypt-core/src/test/java/org/apache/shardingsphere/encrypt/rewrite/token/AssistQueryAndPlainInsertColumnsTokenGeneratorTest.java
@@ -67,17 +67,7 @@ public class AssistQueryAndPlainInsertColumnsTokenGeneratorTest {
         tokenGenerator.setEncryptRule(mockEncryptRule());
         Collection<InsertColumnsToken> actual = tokenGenerator.generateSQLTokens(mockInsertStatementContext());
         assertThat(actual.size(), is(1));
-
-        InsertStatementContext insertStatementContext = mock(InsertStatementContext.class, RETURNS_DEEP_STUBS);
-        when(insertStatementContext.getSqlStatement().getTable().getTableName().getIdentifier().getValue()).thenReturn("foo_tbl");
-        actual = tokenGenerator.generateSQLTokens(insertStatementContext);
-        assertThat(actual.size(), is(0));
-
-        ColumnSegment columnSegment = mock(ColumnSegment.class, RETURNS_DEEP_STUBS);
-        when(columnSegment.getIdentifier().getValue()).thenReturn("bar_col");
-        when(insertStatementContext.getSqlStatement().getColumns()).thenReturn(Collections.singleton(columnSegment));
-        actual = tokenGenerator.generateSQLTokens(insertStatementContext);
-        assertThat(actual.size(), is(0));
+        // TODO add more assertions for actual value
     }
     
     private EncryptRule mockEncryptRule() {