Skip to content

Commit

Permalink
use all test
Browse files Browse the repository at this point in the history
  • Loading branch information
tristaZero committed Aug 20, 2018
1 parent 53ca92e commit 4daf116
Showing 1 changed file with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ public class YamlOrchestrationShardingIntegrateTest extends AbstractYamlDataSour
public static Collection init() {
return Arrays.asList(new Object[][]{
{"/yaml/integrate/sharding/configWithDataSourceWithoutProps.yaml", true},
// {"/yaml/integrate/sharding/configWithoutDataSourceWithoutProps.yaml", false},
// {"/yaml/integrate/sharding/configWithDataSourceWithProps.yaml", true},
// {"/yaml/integrate/sharding/configWithoutDataSourceWithProps.yaml", false},
{"/yaml/integrate/sharding/configWithoutDataSourceWithoutProps.yaml", false},
{"/yaml/integrate/sharding/configWithDataSourceWithProps.yaml", true},
{"/yaml/integrate/sharding/configWithoutDataSourceWithProps.yaml", false},
});
}

Expand All @@ -72,13 +72,10 @@ public DataSource apply(final String key) {
}
try (Connection conn = dataSource.getConnection();
Statement stm = conn.createStatement()) {
// stm.execute(String.format("INSERT INTO t_order(user_id,status) values(%d, %s)", 10, "'insert'"));
stm.execute(String.format("INSERT INTO t_order(user_id,status) values(%d, %s)", 10, "'insert'"));
stm.executeQuery("SELECT * FROM t_order");
// stm.executeQuery("SELECT * FROM t_order_item");
// stm.executeQuery("SELECT * FROM config");
Thread.sleep(1);
} catch (InterruptedException e) {
e.printStackTrace();
stm.executeQuery("SELECT * FROM t_order_item");
stm.executeQuery("SELECT * FROM config");
}
((OrchestrationShardingDataSource) dataSource).close();
}
Expand Down

0 comments on commit 4daf116

Please sign in to comment.