Skip to content

Commit

Permalink
Move native test from infra module to test module
Browse files Browse the repository at this point in the history
  • Loading branch information
terrymanu committed Nov 21, 2023
1 parent 8974c14 commit 14a932a
Show file tree
Hide file tree
Showing 15 changed files with 48 additions and 47 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@
* limitations under the License.
*/

package org.apache.shardingsphere.test.natived.features;
package org.apache.shardingsphere.test.natived.jdbc.features;

import org.apache.shardingsphere.driver.api.yaml.YamlShardingSphereDataSourceFactory;
import org.apache.shardingsphere.test.natived.FileTestUtils;
import org.apache.shardingsphere.test.natived.features.entity.Address;
import org.apache.shardingsphere.test.natived.features.entity.Order;
import org.apache.shardingsphere.test.natived.features.entity.OrderItem;
import org.apache.shardingsphere.test.natived.features.repository.AddressRepository;
import org.apache.shardingsphere.test.natived.features.repository.OrderItemRepository;
import org.apache.shardingsphere.test.natived.features.repository.OrderRepository;
import org.apache.shardingsphere.test.natived.jdbc.features.entity.Address;
import org.apache.shardingsphere.test.natived.jdbc.features.entity.Order;
import org.apache.shardingsphere.test.natived.jdbc.features.entity.OrderItem;
import org.apache.shardingsphere.test.natived.jdbc.features.repository.AddressRepository;
import org.apache.shardingsphere.test.natived.jdbc.features.repository.OrderItemRepository;
import org.apache.shardingsphere.test.natived.jdbc.features.repository.OrderRepository;
import org.junit.jupiter.api.Test;

import javax.sql.DataSource;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@
* limitations under the License.
*/

package org.apache.shardingsphere.test.natived.features;
package org.apache.shardingsphere.test.natived.jdbc.features;

import org.apache.shardingsphere.driver.api.yaml.YamlShardingSphereDataSourceFactory;
import org.apache.shardingsphere.test.natived.FileTestUtils;
import org.apache.shardingsphere.test.natived.features.entity.Address;
import org.apache.shardingsphere.test.natived.features.entity.Order;
import org.apache.shardingsphere.test.natived.features.entity.OrderItem;
import org.apache.shardingsphere.test.natived.features.repository.AddressRepository;
import org.apache.shardingsphere.test.natived.features.repository.OrderItemRepository;
import org.apache.shardingsphere.test.natived.features.repository.OrderRepository;
import org.apache.shardingsphere.test.natived.jdbc.features.entity.Address;
import org.apache.shardingsphere.test.natived.jdbc.features.entity.Order;
import org.apache.shardingsphere.test.natived.jdbc.features.entity.OrderItem;
import org.apache.shardingsphere.test.natived.jdbc.features.repository.AddressRepository;
import org.apache.shardingsphere.test.natived.jdbc.features.repository.OrderItemRepository;
import org.apache.shardingsphere.test.natived.jdbc.features.repository.OrderRepository;
import org.junit.jupiter.api.Test;

import javax.sql.DataSource;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@
* limitations under the License.
*/

package org.apache.shardingsphere.test.natived.features;
package org.apache.shardingsphere.test.natived.jdbc.features;

import org.apache.shardingsphere.driver.api.yaml.YamlShardingSphereDataSourceFactory;
import org.apache.shardingsphere.test.natived.FileTestUtils;
import org.apache.shardingsphere.test.natived.features.entity.Address;
import org.apache.shardingsphere.test.natived.features.entity.Order;
import org.apache.shardingsphere.test.natived.features.entity.OrderItem;
import org.apache.shardingsphere.test.natived.features.repository.AddressRepository;
import org.apache.shardingsphere.test.natived.features.repository.OrderItemRepository;
import org.apache.shardingsphere.test.natived.features.repository.OrderRepository;
import org.apache.shardingsphere.test.natived.jdbc.features.entity.Address;
import org.apache.shardingsphere.test.natived.jdbc.features.entity.Order;
import org.apache.shardingsphere.test.natived.jdbc.features.entity.OrderItem;
import org.apache.shardingsphere.test.natived.jdbc.features.repository.AddressRepository;
import org.apache.shardingsphere.test.natived.jdbc.features.repository.OrderItemRepository;
import org.apache.shardingsphere.test.natived.jdbc.features.repository.OrderRepository;
import org.h2.jdbc.JdbcSQLSyntaxErrorException;
import org.junit.jupiter.api.Test;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@
* limitations under the License.
*/

package org.apache.shardingsphere.test.natived.features;
package org.apache.shardingsphere.test.natived.jdbc.features;

import org.apache.shardingsphere.driver.api.yaml.YamlShardingSphereDataSourceFactory;
import org.apache.shardingsphere.test.natived.FileTestUtils;
import org.apache.shardingsphere.test.natived.features.entity.Address;
import org.apache.shardingsphere.test.natived.features.entity.Order;
import org.apache.shardingsphere.test.natived.features.entity.OrderItem;
import org.apache.shardingsphere.test.natived.features.repository.AddressRepository;
import org.apache.shardingsphere.test.natived.features.repository.OrderItemRepository;
import org.apache.shardingsphere.test.natived.features.repository.OrderRepository;
import org.apache.shardingsphere.test.natived.jdbc.features.entity.Address;
import org.apache.shardingsphere.test.natived.jdbc.features.entity.Order;
import org.apache.shardingsphere.test.natived.jdbc.features.entity.OrderItem;
import org.apache.shardingsphere.test.natived.jdbc.features.repository.AddressRepository;
import org.apache.shardingsphere.test.natived.jdbc.features.repository.OrderItemRepository;
import org.apache.shardingsphere.test.natived.jdbc.features.repository.OrderRepository;
import org.junit.jupiter.api.Test;

import javax.sql.DataSource;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@
* limitations under the License.
*/

package org.apache.shardingsphere.test.natived.features;
package org.apache.shardingsphere.test.natived.jdbc.features;

import org.apache.shardingsphere.driver.api.yaml.YamlShardingSphereDataSourceFactory;
import org.apache.shardingsphere.test.natived.FileTestUtils;
import org.apache.shardingsphere.test.natived.features.entity.Address;
import org.apache.shardingsphere.test.natived.features.entity.Order;
import org.apache.shardingsphere.test.natived.features.entity.OrderItem;
import org.apache.shardingsphere.test.natived.features.repository.AddressRepository;
import org.apache.shardingsphere.test.natived.features.repository.OrderItemRepository;
import org.apache.shardingsphere.test.natived.features.repository.OrderRepository;
import org.apache.shardingsphere.test.natived.jdbc.features.entity.Address;
import org.apache.shardingsphere.test.natived.jdbc.features.entity.Order;
import org.apache.shardingsphere.test.natived.jdbc.features.entity.OrderItem;
import org.apache.shardingsphere.test.natived.jdbc.features.repository.AddressRepository;
import org.apache.shardingsphere.test.natived.jdbc.features.repository.OrderItemRepository;
import org.apache.shardingsphere.test.natived.jdbc.features.repository.OrderRepository;
import org.junit.jupiter.api.Test;

import javax.sql.DataSource;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.shardingsphere.test.natived.features.algorithm;
package org.apache.shardingsphere.test.natived.jdbc.features.algorithm;

import org.apache.shardingsphere.sharding.api.sharding.standard.PreciseShardingValue;
import org.apache.shardingsphere.sharding.api.sharding.standard.RangeShardingValue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.shardingsphere.test.natived.features.algorithm;
package org.apache.shardingsphere.test.natived.jdbc.features.algorithm;

import lombok.Getter;
import org.apache.shardingsphere.encrypt.api.context.EncryptContext;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.shardingsphere.test.natived.features.entity;
package org.apache.shardingsphere.test.natived.jdbc.features.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.shardingsphere.test.natived.features.entity;
package org.apache.shardingsphere.test.natived.jdbc.features.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.shardingsphere.test.natived.features.entity;
package org.apache.shardingsphere.test.natived.jdbc.features.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
* limitations under the License.
*/

package org.apache.shardingsphere.test.natived.features.repository;
package org.apache.shardingsphere.test.natived.jdbc.features.repository;

import org.apache.shardingsphere.test.natived.features.entity.Address;
import org.apache.shardingsphere.test.natived.jdbc.features.entity.Address;

import javax.sql.DataSource;
import java.sql.Connection;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
* limitations under the License.
*/

package org.apache.shardingsphere.test.natived.features.repository;
package org.apache.shardingsphere.test.natived.jdbc.features.repository;

import org.apache.shardingsphere.test.natived.features.entity.OrderItem;
import org.apache.shardingsphere.test.natived.jdbc.features.entity.OrderItem;

import javax.sql.DataSource;
import java.sql.Connection;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
* limitations under the License.
*/

package org.apache.shardingsphere.test.natived.features.repository;
package org.apache.shardingsphere.test.natived.jdbc.features.repository;

import org.apache.shardingsphere.test.natived.features.entity.Order;
import org.apache.shardingsphere.test.natived.jdbc.features.entity.Order;

import javax.sql.DataSource;
import java.sql.Connection;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
"methods":[{"name":"<init>","parameterTypes":[] }]
}
]

Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
# limitations under the License.
#

org.apache.shardingsphere.test.natived.features.algorithm.TestQueryAssistedShardingEncryptAlgorithm
org.apache.shardingsphere.test.natived.jdbc.features.algorithm.TestQueryAssistedShardingEncryptAlgorithm

0 comments on commit 14a932a

Please sign in to comment.