Skip to content

Commit

Permalink
Remove List.of syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
cielowu committed Sep 10, 2020
1 parent f2f9e93 commit 90cfa6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/java/com/asana/resources/TasksTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
import com.asana.AsanaTest;
import com.asana.models.Attachment;
import com.asana.models.Task;
import com.sun.tools.javac.util.List;

import org.junit.Test;

import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;

import static org.junit.Assert.assertEquals;

Expand All @@ -24,7 +24,7 @@ public void testGetTaskWithAttachments() throws IOException {

Task task = client.tasks
.findById("1")
.option("fields", List.of("gid", "name", "attachments.name"))
.option("fields", Arrays.asList("gid", "name", "attachments.name"))
.execute();

assertEquals("1", task.gid);
Expand Down

0 comments on commit 90cfa6d

Please sign in to comment.