Skip to content

Commit

Permalink
Fix up
Browse files Browse the repository at this point in the history
  • Loading branch information
CH3CHO committed Jan 20, 2024
1 parent 04e34de commit c27051f
Show file tree
Hide file tree
Showing 27 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;

import org.junit.jupiter.api.AfterEach;
Expand All @@ -40,13 +41,16 @@
import io.kubernetes.client.openapi.models.V1ObjectMeta;
import io.kubernetes.client.openapi.models.V1TypedLocalObjectReference;

import static org.mockito.Mockito.mock;

public class KubernetesModelConverterTest {

private KubernetesModelConverter converter;

@BeforeEach
public void setUp() {
converter = new KubernetesModelConverter();
KubernetesClientService service = mock(KubernetesClientService.class);
converter = new KubernetesModelConverter(service);
}

@AfterEach
Expand Down Expand Up @@ -577,6 +581,7 @@ private static Route buildBasicRoute() {
route.setDomains(new ArrayList<>());
route.setPath(new RoutePredicate());
route.setCors(new CorsConfig());
route.setCustomConfigs(new HashMap<>());
return route;
}
}

0 comments on commit c27051f

Please sign in to comment.