Skip to content

Commit

Permalink
tune method name in text chunking processor unit test
Browse files Browse the repository at this point in the history
Signed-off-by: yuye-aws <[email protected]>
  • Loading branch information
yuye-aws committed Mar 15, 2024
1 parent 10f6568 commit 3f41f37
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ public void testCreate_whenMaxChunkNumDisabledValue_thenSucceed() {
textChunkingProcessorFactory.create(registry, PROCESSOR_TAG, DESCRIPTION, config);
}

public void testCreate_whenAlgorithmFieldMultipleAlgorithm_thenFail() {
public void testCreate_whenAlgorithmMapMultipleAlgorithms_thenFail() {
Map<String, Object> config = new HashMap<>();
Map<String, Object> fieldMap = new HashMap<>();
Map<String, Object> algorithmMap = new HashMap<>();
Expand All @@ -239,7 +239,7 @@ public void testCreate_whenAlgorithmFieldMultipleAlgorithm_thenFail() {
);
}

public void testCreate_whenAlgorithmFieldInvalidAlgorithmName_thenFail() {
public void testCreate_wheAlgorithmMapInvalidAlgorithmName_thenFail() {
Map<String, Object> config = new HashMap<>();
Map<String, Object> fieldMap = new HashMap<>();
Map<String, Object> algorithmMap = new HashMap<>();
Expand All @@ -257,7 +257,7 @@ public void testCreate_whenAlgorithmFieldInvalidAlgorithmName_thenFail() {
.contains(String.format(Locale.ROOT, "Chunking algorithm [%s] is not supported.", invalid_algorithm_type)));
}

public void testCreate_whenAlgorithmFieldInvalidAlgorithmContent_thenFail() {
public void testCreate_whenAlgorithmMapInvalidAlgorithmType_thenFail() {
Map<String, Object> config = new HashMap<>();
Map<String, Object> fieldMap = new HashMap<>();
Map<String, Object> algorithmMap = new HashMap<>();
Expand Down

0 comments on commit 3f41f37

Please sign in to comment.