Skip to content

Commit

Permalink
fix java code style
Browse files Browse the repository at this point in the history
  • Loading branch information
ZP-AlwaysWin committed Aug 22, 2019
1 parent c873380 commit 6dfe29a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
10 changes: 5 additions & 5 deletions cassandra/java/src/main/java/io/k8s/cassandra/GoInterface.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
import com.sun.jna.Structure;

public interface GoInterface extends Library {
public String GetEndpoints(String namespace, String service, String seeds);
String GetEndpoints(String namespace, String service, String seeds);

public class GoSlice extends Structure {
class GoSlice extends Structure {
public static class ByValue extends GoSlice implements Structure.ByValue {
}

Expand All @@ -36,19 +36,19 @@ public static class ByValue extends GoSlice implements Structure.ByValue {
public long cap;

protected List<String> getFieldOrder() {
return Arrays.asList(new String[] { "data", "len", "cap" });
return Arrays.asList("data", "len", "cap" );
}
}

public class GoString extends Structure {
class GoString extends Structure {
public static class ByValue extends GoString implements Structure.ByValue {
}

public String p;
public long n;

protected List<String> getFieldOrder() {
return Arrays.asList(new String[] { "p", "n" });
return Arrays.asList("p", "n" );
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@
import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.not;
import static org.junit.Assert.assertThat;
import static org.junit.Assert.assertTrue;

import java.net.InetAddress;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;

Expand All @@ -36,12 +38,12 @@ public class KubernetesSeedProviderTest {
private static final Logger logger = LoggerFactory.getLogger(KubernetesSeedProviderTest.class);

@Test
@Ignore("has to be run inside of a kube cluster")
@Ignore("has to be run inside of a kubernetes cluster")
public void getSeeds() throws Exception {
SeedProvider provider = new KubernetesSeedProvider(new HashMap<String, String>());
List<InetAddress> seeds = provider.getSeeds();

assertThat(seeds, is(not(empty())));
assertThat(seeds, not(empty()));

}
}

0 comments on commit 6dfe29a

Please sign in to comment.