Skip to content

Commit

Permalink
fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
george-harness committed Jun 8, 2021
1 parent fbf0ee0 commit c1e50b1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/compiler/compiler.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ const importsTemplate = `import %s;
import %s.%sKeys;
import io.harness.persistence.HPersistence;
import io.harness.query.PersistentQuery;
import org.mongodb.morphia.query.Query;`
import org.mongodb.morphia.query.Query;
import com.google.common.collect.ImmutableList;
import java.util.List;`

const queryCanonicalFormsTemplate = `
List<String> queryCanonicalForms() {
Expand Down
5 changes: 4 additions & 1 deletion src/compiler/compiler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ import io.harness.beans.DelegateTask.DelegateTaskKeys;
import io.harness.persistence.HPersistence;
import io.harness.query.PersistentQuery;
import org.mongodb.morphia.query.Query;
import com.google.common.collect.ImmutableList;
import java.util.List;
public class DelegateTaskSelectQuery implements PersistentQuery {
public static SelectQueryAccountId create(HPersistence persistence) {
Expand Down Expand Up @@ -72,7 +74,6 @@ public class DelegateTaskSelectQuery implements PersistentQuery {
result := compiler.Generate(&query)
assert.Equal(t, expected, result)


query1 := dom.Query{
Name: "Select",
Collection: "io.harness.beans.DelegateTask",
Expand All @@ -89,6 +90,8 @@ import io.harness.beans.DelegateTask.DelegateTaskKeys;
import io.harness.persistence.HPersistence;
import io.harness.query.PersistentQuery;
import org.mongodb.morphia.query.Query;
import com.google.common.collect.ImmutableList;
import java.util.List;
public class DelegateTaskSelectQuery implements PersistentQuery {
public static SelectQueryAccountId create(HPersistence persistence) {
Expand Down

0 comments on commit c1e50b1

Please sign in to comment.