Skip to content

Commit 5a3ce71

Browse files
committed
Add execeptions to method signitures.
1 parent 1995f79 commit 5a3ce71

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

datalabeling/beta/cloud-client/src/test/java/com/example/datalabeling/CreateAnnotationSpecSetIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public void tearDown() {
7878
}
7979

8080
@Test
81-
public void testCreateAnnotationSpecSet() {
81+
public void testCreateAnnotationSpecSet() throws IOException {
8282
CreateAnnotationSpecSet.createAnnotationSpecSet(PROJECT_ID);
8383

8484
String output = bout.toString();

datalabeling/beta/cloud-client/src/test/java/com/example/datalabeling/CreateDatasetIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public void tearDown() {
7979
}
8080

8181
@Test
82-
public void testCreateDataset() {
82+
public void testCreateDataset() throws IOException {
8383
CreateDataset.createDataset(PROJECT_ID,datasetName);
8484

8585
String output = bout.toString();

datalabeling/beta/cloud-client/src/test/java/com/example/datalabeling/CreateInstructionIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public void tearDown() {
8080
}
8181

8282
@Test
83-
public void testCreateInstruction() {
83+
public void testCreateInstruction() throws IOException {
8484
CreateInstruction.createInstruction(PROJECT_ID, GCS_SOURCE_URI);
8585

8686
String output = bout.toString();

datalabeling/beta/cloud-client/src/test/java/com/example/datalabeling/ImportDataIT.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public class ImportDataIT {
5252
private static Dataset dataset;
5353

5454
@Before
55-
public void setUp() {
55+
public void setUp() throws IOException {
5656
bout = new ByteArrayOutputStream();
5757
System.setOut(new PrintStream(bout));
5858

@@ -104,7 +104,7 @@ public void tearDown() {
104104
}
105105

106106
@Test
107-
public void testImportDataset() {
107+
public void testImportDataset() throws IOException {
108108
ImportData.importData(dataset.getName(), GCS_SOURCE_URI);
109109

110110
String output = bout.toString();

datalabeling/beta/cloud-client/src/test/java/com/example/datalabeling/LabelImageIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public void tearDown() {
129129
}
130130

131131
@Test
132-
public void testLabelImage() {
132+
public void testLabelImage() throws IOException {
133133
// Start the labeling task
134134
LabelImage.labelImage(instruction.getName(), annotationSpecSet.getName(), dataset.getName());
135135
}

datalabeling/beta/cloud-client/src/test/java/com/example/datalabeling/LabelTextIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public void tearDown() {
147147
}
148148

149149
@Test
150-
public void testLabelText() {
150+
public void testLabelText() throws IOException {
151151
// Start the labeling task
152152
LabelText.labelText(instruction.getName(), annotationSpecSet.getName(), dataset.getName());
153153
}

datalabeling/beta/cloud-client/src/test/java/com/example/datalabeling/LabelVideoIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ public void tearDown() {
149149
}
150150

151151
@Test
152-
public void testLabelVideo() {
152+
public void testLabelVideo() throws IOException {
153153
// Start the labeling task
154154
LabelVideo.labelVideo(instruction.getName(), annotationSpecSet.getName(), dataset.getName());
155155
}

0 commit comments

Comments
 (0)