Skip to content

Commit

Permalink
Add Unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
ngohungphuc authored and santam85 committed Aug 9, 2022
1 parent a03e5c8 commit fbb2ccb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ private void addDependencies(SemVer angularVersion) {

if (angularVersion.atLeast("13.0.0")) {
additionalProperties.put(tsVersion, ">=4.4.2");
additionalProperties.put(ngPackagrVersion, "13.0.1");
additionalProperties.put(ngPackagrVersion, "13.3.1");
additionalProperties.put(rxjsVersion, "7.5.0");
} else if (angularVersion.atLeast("11.0.0")) {
additionalProperties.put(tsVersion, ">=4.2.0");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
package com.backbase.oss.codegen.angular;

import java.util.Optional;
import java.util.*;
import java.util.function.Supplier;
import java.util.stream.Collectors;
import lombok.SneakyThrows;
import org.apache.commons.io.FileUtils;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.DynamicNode;
import org.junit.jupiter.api.DynamicTest;
import org.junit.jupiter.api.TestFactory;
import org.assertj.core.api.Assert;
import org.junit.jupiter.api.*;
import org.openapitools.codegen.ClientOptInput;
import org.openapitools.codegen.CodegenConstants;
import org.openapitools.codegen.DefaultGenerator;
import org.openapitools.codegen.config.CodegenConfigurator;
import org.openapitools.codegen.config.GlobalSettings;
import org.openapitools.codegen.languages.AbstractTypeScriptClientCodegen;

import org.openapitools.codegen.utils.SemVer;
import java.io.File;
import java.io.IOException;
import java.lang.annotation.ElementType;
Expand All @@ -24,9 +23,6 @@
import java.lang.reflect.Method;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import java.util.function.Predicate;
import java.util.regex.Pattern;
import java.util.stream.IntStream;
Expand Down Expand Up @@ -285,7 +281,7 @@ static class Combination {

Combination(int mask) {
this.name = caseName(mask);
this.ngVersion = mask == 0 ? "10.0.0" : mask == 1 ? "11.0.0" : null;
this.ngVersion = mask == 0 ? "10.0.0" : mask == 1 ? "11.0.0" : mask == 2 ? "12.0.0" : mask == -1 ? "13.0.0" : null;
this.foundationVersion = mask == 0 ? "6.0.0" : mask == 1 ? "7.0.0" : null;
this.buildDist = mask > 0 ? caseName(mask) : null;
this.npmName = (mask & 1) != 0;
Expand Down

0 comments on commit fbb2ccb

Please sign in to comment.