File tree Expand file tree Collapse file tree
alpha-core/src/test/java/com/techsenger/alpha/core/impl/component
alpha-repo/alpha-repo-core/src/main/java/com/techsenger/alpha/repo/core Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818
1919import com .techsenger .alpha .core .api .component .ComponentConfigInfo ;
2020import com .techsenger .alpha .core .api .module .ModuleConfig ;
21+ import com .techsenger .toolkit .core .version .Version ;
2122import java .io .File ;
2223import java .io .IOException ;
2324import java .net .URISyntaxException ;
@@ -116,7 +117,7 @@ public void read_nestedIfChooseConditionsForSolarisSystemProperty_success()
116117 private void assertModule (ModuleConfig module , int index , String classifier ) {
117118 assertThat (module .getGroupId ()).isEqualTo ("group" + index );
118119 assertThat (module .getArtifactId ()).isEqualTo ("artifact" + index );
119- assertThat (module .getVersion ()).isEqualTo (index + ".0.0" );
120+ assertThat (module .getVersion ()).isEqualTo (Version . of ( index + ".0.0" ) );
120121 assertThat (module .getClassifier ()).isEqualTo (classifier );
121122 }
122123}
Original file line number Diff line number Diff line change 2626import com .techsenger .reposium .core .DefaultArtifactDescriptor ;
2727import com .techsenger .reposium .core .MavenRepo ;
2828import com .techsenger .toolkit .core .SingletonFactory ;
29+ import com .techsenger .toolkit .core .version .Version ;
2930import java .io .IOException ;
3031import java .util .List ;
3132import java .util .Map ;
@@ -108,7 +109,7 @@ private ArtifactDescriptor artifactToDescriptor(ModuleArtifact artifactor) {
108109 return new DefaultArtifactDescriptor (
109110 artifactor .getGroupId (),
110111 artifactor .getArtifactId (),
111- artifactor .getVersion (),
112+ artifactor .getVersion (). toString () ,
112113 artifactor .getClassifier (),
113114 artifactor .getType ().toString ().toLowerCase ());
114115 }
@@ -117,7 +118,7 @@ private ModuleArtifact descriptorToArtifact(ArtifactDescriptor descriptor) {
117118 return new DefaultModuleArtifact (
118119 descriptor .getGroupId (),
119120 descriptor .getArtifactId (),
120- descriptor .getVersion (),
121+ Version . of ( descriptor .getVersion () ),
121122 descriptor .getClassifier (),
122123 ModuleType .valueOf (descriptor .getType ().toUpperCase ()));
123124 }
You can’t perform that action at this time.
0 commit comments