Skip to content

Commit

Permalink
fix ut fail
Browse files Browse the repository at this point in the history
  • Loading branch information
jerry-024 committed Dec 16, 2024
1 parent 36583ea commit f7a2e15
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@
import org.apache.paimon.schema.Schema;
import org.apache.paimon.types.DataTypes;

import org.apache.paimon.shade.guava30.com.google.common.collect.Lists;

import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;

import java.util.ArrayList;

import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
import static org.assertj.core.api.Assertions.assertThatThrownBy;

Expand Down Expand Up @@ -75,7 +75,12 @@ public void testCreateTableAllowUpperCase() throws Exception {
public void testAlterDatabase() throws Exception {
String databaseName = "test_alter_db";
catalog.createDatabase(databaseName, false);
assertThatThrownBy(() -> catalog.alterDatabase(databaseName, new ArrayList<>(), false))
assertThatThrownBy(
() ->
catalog.alterDatabase(
databaseName,
Lists.newArrayList(PropertyChange.removeProperty("a")),
false))
.isInstanceOf(UnsupportedOperationException.class);
}
}

0 comments on commit f7a2e15

Please sign in to comment.