File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed
main/java/io/kubernetes/client/util
test/java/io/kubernetes/client/util Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -278,7 +278,7 @@ public static ClientBuilder kubeconfig(KubeConfig config) throws IOException {
278278
279279 String server = config .getServer ();
280280 if (server == null ) {
281- throw new IllegalArgumentException ("No server in kubeconfig" );
281+ throw new IllegalArgumentException ("No server in kubeconfig" );
282282 }
283283 if (!server .contains ("://" )) {
284284 if (server .contains (":443" )) {
Original file line number Diff line number Diff line change 3232import java .io .IOException ;
3333import java .nio .file .Files ;
3434import java .nio .file .Paths ;
35-
3635import org .junit .Test ;
3736
3837/** Tests for the ConfigBuilder helper class */
@@ -304,10 +303,13 @@ public void testSettingPassphraseForKubeConfigShouldWork() throws IOException {
304303
305304 @ Test
306305 public void testDetectsServerNotSet () {
307- assertThrows ("No server in kubeconfig" , IllegalArgumentException .class , () -> {
308- KubeConfig kubeConfigWithoutServer = mock (KubeConfig .class );
306+ assertThrows (
307+ "No server in kubeconfig" ,
308+ IllegalArgumentException .class ,
309+ () -> {
310+ KubeConfig kubeConfigWithoutServer = mock (KubeConfig .class );
309311
310- ClientBuilder .kubeconfig (kubeConfigWithoutServer );
311- });
312+ ClientBuilder .kubeconfig (kubeConfigWithoutServer );
313+ });
312314 }
313315}
You can’t perform that action at this time.
0 commit comments