Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: add actionType and refact clinet-base and common Table class #1588

Merged
merged 14 commits into from
Feb 1, 2023
Next Next commit
test: add actionType
  • Loading branch information
leechor committed Feb 1, 2023
commit a17966d74d51a29680adfa36ebcd06a1c6984374
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package org.dinky.gateway.config;

import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.CsvSource;

import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.equalTo;

/**
*
*/
class ActionTypeTest {

@ParameterizedTest
@CsvSource({
"savepoint, SAVEPOINT",
"cancel, CANCEL"
})
void get(String value, ActionType actionType) {
assertThat(ActionType.get(value), equalTo(actionType));
}
}