package test.integration;

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

import com.github.sormuras.bach.Project;
import com.github.sormuras.bach.project.JavaStyle;
import com.github.sormuras.bach.project.Libraries;
import java.lang.module.ModuleDescriptor;
import org.junit.jupiter.api.Test;

class ProjectTests {

  @Test
  void defaults() {
    var project = new Project();
    assertEquals("noname", project.name().name());
    assertEquals(ModuleDescriptor.Version.parse("0"), project.version().version());
    assertEquals(Libraries.of(), project.libraries());
    assertEquals(JavaStyle.FREE, project.spaces().style());
  }
}

package test.integration;

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

import com.github.sormuras.bach.Project;
import com.github.sormuras.bach.project.JavaStyle;
import com.github.sormuras.bach.project.Libraries;
import java.lang.module.ModuleDescriptor.Version;
import org.junit.jupiter.api.Test;

class ProjectTests {

  @Test
  void defaults() {
    var project = new Project();
    assertEquals("noname", project.name().name());
    assertEquals(Version.parse("0"), project.version().version());
    assertEquals(Libraries.of(), project.libraries());
    assertEquals(JavaStyle.FREE, project.spaces().style());
  }
}

--- 
+++ 
@@ -5,7 +5,7 @@
 import com.github.sormuras.bach.Project;
 import com.github.sormuras.bach.project.JavaStyle;
 import com.github.sormuras.bach.project.Libraries;
-import java.lang.module.ModuleDescriptor.Version;
+import java.lang.module.ModuleDescriptor;
 import org.junit.jupiter.api.Test;
 
 class ProjectTests {
@@ -14,7 +14,7 @@
   void defaults() {
     var project = new Project();
     assertEquals("noname", project.name().name());
-    assertEquals(Version.parse("0"), project.version().version());
+    assertEquals(ModuleDescriptor.Version.parse("0"), project.version().version());
     assertEquals(Libraries.of(), project.libraries());
     assertEquals(JavaStyle.FREE, project.spaces().style());
   }
Optimize readability of expected value

[skip ci]
