package test.modules;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;

import com.github.sormuras.bach.Bach;
import java.lang.module.ModuleDescriptor;
import org.junit.jupiter.api.Test;

class BachTests {
  @Test
  void versionIsNotNull() {
    assertNotNull(Bach.version());
  }

  @Test
  void versionIsParsable() {
    var version = Bach.version();
    assertEquals(version, ModuleDescriptor.Version.parse(version).toString());
  }
}

@@ -138,16 +138,75 @@
 NotNull;
+%0Aimport static org.junit.jupiter.api.Assertions.assertSame;
 %0A%0Aimport
@@ -279,16 +279,49 @@
 riptor;%0A
+import java.net.http.HttpClient;%0A
 import o
@@ -348,16 +348,16 @@
 .Test;%0A%0A
-
 class Ba
@@ -366,16 +366,212 @@
 Tests %7B%0A
+  @Test%0A  void defaults() %7B%0A    var bach = Bach.ofSystem();%0A    assertSame(System.out, bach.printStream());%0A    assertEquals(HttpClient.Redirect.NORMAL, bach.httpClient().followRedirects());%0A  %7D%0A%0A
   @Test%0A

Check Bach's default components