@@ -32,10 +32,8 @@ public class ObjectStorageAdminTest {
3232
3333 @ Mock private ObjectStorageWrapper wrapper ;
3434 @ Mock private ObjectStorageConfig config ;
35- private ObjectStorageAdmin admin ;
36-
37- @ Captor private ArgumentCaptor <String > objectKeyCaptor ;
3835 @ Captor private ArgumentCaptor <String > payloadCaptor ;
36+ private ObjectStorageAdmin admin ;
3937
4038 @ BeforeEach
4139 public void setUp () throws Exception {
@@ -127,20 +125,15 @@ public void unsupportedOperations_ShouldThrowUnsupportedException() {
127125 catchThrowable (() -> admin .createIndex (namespace , table , column , Collections .emptyMap ()));
128126 Throwable thrown2 = catchThrowable (() -> admin .dropIndex (namespace , table , column ));
129127 Throwable thrown3 =
130- catchThrowable (
131- () -> admin .getImportTableMetadata (namespace , table , Collections .emptyMap ()));
132- Throwable thrown4 =
133- catchThrowable (() -> admin .addRawColumnToTable (namespace , table , column , DataType .INT ));
134- Throwable thrown5 =
135128 catchThrowable (
136129 () ->
137130 admin .importTable (
138131 namespace , table , Collections .emptyMap (), Collections .emptyMap ()));
139- Throwable thrown6 = catchThrowable (() -> admin .dropColumnFromTable (namespace , table , column ));
140- Throwable thrown7 =
132+ Throwable thrown4 = catchThrowable (() -> admin .dropColumnFromTable (namespace , table , column ));
133+ Throwable thrown5 =
141134 catchThrowable (() -> admin .renameColumn (namespace , table , column , "newCol" ));
142- Throwable thrown8 = catchThrowable (() -> admin .renameTable (namespace , table , "newTable" ));
143- Throwable thrown9 =
135+ Throwable thrown6 = catchThrowable (() -> admin .renameTable (namespace , table , "newTable" ));
136+ Throwable thrown7 =
144137 catchThrowable (() -> admin .alterColumnType (namespace , table , column , DataType .INT ));
145138
146139 // Assert
@@ -151,8 +144,6 @@ public void unsupportedOperations_ShouldThrowUnsupportedException() {
151144 assertThat (thrown5 ).isInstanceOf (UnsupportedOperationException .class );
152145 assertThat (thrown6 ).isInstanceOf (UnsupportedOperationException .class );
153146 assertThat (thrown7 ).isInstanceOf (UnsupportedOperationException .class );
154- assertThat (thrown8 ).isInstanceOf (UnsupportedOperationException .class );
155- assertThat (thrown9 ).isInstanceOf (UnsupportedOperationException .class );
156147 }
157148
158149 @ Test
0 commit comments