diff --git a/[Help b/[Help new file mode 100644 index 000000000..e69de29bb diff --git a/nondex-workflow.diff b/nondex-workflow.diff new file mode 100644 index 000000000..9b462dafa --- /dev/null +++ b/nondex-workflow.diff @@ -0,0 +1,45141 @@ +diff --git a/.github/dependabot.yml b/.github/dependabot.yml +deleted file mode 100644 +index 512939f9c..000000000 +--- a/.github/dependabot.yml ++++ /dev/null +@@ -1,7 +0,0 @@ +-version: 2 +-updates: +- - package-ecosystem: "maven" +- directory: "/" +- schedule: +- interval: "monthly" +- open-pull-requests-limit: 10 +diff --git a/.github/workflows/nondex-test.yml b/.github/workflows/nondex-test.yml +new file mode 100644 +index 000000000..809113809 +--- /dev/null ++++ b/.github/workflows/nondex-test.yml +@@ -0,0 +1,35 @@ ++# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time ++# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven ++ ++# This workflow uses actions that are not certified by GitHub. ++# They are provided by a third-party and are governed by ++# separate terms of service, privacy policy, and support ++# documentation. ++ ++name: Java CI with Maven ++ ++on: push ++ ++jobs: ++ build: ++ ++ runs-on: ubuntu-latest ++ ++ steps: ++ - uses: actions/checkout@v4 ++ - name: Set up JDK 8 ++ uses: actions/setup-java@v4 ++ with: ++ java-version: '8' ++ distribution: 'temurin' ++ cache: maven ++ - name: Without Nondex ++ run: mvn -pl typescript-generator-core test -Dtest=cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces ++ - name: Nondex ++ run: mvn edu.illinois:nondex-maven-plugin:1.1.2:nondex \ ++ -Dtest=cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces \ ++ -DnondexRuns=10 ++ ++ # Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive ++ - name: Update dependency graph ++ uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6 +diff --git a/.github/workflows/release-gradle-plugin.yml b/.github/workflows/release-gradle-plugin.yml +deleted file mode 100644 +index 1fd4ccce1..000000000 +--- a/.github/workflows/release-gradle-plugin.yml ++++ /dev/null +@@ -1,35 +0,0 @@ +- +-name: Release to Gradle plugin portal +- +-on: +- workflow_dispatch: +- inputs: +- version: +- description: typescript-generator version +- required: true +- type: string +- +-jobs: +- release: +- runs-on: windows-latest +- steps: +- +- - name: Checkout workflow +- uses: actions/checkout@v3 +- +- - name: Setup Java +- uses: actions/setup-java@v3 +- with: +- distribution: temurin +- java-version: 11 +- +- - name: Execute Gradle publish +- uses: gradle/gradle-build-action@v2 +- with: +- gradle-version: 7.5.1 +- build-root-directory: build\typescript-generator-gradle-plugin-publisher +- arguments: printVersion publishPlugins +- env: +- ORG_GRADLE_PROJECT_version: ${{ inputs.version }} +- GRADLE_PUBLISH_KEY: ${{ secrets.GRADLE_PUBLISH_KEY }} +- GRADLE_PUBLISH_SECRET: ${{ secrets.GRADLE_PUBLISH_SECRET }} +diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml +deleted file mode 100644 +index 2500e684f..000000000 +--- a/.github/workflows/release.yml ++++ /dev/null +@@ -1,32 +0,0 @@ +- +-name: Release to Maven Central +- +-on: +- workflow_dispatch: +- +-jobs: +- release: +- runs-on: windows-latest +- +- steps: +- - name: Checkout workflow +- uses: actions/checkout@v2 +- - name: Setup GPG signing key +- run: | +- if (-not $env:GPG_SIGNING_KEY) { +- Write-Error "Please set GPG_SIGNING_KEY environment variable" +- exit 1 +- } +- mkdir target -Force | Out-Null +- $gpg_signing_key = [Convert]::FromBase64String($env:GPG_SIGNING_KEY) +- [System.IO.File]::WriteAllBytes("target/gpg_signing_key.bin", $gpg_signing_key) +- gpg --import target/gpg_signing_key.bin +- gpg --list-secret-keys +- env: +- GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }} +- - name: Sign and upload +- run: | +- ./build/release-build.ps1 +- env: +- OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} +- OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} +diff --git a/.gitignore b/.gitignore +index 0195d9e5e..6a3a87d8f 100644 +--- a/.gitignore ++++ b/.gitignore +@@ -1,45 +1,16 @@ +-# Maven + target/ + pom.xml.tag + pom.xml.releaseBackup + pom.xml.versionsBackup + pom.xml.next + release.properties +- +-# Gradle + /sample-gradle/.gradle/ + /sample-gradle/.nb-gradle/ +-/sample-gradle/bin/ + /sample-gradle/build/ +-/sample-gradle-spring/.gradle/ +-/sample-gradle-spring/.nb-gradle/ +-/sample-gradle-spring/bin/ +-/sample-gradle-spring/build/ +-.gradle +-gradlew* +-gradle-wrapper* +- +-# nodejs +-node/ +- +-# npm +-node_modules +- +-# NetBeans +-nbactions.xml +- +-# Eclipse + **.classpath + **.project + **.settings + +-# JetBrains IntelliJ ++# JetBrain IntelliJ + .idea/ +-*.iml +- +-# VS Code +-.vscode +- +-# generated files +-typescript-generator-core/src/test/**/*.js +-typescript-generator-core/src/test/**/*.js.map ++**.iml +\ No newline at end of file +diff --git a/README.md b/README.md +index c3308e300..0561cc6d1 100644 +--- a/README.md ++++ b/README.md +@@ -1,20 +1,7 @@ +-[![Maven Central](https://img.shields.io/maven-central/v/cz.habarta.typescript-generator/typescript-generator-core.svg)](https://repo1.maven.org/maven2/cz/habarta/typescript-generator/typescript-generator-core/) +-[![Appveyor](https://img.shields.io/appveyor/ci/vojtechhabarta/typescript-generator/main.svg)](https://ci.appveyor.com/project/vojtechhabarta/typescript-generator) +-[![Stars](https://img.shields.io/github/stars/vojtechhabarta/typescript-generator.svg?style=social)](https://github.com/vojtechhabarta/typescript-generator) +- +-Quick links: +-[Configuration parameters](https://www.habarta.cz/typescript-generator/maven/typescript-generator-maven-plugin/generate-mojo.html) +-| +-[Breaking changes](https://github.com/vojtechhabarta/typescript-generator/wiki/Breaking-Changes) +-| +-[Release notes](https://github.com/vojtechhabarta/typescript-generator/releases) +-| +-[Playground _(beta)_](https://jechlin.github.io/ts-gen-aws/) +- + typescript-generator + ==================== + typescript-generator is a tool for generating TypeScript definition files (.d.ts) from Java JSON classes. +-If you have REST service written in Java (or another JVM language) using object to JSON mapping you can use typescript-generator to generate TypeScript interfaces from Java classes. ++If you have REST service written in Java using object to JSON mapping you can use typescript-generator to generate TypeScript interfaces from Java classes. + + For example for this Java class: + +@@ -68,16 +55,17 @@ In Maven build you can use `typescript-generator-maven-plugin` like this: + + generate + +- process-classes ++ ++ jackson2 ++ ++ cz.habarta.typescript.generator.Person ++ ++ target/rest.d.ts ++ global ++ Rest ++ + + +- +- jackson2 +- +- cz.habarta.typescript.generator.Person +- +- module +- + + ``` + +@@ -90,44 +78,26 @@ Gradle + + In Gradle build you can use `cz.habarta.typescript-generator` plugin like this: + ```groovy +-plugins { +- id 'cz.habarta.typescript-generator' version 'x.y.z' ++apply plugin: 'cz.habarta.typescript-generator' ++buildscript { ++ repositories { ++ mavenCentral() ++ } ++ dependencies { ++ classpath group: 'cz.habarta.typescript-generator', name: 'typescript-generator-gradle-plugin', version: 'x.y.z' ++ } + } +- + generateTypeScript { + jsonLibrary = 'jackson2' + classes = [ + 'cz.habarta.typescript.generator.sample.Person' + ] +- outputKind = 'module' ++ outputFile = 'build/sample.d.ts' ++ outputKind = 'global' ++ namespace = 'Rest'; + } + ``` + +-For the Kotlin Gradle DSL you can alternatively use the `cz.habarta.typescript-generator` plugin like this: +- +-#### build.gradle.kts +-```kotlin +-import cz.habarta.typescript.generator.JsonLibrary +-import cz.habarta.typescript.generator.TypeScriptFileType +-import cz.habarta.typescript.generator.TypeScriptOutputKind +- +-plugins { +- id("cz.habarta.typescript-generator") version "x.y.z" +-} +- +-tasks { +- generateTypeScript { +- jsonLibrary = JsonLibrary.jackson2 +- outputKind = TypeScriptOutputKind.module +- outputFileType = TypeScriptFileType.implementationFile +- ... +- } +-} +-``` +- +-You can run typescript-generator on demand using `gradle generateTypeScript` command +-or you can invoke it as part of another task by adding dependency from that task to `generateTypeScript` task in Gradle build file. +- + More complete sample can be found [here](sample-gradle). + Gradle plugin has the same features as Maven plugin, for detailed description see Maven generated [site](http://vojtechhabarta.github.io/typescript-generator/maven/typescript-generator-maven-plugin/generate-mojo.html). + +@@ -144,7 +114,7 @@ Input classes can be specified using several parameters: + - **`classPatterns`** - list of glob patterns like `com.example.*Json`, includes all classes matched by the pattern, supported are `*` and `**` wildcards + - **`classesFromJaxrsApplication`** - fully qualified name of JAX-RS application class, all classes used by application resources will be included, recommended if you have JAX-RS application class + - **`classesFromAutomaticJaxrsApplication`** - value `true` will include classes from automatically discovered REST resources, recommended if you have JAX-RS application without `Application` subclass +-- **`excludeClasses`** - list of fully qualified class names, excluded classes will be mapped to TypeScript `any` type, if excluded class is a resource then this resource will not be scanned for used classes ++- **`excludeClasses`** - list of fully qualified class names, excluded classes will be mapped to TypeScript `any` type, if exluded class is a resource then this resource will not be scanned for used classes + + > Note: it is possible to use multiple parameters at the same time. + +@@ -153,39 +123,14 @@ For more details see [Class Names Glob Patterns](../../wiki/Class-Names-Glob-Pat + + Output parameters + ----------------- +-Output is configured using several parameters: +-- `outputKind` (required parameter) - determines if and how module will be generated ++Output is configured using several parameters, two of them are mandatory: ++- `outputFile` - specifies path and name of output file ++- `outputKind` - determines if and how module will be generated + - values are: `global`, `module`, `ambientModule` +-- `outputFileType` - specifies TypeScript file type +- - values are: `declarationFile` (.d.ts) or `implementationFile` (.ts) +-- `outputFile` - specifies path and name of output file + + For more details see [Modules and Namespaces](http://vojtechhabarta.github.io/typescript-generator/doc/ModulesAndNamespaces.html) page. + + +-REST frameworks +---------------- +-Typescript-generator can generate not only TypeScript declarations for JSON Java classes but it can also generate client classes for REST services. Supported REST frameworks are JAX-RS and Spring. Client for JAX-RS service can be generated using `generateJaxrsApplicationClient` parameter, client for Spring service can be generated using `generateSpringApplicationClient`. Since Spring support is in separate module it is needed to add this module to typescript-generator dependencies. Here is example for Maven: +-``` xml +- +- cz.habarta.typescript-generator +- typescript-generator-maven-plugin +- ${typescript-generator.version} +- +- true +- ... +- +- +- +- cz.habarta.typescript-generator +- typescript-generator-spring +- ${typescript-generator.version} +- +- +- +-``` +- +- + Download + -------- + Releases are available from Maven Central Repository. +@@ -206,7 +151,7 @@ Architecture + ``` + (Model) (TsModel) + ModelParser ==> ModelCompiler ==> Emitter +- | | ++ | | + V V + TypeProcessor + ``` +@@ -220,23 +165,15 @@ ModelParser ==> ModelCompiler ==> Emitter + - `Emitter` takes `TsModel` and produces TypeScript declaration file. + + +-Links +------ +- +-- http://www.rainerhahnekamp.com/type-safe-endpoints-with-typescript-and-java - blog post about using typescript-generator not only with Spring MVC +-- http://www.jsweet.org/10-reasons-to-use-jsweet - blog post about JSweet transpiler mentions typescript-generator +-- https://github.com/raphaeljolivet/java2typescript - tool similar to typescript-generator +- +- + Contributing + ------------ + +-- current major version supports Java 8 and later (version 1 supported Java 7 and 8) ++- this project targets Java 7 + - keep pull requests small and focused ([10 tips for better Pull Requests](http://blog.ploeh.dk/2015/01/15/10-tips-for-better-pull-requests/)) + - do not add dependencies unless previously discussed in issue + + ### Code formatting + + - use 4 spaces for indentation in Java files +-- sort java imports alphabetically (including static imports), do not use wildcard (star) imports +-- please do not reformat whole files in IDE (prevent accidental changes to unrelated lines) ++- sort java imports alphabetically, you can use wildcards ++- please do not reformat whole files in IDE +diff --git a/appveyor.yml b/appveyor.yml +index 2852ddce4..d5049a2a6 100644 +--- a/appveyor.yml ++++ b/appveyor.yml +@@ -1,15 +1,9 @@ +-version: 3.2.{build} ++version: 1.12.{build} + pull_requests: + do_not_increment_build_number: true + skip_tags: true +-cache: +-- '%USERPROFILE%\.m2\repository -> appveyor.yml' +-init: +-- ps: |- +- if ($env:APPVEYOR_REPO_BRANCH -ne "main" -or $env:APPVEYOR_PULL_REQUEST_NUMBER) +- { +- $env:APPVEYOR_CACHE_SKIP_SAVE = "true" +- } ++environment: ++ JAVA_HOME: C:\Program Files\Java\jdk1.7.0 + install: + - ps: |- + git remote set-url origin https://github.com/vojtechhabarta/typescript-generator.git +@@ -18,14 +12,13 @@ install: + build_script: + - ps: |- + Write-Host -ForegroundColor Cyan "Building version: $($env:APPVEYOR_BUILD_VERSION)" +- $env:JAVA_HOME = "C:\Program Files\Java\jdk11" +- $env:PATH = "$env:JAVA_HOME\bin;$env:PATH" +- mvn -version +- mvn --batch-mode versions:set "-DnewVersion=$($env:APPVEYOR_BUILD_VERSION)"; if ($LASTEXITCODE -ne 0) { throw "Build failed" } +- mvn --batch-mode -P attach-artifacts clean install -P local-deploy; if ($LASTEXITCODE -ne 0) { throw "Build failed" } +- if ($env:APPVEYOR_REPO_BRANCH -eq "main" -and -not $env:APPVEYOR_PULL_REQUEST_NUMBER) ++ choco install maven -version 3.3.9.1 -y ++ $mvn = "C:\tools\apache-maven-3.3.9\bin\mvn.cmd" ++ &$mvn --batch-mode versions:set "-DnewVersion=$($env:APPVEYOR_BUILD_VERSION)"; if ($LASTEXITCODE -ne 0) { throw "Build failed" } ++ &$mvn --batch-mode -P attach-artifacts clean install -P local-deploy; if ($LASTEXITCODE -ne 0) { throw "Build failed" } ++ if ($env:APPVEYOR_REPO_BRANCH -eq "master" -and -not $env:APPVEYOR_PULL_REQUEST_NUMBER) + { +- mvn --batch-mode site-deploy "-Dgithub.site.oauth2Token=$($env:access_token)"; if ($LASTEXITCODE -ne 0) { throw "Build failed" } ++ &$mvn --batch-mode site-deploy "-Dgithub.site.oauth2Token=$($env:access_token)"; if ($LASTEXITCODE -ne 0) { throw "Build failed" } + } + + Write-Host -ForegroundColor Cyan "Archiving artifacts" +@@ -37,7 +30,7 @@ artifacts: + - path: target\artifacts.zip + on_success: + - ps: |- +- if ($env:APPVEYOR_REPO_BRANCH -eq "main" -and -not $env:APPVEYOR_PULL_REQUEST_NUMBER) ++ if ($env:APPVEYOR_REPO_BRANCH -eq "master" -and -not $env:APPVEYOR_PULL_REQUEST_NUMBER) + { + Write-Host -ForegroundColor Cyan "Tagging version v$($env:APPVEYOR_BUILD_VERSION)" + git tag "v$($env:APPVEYOR_BUILD_VERSION)" $env:APPVEYOR_REPO_COMMIT +diff --git a/build/download-appveyor-artifacts.ps1 b/build/download-appveyor-artifacts.ps1 +index 9ddea4b85..9c7be6805 100644 +--- a/build/download-appveyor-artifacts.ps1 ++++ b/build/download-appveyor-artifacts.ps1 +@@ -9,7 +9,7 @@ $jobId = $project.build.jobs[0].jobId + $artifactsUri = "$apiUrl/buildjobs/$jobId/artifacts/target/artifacts.zip" + Write-Host -ForegroundColor DarkCyan "Downloading '$artifactsUri'..." + $zipFilePath = "target\artifacts.zip" +-$zipFileDirectory = New-Item -ItemType directory -Path (Split-Path $zipFilePath) -Force ++$zipFileDirectory = mkdir (Split-Path $zipFilePath) -Force + Invoke-RestMethod -Method Get -Uri $artifactsUri -OutFile $zipFilePath + $zipFile = Get-Item $zipFilePath + $zipFile.FullName +diff --git a/build/how-to-release.md b/build/how-to-release.md +deleted file mode 100644 +index e833f678a..000000000 +--- a/build/how-to-release.md ++++ /dev/null +@@ -1,15 +0,0 @@ +-# How to release typescript-generator +- +-- change version in `pom.xml` files and `appveyor.yml` (if not already changed) +-- wait for the build +-- run "Release to Maven Central" GitHub Action which releases last build +-- go to https://oss.sonatype.org and promote the release +- - "Staging Repositories" +- - "Close" the repo +- - wait for closing activities +- - "Release" the repo +-- wait for the release to appear in Maven Central - https://repo1.maven.org/maven2/cz/habarta/typescript-generator/ +-- write release notes +-- run "Release to Gradle plugin portal" GitHub Action +-- close/update relevant issues and PRs +-- remove unused tags +diff --git a/build/release-build.ps1 b/build/release-build.ps1 +index f9d41d852..3b17d66ed 100644 +--- a/build/release-build.ps1 ++++ b/build/release-build.ps1 +@@ -1,51 +1,52 @@ + +-# Releases latest build to Maven Central Repository +-# Prerequisites: +-# - gpg with signing key without passphrase +-# - OSSRH_USERNAME +-# - OSSRH_PASSWORD +- +-if (-not $env:OSSRH_USERNAME -or -not $env:OSSRH_PASSWORD) { +- Write-Error "Please set OSSRH_USERNAME and OSSRH_PASSWORD environment variables" +- exit 1 +-} +- + $ErrorActionPreference = "Stop" + + # download +-$zipFile = ./build/download-appveyor-artifacts.ps1 ++$zipFile = .\build\download-appveyor-artifacts.ps1 + + # unzip + Write-Host -ForegroundColor DarkCyan "Unzipping..." +-$unzipDirectoryPath = "target/gpg-sign" +-Remove-Item -Recurse -Force $unzipDirectoryPath -ErrorAction SilentlyContinue +-Remove-Item -Recurse -Force $unzipDirectoryPath -ErrorAction SilentlyContinue +-$unzipDirectory = New-Item -ItemType directory -Path $unzipDirectoryPath -Force ++$unzipDirectoryPath = "target\gpg-sign" ++rm -Recurse -Force $unzipDirectoryPath -ErrorAction SilentlyContinue ++rm -Recurse -Force $unzipDirectoryPath -ErrorAction SilentlyContinue ++$unzipDirectory = mkdir $unzipDirectoryPath -Force + [System.Reflection.Assembly]::LoadWithPartialName("System.IO.Compression.FileSystem") | Out-Null + [System.IO.Compression.ZipFile]::ExtractToDirectory($zipFile, $unzipDirectory.FullName) + $basePath = (Resolve-Path $unzipDirectory).Path + ++# passphrase ++$securePassphrase = Read-Host -Prompt "Enter signing key passphrase" -AsSecureString ++$passphraseCredential = New-Object System.Management.Automation.PSCredential -ArgumentList "Domain\User", $securePassphrase ++$passphrase = $passphraseCredential.GetNetworkCredential().Password ++"test" | gpg --detach-sign --armor --passphrase $passphrase | Out-Null ++if (! $?) { ++ exit ++} ++ + # sign +-foreach ($file in Get-ChildItem -Recurse -File $basePath -Exclude *.md5,*.sha1) { ++foreach ($file in dir -Recurse -File $basePath -Exclude *.md5,*.sha1) { + $path = $file.FullName.Substring($basePath.Length + 1) + Write-Host -ForegroundColor DarkCyan "Signing $path..." +- gpg --detach-sign --armor $file.FullName +- Get-FileHash -Algorithm MD5 $file.FullName | ForEach-Object { [IO.File]::WriteAllText($file.FullName + ".md5", $_.Hash) } +- Get-FileHash -Algorithm SHA1 $file.FullName | ForEach-Object { [IO.File]::WriteAllText($file.FullName + ".sha1", $_.Hash) } ++ gpg --detach-sign --armor --passphrase $passphrase $file.FullName ++ Get-FileHash -Algorithm MD5 $file.FullName | % { [IO.File]::WriteAllText($file.FullName + ".md5", $_.Hash) } ++ Get-FileHash -Algorithm SHA1 $file.FullName | % { [IO.File]::WriteAllText($file.FullName + ".sha1", $_.Hash) } + } + + # upload + $repoUri = "https://oss.sonatype.org/service/local/staging/deploy/maven2" +-$credential = New-Object -TypeName System.Net.NetworkCredential -ArgumentList $env:OSSRH_USERNAME, $env:OSSRH_PASSWORD +-$headers = @{"Authorization" = "Basic " + [System.Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes($credential.UserName + ":" + $credential.Password))} +-foreach ($file in Get-ChildItem -Recurse -File $basePath) { ++$credential = $host.UI.PromptForCredential("OSS Repository Hosting", "Enter your credentials for Sonatype maven repository https://oss.sonatype.org", "", "") ++if (! $credential) { ++ exit ++} ++$headers = @{"Authorization" = "Basic " + [System.Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes($credential.UserName + ":" + $credential.GetNetworkCredential().Password))} ++foreach ($file in dir -Recurse -File $basePath) { + $path = $file.FullName.Substring($basePath.Length + 1) + Write-Host -ForegroundColor DarkCyan "Uploading $path..." +- $pom = (Get-ChildItem $file.Directory -Filter *.pom).FullName ++ $pom = (dir $file.Directory -Filter *.pom).FullName + [xml]$pomXml = Get-Content $pom + $groupId = if ($pomXml.project.groupId) { $pomXml.project.groupId } else { $pomXml.project.parent.groupId } + $uri = $groupId.Replace(".", "/") + $path.Substring($groupId.Length).Replace("\", "/") +- Invoke-WebRequest -InFile $file.FullName -Method Put "$repoUri/$uri" -Headers $headers -UseBasicParsing | Out-Null ++ $response = Invoke-WebRequest -InFile $file.FullName -Method Put "$repoUri/$uri" -Headers $headers + } + + Write-Host -ForegroundColor Cyan "Build successfully uploaded. Go to https://oss.sonatype.org and promote the release." +diff --git a/build/typescript-generator-gradle-plugin-publisher/build.gradle b/build/typescript-generator-gradle-plugin-publisher/build.gradle +deleted file mode 100644 +index 6a61f6f1f..000000000 +--- a/build/typescript-generator-gradle-plugin-publisher/build.gradle ++++ /dev/null +@@ -1,40 +0,0 @@ +- +-plugins { +- id 'com.gradle.plugin-publish' version '1.0.0' +- id 'java-library' +-} +- +-group = 'cz.habarta.typescript-generator' +- +-repositories { +- mavenCentral() +- mavenLocal() +-} +- +-dependencies { +- api "cz.habarta.typescript-generator:typescript-generator-gradle-plugin:${version}" +- api "cz.habarta.typescript-generator:typescript-generator-spring:${version}" +-} +- +-task printVersion { +- doLast { +- println "Releasing 'cz.habarta.typescript-generator' Gradle plugin version ${project.version}..." +- } +-} +- +-pluginBundle { +- website = 'https://github.com/vojtechhabarta/typescript-generator' +- vcsUrl = 'https://github.com/vojtechhabarta/typescript-generator' +- tags = ['java', 'kotlin', 'json', 'typescript', 'typescript-generator', 'jackson', 'jakarta', 'rest', 'client', 'spring'] +-} +- +-gradlePlugin { +- plugins { +- typescriptGeneratorPlugin { +- id = 'cz.habarta.typescript-generator' +- displayName = 'Typescript-generator Gradle plugin' +- description = 'Generates TypeScript from Java - JSON declarations, REST service client' +- implementationClass = 'cz.habarta.typescript.generator.gradle.TypeScriptGeneratorPublishedPlugin' +- } +- } +-} +diff --git a/build/typescript-generator-gradle-plugin-publisher/src/main/java/cz/habarta/typescript/generator/gradle/TypeScriptGeneratorPublishedPlugin.java b/build/typescript-generator-gradle-plugin-publisher/src/main/java/cz/habarta/typescript/generator/gradle/TypeScriptGeneratorPublishedPlugin.java +deleted file mode 100644 +index 7b5b93f7b..000000000 +--- a/build/typescript-generator-gradle-plugin-publisher/src/main/java/cz/habarta/typescript/generator/gradle/TypeScriptGeneratorPublishedPlugin.java ++++ /dev/null +@@ -1,5 +0,0 @@ +- +-package cz.habarta.typescript.generator.gradle; +- +-public class TypeScriptGeneratorPublishedPlugin extends TypeScriptGeneratorPlugin { +-} +diff --git a/checkstyle.xml b/checkstyle.xml +deleted file mode 100644 +index e784bb838..000000000 +--- a/checkstyle.xml ++++ /dev/null +@@ -1,30 +0,0 @@ +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +diff --git a/pom.xml b/pom.xml +index a69f86d5b..b028e643e 100644 +--- a/pom.xml ++++ b/pom.xml +@@ -5,7 +5,7 @@ + cz.habarta.typescript-generator + typescript-generator + pom +- 3.2-SNAPSHOT ++ 1.12-SNAPSHOT + typescript-generator + Generates TypeScript declaration file from specified java classes. + https://github.com/vojtechhabarta/typescript-generator +@@ -14,7 +14,6 @@ + typescript-generator-core + typescript-generator-maven-plugin + typescript-generator-gradle-plugin +- typescript-generator-spring + + + +@@ -54,205 +53,59 @@ + + + UTF-8 +- 11 +- 1.9.10 + github + + +- +- +- +- org.glassfish.jaxb +- jaxb-bom +- 4.0.3 +- pom +- import +- +- +- jakarta.xml.bind +- jakarta.xml.bind-api +- 4.0.0 +- +- +- javax.xml.bind +- jaxb-api +- 2.3.1 +- +- +- jakarta.ws.rs +- jakarta.ws.rs-api +- 3.1.0 +- +- +- javax.ws.rs +- javax.ws.rs-api +- 2.1.1 +- +- +- jakarta.json +- jakarta.json-api +- 2.1.2 +- +- +- javax.json +- javax.json-api +- 1.1.4 +- +- +- jakarta.json.bind +- jakarta.json.bind-api +- 3.0.0 +- +- +- javax.json.bind +- javax.json.bind-api +- 1.0 +- +- +- jakarta.activation +- jakarta.activation-api +- 2.1.2 +- +- +- javax.activation +- javax.activation-api +- 1.2.0 +- +- +- org.junit +- junit-bom +- 5.10.0 +- pom +- import +- +- +- com.fasterxml.jackson +- jackson-bom +- 2.15.2 +- pom +- import +- +- +- org.glassfish.jersey +- jersey-bom +- 3.1.3 +- pom +- import +- +- +- org.jetbrains.kotlin +- kotlin-bom +- ${kotlin.version} +- pom +- import +- +- +- org.springframework.boot +- spring-boot-dependencies +- 2.7.3 +- pom +- import +- +- +- +- + + + + + org.apache.maven.plugins + maven-compiler-plugin +- 3.11.0 ++ 3.2 + +- ${java.version} +- ${java.version} ++ 1.7 ++ 1.7 + true + true +- +- -Xlint +- -parameters +- +- +- +- +- org.jetbrains.kotlin +- kotlin-maven-plugin +- ${kotlin.version} +- +- +- +- +- +- ${java.version} ++ -Xlint + + + + org.apache.maven.plugins + maven-surefire-plugin +- 3.1.2 ++ 2.18.1 + + -Dfile.encoding=UTF-8 +- false + + + + org.apache.maven.plugins + maven-jar-plugin +- 3.3.0 ++ 2.5 + + + org.apache.maven.plugins + maven-source-plugin +- 3.3.0 ++ 2.4 + + + org.apache.maven.plugins + maven-javadoc-plugin +- 3.5.0 +- +- +- org.apache.maven.plugins +- maven-checkstyle-plugin +- 3.3.0 +- +- +- com.puppycrawl.tools +- checkstyle +- 9.3 +- +- +- +- +- ${project.build.sourceDirectory} +- ${project.build.testSourceDirectory} +- +- ../checkstyle.xml +- ++ 2.10.1 + + + org.apache.maven.plugins + maven-site-plugin +- 3.12.1 ++ 3.4 + + true + + + +- org.apache.maven.doxia ++ net.ju-n.maven.doxia + doxia-module-markdown +- 1.12.0 ++ 1.0.0 + + + +@@ -287,7 +140,7 @@ + + com.github.github + site-maven-plugin +- 0.12 ++ 0.11 + + + site +@@ -303,16 +156,6 @@ + + + +- +- org.apache.maven.plugins +- maven-project-info-reports-plugin +- 3.4.5 +- +- +- org.apache.maven.plugins +- maven-plugin-plugin +- 3.9.0 +- + + + +@@ -357,7 +200,7 @@ + + org.apache.maven.plugins + maven-deploy-plugin +- 3.1.1 ++ 2.8.2 + + + local-deploy +@@ -402,10 +245,12 @@ + + org.apache.maven.plugins + maven-project-info-reports-plugin ++ 2.8 + + + org.apache.maven.plugins + maven-plugin-plugin ++ 3.4 + + + +diff --git a/sample-gradle-spring/build.gradle b/sample-gradle-spring/build.gradle +deleted file mode 100644 +index f5ba194a4..000000000 +--- a/sample-gradle-spring/build.gradle ++++ /dev/null +@@ -1,30 +0,0 @@ +- +-plugins { +- id 'java' +- id 'cz.habarta.typescript-generator' version 'FILL_VERSION' +-} +- +-version = '3.0' +-sourceCompatibility = 11 +-targetCompatibility = 11 +- +-repositories { +- mavenCentral() +-} +- +-dependencies { +- implementation 'org.springframework.boot:spring-boot-starter-web:2.7.4' +-} +- +-generateTypeScript { +- classes = [ +- 'cz.habarta.typescript.generator.sample.spring.SpringTestApplication' +- ] +- outputFileType = 'implementationFile' +- jsonLibrary = 'jackson2' +- outputKind = 'module' +- scanSpringApplication = true +- generateSpringApplicationClient = true +-} +- +-build.dependsOn generateTypeScript +diff --git a/sample-gradle-spring/src/main/java/cz/habarta/typescript/generator/sample/spring/SpringTestApplication.java b/sample-gradle-spring/src/main/java/cz/habarta/typescript/generator/sample/spring/SpringTestApplication.java +deleted file mode 100644 +index 3cf2e7360..000000000 +--- a/sample-gradle-spring/src/main/java/cz/habarta/typescript/generator/sample/spring/SpringTestApplication.java ++++ /dev/null +@@ -1,51 +0,0 @@ +- +-package cz.habarta.typescript.generator.sample.spring; +- +-import java.util.concurrent.atomic.AtomicLong; +-import org.springframework.boot.SpringApplication; +-import org.springframework.boot.autoconfigure.SpringBootApplication; +-import org.springframework.web.bind.annotation.RequestMapping; +-import org.springframework.web.bind.annotation.RequestParam; +-import org.springframework.web.bind.annotation.RestController; +- +- +-@SpringBootApplication +-public class SpringTestApplication { +- +- public static void main(String[] args) { +- SpringApplication.run(SpringTestApplication.class, args); +- } +- +- @RestController +- public static class GreetingController { +- +- private static final String template = "Hello, %s!"; +- private final AtomicLong counter = new AtomicLong(); +- +- @RequestMapping("/greeting") +- public Greeting greeting(@RequestParam(value="name", defaultValue="World") String name) { +- return new Greeting(counter.incrementAndGet(), String.format(template, name)); +- } +- +- } +- +- public static class Greeting { +- +- private final long id; +- private final String content; +- +- public Greeting(long id, String content) { +- this.id = id; +- this.content = content; +- } +- +- public long getId() { +- return id; +- } +- +- public String getContent() { +- return content; +- } +- } +- +-} +diff --git a/sample-gradle/build.gradle b/sample-gradle/build.gradle +index 0ecd1593e..7bc133102 100644 +--- a/sample-gradle/build.gradle ++++ b/sample-gradle/build.gradle +@@ -1,67 +1,38 @@ + +-buildscript { +- // /*dev*/ repositories { +- // /*dev*/ mavenLocal() +- // /*dev*/ } +- dependencies { +- classpath 'com.fasterxml.jackson.module:jackson-module-scala_2.13:2.14.2' +- // /*dev*/ classpath 'cz.habarta.typescript-generator:typescript-generator-gradle-plugin:FILL_VERSION-SNAPSHOT' +- } +-} ++apply plugin: 'java' ++apply plugin: 'cz.habarta.typescript-generator' + +-plugins { +- id 'java' +- id 'groovy' +- id "org.jetbrains.kotlin.jvm" version "1.8.10" +- id 'scala' +- /*prod*/ id 'cz.habarta.typescript-generator' version 'FILL_VERSION' +-} +- +-// /*dev*/ apply plugin: 'cz.habarta.typescript-generator' + +-version = '3.0' +-sourceCompatibility = 11 +-targetCompatibility = 11 ++version = '1.0' ++sourceCompatibility = 1.7 ++targetCompatibility = 1.7 + + repositories { + mavenCentral() + } +- + dependencies { +- implementation 'com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:2.14.2' +- implementation 'org.codehaus.groovy:groovy-all:3.0.16' +- implementation 'org.jetbrains.kotlin:kotlin-stdlib:1.8.10' +- implementation 'org.scala-lang:scala-library:2.13.10' +- implementation 'com.fasterxml.jackson.module:jackson-module-kotlin:2.14.2' ++ compile group: 'com.fasterxml.jackson.jaxrs', name: 'jackson-jaxrs-json-provider', version: '2.6.3' + } + +-tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile) { +- kotlinOptions { +- jvmTarget = '11' ++buildscript { ++ repositories { ++// mavenCentral() ++ mavenLocal() ++ } ++ dependencies { ++ classpath group: 'cz.habarta.typescript-generator', name: 'typescript-generator-gradle-plugin', version: '1.7-SNAPSHOT' + } + } + + generateTypeScript { ++ outputFile = 'build/sample.d.ts' + classes = [ +- 'cz.habarta.typescript.generator.sample.Person', +- 'cz.habarta.typescript.generator.sample.PersonGroovy', +- 'cz.habarta.typescript.generator.sample.PersonKt', +- 'cz.habarta.typescript.generator.sample.PersonScala', ++ 'cz.habarta.typescript.generator.sample.Person' + ] + jsonLibrary = 'jackson2' +- outputKind = 'module' +- excludeClasses = [ +- 'groovy.lang.GroovyObject', +- 'groovy.lang.MetaClass', +- 'java.io.Serializable', +- 'scala.Equals', +- 'scala.Product', +- 'scala.Serializable', +- ] +- jackson2Modules = [ +- 'com.fasterxml.jackson.module.scala.DefaultScalaModule', +- 'com.fasterxml.jackson.module.kotlin.KotlinModule', +- ] ++ outputKind = 'global' ++ namespace = 'GradleSample'; ++// declarePropertiesAsOptional = false ++// removeTypeNameSuffix = 'Json' ++// mapDate = 'asNumber' + } +- +-build.dependsOn generateTypeScript +diff --git a/sample-gradle/src/main/groovy/cz/habarta/typescript/generator/sample/PersonGroovy.groovy b/sample-gradle/src/main/groovy/cz/habarta/typescript/generator/sample/PersonGroovy.groovy +deleted file mode 100644 +index b07d16a8f..000000000 +--- a/sample-gradle/src/main/groovy/cz/habarta/typescript/generator/sample/PersonGroovy.groovy ++++ /dev/null +@@ -1,13 +0,0 @@ +- +-package cz.habarta.typescript.generator.sample +- +-import com.fasterxml.jackson.annotation.JsonIgnoreProperties +- +-@JsonIgnoreProperties("metaClass") +-class PersonGroovy { +- public String name +- public int age +- public boolean hasChildren +- public List tags +- public Map emails +-} +diff --git a/sample-gradle/src/main/java/cz/habarta/typescript/generator/sample/Person.java b/sample-gradle/src/main/java/cz/habarta/typescript/generator/sample/Person.java +index 7d8f61d2e..52cefc546 100644 +--- a/sample-gradle/src/main/java/cz/habarta/typescript/generator/sample/Person.java ++++ b/sample-gradle/src/main/java/cz/habarta/typescript/generator/sample/Person.java +@@ -3,10 +3,13 @@ package cz.habarta.typescript.generator.sample; + + import java.util.*; + ++ + public class Person { ++ + public String name; + public int age; + public boolean hasChildren; + public List tags; + public Map emails; ++ + } +diff --git a/sample-gradle/src/main/kotlin/cz/habarta/typescript/generator/sample/PersonKt.kt b/sample-gradle/src/main/kotlin/cz/habarta/typescript/generator/sample/PersonKt.kt +deleted file mode 100644 +index 93d20c7e2..000000000 +--- a/sample-gradle/src/main/kotlin/cz/habarta/typescript/generator/sample/PersonKt.kt ++++ /dev/null +@@ -1,10 +0,0 @@ +- +-package cz.habarta.typescript.generator.sample +- +-data class PersonKt ( +- val name: String, +- val age: Int, +- val hasChildren: Boolean, +- val tags: List, +- val emails: Map +-) +diff --git a/sample-gradle/src/main/scala/cz/habarta/typescript/generator/sample/PersonScala.scala b/sample-gradle/src/main/scala/cz/habarta/typescript/generator/sample/PersonScala.scala +deleted file mode 100644 +index 75310d957..000000000 +--- a/sample-gradle/src/main/scala/cz/habarta/typescript/generator/sample/PersonScala.scala ++++ /dev/null +@@ -1,10 +0,0 @@ +- +-package cz.habarta.typescript.generator.sample; +- +-case class PersonScala ( +- name: String, +- age: Int, +- hasChildren: Boolean, +- tags: java.util.List[String], +- emails: java.util.Map[String, String] +-) +diff --git a/sample-maven-spring/pom.xml b/sample-maven-spring/pom.xml +deleted file mode 100644 +index bc921243c..000000000 +--- a/sample-maven-spring/pom.xml ++++ /dev/null +@@ -1,73 +0,0 @@ +- +- +- 4.0.0 +- +- cz.habarta.typescript-generator +- sample-maven-spring +- 3.0-SNAPSHOT +- jar +- sample-maven-spring +- +- +- FILL_VERSION +- +- +- +- +- org.springframework.boot +- spring-boot-starter-web +- 2.7.4 +- +- +- +- +- +- +- org.apache.maven.plugins +- maven-compiler-plugin +- 3.10.1 +- +- 11 +- 11 +- +- -parameters +- +- +- +- +- cz.habarta.typescript-generator +- typescript-generator-maven-plugin +- ${typescript-generator.version} +- +- +- generate +- +- generate +- +- process-classes +- +- +- +- jackson2 +- implementationFile +- module +- +- cz.habarta.typescript.generator.sample.spring.SpringTestApplication +- +- true +- true +- +- cz.habarta.typescript.generator.ext.AxiosClientExtension +- +- +- +- +- cz.habarta.typescript-generator +- typescript-generator-spring +- ${typescript-generator.version} +- +- +- +- +- +- +diff --git a/sample-maven-spring/src/main/java/cz/habarta/typescript/generator/sample/spring/SpringTestApplication.java b/sample-maven-spring/src/main/java/cz/habarta/typescript/generator/sample/spring/SpringTestApplication.java +deleted file mode 100644 +index 3cf2e7360..000000000 +--- a/sample-maven-spring/src/main/java/cz/habarta/typescript/generator/sample/spring/SpringTestApplication.java ++++ /dev/null +@@ -1,51 +0,0 @@ +- +-package cz.habarta.typescript.generator.sample.spring; +- +-import java.util.concurrent.atomic.AtomicLong; +-import org.springframework.boot.SpringApplication; +-import org.springframework.boot.autoconfigure.SpringBootApplication; +-import org.springframework.web.bind.annotation.RequestMapping; +-import org.springframework.web.bind.annotation.RequestParam; +-import org.springframework.web.bind.annotation.RestController; +- +- +-@SpringBootApplication +-public class SpringTestApplication { +- +- public static void main(String[] args) { +- SpringApplication.run(SpringTestApplication.class, args); +- } +- +- @RestController +- public static class GreetingController { +- +- private static final String template = "Hello, %s!"; +- private final AtomicLong counter = new AtomicLong(); +- +- @RequestMapping("/greeting") +- public Greeting greeting(@RequestParam(value="name", defaultValue="World") String name) { +- return new Greeting(counter.incrementAndGet(), String.format(template, name)); +- } +- +- } +- +- public static class Greeting { +- +- private final long id; +- private final String content; +- +- public Greeting(long id, String content) { +- this.id = id; +- this.content = content; +- } +- +- public long getId() { +- return id; +- } +- +- public String getContent() { +- return content; +- } +- } +- +-} +diff --git a/sample-maven/pom.xml b/sample-maven/pom.xml +index e28e18f7b..2cd4bb2af 100644 +--- a/sample-maven/pom.xml ++++ b/sample-maven/pom.xml +@@ -4,7 +4,7 @@ + + cz.habarta.typescript-generator + sample-maven +- 3.0-SNAPSHOT ++ 1.0-SNAPSHOT + jar + sample-maven + +@@ -12,28 +12,16 @@ + + com.fasterxml.jackson.jaxrs + jackson-jaxrs-json-provider +- 2.13.4 ++ 2.7.4 + + + + + +- +- org.apache.maven.plugins +- maven-compiler-plugin +- 3.10.1 +- +- 11 +- 11 +- +- -parameters +- +- +- + + cz.habarta.typescript-generator + typescript-generator-maven-plugin +- FILL_VERSION ++ 1.10-SNAPSHOT + + + generate +@@ -41,15 +29,16 @@ + generate + + process-classes ++ ++ jackson2 ++ ++ cz.habarta.typescript.generator.sample.Person ++ ++ target/sample.d.ts ++ module ++ + + +- +- jackson2 +- +- cz.habarta.typescript.generator.sample.Person +- +- module +- + + + +diff --git a/sample-maven/src/main/java/cz/habarta/typescript/generator/sample/Person.java b/sample-maven/src/main/java/cz/habarta/typescript/generator/sample/Person.java +index 7d8f61d2e..52cefc546 100644 +--- a/sample-maven/src/main/java/cz/habarta/typescript/generator/sample/Person.java ++++ b/sample-maven/src/main/java/cz/habarta/typescript/generator/sample/Person.java +@@ -3,10 +3,13 @@ package cz.habarta.typescript.generator.sample; + + import java.util.*; + ++ + public class Person { ++ + public String name; + public int age; + public boolean hasChildren; + public List tags; + public Map emails; ++ + } +diff --git a/tslint.json b/tslint.json +deleted file mode 100644 +index 9e26dfeeb..000000000 +--- a/tslint.json ++++ /dev/null +@@ -1 +0,0 @@ +-{} +\ No newline at end of file +diff --git a/typescript-generator-core/package-lock.json b/typescript-generator-core/package-lock.json +deleted file mode 100644 +index 2b1f673c2..000000000 +--- a/typescript-generator-core/package-lock.json ++++ /dev/null +@@ -1,20 +0,0 @@ +-{ +- "name": "typescript-generator-core", +- "version": "1.0.0", +- "lockfileVersion": 1, +- "requires": true, +- "dependencies": { +- "@types/node": { +- "version": "14.17.20", +- "resolved": "https://registry.npmjs.org/@types/node/-/node-14.17.20.tgz", +- "integrity": "sha512-gI5Sl30tmhXsqkNvopFydP7ASc4c2cLfGNQrVKN3X90ADFWFsPEsotm/8JHSUJQKTHbwowAHtcJPeyVhtKv0TQ==", +- "dev": true +- }, +- "typescript": { +- "version": "4.4.3", +- "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.4.3.tgz", +- "integrity": "sha512-4xfscpisVgqqDfPaJo5vkd+Qd/ItkoagnHpufr+i2QCHBsNYp+G7UAoyFl8aPtx879u38wPV65rZ8qbGZijalA==", +- "dev": true +- } +- } +-} +diff --git a/typescript-generator-core/package.json b/typescript-generator-core/package.json +deleted file mode 100644 +index 46db5c63f..000000000 +--- a/typescript-generator-core/package.json ++++ /dev/null +@@ -1,15 +0,0 @@ +-{ +- "name": "typescript-generator-core", +- "version": "1.0.0", +- "description": "Support for tests", +- "scripts": { +- "test": "npm run ModulesAndNamespacesTest && npm run JsonDeserializationTest", +- "ModulesAndNamespacesTest": "tsc -p src/test/ts/tsconfig.json", +- "JsonDeserializationTest": "tsc -p src/test/ts/JsonDeserializationTest/tsconfig.json && node src/test/ts/JsonDeserializationTest/JsonDeserializationTest-expected-test.js" +- }, +- "license": "ISC", +- "devDependencies": { +- "typescript": "^4.3.2", +- "@types/node": "^14.17.0" +- } +-} +diff --git a/typescript-generator-core/pom.xml b/typescript-generator-core/pom.xml +index 32546e091..5b0d50a49 100644 +--- a/typescript-generator-core/pom.xml ++++ b/typescript-generator-core/pom.xml +@@ -5,116 +5,40 @@ + + cz.habarta.typescript-generator + typescript-generator +- 3.2-SNAPSHOT ++ 1.12-SNAPSHOT + + + typescript-generator-core + jar + typescript-generator-core + +- +- 22.3.1 +- 0.10.3 +- +- + + + +- com.fasterxml.jackson.core +- jackson-databind +- +- +- com.fasterxml.jackson.module +- jackson-module-jakarta-xmlbind-annotations +- +- +- com.fasterxml.jackson.module +- jackson-module-jaxb-annotations +- +- +- org.glassfish.jaxb +- jaxb-runtime ++ org.codehaus.jackson ++ jackson-mapper-asl ++ 1.9.13 + + +- javax.xml.bind +- jaxb-api ++ com.fasterxml.jackson.jaxrs ++ jackson-jaxrs-json-provider ++ 2.6.3 + + + javax.ws.rs + javax.ws.rs-api ++ 2.0.1 + + +- jakarta.ws.rs +- jakarta.ws.rs-api +- +- +- io.github.classgraph +- classgraph +- 4.8.162 +- +- +- com.google.code.gson +- gson +- 2.10.1 +- +- +- org.jetbrains.kotlin +- kotlin-stdlib +- +- +- org.jetbrains +- annotations +- +- +- +- +- +- +- org.jetbrains +- annotations +- 24.0.1 +- +- +- org.jetbrains.kotlin +- kotlin-reflect +- +- +- javax.json +- javax.json-api +- +- +- jakarta.json +- jakarta.json-api +- +- +- javax.json.bind +- javax.json.bind-api +- +- +- jakarta.json.bind +- jakarta.json.bind-api +- +- +- org.graalvm.js +- js +- ${graalvm.version} +- runtime +- +- +- org.graalvm.js +- js-scriptengine +- ${graalvm.version} ++ io.github.lukehutch ++ fast-classpath-scanner ++ 1.9.19 + + + +- org.junit.jupiter +- junit-jupiter +- test +- +- +- org.immutables +- value +- 2.9.3 ++ junit ++ junit ++ 4.11 + test + + +@@ -123,116 +47,14 @@ + 3.0.1u2 + test + +- +- com.fasterxml.jackson.datatype +- jackson-datatype-jdk8 +- test +- +- +- com.fasterxml.jackson.datatype +- jackson-datatype-jsr310 +- test +- +- +- org.glassfish.jersey.containers +- jersey-container-jdk-http +- test +- +- +- org.glassfish.jersey.media +- jersey-media-json-binding +- test +- +- +- org.glassfish.jersey.media +- jersey-media-json-jackson +- test +- +- +- org.glassfish.jersey.inject +- jersey-hk2 +- test +- +- +- io.swagger +- swagger-annotations +- 1.6.11 +- test +- +- +- io.swagger.core.v3 +- swagger-annotations +- 2.2.15 +- test +- +- +- org.checkerframework +- checker-qual +- 3.38.0 +- test +- +- +- +- com.google.guava +- guava +- 32.1.2-jre +- test +- +- +- com.fasterxml.jackson.datatype +- jackson-datatype-guava +- test +- +- +- joda-time +- joda-time +- 2.12.5 +- test +- +- +- com.fasterxml.jackson.datatype +- jackson-datatype-joda +- test +- +- +- io.vavr +- vavr +- ${vavr.version} +- test +- +- +- io.vavr +- vavr-jackson +- ${vavr.version} +- test +- +- + + + + + +- org.jetbrains.kotlin +- kotlin-maven-plugin +- +- +- test-compile +- test-compile +- +- test-compile +- +- +- +- +- +- com.evolvedbinary.maven.jvnet +- jaxb30-maven-plugin +- 0.15.0 ++ org.jvnet.jaxb2.maven2 ++ maven-jaxb2-plugin ++ 0.13.1 + + + generate +@@ -249,211 +71,29 @@ + + + org.apache.maven.plugins +- maven-antrun-plugin +- 3.1.0 ++ maven-javadoc-plugin ++ 2.10.3 + + +- jaxrs-v2-test +- generate-test-sources +- +- run +- +- +- +- +- +- +- +- +- +- +- +- +- +- jaxrs-v2-test-delete +- verify ++ test-xml-doclet ++ process-test-classes + +- run ++ test-javadoc + + +- +- +- +- +- +- +- +- +- +- org.apache.maven.plugins +- maven-surefire-plugin +- +- +- default-test +- +- typescript2java ++ com.github.markusbernhardt.xmldoclet.XmlDoclet ++ -d ${project.build.directory} -filename test-javadoc.xml ++ false ++ ++ com.github.markusbernhardt ++ xml-doclet ++ 1.0.5 ++ + + + + +- +- org.apache.maven.plugins +- maven-jar-plugin +- +- +- +- test-jar +- +- +- +- +- +- org.apache.maven.plugins +- maven-checkstyle-plugin +- +- +- check +- verify +- +- check +- +- +- +- + + + +- +- +- test-javadoc +- +- +- +- org.apache.maven.plugins +- maven-javadoc-plugin +- 3.5.0 +- +- +- test-xml-doclet +- process-test-classes +- +- test-javadoc +- +- +- com.github.markusbernhardt.xmldoclet.XmlDoclet +- -d ${project.basedir}/src/test/javadoc -filename test-javadoc.xml +- false +- +- +- com.github.markusbernhardt +- xml-doclet +- 1.0.5 +- +- +- jakarta.xml.bind +- jakarta.xml.bind-api +- 2.3.3 +- +- +- com.sun.xml.bind +- jaxb-impl +- 2.3.6 +- +- +- org.slf4j +- slf4j-api +- 1.7.36 +- +- +- org.slf4j +- slf4j-simple +- 1.7.36 +- +- +- +- +- +- +- +- +- +- +- run-npm-test +- +- +- +- com.github.eirslett +- frontend-maven-plugin +- 1.13.4 +- +- +- install node and npm +- +- install-node-and-npm +- +- generate-resources +- +- +- npm install +- +- npm +- +- generate-resources +- +- install +- +- +- +- npm test +- +- npm +- +- test +- +- test +- +- +- +- +- v14.17.0 +- +- +- +- org.apache.maven.plugins +- maven-surefire-plugin +- +- +- test-typescript2java +- test +- +- test +- +- +- +- typescript2java +- +- +- +- +- +- +- +- +- + +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/ClassMapping.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/ClassMapping.java +deleted file mode 100644 +index f2ee7fe84..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/ClassMapping.java ++++ /dev/null +@@ -1,7 +0,0 @@ +- +-package cz.habarta.typescript.generator; +- +- +-public enum ClassMapping { +- asInterfaces, asClasses; +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/CustomMappingTypeProcessor.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/CustomMappingTypeProcessor.java +index b4cac62bd..2fe6e40c1 100644 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/CustomMappingTypeProcessor.java ++++ b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/CustomMappingTypeProcessor.java +@@ -1,69 +1,29 @@ + + package cz.habarta.typescript.generator; + +-import cz.habarta.typescript.generator.util.GenericsResolver; + import cz.habarta.typescript.generator.util.Utils; + import java.lang.reflect.Type; +-import java.util.ArrayList; +-import java.util.List; +-import java.util.function.Function; ++import java.util.*; + + + public class CustomMappingTypeProcessor implements TypeProcessor { + +- private final List customMappings; ++ private final Map customMappings; + +- public CustomMappingTypeProcessor(List customMappings) { ++ public CustomMappingTypeProcessor(Map customMappings) { + this.customMappings = customMappings; + } + + @Override + public Result processType(Type javaType, Context context) { + final Class rawClass = Utils.getRawClassOrNull(javaType); +- if (rawClass == null) { +- return null; +- } +- final Settings.CustomTypeMapping mapping = customMappings.stream() +- .filter(m -> m.matchSubclasses +- ? m.rawClass.isAssignableFrom(rawClass) +- : m.rawClass.equals(rawClass) +- ) +- .findFirst() +- .orElse(null); +- if (mapping == null) { +- return null; +- } +- +- final List resolvedTypeParameters = GenericsResolver.resolveBaseGenericVariables(mapping.rawClass, javaType); +- final List> discoveredClasses = new ArrayList<>(); +- final Function processGenericParameter = index -> { +- final Type typeArgument = resolvedTypeParameters.get(index); +- final TypeProcessor.Result typeArgumentResult = context.processType(typeArgument); +- discoveredClasses.addAll(typeArgumentResult.getDiscoveredClasses()); +- return typeArgumentResult.getTsType(); +- }; +- if (mapping.tsType.typeParameters != null) { +- final List tsTypeArguments = new ArrayList<>(); +- for (String typeParameter : mapping.tsType.typeParameters) { +- final TsType tsType; +- final int index = mapping.javaType.indexOfTypeParameter(typeParameter); +- if (index != -1) { +- tsType = processGenericParameter.apply(index); +- } else { +- tsType = new TsType.VerbatimType(typeParameter); +- } +- tsTypeArguments.add(tsType); +- } +- return new Result(new TsType.GenericBasicType(mapping.tsType.rawName, tsTypeArguments), discoveredClasses); +- } else { +- final int index = mapping.javaType.indexOfTypeParameter(mapping.tsType.rawName); +- if (index != -1) { +- final TsType tsType = processGenericParameter.apply(index); +- return new Result(tsType, discoveredClasses); +- } else { +- return new Result(new TsType.VerbatimType(mapping.tsType.rawName), discoveredClasses); ++ if (rawClass != null) { ++ final String tsTypeName = customMappings.get(rawClass.getName()); ++ if (tsTypeName != null) { ++ return new Result(new TsType.BasicType(tsTypeName)); + } + } ++ return null; + } + + } +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/DataLibraryJson.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/DataLibraryJson.java +deleted file mode 100644 +index 3ef9b8e3b..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/DataLibraryJson.java ++++ /dev/null +@@ -1,50 +0,0 @@ +- +-package cz.habarta.typescript.generator; +- +-import com.fasterxml.jackson.annotation.JsonValue; +-import java.util.List; +- +- +-public class DataLibraryJson { +- +- public List classMappings; +- public List typeAliases; +- +- public static class ClassMapping { +- public String className; +- public SemanticType semanticType; +- public String customType; +- } +- +- public enum SemanticType { +- String("string"), +- Number("number"), +- Boolean("boolean"), +- Date("date"), +- Any("any"), +- Void("void"), +- List("list"), +- Map("map"), +- Optional("optional"), +- Wrapper("wrapper"), +- ; +- +- private final String name; +- +- private SemanticType(String name) { +- this.name = name; +- } +- +- @JsonValue +- public String getName() { +- return name; +- } +- +- } +- +- public static class TypeAlias { +- public String name; +- public String definition; +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/DefaultTypeProcessor.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/DefaultTypeProcessor.java +index b3285a3f9..baac9c614 100644 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/DefaultTypeProcessor.java ++++ b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/DefaultTypeProcessor.java +@@ -1,151 +1,50 @@ + + package cz.habarta.typescript.generator; + +-import cz.habarta.typescript.generator.compiler.Symbol; +-import cz.habarta.typescript.generator.type.JTypeWithNullability; +-import cz.habarta.typescript.generator.type.JUnionType; +-import cz.habarta.typescript.generator.util.GenericsResolver; +-import cz.habarta.typescript.generator.util.Utils; +-import java.lang.reflect.GenericArrayType; +-import java.lang.reflect.Method; +-import java.lang.reflect.ParameterizedType; +-import java.lang.reflect.Type; +-import java.lang.reflect.TypeVariable; +-import java.lang.reflect.WildcardType; +-import java.time.temporal.Temporal; +-import java.util.ArrayList; +-import java.util.Arrays; +-import java.util.Calendar; +-import java.util.Collection; +-import java.util.Date; +-import java.util.List; +-import java.util.Map; +-import java.util.Objects; +-import java.util.Optional; +-import java.util.OptionalDouble; +-import java.util.OptionalInt; +-import java.util.OptionalLong; +-import java.util.UUID; +-import java.util.stream.Collectors; ++import java.lang.reflect.*; ++import java.math.*; ++import java.util.*; + + + public class DefaultTypeProcessor implements TypeProcessor { + +- private final LoadedDataLibraries known; +- +- public DefaultTypeProcessor() { +- this(null); +- } +- +- public DefaultTypeProcessor(LoadedDataLibraries dataLibraries) { +- this.known = LoadedDataLibraries.join(getKnownClasses(), dataLibraries); +- } +- +- private static boolean isAssignableFrom(List> classes, Class cls) { +- return assignableFrom(classes, cls).isPresent(); +- } +- +- private static Optional> assignableFrom(List> classes, Class cls) { +- return classes.stream().filter(c -> c.isAssignableFrom(cls)).findFirst(); +- } +- + @Override + public Result processType(Type javaType, Context context) { +- if (Objects.equals(javaType, Object.class)) { +- return new Result(TsType.Any); +- } +- if (javaType instanceof Class) { +- final Class javaClass = (Class) javaType; +- if (isAssignableFrom(known.stringClasses, javaClass)) { +- return new Result(TsType.String); +- } +- if (isAssignableFrom(known.numberClasses, javaClass)) { +- return new Result(TsType.Number); +- } +- if (isAssignableFrom(known.booleanClasses, javaClass)) { +- return new Result(TsType.Boolean); +- } +- if (isAssignableFrom(known.dateClasses, javaClass)) { +- return new Result(TsType.Date); +- } +- if (isAssignableFrom(known.voidClasses, javaClass)) { +- return new Result(TsType.Void); +- } +- } +- if (javaType instanceof Class) { +- final Class javaClass = (Class) javaType; +- final Symbol importedSymbol = context.getSymbolIfImported(javaClass); +- if (importedSymbol != null) { +- return new Result(new TsType.ReferenceType(importedSymbol)); +- } +- } ++ if (KnownTypes.containsKey(javaType)) return new Result(KnownTypes.get(javaType)); + if (javaType instanceof Class) { + final Class javaClass = (Class) javaType; +- if (isAssignableFrom(known.anyClasses, javaClass)) { +- return new Result(TsType.Any); +- } + if (javaClass.isArray()) { +- final Result result = context.processTypeInsideCollection(javaClass.getComponentType()); ++ final Result result = context.processType(javaClass.getComponentType()); + return new Result(new TsType.BasicArrayType(result.getTsType()), result.getDiscoveredClasses()); + } + if (javaClass.isEnum()) { + return new Result(new TsType.EnumReferenceType(context.getSymbol(javaClass)), javaClass); + } +- // list, map, optional, wrapper +- final Result knownGenericTypeResult = processKnownGenericType(javaClass, javaClass, context); +- if (knownGenericTypeResult != null) { +- return knownGenericTypeResult; +- } +- if (OptionalInt.class.isAssignableFrom(javaClass) || +- OptionalLong.class.isAssignableFrom(javaClass) || +- OptionalDouble.class.isAssignableFrom(javaClass)) { +- return new Result(TsType.Number.optional()); ++ if (Collection.class.isAssignableFrom(javaClass)) { ++ return new Result(new TsType.BasicArrayType(TsType.Any)); + } +- // generic structural type used without type arguments +- if (javaClass.getTypeParameters().length > 0) { +- final List tsTypeArguments = new ArrayList<>(); +- for (int i = 0; i < javaClass.getTypeParameters().length; i++) { +- tsTypeArguments.add(TsType.Any); +- } +- return new Result(new TsType.GenericReferenceType(context.getSymbol(javaClass), tsTypeArguments)); ++ if (Map.class.isAssignableFrom(javaClass)) { ++ return new Result(new TsType.IndexedArrayType(TsType.String, TsType.Any)); + } +- // structural type ++ // consider it structural + return new Result(new TsType.ReferenceType(context.getSymbol(javaClass)), javaClass); + } + if (javaType instanceof ParameterizedType) { + final ParameterizedType parameterizedType = (ParameterizedType) javaType; + if (parameterizedType.getRawType() instanceof Class) { + final Class javaClass = (Class) parameterizedType.getRawType(); +- // list, map, optional, wrapper +- final Result knownGenericTypeResult = processKnownGenericType(javaType, javaClass, context); +- if (knownGenericTypeResult != null) { +- return knownGenericTypeResult; ++ if (Collection.class.isAssignableFrom(javaClass)) { ++ final Result result = context.processType(parameterizedType.getActualTypeArguments()[0]); ++ return new Result(new TsType.BasicArrayType(result.getTsType()), result.getDiscoveredClasses()); + } +- // generic structural type +- final List> discoveredClasses = new ArrayList<>(); +- discoveredClasses.add(javaClass); +- final List tsTypeArguments = new ArrayList<>(); +- for (Type typeArgument : parameterizedType.getActualTypeArguments()) { +- final TypeProcessor.Result typeArgumentResult = context.processType(typeArgument); +- tsTypeArguments.add(typeArgumentResult.getTsType()); +- discoveredClasses.addAll(typeArgumentResult.getDiscoveredClasses()); ++ if (Map.class.isAssignableFrom(javaClass)) { ++ final Result result = context.processType(parameterizedType.getActualTypeArguments()[1]); ++ return new Result(new TsType.IndexedArrayType(TsType.String, result.getTsType()), result.getDiscoveredClasses()); + } +- return new Result(new TsType.GenericReferenceType(context.getSymbol(javaClass), tsTypeArguments), discoveredClasses); ++ // consider it structural ++ return new Result(new TsType.ReferenceType(context.getSymbol(javaClass)), javaClass); + } + } +- if (javaType instanceof GenericArrayType) { +- final GenericArrayType genericArrayType = (GenericArrayType) javaType; +- final Result result = context.processTypeInsideCollection(genericArrayType.getGenericComponentType()); +- return new Result(new TsType.BasicArrayType(result.getTsType()), result.getDiscoveredClasses()); +- } +- if (javaType instanceof TypeVariable) { +- final TypeVariable typeVariable = (TypeVariable) javaType; +- if (typeVariable.getGenericDeclaration() instanceof Method) { +- // example method: public T getData(); +- return context.processType(typeVariable.getBounds()[0]); +- } +- return new Result(new TsType.GenericVariableType(typeVariable.getName())); +- } + if (javaType instanceof WildcardType) { + final WildcardType wildcardType = (WildcardType) javaType; + final Type[] upperBounds = wildcardType.getUpperBounds(); +@@ -153,91 +52,40 @@ public class DefaultTypeProcessor implements TypeProcessor { + ? context.processType(upperBounds[0]) + : new Result(TsType.Any); + } +- if (javaType instanceof JUnionType) { +- final JUnionType unionType = (JUnionType) javaType; +- final List results = unionType.getTypes().stream() +- .map(type -> context.processType(type)) +- .collect(Collectors.toList()); +- return new Result( +- new TsType.UnionType(results.stream() +- .map(result -> result.getTsType()) +- .collect(Collectors.toList())), +- results.stream() +- .flatMap(result -> result.getDiscoveredClasses().stream()) +- .collect(Collectors.toList()) +- ); +- } +- if (javaType instanceof JTypeWithNullability) { +- final JTypeWithNullability typeWithNullability = (JTypeWithNullability) javaType; +- final Result result = context.processType(typeWithNullability.getType()); +- return new Result( +- typeWithNullability.isNullable() ? new TsType.NullableType(result.getTsType()) : result.getTsType(), +- result.getDiscoveredClasses() +- ); +- } + return null; + } + +- private Result processKnownGenericType(Type javaType, Class rawClass, Context context) { +- +- final Optional> listBaseClass = assignableFrom(known.listClasses, rawClass); +- if (listBaseClass.isPresent()) { +- final List resolvedGenericVariables = GenericsResolver.resolveBaseGenericVariables(listBaseClass.get(), javaType); +- final Result result = context.processTypeInsideCollection(resolvedGenericVariables.get(0)); +- return new Result(new TsType.BasicArrayType(result.getTsType()), result.getDiscoveredClasses()); +- } +- +- final Optional> mapBaseClass = assignableFrom(known.mapClasses, rawClass); +- if (mapBaseClass.isPresent()) { +- final List resolvedGenericVariables = GenericsResolver.resolveBaseGenericVariables(mapBaseClass.get(), javaType); +- final Result keyResult = context.processType(resolvedGenericVariables.get(0)); +- final Result valueResult = context.processTypeInsideCollection(resolvedGenericVariables.get(1)); +- final TsType valueTsType = valueResult.getTsType(); +- if (keyResult.getTsType() instanceof TsType.EnumReferenceType) { +- return new Result( +- new TsType.MappedType(keyResult.getTsType(), TsType.MappedType.QuestionToken.Question, valueTsType), +- Utils.concat(keyResult.getDiscoveredClasses(), valueResult.getDiscoveredClasses()) +- ); +- } else { +- return new Result( +- new TsType.IndexedArrayType(TsType.String, valueTsType), +- valueResult.getDiscoveredClasses() +- ); +- } +- } +- +- final Optional> optionalBaseClass = assignableFrom(known.optionalClasses, rawClass); +- if (optionalBaseClass.isPresent()) { +- final List resolvedGenericVariables = GenericsResolver.resolveBaseGenericVariables(optionalBaseClass.get(), javaType); +- final Result result = context.processType(resolvedGenericVariables.get(0)); +- return new Result(result.getTsType().optional(), result.getDiscoveredClasses()); +- } +- +- final Optional> wrapperBaseClass = assignableFrom(known.wrapperClasses, rawClass); +- if (wrapperBaseClass.isPresent()) { +- final List resolvedGenericVariables = GenericsResolver.resolveBaseGenericVariables(wrapperBaseClass.get(), javaType); +- final Result result = context.processType(resolvedGenericVariables.get(0)); +- return new Result(result.getTsType(), result.getDiscoveredClasses()); +- } +- +- return null; ++ private static Map getKnownTypes() { ++ final Map knownTypes = new LinkedHashMap<>(); ++ // java.lang ++ knownTypes.put(Object.class, TsType.Any); ++ knownTypes.put(Byte.class, TsType.Number); ++ knownTypes.put(Byte.TYPE, TsType.Number); ++ knownTypes.put(Short.class, TsType.Number); ++ knownTypes.put(Short.TYPE, TsType.Number); ++ knownTypes.put(Integer.class, TsType.Number); ++ knownTypes.put(Integer.TYPE, TsType.Number); ++ knownTypes.put(Long.class, TsType.Number); ++ knownTypes.put(Long.TYPE, TsType.Number); ++ knownTypes.put(Float.class, TsType.Number); ++ knownTypes.put(Float.TYPE, TsType.Number); ++ knownTypes.put(Double.class, TsType.Number); ++ knownTypes.put(Double.TYPE, TsType.Number); ++ knownTypes.put(Boolean.class, TsType.Boolean); ++ knownTypes.put(Boolean.TYPE, TsType.Boolean); ++ knownTypes.put(Character.class, TsType.String); ++ knownTypes.put(Character.TYPE, TsType.String); ++ knownTypes.put(String.class, TsType.String); ++ knownTypes.put(void.class, TsType.Void); ++ knownTypes.put(Void.class, TsType.Void); ++ // other java packages ++ knownTypes.put(BigDecimal.class, TsType.Number); ++ knownTypes.put(BigInteger.class, TsType.Number); ++ knownTypes.put(Date.class, TsType.Date); ++ knownTypes.put(UUID.class, TsType.String); ++ return knownTypes; + } + +- private static LoadedDataLibraries getKnownClasses() { +- return new LoadedDataLibraries( +- Arrays.asList(char.class, Character.class, String.class, UUID.class), +- Arrays.asList(byte.class, short.class, int.class, long.class, float.class, double.class, Number.class), +- Arrays.asList(boolean.class, Boolean.class), +- Arrays.asList(Date.class, Calendar.class, Temporal.class), +- Arrays.asList(), +- Arrays.asList(void.class, Void.class), +- Arrays.asList(Collection.class), +- Arrays.asList(Map.class), +- Arrays.asList(Optional.class), +- Arrays.asList(jakarta.xml.bind.JAXBElement.class, javax.xml.bind.JAXBElement.class), +- Arrays.asList(), +- Arrays.asList() +- ); +- } ++ private static final Map KnownTypes = getKnownTypes(); + + } +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/DeprecationText.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/DeprecationText.java +deleted file mode 100644 +index d93133f89..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/DeprecationText.java ++++ /dev/null +@@ -1,11 +0,0 @@ +- +-package cz.habarta.typescript.generator; +- +-import java.lang.annotation.Retention; +-import java.lang.annotation.RetentionPolicy; +- +- +-@Retention(RetentionPolicy.RUNTIME) +-public @interface DeprecationText { +- String value(); +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/EnumMapping.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/EnumMapping.java +index bbd85aba5..6cc850f12 100644 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/EnumMapping.java ++++ b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/EnumMapping.java +@@ -3,5 +3,5 @@ package cz.habarta.typescript.generator; + + + public enum EnumMapping { +- asUnion, asInlineUnion, asEnum, asNumberBasedEnum ++ asUnion, asInlineUnion, asNumberBasedEnum + } +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/ExcludingTypeProcessor.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/ExcludingTypeProcessor.java +index e37601b4e..a7f897439 100644 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/ExcludingTypeProcessor.java ++++ b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/ExcludingTypeProcessor.java +@@ -1,29 +1,15 @@ + + package cz.habarta.typescript.generator; + ++import cz.habarta.typescript.generator.util.Predicate; + import cz.habarta.typescript.generator.util.Utils; + import java.lang.reflect.Type; +-import java.util.Collections; +-import java.util.LinkedHashSet; +-import java.util.List; +-import java.util.Set; +-import java.util.function.Predicate; + + + public class ExcludingTypeProcessor implements TypeProcessor { + + private final Predicate excludeFilter; + +- public ExcludingTypeProcessor(List excludedTypes) { +- this(new Predicate() { +- final Set excludedTypesSet = excludedTypes != null ? new LinkedHashSet<>(excludedTypes) : Collections.emptySet(); +- @Override +- public boolean test(String typeName) { +- return excludedTypesSet.contains(typeName); +- } +- }); +- } +- + public ExcludingTypeProcessor(Predicate excludeFilter) { + this.excludeFilter = excludeFilter; + } +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/Extension.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/Extension.java +deleted file mode 100644 +index 1adc9fdad..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/Extension.java ++++ /dev/null +@@ -1,47 +0,0 @@ +- +-package cz.habarta.typescript.generator; +- +-import cz.habarta.typescript.generator.compiler.ModelCompiler; +-import cz.habarta.typescript.generator.compiler.ModelTransformer; +-import cz.habarta.typescript.generator.compiler.TsModelTransformer; +-import cz.habarta.typescript.generator.emitter.EmitterExtension; +-import java.util.Collections; +-import java.util.List; +-import java.util.Map; +- +- +-public abstract class Extension extends EmitterExtension { +- +- public void setConfiguration(Map configuration) throws RuntimeException { +- } +- +- public List getTransformers() { +- return Collections.emptyList(); +- } +- +- public static class TransformerDefinition { +- public final ModelCompiler.TransformationPhase phase; +- public final ModelTransformer transformer; +- public final TsModelTransformer tsTransformer; +- +- public TransformerDefinition(ModelCompiler.TransformationPhase phase, ModelTransformer transformer) { +- if (phase != ModelCompiler.TransformationPhase.BeforeTsModel) { +- throw new IllegalArgumentException("ModelTransformer can only be applied in phase 'BeforeTsModel'"); +- } +- this.phase = phase; +- this.transformer = transformer; +- this.tsTransformer = null; +- } +- +- public TransformerDefinition(ModelCompiler.TransformationPhase phase, TsModelTransformer transformer) { +- if (phase == ModelCompiler.TransformationPhase.BeforeTsModel) { +- throw new IllegalArgumentException("TsModelTransformer cannot be applied in phase 'BeforeTsModel'"); +- } +- this.phase = phase; +- this.transformer = null; +- this.tsTransformer = transformer; +- } +- +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/GenericsTypeProcessor.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/GenericsTypeProcessor.java +new file mode 100644 +index 000000000..2d2b39d6f +--- /dev/null ++++ b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/GenericsTypeProcessor.java +@@ -0,0 +1,53 @@ ++ ++package cz.habarta.typescript.generator; ++ ++import cz.habarta.typescript.generator.compiler.Symbol; ++import java.lang.reflect.*; ++import java.util.*; ++ ++ ++public class GenericsTypeProcessor implements TypeProcessor { ++ ++ @Override ++ public TypeProcessor.Result processType(Type javaType, TypeProcessor.Context context) { ++ if (javaType instanceof TypeVariable) { ++ final TypeVariable typeVariable = (TypeVariable) javaType; ++ return new Result(new TsType.GenericVariableType(typeVariable.getName())); ++ } ++ if (javaType instanceof Class) { ++ final Class javaClass = (Class) javaType; ++ if (javaClass.getTypeParameters().length > 0) { ++ return processGenericClass(javaClass, javaClass.getTypeParameters(), context); ++ } ++ } ++ if (javaType instanceof ParameterizedType) { ++ final ParameterizedType parameterizedType = (ParameterizedType) javaType; ++ if (parameterizedType.getRawType() instanceof Class) { ++ final Class javaClass = (Class) parameterizedType.getRawType(); ++ return processGenericClass(javaClass, parameterizedType.getActualTypeArguments(), context); ++ } ++ } ++ return null; ++ } ++ ++ private Result processGenericClass(Class rawType, Type[] typeArguments, TypeProcessor.Context context) { ++ if (!Collection.class.isAssignableFrom(rawType) && !Map.class.isAssignableFrom(rawType)) { ++ final List> discoveredClasses = new ArrayList<>(); ++ // raw type ++ final Symbol rawSymbol = context.getSymbol(rawType); ++ discoveredClasses.add(rawType); ++ // type arguments ++ final List tsTypeArguments = new ArrayList<>(); ++ for (Type typeArgument : typeArguments) { ++ final TypeProcessor.Result typeArgumentResult = context.processType(typeArgument); ++ tsTypeArguments.add(typeArgumentResult.getTsType()); ++ discoveredClasses.addAll(typeArgumentResult.getDiscoveredClasses()); ++ } ++ // result ++ final TsType.GenericReferenceType type = new TsType.GenericReferenceType(rawSymbol, tsTypeArguments); ++ return new Result(type, discoveredClasses); ++ } ++ return null; ++ } ++ ++} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/GsonConfiguration.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/GsonConfiguration.java +deleted file mode 100644 +index 6a3f6a915..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/GsonConfiguration.java ++++ /dev/null +@@ -1,21 +0,0 @@ +- +-package cz.habarta.typescript.generator; +- +- +-/** +- * This class is used for configuration in Maven and Gradle plugins so we need +- * to pay attention to use only types supported in both build plugins. +- */ +-public class GsonConfiguration { +- +- /** +- * Excludes all class fields that have the specified modifiers. +- * Modifiers are separated with | character.
+- * Field exclusion modifiers are public | protected | private | static | final | transient | volatile.
+- * Default value is static | transient (the same as in Gson itself). +- * Note: single charater | can be used to pass empty list of modifiers +- * (in Maven empty string is interpreted as null which means "not set"). +- */ +- public String excludeFieldsWithModifiers; +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/IdentifierCasing.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/IdentifierCasing.java +deleted file mode 100644 +index 4b6e4264c..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/IdentifierCasing.java ++++ /dev/null +@@ -1,10 +0,0 @@ +- +-package cz.habarta.typescript.generator; +- +- +-public enum IdentifierCasing { +- keepOriginal, +- PascalCase, +- camelCase, +-// UPPER_CASE, +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/Input.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/Input.java +index 6a7275988..9e1c21965 100644 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/Input.java ++++ b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/Input.java +@@ -1,21 +1,13 @@ + + package cz.habarta.typescript.generator; + +-import cz.habarta.typescript.generator.parser.SourceType; +-import cz.habarta.typescript.generator.util.Utils; +-import io.github.classgraph.ClassGraph; +-import io.github.classgraph.ScanResult; +-import java.lang.reflect.Type; +-import java.net.URLClassLoader; +-import java.util.ArrayList; +-import java.util.Arrays; +-import java.util.Collections; +-import java.util.Date; +-import java.util.List; +-import java.util.Objects; +-import java.util.function.Predicate; ++import cz.habarta.typescript.generator.parser.*; ++import cz.habarta.typescript.generator.util.Predicate; ++import io.github.lukehutch.fastclasspathscanner.FastClasspathScanner; ++import java.lang.reflect.*; ++import java.util.*; ++import java.util.regex.Matcher; + import java.util.regex.Pattern; +-import java.util.stream.Collectors; + + + public class Input { +@@ -31,7 +23,6 @@ public class Input { + } + + public static Input from(Type... types) { +- Objects.requireNonNull(types, "types"); + final List> sourceTypes = new ArrayList<>(); + for (Type type : types) { + sourceTypes.add(new SourceType<>(type)); +@@ -39,173 +30,117 @@ public class Input { + return new Input(sourceTypes); + } + +- public static class Parameters { +- public List classNames; +- public List classNamePatterns; +- public List classesWithAnnotations; +- public List classesImplementingInterfaces; +- public List classesExtendingClasses; +- public String jaxrsApplicationClassName; +- public boolean automaticJaxrsApplication; +- public Predicate isClassNameExcluded; +- public URLClassLoader classLoader; +- public List scanningAcceptedPackages; +- public boolean debug; +- } +- +- public static Input from(Parameters parameters) { +- final ClassLoader originalContextClassLoader = Thread.currentThread().getContextClassLoader(); ++ private static Input fromClassNames(List classNames) { + try { +- if (parameters.classLoader != null) { +- Thread.currentThread().setContextClassLoader(parameters.classLoader); +- } +- try (final ClasspathScanner classpathScanner = new ClasspathScanner(parameters.classLoader, parameters.scanningAcceptedPackages, parameters.debug)) { +- final List> types = new ArrayList<>(); +- if (parameters.classNames != null) { +- types.addAll(fromClassNames(parameters.classNames)); +- } +- if (parameters.classNamePatterns != null) { +- types.addAll(fromClassNamePatterns(classpathScanner.getScanResult(), parameters.classNamePatterns)); +- } +- if (parameters.classesImplementingInterfaces != null) { +- final ScanResult scanResult = classpathScanner.getScanResult(); +- final List> c = fromClassNames(parameters.classesImplementingInterfaces.stream() +- .flatMap(interf -> scanResult.getClassesImplementing(interf).getNames().stream()) +- .distinct() +- .collect(Collectors.toList()) +- ); +- types.addAll(c); +- } +- if (parameters.classesExtendingClasses != null) { +- final ScanResult scanResult = classpathScanner.getScanResult(); +- final List> c = fromClassNames(parameters.classesExtendingClasses.stream() +- .flatMap(superclass -> scanResult.getSubclasses(superclass).getNames().stream()) +- .distinct() +- .collect(Collectors.toList()) +- ); +- types.addAll(c); +- } +- if (parameters.classesWithAnnotations != null) { +- final ScanResult scanResult = classpathScanner.getScanResult(); +- types.addAll(fromClassNames(parameters.classesWithAnnotations.stream() +- .flatMap(annotation -> scanResult.getClassesWithAnnotation(annotation).getNames().stream()) +- .distinct() +- .collect(Collectors.toList()) +- )); +- } +- if (parameters.jaxrsApplicationClassName != null) { +- types.addAll(fromClassNames(Arrays.asList(parameters.jaxrsApplicationClassName))); +- } +- if (parameters.automaticJaxrsApplication) { +- types.addAll(JaxrsApplicationScanner.scanAutomaticJaxrsApplication(classpathScanner.getScanResult(), parameters.isClassNameExcluded)); +- } +- if (types.isEmpty()) { +- final String errorMessage = "No input classes found."; +- TypeScriptGenerator.getLogger().error(errorMessage); +- throw new RuntimeException(errorMessage); +- } +- return new Input(types); +- } +- } finally { +- Thread.currentThread().setContextClassLoader(originalContextClassLoader); +- } +- } +- +- private static class ClasspathScanner implements AutoCloseable { +- +- private final URLClassLoader classLoader; +- private final List acceptedPackages; +- private final boolean verbose; +- private ScanResult scanResult = null; +- +- public ClasspathScanner(URLClassLoader classLoader, List acceptedPackages, boolean verbose) { +- this.classLoader = classLoader; +- this.acceptedPackages = acceptedPackages; +- this.verbose = verbose; +- } +- +- public ScanResult getScanResult() { +- if (scanResult == null) { +- TypeScriptGenerator.getLogger().info("Scanning classpath"); +- final Date scanStart = new Date(); +- ClassGraph classGraph = new ClassGraph() +- .enableClassInfo() +- .enableAnnotationInfo() +- .ignoreClassVisibility(); +- if (classLoader != null) { +- classGraph = classGraph.overrideClasspath((Object[])classLoader.getURLs()); +- } +- if (acceptedPackages != null && !acceptedPackages.isEmpty()) { +- classGraph = classGraph.acceptPackages(acceptedPackages.toArray(new String[0])); +- } +- if (verbose) { +- classGraph = classGraph.verbose(); ++ final List> types = new ArrayList<>(); ++ for (String className : classNames) { ++ final Class cls = Thread.currentThread().getContextClassLoader().loadClass(className); ++ // skip synthetic classes (as those generated by java compiler for switch with enum) ++ // and anonymous classes (should not be processed and they do not have SimpleName) ++ if (!cls.isSynthetic() && !cls.isAnonymousClass()) { ++ types.add(new SourceType(cls, null, null)); + } +- final ScanResult result = classGraph.scan(); +- final int count = result.getAllClasses().size(); +- final Date scanEnd = new Date(); +- final double timeInSeconds = (scanEnd.getTime() - scanStart.getTime()) / 1000.0; +- TypeScriptGenerator.getLogger().info(String.format("Scanning finished in %.2f seconds. Total number of classes: %d.", timeInSeconds, count)); +- scanResult = result; +- } +- return scanResult; +- } +- +- @Override +- public void close() { +- if (scanResult != null) { +- scanResult.close(); + } ++ return new Input(types); ++ } catch (ReflectiveOperationException e) { ++ throw new RuntimeException(e); + } +- + } + +- private static List> fromClassNamePatterns(ScanResult scanResult, List classNamePatterns) { ++ private static Input fromClassNamePatterns(List classNamePatterns) { ++ System.out.println("Scanning classpath"); ++ final FastClasspathScanner scanner = new FastClasspathScanner().scan(); + final List allClassNames = new ArrayList<>(); +- allClassNames.addAll(scanResult.getAllStandardClasses().getNames()); +- allClassNames.addAll(scanResult.getAllInterfaces().getNames()); ++ allClassNames.addAll(scanner.getNamesOfAllStandardClasses()); ++ allClassNames.addAll(scanner.getNamesOfAllInterfaceClasses()); + Collections.sort(allClassNames); + final List classNames = filterClassNames(allClassNames, classNamePatterns); +- TypeScriptGenerator.getLogger().info(String.format("Found %d classes matching pattern.", classNames.size())); ++ System.out.println(String.format("Matched: %d, total: %d.", classNames.size(), allClassNames.size())); + return fromClassNames(classNames); + } + +- private static List> fromClassNames(List classNames) { +- final List> types = new ArrayList<>(); +- for (Class cls : loadClasses(classNames)) { +- // skip synthetic classes (as those generated by java compiler for switch with enum) +- // and anonymous classes (should not be processed and they do not have SimpleName) +- if (!cls.isSynthetic() && !cls.isAnonymousClass()) { +- types.add(new SourceType<>(cls, null, null)); +- } +- } +- return types; ++ private static Input fromJaxrsApplication(String jaxrsApplicationClassName, Predicate isClassNameExcluded) { ++ final List> sourceTypes = new JaxrsApplicationScanner().scanJaxrsApplication(jaxrsApplicationClassName, isClassNameExcluded); ++ return new Input(sourceTypes); + } + +- static List> loadClasses(List classNames) { +- final List> classes = new ArrayList<>(); +- for (String className : classNames) { +- try { +- final Class cls = Thread.currentThread().getContextClassLoader().loadClass(className); +- classes.add(cls); +- } catch (ReflectiveOperationException e) { +- final String errorMessage = String.format("Cannot load class '%s'", className); +- TypeScriptGenerator.getLogger().error(errorMessage); +- throw new RuntimeException(errorMessage, e); ++ public static Input fromClassNamesAndJaxrsApplication(List classNames, List classNamePatterns, String jaxrsApplicationClassName, boolean automaticJaxrsApplication, Predicate isClassNameExcluded, ClassLoader classLoader) { ++ final ClassLoader originalContextClassLoader = Thread.currentThread().getContextClassLoader(); ++ try { ++ Thread.currentThread().setContextClassLoader(classLoader); ++ final List> types = new ArrayList<>(); ++ if (classNames != null) { ++ types.addAll(fromClassNames(classNames).getSourceTypes()); ++ } ++ if (classNamePatterns != null) { ++ types.addAll(fromClassNamePatterns(classNamePatterns).getSourceTypes()); ++ } ++ if (jaxrsApplicationClassName != null) { ++ types.addAll(fromJaxrsApplication(jaxrsApplicationClassName, isClassNameExcluded).getSourceTypes()); + } ++ if (automaticJaxrsApplication) { ++ types.addAll(fromJaxrsApplication(null, isClassNameExcluded).getSourceTypes()); ++ } ++ if (types.isEmpty()) { ++ final String errorMessage = "No input classes found."; ++ System.out.println(errorMessage); ++ throw new RuntimeException(errorMessage); ++ } ++ return new Input(types); ++ } finally { ++ Thread.currentThread().setContextClassLoader(originalContextClassLoader); + } +- return classes; + } + + static List filterClassNames(List classNames, List globs) { +- final List regexps = Utils.globsToRegexps(globs); ++ final List regexps = globsToRegexps(globs); + final List result = new ArrayList<>(); + for (String className : classNames) { +- if (Utils.classNameMatches(className, regexps)) { ++ if (classNameMatches(className, regexps)) { + result.add(className); + } + } + return result; + } + ++ static boolean classNameMatches(String className, List regexps) { ++ for (Pattern regexp : regexps) { ++ if (regexp.matcher(className).matches()) { ++ return true; ++ } ++ } ++ return false; ++ } ++ ++ static List globsToRegexps(List globs) { ++ final List regexps = new ArrayList<>(); ++ for (String glob : globs) { ++ regexps.add(globToRegexp(glob)); ++ } ++ return regexps; ++ } ++ ++ /** ++ * Creates regexp for glob pattern. ++ * Replaces "*" with "[^.\$]*" and "**" with ".*". ++ */ ++ static Pattern globToRegexp(String glob) { ++ final Pattern globToRegexpPattern = Pattern.compile("(\\*\\*)|(\\*)"); ++ final Matcher matcher = globToRegexpPattern.matcher(glob); ++ final StringBuffer sb = new StringBuffer(); ++ int lastEnd = 0; ++ while (matcher.find()) { ++ sb.append(Pattern.quote(glob.substring(lastEnd, matcher.start()))); ++ if (matcher.group(1) != null) { ++ sb.append(Matcher.quoteReplacement(".*")); ++ } ++ if (matcher.group(2) != null) { ++ sb.append(Matcher.quoteReplacement("[^.$]*")); ++ } ++ lastEnd = matcher.end(); ++ } ++ sb.append(Pattern.quote(glob.substring(lastEnd, glob.length()))); ++ return Pattern.compile(sb.toString()); ++ } ++ + } +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/Jackson2Configuration.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/Jackson2Configuration.java +deleted file mode 100644 +index d1db7845e..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/Jackson2Configuration.java ++++ /dev/null +@@ -1,85 +0,0 @@ +- +-package cz.habarta.typescript.generator; +- +-import com.fasterxml.jackson.annotation.JsonAutoDetect; +-import java.util.List; +- +- +-/** +- * This class is used for configuration in Maven and Gradle plugins +- * so we need to pay attention to use only types supported in both build plugins. +- */ +-public class Jackson2Configuration { +- +- /** +- * Minimum visibility required for fields to be auto-detected. +- */ +- public JsonAutoDetect.Visibility fieldVisibility; +- +- /** +- * Minimum visibility required for getters to be auto-detected (doesn't include "is getters"). +- */ +- public JsonAutoDetect.Visibility getterVisibility; +- +- /** +- * Minimum visibility required for "is getters" to be auto-detected. +- */ +- public JsonAutoDetect.Visibility isGetterVisibility; +- +- /** +- * Minimum visibility required for setters to be auto-detected. +- */ +- public JsonAutoDetect.Visibility setterVisibility; +- +- /** +- * Minimum visibility required for creators to be auto-detected. +- */ +- public JsonAutoDetect.Visibility creatorVisibility; +- +- /** +- * Shape format overrides for specified classes. +- * Multiple overrides can be specified, each using this format: javaClassName:shape +- * where shape is one of the values from +- * JsonFormat.Shape enum. +- * Example: java.util.Map$Entry:OBJECT +- */ +- public List shapeConfigOverrides; +- +- /** +- * Feature that determines standard Enum values representation: +- * if enabled, return value of Enum.toString() is used; +- * if disabled, return value of Enum.name() is used.
+- * (In ObjectMapper this feature is controlled using +- * SerializationFeature.WRITE_ENUMS_USING_TO_STRING and +- * DeserializationFeature.READ_ENUMS_USING_TO_STRING constants.)
+- * Default value is false. +- */ +- public boolean enumsUsingToString; +- +- /** +- * Disables processing of @JsonIdentityInfo and @JsonIdentityReference annotations. +- * Can be useful for example when using JSOG library which uses IDs to serialize and deserialize object graphs. +- */ +- public boolean disableObjectIdentityFeature; +- +- /** +- * Types produced by JsonSerializers. +- * Multiple mappings can be specified, each using following format: serializerClassName:typescriptType. +- * Example: org.example.IdSerializer:string or org.example.IdSerializer:{ id: string } +- */ +- public List serializerTypeMappings; +- +- /** +- * Types produced by JsonDeserializers. +- * Multiple mappings can be specified, each using following format: deserializerClassName:typescriptType. +- * Example: org.example.MyDeserializer:string +- */ +- public List deserializerTypeMappings; +- +- /** +- * Specifies ObjectMapper's active view (as a fully-qualified class name). +- * Properties can be annotated with @JsonView to indicate which views they are part of. +- */ +- public String view; +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/Jackson2ConfigurationResolved.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/Jackson2ConfigurationResolved.java +deleted file mode 100644 +index 0fbd5d094..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/Jackson2ConfigurationResolved.java ++++ /dev/null +@@ -1,78 +0,0 @@ +- +-package cz.habarta.typescript.generator; +- +-import com.fasterxml.jackson.annotation.JsonAutoDetect; +-import com.fasterxml.jackson.annotation.JsonFormat; +-import com.fasterxml.jackson.databind.JsonDeserializer; +-import com.fasterxml.jackson.databind.JsonSerializer; +-import java.util.LinkedHashMap; +-import java.util.List; +-import java.util.Map; +-import java.util.function.Function; +- +- +-public class Jackson2ConfigurationResolved { +- +- public JsonAutoDetect.Visibility fieldVisibility; +- public JsonAutoDetect.Visibility getterVisibility; +- public JsonAutoDetect.Visibility isGetterVisibility; +- public JsonAutoDetect.Visibility setterVisibility; +- public JsonAutoDetect.Visibility creatorVisibility; +- public Map, JsonFormat.Shape> shapeConfigOverrides; +- public boolean enumsUsingToString; +- public boolean disableObjectIdentityFeature; +- @SuppressWarnings("rawtypes") +- public Map, String> serializerTypeMappings; +- @SuppressWarnings("rawtypes") +- public Map, String> deserializerTypeMappings; +- public Class view; +- +- public static Jackson2ConfigurationResolved from(Jackson2Configuration configuration, ClassLoader classLoader) { +- final Jackson2ConfigurationResolved resolved = new Jackson2ConfigurationResolved(); +- resolved.fieldVisibility = configuration.fieldVisibility; +- resolved.getterVisibility = configuration.getterVisibility; +- resolved.isGetterVisibility = configuration.isGetterVisibility; +- resolved.setterVisibility = configuration.setterVisibility; +- resolved.creatorVisibility = configuration.creatorVisibility; +- resolved.fieldVisibility = configuration.fieldVisibility; +- resolved.shapeConfigOverrides = resolveClassMappings( +- configuration.shapeConfigOverrides, "shapeConfigOverride", classLoader, Object.class, JsonFormat.Shape::valueOf); +- resolved.enumsUsingToString = configuration.enumsUsingToString; +- resolved.disableObjectIdentityFeature = configuration.disableObjectIdentityFeature; +- resolved.deserializerTypeMappings = resolveClassMappings( +- configuration.deserializerTypeMappings, "deserializerTypeMapping", classLoader, JsonDeserializer.class, Function.identity()); +- resolved.serializerTypeMappings = resolveClassMappings( +- configuration.serializerTypeMappings, "serializerTypeMapping", classLoader, JsonSerializer.class, Function.identity()); +- resolved.view = configuration.view != null ? Settings.loadClass(classLoader, configuration.view, Object.class) : null; +- return resolved; +- } +- +- private static Map, V> resolveClassMappings(List mappings, String mappingName, ClassLoader classLoader, +- Class key, Function valueConvertor) { +- if (mappings == null) { +- return null; +- } +- final Map, V> resolvedMappings = new LinkedHashMap<>(); +- final Map mappingsMap = Settings.convertToMap(mappings, mappingName); +- for (Map.Entry entry : mappingsMap.entrySet()) { +- final Class cls = Settings.loadClass(classLoader, entry.getKey(), key); +- final V value = valueConvertor.apply(entry.getValue()); +- resolvedMappings.put(cls, value); +- } +- return resolvedMappings; +- } +- +- public void setVisibility( +- JsonAutoDetect.Visibility fieldVisibility, +- JsonAutoDetect.Visibility getterVisibility, +- JsonAutoDetect.Visibility isGetterVisibility, +- JsonAutoDetect.Visibility setterVisibility, +- JsonAutoDetect.Visibility creatorVisibility) { +- this.fieldVisibility = fieldVisibility; +- this.getterVisibility = getterVisibility; +- this.isGetterVisibility = isGetterVisibility; +- this.setterVisibility = setterVisibility; +- this.creatorVisibility = creatorVisibility; +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/JaxrsApplicationScanner.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/JaxrsApplicationScanner.java +index 5bbb4cb67..523fbae7b 100644 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/JaxrsApplicationScanner.java ++++ b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/JaxrsApplicationScanner.java +@@ -1,79 +1,205 @@ + + package cz.habarta.typescript.generator; + +-import cz.habarta.typescript.generator.parser.SourceType; ++import cz.habarta.typescript.generator.parser.*; ++import cz.habarta.typescript.generator.util.Predicate; + import cz.habarta.typescript.generator.util.Utils; +-import io.github.classgraph.ScanResult; +-import java.lang.reflect.Constructor; +-import java.lang.reflect.Type; +-import java.util.ArrayList; +-import java.util.Collections; +-import java.util.List; +-import java.util.Set; +-import java.util.function.Predicate; ++import io.github.lukehutch.fastclasspathscanner.FastClasspathScanner; ++import java.lang.annotation.*; ++import java.lang.reflect.*; ++import java.util.*; ++import javax.ws.rs.*; ++import javax.ws.rs.core.*; + + + public class JaxrsApplicationScanner { + +- public static List> scanJaxrsApplication(Class jaxrsApplicationClass, Predicate isClassNameExcluded) { +- final ClassLoader originalContextClassLoader = Thread.currentThread().getContextClassLoader(); ++ private Predicate isClassNameExcluded; ++ private Set defaultExcludes; ++ private Queue> resourceQueue; ++ private List> discoveredTypes; ++ ++ public List> scanJaxrsApplication(String jaxrsApplicationClassName, Predicate isClassNameExcluded) { + try { +- Thread.currentThread().setContextClassLoader(jaxrsApplicationClass.getClassLoader()); +- TypeScriptGenerator.getLogger().info("Scanning JAX-RS application: " + jaxrsApplicationClass.getName()); +- final Constructor constructor = jaxrsApplicationClass.getDeclaredConstructor(); +- constructor.setAccessible(true); +- final Object instance = constructor.newInstance(); +- final Set> applicationClasses; +- if (instance instanceof jakarta.ws.rs.core.Application) { +- applicationClasses = ((jakarta.ws.rs.core.Application) instance).getClasses(); +- } else if (instance instanceof javax.ws.rs.core.Application) { +- applicationClasses = ((javax.ws.rs.core.Application) instance).getClasses(); +- } else { +- applicationClasses = Collections.emptySet(); ++ final List> resourceClasses = jaxrsApplicationClassName != null ++ ? scanJaxrsApplicationForJaxrsResources(jaxrsApplicationClassName) ++ : scanClasspathForJaxrsResources(); ++ return scanJaxrsApplication(resourceClasses, isClassNameExcluded); ++ } catch (ReflectiveOperationException e) { ++ final String url = "https://github.com/vojtechhabarta/typescript-generator/wiki/JAX-RS-Application"; ++ final String message = "Cannot load JAX-RS application. For more information see " + url + "."; ++ System.out.println(message); ++ throw new RuntimeException(message, e); ++ } ++ } ++ ++ private static List> scanJaxrsApplicationForJaxrsResources(String jaxrsApplicationClassName) throws ReflectiveOperationException { ++ System.out.println("Scanning JAX-RS application: " + jaxrsApplicationClassName); ++ final Class jaxrsApplicationClass = Thread.currentThread().getContextClassLoader().loadClass(jaxrsApplicationClassName); ++ final Constructor constructor = jaxrsApplicationClass.getDeclaredConstructor(); ++ constructor.setAccessible(true); ++ final Application application = (Application) constructor.newInstance(); ++ return new ArrayList<>(application.getClasses()); ++ } ++ ++ private static List> scanClasspathForJaxrsResources() throws ReflectiveOperationException { ++ final FastClasspathScanner scanner = new FastClasspathScanner().scan(); ++ final List namesOfResourceClasses = scanner.getNamesOfClassesWithAnnotation(Path.class); ++ final List> classes = new ArrayList<>(); ++ for (String className : namesOfResourceClasses) { ++ classes.add(Thread.currentThread().getContextClassLoader().loadClass(className)); ++ } ++ System.out.println(String.format("Found: %d root resources.", classes.size())); ++ return classes; ++ } ++ ++ List> scanJaxrsApplication(List> resourceClasses, Predicate isClassNameExcluded) { ++ resourceQueue = new LinkedList<>(); ++ discoveredTypes = new ArrayList<>(); ++ this.isClassNameExcluded = isClassNameExcluded; ++ this.defaultExcludes = new LinkedHashSet<>(getDefaultExcludedClassNames()); ++ final LinkedHashSet> scannedResources = new LinkedHashSet<>(); ++ Collections.sort(resourceClasses, new Comparator>() { ++ @Override ++ public int compare(Class o1, Class o2) { ++ return o1.getName().compareToIgnoreCase(o2.getName()); + } +- final List> resourceClasses = new ArrayList<>(); +- for (Class cls : applicationClasses) { +- if (cls.isAnnotationPresent(jakarta.ws.rs.Path.class) || cls.isAnnotationPresent(javax.ws.rs.Path.class)) { +- resourceClasses.add(cls); +- } ++ }); ++ for (Class resourceClass : resourceClasses) { ++ if (resourceClass.isAnnotationPresent(Path.class)) { ++ resourceQueue.add(resourceClass); ++ } ++ } ++ Class resourceClass; ++ while ((resourceClass = resourceQueue.poll()) != null) { ++ if (!scannedResources.contains(resourceClass) && !isExcluded(resourceClass)) { ++ System.out.println("Scanning JAX-RS resource: " + resourceClass.getName()); ++ scanResource(resourceClass); ++ scannedResources.add(resourceClass); + } +- return new JaxrsApplicationScanner().scanJaxrsApplication(jaxrsApplicationClass, resourceClasses, isClassNameExcluded); +- } catch (ReflectiveOperationException e) { +- throw reportError(e); +- } finally { +- Thread.currentThread().setContextClassLoader(originalContextClassLoader); + } ++ return discoveredTypes; + } + +- public static List> scanAutomaticJaxrsApplication(ScanResult scanResult, Predicate isClassNameExcluded) { +- final List namesOfResourceClasses = Utils.concat( +- scanResult.getClassesWithAnnotation(jakarta.ws.rs.Path.class.getName()).getNames(), +- scanResult.getClassesWithAnnotation(javax.ws.rs.Path.class.getName()).getNames() +- ); +- final List> resourceClasses = Input.loadClasses(namesOfResourceClasses); +- TypeScriptGenerator.getLogger().info(String.format("Found %d root resources.", resourceClasses.size())); +- return new JaxrsApplicationScanner().scanJaxrsApplication(null, resourceClasses, isClassNameExcluded); ++ private void scanResource(Class resourceClass) { ++ final List methods = Arrays.asList(resourceClass.getMethods()); ++ Collections.sort(methods, new Comparator() { ++ @Override ++ public int compare(Method o1, Method o2) { ++ return o1.getName().compareToIgnoreCase(o2.getName()); ++ } ++ }); ++ for (Method method : methods) { ++ scanResourceMethod(resourceClass, method); ++ } + } + +- private static RuntimeException reportError(ReflectiveOperationException e) { +- final String url = "https://github.com/vojtechhabarta/typescript-generator/wiki/JAX-RS-Application"; +- final String message = "Cannot load JAX-RS application. For more information see " + url + "."; +- TypeScriptGenerator.getLogger().error(message); +- return new RuntimeException(message, e); ++ private void scanResourceMethod(Class resourceClass, Method method) { ++ if (isHttpMethod(method)) { ++ // JAX-RS specification - 3.3.2.1 Entity Parameters ++ final Type entityParameterType = getEntityParameterType(method); ++ if (entityParameterType != null) { ++ foundType(entityParameterType, resourceClass, method.getName()); ++ } ++ // JAX-RS specification - 3.3.3 Return Type ++ final Class returnType = method.getReturnType(); ++ final Type genericReturnType = method.getGenericReturnType(); ++ if (returnType == void.class || returnType == Response.class) { ++ // no discovered Type ++ } else if (genericReturnType instanceof ParameterizedType && returnType == GenericEntity.class) { ++ final ParameterizedType parameterizedReturnType = (ParameterizedType) genericReturnType; ++ foundType(parameterizedReturnType.getActualTypeArguments()[0], resourceClass, method.getName()); ++ } else { ++ foundType(genericReturnType, resourceClass, method.getName()); ++ } ++ } ++ // JAX-RS specification - 3.4.1 Sub Resources ++ if (method.isAnnotationPresent(Path.class) && !isHttpMethod(method)) { ++ resourceQueue.add(method.getReturnType()); ++ } + } + +- List> scanJaxrsApplication(Class applicationClass, List> resourceClasses, Predicate isClassNameExcluded) { +- Collections.sort(resourceClasses, (o1, o2) -> o1.getName().compareToIgnoreCase(o2.getName())); +- final List> sourceTypes = new ArrayList<>(); +- if (applicationClass != null) { +- sourceTypes.add(new SourceType<>(applicationClass)); ++ private void foundType(Type type, Class usedInClass, String usedInMember) { ++ if (!isExcluded(type)) { ++ discoveredTypes.add(new SourceType<>(type, usedInClass, usedInMember)); + } +- for (Class resourceClass : resourceClasses) { +- if (isClassNameExcluded == null || !isClassNameExcluded.test(resourceClass.getName())) { +- sourceTypes.add(new SourceType<>(resourceClass)); ++ } ++ ++ private boolean isExcluded(Type type) { ++ final Class cls = Utils.getRawClassOrNull(type); ++ if (cls != null && isClassNameExcluded != null && isClassNameExcluded.test(cls.getName())) { ++ return true; ++ } ++ if (cls != null && defaultExcludes.contains(cls.getName())) { ++ return true; ++ } ++ for (Class standardEntityClass : getStandardEntityClasses()) { ++ if (standardEntityClass.isAssignableFrom(cls)) { ++ return true; ++ } ++ } ++ return false; ++ } ++ ++ private static boolean isHttpMethod(Method method) { ++ for (Annotation annotation : method.getAnnotations()) { ++ if (annotation.annotationType().isAnnotationPresent(HttpMethod.class)) { ++ return true; + } + } +- return sourceTypes; ++ return false; ++ } ++ ++ private static Type getEntityParameterType(Method method) { ++ final Annotation[][] parameterAnnotations = method.getParameterAnnotations(); ++ for (int i = 0; i < parameterAnnotations.length; i++) { ++ if (!hasAnyAnnotation(parameterAnnotations[i], Arrays.asList( ++ MatrixParam.class, ++ QueryParam.class, ++ PathParam.class, ++ CookieParam.class, ++ HeaderParam.class, ++ Context.class, ++ FormParam.class ++ ))) { ++ return method.getGenericParameterTypes()[i]; ++ } ++ } ++ return null; ++ } ++ ++ private static boolean hasAnyAnnotation(Annotation[] parameterAnnotations, List> annotationClasses) { ++ for (Class annotationClass : annotationClasses) { ++ for (Annotation parameterAnnotation : parameterAnnotations) { ++ if (annotationClass.isInstance(parameterAnnotation)) { ++ return true; ++ } ++ } ++ } ++ return false; ++ } ++ ++ private static List> getStandardEntityClasses() { ++ // JAX-RS specification - 4.2.4 Standard Entity Providers ++ return Arrays.asList( ++ byte[].class, ++ java.lang.String.class, ++ java.io.InputStream.class, ++ java.io.Reader.class, ++ java.io.File.class, ++ javax.activation.DataSource.class, ++ javax.xml.transform.Source.class, ++ javax.xml.bind.JAXBElement.class, ++ MultivaluedMap.class, ++ StreamingOutput.class, ++ java.lang.Boolean.class, java.lang.Character.class, java.lang.Number.class, ++ long.class, int.class, short.class, byte.class, double.class, float.class, boolean.class, char.class); ++ } ++ ++ private static List getDefaultExcludedClassNames() { ++ return Arrays.asList( ++ "org.glassfish.jersey.media.multipart.FormDataBodyPart" ++ ); + } + + } +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/JsonLibrary.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/JsonLibrary.java +index 07397ee28..04a5f17a2 100644 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/JsonLibrary.java ++++ b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/JsonLibrary.java +@@ -1,5 +1,7 @@ ++ + package cz.habarta.typescript.generator; + ++ + public enum JsonLibrary { +- jackson2, jaxb, gson, jsonb ++ jackson1, jackson2, jaxb + } +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/JsonbConfiguration.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/JsonbConfiguration.java +deleted file mode 100644 +index f407066f2..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/JsonbConfiguration.java ++++ /dev/null +@@ -1,14 +0,0 @@ +- +-package cz.habarta.typescript.generator; +- +-/** +- * This class is used for configuration in Maven and Gradle plugins +- * so we need to pay attention to use only types supported in both build plugins. +- */ +-public class JsonbConfiguration { +- +- /** +- * {@link javax.json.bind.config.PropertyNamingStrategy} name. +- */ +- public String namingStrategy = "IDENTITY"; +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/LoadedDataLibraries.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/LoadedDataLibraries.java +deleted file mode 100644 +index c9f407cb3..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/LoadedDataLibraries.java ++++ /dev/null +@@ -1,104 +0,0 @@ +- +-package cz.habarta.typescript.generator; +- +-import java.util.Arrays; +-import java.util.Collection; +-import java.util.Collections; +-import java.util.List; +-import java.util.Objects; +-import java.util.function.Function; +-import java.util.stream.Collectors; +- +- +-public class LoadedDataLibraries { +- +- public final List> stringClasses; +- public final List> numberClasses; +- public final List> booleanClasses; +- public final List> dateClasses; +- public final List> anyClasses; +- public final List> voidClasses; +- public final List> listClasses; +- public final List> mapClasses; +- public final List> optionalClasses; +- public final List> wrapperClasses; +- public final List typeMappings; +- public final List typeAliases; +- +- public LoadedDataLibraries() { +- this(empty(), empty(), empty(), empty(), empty(), empty(), empty(), empty(), empty(), empty(), empty(), empty()); +- } +- +- private static List empty() { +- return Collections.emptyList(); +- } +- +- public LoadedDataLibraries( +- List> stringClasses, +- List> numberClasses, +- List> booleanClasses, +- List> dateClasses, +- List> anyClasses, +- List> voidClasses, +- List> listClasses, +- List> mapClasses, +- List> optionalClasses, +- List> wrapperClasses, +- List typeMappings, +- List typeAliases +- ) { +- this.stringClasses = stringClasses; +- this.numberClasses = numberClasses; +- this.booleanClasses = booleanClasses; +- this.dateClasses = dateClasses; +- this.anyClasses = anyClasses; +- this.voidClasses = voidClasses; +- this.listClasses = validateNumberOfGenericParameters(listClasses, 1); +- this.mapClasses = validateNumberOfGenericParameters(mapClasses, 2); +- this.optionalClasses = validateNumberOfGenericParameters(optionalClasses, 1); +- this.wrapperClasses = validateNumberOfGenericParameters(wrapperClasses, 1); +- this.typeMappings = typeMappings; +- this.typeAliases = typeAliases; +- } +- +- private static List> validateNumberOfGenericParameters(List> classes, int required) { +- for (Class cls : classes) { +- if (cls.getTypeParameters().length != required) { +- throw new RuntimeException(String.format( +- "Data library class '%s' is required to have %d generic type parameters but it has %d", +- cls.getName(), required, cls.getTypeParameters().length)); +- } +- } +- return classes; +- } +- +- public static LoadedDataLibraries join(LoadedDataLibraries... jsons) { +- return join(Arrays.asList(jsons)); +- } +- +- public static LoadedDataLibraries join(List jsons) { +- return new LoadedDataLibraries( +- joinMappedLists(jsons, j -> j.stringClasses), +- joinMappedLists(jsons, j -> j.numberClasses), +- joinMappedLists(jsons, j -> j.booleanClasses), +- joinMappedLists(jsons, j -> j.dateClasses), +- joinMappedLists(jsons, j -> j.anyClasses), +- joinMappedLists(jsons, j -> j.voidClasses), +- joinMappedLists(jsons, j -> j.listClasses), +- joinMappedLists(jsons, j -> j.mapClasses), +- joinMappedLists(jsons, j -> j.optionalClasses), +- joinMappedLists(jsons, j -> j.wrapperClasses), +- joinMappedLists(jsons, j -> j.typeMappings), +- joinMappedLists(jsons, j -> j.typeAliases) +- ); +- } +- +- private static List joinMappedLists(List list, Function> mapper) { +- return list.stream() +- .filter(Objects::nonNull) +- .map(mapper) +- .flatMap(Collection::stream) +- .collect(Collectors.toList()); +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/LoadedModuleDependencies.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/LoadedModuleDependencies.java +deleted file mode 100644 +index fa93a5a62..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/LoadedModuleDependencies.java ++++ /dev/null +@@ -1,106 +0,0 @@ +- +-package cz.habarta.typescript.generator; +- +-import com.fasterxml.jackson.databind.ObjectMapper; +-import cz.habarta.typescript.generator.emitter.InfoJson; +-import cz.habarta.typescript.generator.util.Pair; +-import cz.habarta.typescript.generator.util.Utils; +-import java.io.IOException; +-import java.util.LinkedHashMap; +-import java.util.List; +-import java.util.Map; +-import java.util.Objects; +-import java.util.function.Function; +- +- +-public class LoadedModuleDependencies { +- +- private final Map> classMappings = new LinkedHashMap<>(); +- +- public LoadedModuleDependencies(Settings settings, List dependencies) { +- if (dependencies == null) { +- return; +- } +- final ObjectMapper objectMapper = Utils.getObjectMapper(); +- final Map importFromMap = new LinkedHashMap<>(); +- final Map importAsMap = new LinkedHashMap<>(); +- final Map globalTypeNames = new LinkedHashMap<>(); +- for (ModuleDependency dependency : dependencies) { +- try { +- final Function reportNullParameter = parameterName -> +- String.format("Missing required configuration parameter '%s' in module dependency: %s", parameterName, dependency); +- if (dependency.global) { +- if (dependency.importFrom != null) { +- throw new RuntimeException(String.format( +- "'importFrom' parameter is only applicable when 'global' is not set to 'true' (at module dependency %s).", dependency)); +- } +- if (dependency.importAs != null) { +- throw new RuntimeException(String.format( +- "'importAs' parameter is only applicable when 'global' is not set to 'true' (at module dependency %s).", dependency)); +- } +- } else { +- Objects.requireNonNull(dependency.importFrom, () -> reportNullParameter.apply("importFrom")); +- Objects.requireNonNull(dependency.importAs, () -> reportNullParameter.apply("importAs")); +- } +- Objects.requireNonNull(dependency.infoJson, () -> reportNullParameter.apply("infoJson")); +- if (settings.generateNpmPackageJson) { +- Objects.requireNonNull(dependency.npmPackageName, () -> reportNullParameter.apply("npmPackageName")); +- Objects.requireNonNull(dependency.npmVersionRange, () -> reportNullParameter.apply("npmVersionRange")); +- } else { +- if (dependency.npmPackageName != null) { +- throw new RuntimeException(String.format( +- "'npmPackageName' parameter is only applicable when 'generateNpmPackageJson' is set to 'true' (at module dependency %s).", dependency)); +- } +- if (dependency.npmVersionRange != null) { +- throw new RuntimeException(String.format( +- "'npmVersionRange' parameter is only applicable when 'generateNpmPackageJson' is set to 'true' (at module dependency %s).", dependency)); +- } +- } +- +- TypeScriptGenerator.getLogger().info(String.format( +- "Loading %s module info from: %s", dependency.toShortString(), dependency.infoJson)); +- +- if (!dependency.global) { +- final ModuleDependency importFromConflict = importFromMap.put(dependency.importFrom, dependency); +- if (importFromConflict != null) { +- throw new RuntimeException(String.format("Duplicate module '%s'", dependency.importFrom)); +- } +- +- final ModuleDependency importAsConflict = importAsMap.put(dependency.importAs, dependency); +- if (importAsConflict != null) { +- throw new RuntimeException(String.format("Import identifier '%s' already used for module '%s'", dependency.importAs, importAsConflict.importFrom)); +- } +- } +- +- final InfoJson infoJson = objectMapper.readValue(dependency.infoJson, InfoJson.class); +- for (InfoJson.ClassInfo classInfo : infoJson.classes) { +- final Pair presentMapping = classMappings.get(classInfo.javaClass); +- if (presentMapping != null) { +- TypeScriptGenerator.getLogger().warning(String.format( +- "Java class '%s' already present in '%s'", classInfo.javaClass, presentMapping.getValue1().infoJson)); +- } else { +- classMappings.put(classInfo.javaClass, Pair.of(dependency, classInfo.typeName)); +- } +- final ModuleDependency presentTypeName = globalTypeNames.get(classInfo.typeName); +- if (presentTypeName != null) { +- throw new RuntimeException(String.format( +- "Duplicate TypeScript global name '%s', declared in '%s' and also '%s'", classInfo.typeName, presentTypeName.infoJson, dependency.infoJson)); +- } else { +- globalTypeNames.put(classInfo.typeName, dependency); +- } +- } +- } catch (IOException e) { +- throw new RuntimeException(e); +- } +- } +- } +- +- public Pair getFullName(Class cls) { +- final Pair mapping = classMappings.get(cls.getName()); +- if (mapping != null) { +- return Pair.of(mapping.getValue1().importAs, mapping.getValue2()); +- } +- return null; +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/Logger.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/Logger.java +deleted file mode 100644 +index 840f8fcef..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/Logger.java ++++ /dev/null +@@ -1,43 +0,0 @@ +- +-package cz.habarta.typescript.generator; +- +- +-public class Logger { +- +- private final Level level; +- +- public enum Level { +- Debug, Verbose, Info, Warning, Error; +- } +- +- public Logger() { +- this(null); +- } +- +- public Logger(Level level) { +- this.level = level != null ? level : Level.Verbose; +- } +- +- protected void write(Level level, String message) { +- if (level.compareTo(this.level) >= 0) { +- System.out.println(message); +- } +- } +- +- public final void verbose(String message) { +- write(Level.Verbose, message); +- } +- +- public final void info(String message) { +- write(Level.Info, message); +- } +- +- public final void warning(String message) { +- write(Level.Warning, "Warning: " + message); +- } +- +- public final void error(String message) { +- write(Level.Error, "Error: " + message); +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/MapMapping.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/MapMapping.java +deleted file mode 100644 +index 45cfae8b5..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/MapMapping.java ++++ /dev/null +@@ -1,7 +0,0 @@ +- +-package cz.habarta.typescript.generator; +- +- +-public enum MapMapping { +- asIndexedArray, asRecord +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/ModuleDependency.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/ModuleDependency.java +deleted file mode 100644 +index 03996074a..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/ModuleDependency.java ++++ /dev/null +@@ -1,50 +0,0 @@ +- +-package cz.habarta.typescript.generator; +- +-import com.fasterxml.jackson.annotation.JsonInclude; +-import cz.habarta.typescript.generator.util.Utils; +-import java.io.File; +- +- +-@JsonInclude(JsonInclude.Include.NON_DEFAULT) +-public class ModuleDependency { +- +- public boolean global; +- public String importFrom; +- public String importAs; +- public File infoJson; +- public String npmPackageName; +- public String npmVersionRange; +- public boolean peerDependency; +- +- public ModuleDependency() { +- } +- +- private ModuleDependency(boolean global, String importFrom, String importAs, File infoJson, String npmPackageName, String npmVersionRange, boolean peerDependency) { +- this.global = global; +- this.importFrom = importFrom; +- this.importAs = importAs; +- this.infoJson = infoJson; +- this.npmPackageName = npmPackageName; +- this.npmVersionRange = npmVersionRange; +- this.peerDependency = peerDependency; +- } +- +- public static ModuleDependency module(String importFrom, String importAs, File infoJson, String npmPackageName, String npmVersionRange) { +- return new ModuleDependency(false, importFrom, importAs, infoJson, npmPackageName, npmVersionRange, false); +- } +- +- public static ModuleDependency global(File infoJson) { +- return new ModuleDependency(true, null, null, infoJson, null, null, false); +- } +- +- @Override +- public String toString() { +- return Utils.objectToString(this); +- } +- +- public String toShortString() { +- return global ? "global" : "'" + importFrom + "'"; +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/NullabilityDefinition.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/NullabilityDefinition.java +deleted file mode 100644 +index 07f35277a..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/NullabilityDefinition.java ++++ /dev/null +@@ -1,41 +0,0 @@ +- +-package cz.habarta.typescript.generator; +- +-import java.util.Arrays; +-import java.util.List; +- +- +-public enum NullabilityDefinition { +- +- nullAndUndefinedUnion (false, TsType.Null, TsType.Undefined), +- nullUnion (false, TsType.Null), +- undefinedUnion (false, TsType.Undefined), +- nullAndUndefinedInlineUnion (true, TsType.Null, TsType.Undefined), +- nullInlineUnion (true, TsType.Null), +- undefinedInlineUnion (true, TsType.Undefined); +- +- private final boolean isInline; +- private final List types; +- +- private NullabilityDefinition(boolean isInline, TsType... types) { +- this.isInline = isInline; +- this.types = Arrays.asList(types); +- } +- +- public boolean isInline() { +- return isInline; +- } +- +- public List getTypes() { +- return types; +- } +- +- public boolean containsUndefined() { +- return types.contains(TsType.Undefined); +- } +- +- public boolean containsNull() { +- return types.contains(TsType.Null); +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/OptionalProperties.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/OptionalProperties.java +deleted file mode 100644 +index d2bfb8f26..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/OptionalProperties.java ++++ /dev/null +@@ -1,7 +0,0 @@ +- +-package cz.habarta.typescript.generator; +- +- +-public enum OptionalProperties { +- useSpecifiedAnnotations, useLibraryDefinition, all +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/OptionalPropertiesDeclaration.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/OptionalPropertiesDeclaration.java +deleted file mode 100644 +index 8729260b4..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/OptionalPropertiesDeclaration.java ++++ /dev/null +@@ -1,11 +0,0 @@ +- +-package cz.habarta.typescript.generator; +- +- +-public enum OptionalPropertiesDeclaration { +- questionMark, +- questionMarkAndNullableType, +- nullableType, +- nullableAndUndefinableType, +- undefinableType, +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/Output.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/Output.java +index c6d4d8181..c8dc64c9d 100644 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/Output.java ++++ b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/Output.java +@@ -1,13 +1,8 @@ + + package cz.habarta.typescript.generator; + +-import java.io.File; +-import java.io.FileNotFoundException; +-import java.io.FileOutputStream; +-import java.io.OutputStream; +-import java.io.OutputStreamWriter; +-import java.io.Writer; +-import java.nio.charset.Charset; ++import java.io.*; ++import java.nio.charset.*; + + + public class Output { +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/RestNamespacing.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/RestNamespacing.java +deleted file mode 100644 +index a2b9c26a8..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/RestNamespacing.java ++++ /dev/null +@@ -1,9 +0,0 @@ +- +-package cz.habarta.typescript.generator; +- +- +-public enum RestNamespacing { +- +- singleObject, perResource, byAnnotation +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/Settings.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/Settings.java +index 729aa8be8..0a169945c 100644 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/Settings.java ++++ b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/Settings.java +@@ -1,47 +1,16 @@ + + package cz.habarta.typescript.generator; + +-import com.fasterxml.jackson.core.JsonParser; +-import com.fasterxml.jackson.databind.Module; +-import com.fasterxml.jackson.databind.ObjectMapper; +-import cz.habarta.typescript.generator.compiler.ModelCompiler; +-import cz.habarta.typescript.generator.compiler.SymbolTable.CustomTypeNamingFunction; + import cz.habarta.typescript.generator.emitter.EmitterExtension; +-import cz.habarta.typescript.generator.emitter.EmitterExtensionFeatures; +-import cz.habarta.typescript.generator.parser.JaxrsApplicationParser; +-import cz.habarta.typescript.generator.parser.RestApplicationParser; +-import cz.habarta.typescript.generator.parser.TypeParser; +-import cz.habarta.typescript.generator.util.Pair; +-import cz.habarta.typescript.generator.util.Utils; ++import cz.habarta.typescript.generator.util.Predicate; + import java.io.File; +-import java.io.InputStream; + import java.lang.annotation.Annotation; +-import java.lang.annotation.ElementType; +-import java.lang.annotation.Retention; +-import java.lang.annotation.RetentionPolicy; +-import java.lang.annotation.Target; +-import java.lang.reflect.TypeVariable; +-import java.net.URL; +-import java.net.URLClassLoader; +-import java.util.ArrayList; +-import java.util.Arrays; +-import java.util.Collections; +-import java.util.LinkedHashMap; +-import java.util.LinkedHashSet; +-import java.util.List; +-import java.util.Locale; +-import java.util.Map; +-import java.util.Objects; +-import java.util.Set; +-import java.util.function.Predicate; +-import java.util.regex.Matcher; ++import java.util.*; + import java.util.regex.Pattern; +-import java.util.stream.Collectors; +-import java.util.stream.Stream; + + + /** +- * See cz.habarta.typescript.generator.maven.GenerateMojo ++ * @see cz.habarta.typescript.generator.maven.GenerateMojo + * @see README.md on GitHub or in project root directory + * @see Wiki on GitHub + */ +@@ -53,173 +22,30 @@ public class Settings { + public TypeScriptOutputKind outputKind = null; + public String module = null; + public String namespace = null; +- public boolean mapPackagesToNamespaces = false; +- public String umdNamespace = null; +- public List moduleDependencies = new ArrayList<>(); +- private LoadedModuleDependencies loadedModuleDependencies = null; + public JsonLibrary jsonLibrary = null; +- public Jackson2ConfigurationResolved jackson2Configuration = null; +- public GsonConfiguration gsonConfiguration = null; +- public JsonbConfiguration jsonbConfiguration = null; +- public List additionalDataLibraries = new ArrayList<>(); +- private LoadedDataLibraries loadedDataLibrariesClasses = null; + private Predicate excludeFilter = null; +- public OptionalProperties optionalProperties; // default is OptionalProperties.useSpecifiedAnnotations +- public OptionalPropertiesDeclaration optionalPropertiesDeclaration; // default is OptionalPropertiesDeclaration.questionMark +- public NullabilityDefinition nullabilityDefinition; // default is NullabilityDefinition.nullInlineUnion +- private TypeParser typeParser = null; +- public boolean declarePropertiesAsReadOnly = false; ++ public boolean declarePropertiesAsOptional = false; + public String removeTypeNamePrefix = null; + public String removeTypeNameSuffix = null; + public String addTypeNamePrefix = null; + public String addTypeNameSuffix = null; + public Map customTypeNaming = new LinkedHashMap<>(); +- public String customTypeNamingFunction = null; +- public CustomTypeNamingFunction customTypeNamingFunctionImpl = null; + public List referencedFiles = new ArrayList<>(); + public List importDeclarations = new ArrayList<>(); + public Map customTypeMappings = new LinkedHashMap<>(); +- private List validatedCustomTypeMappings = null; +- public Map customTypeAliases = new LinkedHashMap<>(); +- private List validatedCustomTypeAliases = null; + public DateMapping mapDate; // default is DateMapping.asDate +- public MapMapping mapMap; // default is MapMapping.asIndexedArray + public EnumMapping mapEnum; // default is EnumMapping.asUnion +- public IdentifierCasing enumMemberCasing; // default is IdentifierCasing.keepOriginal +- public boolean nonConstEnums = false; +- public List> nonConstEnumAnnotations = new ArrayList<>(); +- public ClassMapping mapClasses; // default is ClassMapping.asInterfaces +- public List mapClassesAsClassesPatterns; +- private Predicate mapClassesAsClassesFilter = null; +- public boolean generateConstructors = false; +- public List> disableTaggedUnionAnnotations = new ArrayList<>(); + public boolean disableTaggedUnions = false; +- public boolean generateReadonlyAndWriteonlyJSDocTags = false; +- public boolean ignoreSwaggerAnnotations = false; +- public boolean generateJaxrsApplicationInterface = false; +- public boolean generateJaxrsApplicationClient = false; +- public boolean generateSpringApplicationInterface = false; +- public boolean generateSpringApplicationClient = false; +- public boolean scanSpringApplication; +- public RestNamespacing restNamespacing; +- public Class restNamespacingAnnotation = null; +- public String restNamespacingAnnotationElement; // default is "value" +- public String restResponseType = null; +- public String restOptionsType = null; +- public boolean restOptionsTypeIsGeneric; +- private List restApplicationParserFactories; + public TypeProcessor customTypeProcessor = null; + public boolean sortDeclarations = false; + public boolean sortTypeDeclarations = false; + public boolean noFileComment = false; +- public boolean noTslintDisable = false; +- public boolean noEslintDisable = false; +- public boolean tsNoCheck = false; + public List javadocXmlFiles = null; + public List extensions = new ArrayList<>(); + public List> includePropertyAnnotations = new ArrayList<>(); +- public List> excludePropertyAnnotations = new ArrayList<>(); + public List> optionalAnnotations = new ArrayList<>(); +- public List> requiredAnnotations = new ArrayList<>(); +- public List> nullableAnnotations = new ArrayList<>(); +- public boolean primitivePropertiesRequired = false; +- public boolean generateInfoJson = false; +- public boolean generateNpmPackageJson = false; +- public String npmName = null; +- public String npmVersion = null; +- public Map npmPackageDependencies = new LinkedHashMap<>(); +- public Map npmDevDependencies = new LinkedHashMap<>(); +- public Map npmPeerDependencies = new LinkedHashMap<>(); +- public String typescriptVersion = "^2.4"; +- public String npmTypescriptVersion = null; +- public String npmBuildScript = null; +- public boolean jackson2ModuleDiscovery = false; +- public List> jackson2Modules = new ArrayList<>(); +- public ClassLoader classLoader = null; ++ public boolean displaySerializerWarning = true; + +- private boolean defaultStringEnumsOverriddenByExtension = false; +- +- public static class ConfiguredExtension { +- public String className; +- public Map configuration; +- } +- +- public static class CustomTypeMapping { +- public final Class rawClass; +- public final boolean matchSubclasses; +- public final GenericName javaType; +- public final GenericName tsType; +- +- public CustomTypeMapping(Class rawClass, boolean matchSubclasses, GenericName javaType, GenericName tsType) { +- this.rawClass = rawClass; +- this.matchSubclasses = matchSubclasses; +- this.javaType = javaType; +- this.tsType = tsType; +- } +- +- @Override +- public String toString() { +- return Utils.objectToString(this); +- } +- } +- +- public static class CustomTypeAlias { +- public final GenericName tsType; +- public final String tsDefinition; +- +- public CustomTypeAlias(GenericName tsType, String tsDefinition) { +- this.tsType = tsType; +- this.tsDefinition = tsDefinition; +- } +- } +- +- public static class GenericName { +- public final String rawName; +- public final List typeParameters; +- +- public GenericName(String rawName, List typeParameters) { +- this.rawName = Objects.requireNonNull(rawName); +- this.typeParameters = typeParameters; +- } +- +- public int indexOfTypeParameter(String typeParameter) { +- return typeParameters != null ? typeParameters.indexOf(typeParameter) : -1; +- } +- } +- +- private static class TypeScriptGeneratorURLClassLoader extends URLClassLoader { +- +- private final String name; +- +- public TypeScriptGeneratorURLClassLoader(String name, URL[] urls, ClassLoader parent) { +- super(urls, parent); +- this.name = name; +- } +- +- @Override +- public String toString() { +- return "TsGenURLClassLoader{" + name + ", parent: " + getParent() + "}"; +- } +- +- } +- +- public static URLClassLoader createClassLoader(String name, URL[] urls, ClassLoader parent) { +- return new TypeScriptGeneratorURLClassLoader(name, urls, parent); +- } +- +- public void setStringQuotes(StringQuotes quotes) { +- this.quotes = quotes == StringQuotes.singleQuotes ? "'" : "\""; +- } +- +- public void setIndentString(String indentString) { +- this.indentString = indentString != null ? indentString : " "; +- } +- +- public void setJackson2Configuration(ClassLoader classLoader, Jackson2Configuration configuration) { +- if (configuration != null) { +- jackson2Configuration = Jackson2ConfigurationResolved.from(configuration, classLoader); +- } +- } + + public void loadCustomTypeProcessor(ClassLoader classLoader, String customTypeProcessor) { + if (customTypeProcessor != null) { +@@ -227,357 +53,62 @@ public class Settings { + } + } + +- public void loadExtensions(ClassLoader classLoader, List extensions, List extensionsWithConfiguration) { +- this.extensions = new ArrayList<>(); +- this.extensions.addAll(loadInstances(classLoader, extensions, EmitterExtension.class)); +- if (extensionsWithConfiguration != null) { +- for (ConfiguredExtension configuredExtension : extensionsWithConfiguration) { +- final EmitterExtension emitterExtension = loadInstance(classLoader, configuredExtension.className, EmitterExtension.class); +- if (emitterExtension instanceof Extension) { +- final Extension extension = (Extension) emitterExtension; +- extension.setConfiguration(Utils.mapFromNullable(configuredExtension.configuration)); +- } +- this.extensions.add(emitterExtension); +- } ++ public void loadExtensions(ClassLoader classLoader, List extensions) { ++ if (extensions != null) { ++ this.extensions = loadInstances(classLoader, extensions, EmitterExtension.class); + } + } + +- public void loadNonConstEnumAnnotations(ClassLoader classLoader, List stringAnnotations) { +- this.nonConstEnumAnnotations = loadClasses(classLoader, stringAnnotations, Annotation.class); +- } +- + public void loadIncludePropertyAnnotations(ClassLoader classLoader, List includePropertyAnnotations) { +- this.includePropertyAnnotations = loadClasses(classLoader, includePropertyAnnotations, Annotation.class); +- } +- +- public void loadExcludePropertyAnnotations(ClassLoader classLoader, List excludePropertyAnnotations) { +- this.excludePropertyAnnotations = loadClasses(classLoader, excludePropertyAnnotations, Annotation.class); ++ if (includePropertyAnnotations != null) { ++ this.includePropertyAnnotations = loadClasses(classLoader, includePropertyAnnotations, Annotation.class); ++ } + } + + public void loadOptionalAnnotations(ClassLoader classLoader, List optionalAnnotations) { +- this.optionalAnnotations = loadClasses(classLoader, optionalAnnotations, Annotation.class); +- } +- +- public void loadRequiredAnnotations(ClassLoader classLoader, List requiredAnnotations) { +- this.requiredAnnotations = loadClasses(classLoader, requiredAnnotations, Annotation.class); +- } +- +- public void loadNullableAnnotations(ClassLoader classLoader, List nullableAnnotations) { +- this.nullableAnnotations = loadClasses(classLoader, nullableAnnotations, Annotation.class); +- } +- +- public void loadDisableTaggedUnionAnnotations(ClassLoader classLoader, List disableTaggedUnionAnnotations) { +- this.disableTaggedUnionAnnotations = loadClasses(classLoader, disableTaggedUnionAnnotations, Annotation.class); +- } +- +- public void loadJackson2Modules(ClassLoader classLoader, List jackson2Modules) { +- this.jackson2Modules = loadClasses(classLoader, jackson2Modules, Module.class); ++ if (optionalAnnotations != null) { ++ this.optionalAnnotations = loadClasses(classLoader, optionalAnnotations, Annotation.class); ++ } + } + +- public static Map convertToMap(List items, String itemName) { ++ public static Map convertToMap(List mappings) { + final Map result = new LinkedHashMap<>(); +- if (items != null) { +- for (String item : items) { +- final String[] values = item.split(":", 2); ++ if (mappings != null) { ++ for (String mapping : mappings) { ++ final String[] values = mapping.split(":", 2); + if (values.length < 2) { +- throw new RuntimeException(String.format("Invalid '%s' format: %s", itemName, item)); ++ throw new RuntimeException("Invalid mapping format: " + mapping); + } + result.put(values[0].trim(), values[1].trim()); + } + } + return result; + } +- ++ + public void validate() { +- if (classLoader == null) { +- classLoader = Thread.currentThread().getContextClassLoader(); +- } + if (outputKind == null) { + throw new RuntimeException("Required 'outputKind' parameter is not configured. " + seeLink()); + } +- if (outputKind == TypeScriptOutputKind.ambientModule && outputFileType == TypeScriptFileType.implementationFile) { +- throw new RuntimeException("Ambient modules are not supported in implementation files. " + seeLink()); +- } + if (outputKind == TypeScriptOutputKind.ambientModule && module == null) { + throw new RuntimeException("'module' parameter must be specified for ambient module. " + seeLink()); + } + if (outputKind != TypeScriptOutputKind.ambientModule && module != null) { + throw new RuntimeException("'module' parameter is only applicable to ambient modules. " + seeLink()); + } +- if (outputKind != TypeScriptOutputKind.module && umdNamespace != null) { +- throw new RuntimeException("'umdNamespace' parameter is only applicable to modules. " + seeLink()); +- } +- if (outputFileType == TypeScriptFileType.implementationFile && umdNamespace != null) { +- throw new RuntimeException("'umdNamespace' parameter is not applicable to implementation files. " + seeLink()); +- } +- if (umdNamespace != null && !ModelCompiler.isValidIdentifierName(umdNamespace)) { +- throw new RuntimeException("Value of 'umdNamespace' parameter is not valid identifier: " + umdNamespace + ". " + seeLink()); ++ if (outputKind == TypeScriptOutputKind.ambientModule && outputFileType == TypeScriptFileType.implementationFile) { ++ throw new RuntimeException("Ambient modules are not supported in implementation files. " + seeLink()); + } + if (jsonLibrary == null) { + throw new RuntimeException("Required 'jsonLibrary' parameter is not configured."); + } +- if (jackson2Configuration != null && jsonLibrary != JsonLibrary.jackson2) { +- throw new RuntimeException("'jackson2Configuration' parameter is only applicable to 'jackson2' library."); +- } +- if (!generateNpmPackageJson && (!npmPackageDependencies.isEmpty() || !npmDevDependencies.isEmpty() || !npmPeerDependencies.isEmpty())) { +- throw new RuntimeException("'npmDependencies', 'npmDevDependencies' and 'npmPeerDependencies' parameters are only applicable when generating NPM 'package.json'."); +- } +- getValidatedCustomTypeMappings(); +- getValidatedCustomTypeAliases(); +- for (EmitterExtension extension : extensions) { +- final String extensionName = extension.getClass().getSimpleName(); +- final DeprecationText deprecation = extension.getClass().getAnnotation(DeprecationText.class); +- if (deprecation != null) { +- TypeScriptGenerator.getLogger().warning(String.format("Extension '%s' is deprecated: %s", extensionName, deprecation.value())); +- } +- final EmitterExtensionFeatures features = extension.getFeatures(); +- if (features.generatesRuntimeCode && outputFileType != TypeScriptFileType.implementationFile) { +- throw new RuntimeException(String.format("Extension '%s' generates runtime code but 'outputFileType' parameter is not set to 'implementationFile'.", extensionName)); +- } +- if (features.generatesModuleCode && outputKind != TypeScriptOutputKind.module) { +- throw new RuntimeException(String.format("Extension '%s' generates code as module but 'outputKind' parameter is not set to 'module'.", extensionName)); +- } +- if (!features.worksWithPackagesMappedToNamespaces && mapPackagesToNamespaces) { +- throw new RuntimeException(String.format("Extension '%s' doesn't work with 'mapPackagesToNamespaces' parameter.", extensionName)); +- } +- if (features.generatesJaxrsApplicationClient) { +- reportConfigurationChange(extensionName, "generateJaxrsApplicationClient", "true"); +- generateJaxrsApplicationClient = true; +- } +- if (features.restResponseType != null) { +- reportConfigurationChange(extensionName, "restResponseType", features.restResponseType); +- restResponseType = features.restResponseType; +- } +- if (features.restOptionsType != null) { +- reportConfigurationChange(extensionName, "restOptionsType", features.restOptionsType); +- setRestOptionsType(features.restOptionsType); +- } +- if (features.npmPackageDependencies != null) { +- npmPackageDependencies.putAll(features.npmPackageDependencies); +- } +- if (features.npmDevDependencies != null) { +- npmDevDependencies.putAll(features.npmDevDependencies); +- } +- if (features.npmPeerDependencies != null) { +- npmPeerDependencies.putAll(features.npmPeerDependencies); +- } +- if (features.overridesStringEnums) { +- defaultStringEnumsOverriddenByExtension = true; +- } +- } +- if (enumMemberCasing != null && mapEnum != EnumMapping.asEnum && mapEnum != EnumMapping.asNumberBasedEnum) { +- throw new RuntimeException("'enumMemberCasing' parameter can only be used when 'mapEnum' parameter is set to 'asEnum' or 'asNumberBasedEnum'."); +- } +- if ((nonConstEnums || !nonConstEnumAnnotations.isEmpty()) && outputFileType != TypeScriptFileType.implementationFile) { +- throw new RuntimeException("Non-const enums can only be used in implementation files but 'outputFileType' parameter is not set to 'implementationFile'."); +- } +- if (mapClasses == ClassMapping.asClasses && outputFileType != TypeScriptFileType.implementationFile) { +- throw new RuntimeException("'mapClasses' parameter is set to 'asClasses' which generates runtime code but 'outputFileType' parameter is not set to 'implementationFile'."); +- } +- if (mapClassesAsClassesPatterns != null && mapClasses != ClassMapping.asClasses) { +- throw new RuntimeException("'mapClassesAsClassesPatterns' parameter can only be used when 'mapClasses' parameter is set to 'asClasses'."); +- } +- if (generateConstructors && mapClasses != ClassMapping.asClasses) { +- throw new RuntimeException("'generateConstructors' parameter can only be used when 'mapClasses' parameter is set to 'asClasses'."); +- } +- checkAnnotationsHaveRuntimeRetention(this.nonConstEnumAnnotations); +- checkAnnotationsHaveRuntimeRetention(this.disableTaggedUnionAnnotations); +- checkAnnotationHasRuntimeRetention(this.restNamespacingAnnotation); +- checkAnnotationsHaveRuntimeRetention(this.includePropertyAnnotations); +- checkAnnotationsHaveRuntimeRetention(this.excludePropertyAnnotations); +- checkAnnotationsHaveRuntimeRetention(this.optionalAnnotations); +- checkAnnotationsHaveRuntimeRetention(this.requiredAnnotations); +- checkAnnotationsHaveRuntimeRetention(this.nullableAnnotations); +- for (Class annotation : optionalAnnotations) { +- final Target target = annotation.getAnnotation(Target.class); +- final List elementTypes = target != null ? Arrays.asList(target.value()) : Arrays.asList(); +- if (elementTypes.contains(ElementType.TYPE_PARAMETER) || elementTypes.contains(ElementType.TYPE_USE)) { +- TypeScriptGenerator.getLogger().info(String.format( +- "Suggestion: annotation '%s' supports 'TYPE_PARAMETER' or 'TYPE_USE' target. Consider using 'nullableAnnotations' parameter instead of 'optionalAnnotations'.", +- annotation.getName())); +- } +- } +- if (!optionalAnnotations.isEmpty() && !requiredAnnotations.isEmpty()) { +- throw new RuntimeException("Only one of 'optionalAnnotations' and 'requiredAnnotations' can be used at the same time."); +- } +- if (primitivePropertiesRequired && requiredAnnotations.isEmpty()) { +- throw new RuntimeException("'primitivePropertiesRequired' parameter can only be used with 'requiredAnnotations' parameter."); +- } +- for (Class annotation : nullableAnnotations) { +- final Target target = annotation.getAnnotation(Target.class); +- final List elementTypes = target != null ? Arrays.asList(target.value()) : Arrays.asList(); +- if (!elementTypes.contains(ElementType.TYPE_PARAMETER) && !elementTypes.contains(ElementType.TYPE_USE)) { +- throw new RuntimeException(String.format( +- "'%s' annotation cannot be used as nullable annotation because it doesn't have 'TYPE_PARAMETER' or 'TYPE_USE' target.", +- annotation.getName())); +- } +- } +- if (generateJaxrsApplicationClient && outputFileType != TypeScriptFileType.implementationFile) { +- throw new RuntimeException("'generateJaxrsApplicationClient' can only be used when generating implementation file ('outputFileType' parameter is 'implementationFile')."); +- } +- if (generateSpringApplicationClient && outputFileType != TypeScriptFileType.implementationFile) { +- throw new RuntimeException("'generateSpringApplicationClient' can only be used when generating implementation file ('outputFileType' parameter is 'implementationFile')."); +- } +- if (restNamespacing != null && !isGenerateRest()) { +- throw new RuntimeException("'restNamespacing' parameter can only be used when generating REST client or interface."); +- } +- if (restNamespacingAnnotation != null && restNamespacing != RestNamespacing.byAnnotation) { +- throw new RuntimeException("'restNamespacingAnnotation' parameter can only be used when 'restNamespacing' parameter is set to 'byAnnotation'."); +- } +- if (restNamespacingAnnotation == null && restNamespacing == RestNamespacing.byAnnotation) { +- throw new RuntimeException("'restNamespacingAnnotation' must be specified when 'restNamespacing' parameter is set to 'byAnnotation'."); +- } +- if (restResponseType != null && !isGenerateRest()) { +- throw new RuntimeException("'restResponseType' parameter can only be used when generating REST client or interface."); +- } +- if (restOptionsType != null && !isGenerateRest()) { +- throw new RuntimeException("'restOptionsType' parameter can only be used when generating REST client or interface."); +- } +- if (generateInfoJson && (outputKind != TypeScriptOutputKind.module && outputKind != TypeScriptOutputKind.global)) { +- throw new RuntimeException("'generateInfoJson' can only be used when 'outputKind' parameter is 'module' or 'global'."); +- } +- if (generateNpmPackageJson && outputKind != TypeScriptOutputKind.module) { +- throw new RuntimeException("'generateNpmPackageJson' can only be used when generating proper module ('outputKind' parameter is 'module')."); +- } +- if (generateNpmPackageJson) { +- if (npmName == null || npmVersion == null) { +- throw new RuntimeException("'npmName' and 'npmVersion' must be specified when generating NPM 'package.json'."); +- } +- } +- if (!generateNpmPackageJson) { +- if (npmName != null || npmVersion != null) { +- throw new RuntimeException("'npmName' and 'npmVersion' is only applicable when generating NPM 'package.json'."); +- } +- if (npmTypescriptVersion != null) { +- throw new RuntimeException("'npmTypescriptVersion' is only applicable when generating NPM 'package.json'."); +- } +- if (npmBuildScript != null) { +- throw new RuntimeException("'npmBuildScript' is only applicable when generating NPM 'package.json'."); +- } +- } +- if (npmTypescriptVersion != null && outputFileType != TypeScriptFileType.implementationFile) { +- throw new RuntimeException("'npmTypescriptVersion' can only be used when generating implementation file ('outputFileType' parameter is 'implementationFile')."); +- } +- if (npmBuildScript != null && outputFileType != TypeScriptFileType.implementationFile) { +- throw new RuntimeException("'npmBuildScript' can only be used when generating implementation file ('outputFileType' parameter is 'implementationFile')."); +- } +- getModuleDependencies(); +- getLoadedDataLibraries(); +- } +- +- public NullabilityDefinition getNullabilityDefinition() { +- return nullabilityDefinition != null ? nullabilityDefinition : NullabilityDefinition.nullInlineUnion; +- } +- +- public TypeParser getTypeParser() { +- if (typeParser == null) { +- typeParser = new TypeParser(nullableAnnotations); +- } +- return typeParser; +- } +- +- public List getValidatedCustomTypeMappings() { +- if (validatedCustomTypeMappings == null) { +- validatedCustomTypeMappings = Utils.concat( +- validateCustomTypeMappings(customTypeMappings, false), +- getLoadedDataLibraries().typeMappings); +- } +- return validatedCustomTypeMappings; +- } +- +- private List validateCustomTypeMappings(Map customTypeMappings, boolean matchSubclasses) { +- final List mappings = new ArrayList<>(); +- for (Map.Entry entry : customTypeMappings.entrySet()) { +- final String javaName = entry.getKey(); +- final String tsName = entry.getValue(); +- try { +- final GenericName genericJavaName = parseGenericName(javaName); +- final GenericName genericTsName = parseGenericName(tsName); +- validateTypeParameters(genericJavaName.typeParameters); +- validateTypeParameters(genericTsName.typeParameters); +- final Class cls = loadClass(classLoader, genericJavaName.rawName, null); +- final int required = cls.getTypeParameters().length; +- final int specified = genericJavaName.typeParameters != null ? genericJavaName.typeParameters.size() : 0; +- if (specified != required) { +- final String parameters = Stream.of(cls.getTypeParameters()) +- .map(TypeVariable::getName) +- .collect(Collectors.joining(", ")); +- final String signature = cls.getName() + (parameters.isEmpty() ? "" : "<" + parameters + ">"); +- throw new RuntimeException(String.format( +- "Wrong number of specified generic parameters, required: %s, found: %s. Correct format is: '%s'", +- required, specified, signature)); +- } +- mappings.add(new CustomTypeMapping(cls, matchSubclasses, genericJavaName, genericTsName)); +- } catch (Exception e) { +- throw new RuntimeException(String.format("Failed to parse configured custom type mapping '%s:%s': %s", javaName, tsName, e.getMessage()), e); +- } +- } +- return mappings; +- } +- +- public List getValidatedCustomTypeAliases() { +- if (validatedCustomTypeAliases == null) { +- validatedCustomTypeAliases = Utils.concat( +- validateCustomTypeAliases(customTypeAliases), +- getLoadedDataLibraries().typeAliases); +- } +- return validatedCustomTypeAliases; +- } +- +- public List validateCustomTypeAliases(Map customTypeAliases) { +- final List aliases = new ArrayList<>(); +- for (Map.Entry entry : customTypeAliases.entrySet()) { +- final String tsName = entry.getKey(); +- final String tsDefinition = entry.getValue(); +- try { +- final GenericName genericTsName = parseGenericName(tsName); +- if (!ModelCompiler.isValidIdentifierName(genericTsName.rawName)) { +- throw new RuntimeException(String.format("Invalid identifier: '%s'", genericTsName.rawName)); ++ if (outputFileType != TypeScriptFileType.implementationFile) { ++ for (EmitterExtension emitterExtension : extensions) { ++ if (emitterExtension.getFeatures().generatesRuntimeCode) { ++ throw new RuntimeException(String.format("Extension '%s' generates runtime code but 'outputFileType' parameter is not set to 'implementationFile'.", ++ emitterExtension.getClass().getSimpleName())); + } +- validateTypeParameters(genericTsName.typeParameters); +- aliases.add(new CustomTypeAlias(genericTsName, tsDefinition)); +- } catch (Exception e) { +- throw new RuntimeException(String.format("Failed to parse configured custom type alias '%s:%s': %s", tsName, tsDefinition, e.getMessage()), e); + } + } +- return aliases; +- } +- +- private static GenericName parseGenericName(String name) { +- // Class +- // Class[T1, T2] +- final Matcher matcher = Pattern.compile("([^<\\[]+)(<|\\[)([^>\\]]+)(>|\\])").matcher(name); +- final String rawName; +- final List typeParameters; +- if (matcher.matches()) { // is generic? +- rawName = matcher.group(1); +- typeParameters = Stream.of(matcher.group(3).split(",")) +- .map(String::trim) +- .collect(Collectors.toList()); +- } else { +- rawName = name; +- typeParameters = null; +- } +- return new GenericName(rawName, typeParameters); +- } +- +- private static void validateTypeParameters(List typeParameters) { +- if (typeParameters == null) { +- return; +- } +- for (String typeParameter : typeParameters) { +- if (!ModelCompiler.isValidIdentifierName(typeParameter)) { +- throw new RuntimeException(String.format("Invalid generic type parameter: '%s'", typeParameter)); +- } +- } +- } +- +- private static void reportConfigurationChange(String extensionName, String parameterName, String parameterValue) { +- TypeScriptGenerator.getLogger().info(String.format("Configuration: '%s' extension set '%s' parameter to '%s'", extensionName, parameterName, parameterValue)); +- } +- +- public String getExtension() { +- return outputFileType == TypeScriptFileType.implementationFile ? ".ts" : ".d.ts"; + } + + public void validateFileName(File outputFile) { +@@ -589,76 +120,6 @@ public class Settings { + } + } + +- public String getDefaultNpmVersion() { +- return "1.0.0"; +- } +- +- public LoadedModuleDependencies getModuleDependencies() { +- if (loadedModuleDependencies == null) { +- loadedModuleDependencies = new LoadedModuleDependencies(this, moduleDependencies); +- } +- return loadedModuleDependencies; +- } +- +- public LoadedDataLibraries getLoadedDataLibraries() { +- if (loadedDataLibrariesClasses == null) { +- loadedDataLibrariesClasses = loadDataLibrariesClasses(); +- } +- return loadedDataLibrariesClasses; +- } +- +- private LoadedDataLibraries loadDataLibrariesClasses() { +- if (additionalDataLibraries == null) { +- return new LoadedDataLibraries(); +- } +- final List loaded = new ArrayList<>(); +- final ObjectMapper objectMapper = Utils.getObjectMapper(); +- objectMapper.configure(JsonParser.Feature.ALLOW_COMMENTS, true); +- for (String library : additionalDataLibraries) { +- final String resource = "datalibrary/" + library + ".json"; +- TypeScriptGenerator.getLogger().verbose("Loading resource " + resource); +- final InputStream inputStream = classLoader.getResourceAsStream(resource); +- if (inputStream == null) { +- throw new RuntimeException("Resource not found: " + resource); +- } +- final DataLibraryJson dataLibrary = Utils.loadJson(objectMapper, inputStream, DataLibraryJson.class); +- final Map typeMappings = Utils.listFromNullable(dataLibrary.classMappings).stream() +- .filter(mapping -> mapping.customType != null) +- .collect(Utils.toMap( +- mapping -> mapping.className, +- mapping -> mapping.customType +- )); +- final Map typeAliases = Utils.listFromNullable(dataLibrary.typeAliases).stream() +- .collect(Utils.toMap( +- alias -> alias.name, +- alias -> alias.definition +- )); +- loaded.add(new LoadedDataLibraries( +- loadDataLibraryClasses(dataLibrary, DataLibraryJson.SemanticType.String), +- loadDataLibraryClasses(dataLibrary, DataLibraryJson.SemanticType.Number), +- loadDataLibraryClasses(dataLibrary, DataLibraryJson.SemanticType.Boolean), +- loadDataLibraryClasses(dataLibrary, DataLibraryJson.SemanticType.Date), +- loadDataLibraryClasses(dataLibrary, DataLibraryJson.SemanticType.Any), +- loadDataLibraryClasses(dataLibrary, DataLibraryJson.SemanticType.Void), +- loadDataLibraryClasses(dataLibrary, DataLibraryJson.SemanticType.List), +- loadDataLibraryClasses(dataLibrary, DataLibraryJson.SemanticType.Map), +- loadDataLibraryClasses(dataLibrary, DataLibraryJson.SemanticType.Optional), +- loadDataLibraryClasses(dataLibrary, DataLibraryJson.SemanticType.Wrapper), +- validateCustomTypeMappings(typeMappings, true), +- validateCustomTypeAliases(typeAliases) +- )); +- } +- return LoadedDataLibraries.join(loaded); +- } +- +- private List> loadDataLibraryClasses(DataLibraryJson dataLibrary, DataLibraryJson.SemanticType semanticType) { +- final List classNames = dataLibrary.classMappings.stream() +- .filter(mapping -> mapping.semanticType == semanticType) +- .map(mapping -> mapping.className) +- .collect(Collectors.toList()); +- return loadClasses(classLoader, classNames, null); +- } +- + public Predicate getExcludeFilter() { + if (excludeFilter == null) { + setExcludeFilter(null, null); +@@ -672,104 +133,22 @@ public class Settings { + + public static Predicate createExcludeFilter(List excludedClasses, List excludedClassPatterns) { + final Set names = new LinkedHashSet<>(excludedClasses != null ? excludedClasses : Collections.emptyList()); +- names.add("java.lang.Record"); +- final List patterns = Utils.globsToRegexps(excludedClassPatterns != null ? excludedClassPatterns : Collections.emptyList()); ++ final List patterns = Input.globsToRegexps(excludedClassPatterns != null ? excludedClassPatterns : Collections.emptyList()); + return new Predicate() { + @Override + public boolean test(String className) { +- return names.contains(className) || Utils.classNameMatches(className, patterns); ++ return names.contains(className) || Input.classNameMatches(className, patterns); + } + }; + } + +- public Predicate getMapClassesAsClassesFilter() { +- if (mapClassesAsClassesFilter == null) { +- final List patterns = Utils.globsToRegexps(mapClassesAsClassesPatterns); +- mapClassesAsClassesFilter = new Predicate() { +- @Override +- public boolean test(String className) { +- return mapClasses == ClassMapping.asClasses && +- (patterns == null || Utils.classNameMatches(className, patterns)); +- } +- }; +- } +- return mapClassesAsClassesFilter; +- } +- +- public void setRestNamespacingAnnotation(ClassLoader classLoader, String restNamespacingAnnotation) { +- final Pair, String> pair = resolveRestNamespacingAnnotation(classLoader, restNamespacingAnnotation); +- if (pair != null) { +- this.restNamespacingAnnotation = pair.getValue1(); +- this.restNamespacingAnnotationElement = pair.getValue2(); +- } +- } +- +- private static Pair, String> resolveRestNamespacingAnnotation(ClassLoader classLoader, String restNamespacingAnnotation) { +- if (restNamespacingAnnotation == null) { +- return null; +- } +- final String[] split = restNamespacingAnnotation.split("#"); +- final String className = split[0]; +- final String elementName = split.length > 1 ? split[1] : "value"; +- final Class annotationClass = loadClass(classLoader, className, Annotation.class); +- return Pair.of(annotationClass, elementName); +- } +- +- public void setRestOptionsType(String restOptionsType) { +- if (restOptionsType != null) { +- if (restOptionsType.startsWith("<") && restOptionsType.endsWith(">")) { +- this.restOptionsType = restOptionsType.substring(1, restOptionsType.length() - 1); +- this.restOptionsTypeIsGeneric = true; +- } else { +- this.restOptionsType = restOptionsType; +- this.restOptionsTypeIsGeneric = false; +- } +- } +- } +- +- public List getRestApplicationParserFactories() { +- if (restApplicationParserFactories == null) { +- final List factories = new ArrayList<>(); +- if (isGenerateJaxrs() || !isGenerateSpring()) { +- factories.add(new JaxrsApplicationParser.Factory()); +- } +- if (isGenerateSpring()) { +- final String springClassName = "cz.habarta.typescript.generator.spring.SpringApplicationParser$Factory"; +- final Class springClass; +- try { +- springClass = Class.forName(springClassName); +- } catch (ClassNotFoundException e) { +- throw new RuntimeException("'generateStringApplicationInterface' or 'generateStringApplicationClient' parameter " +- + "was specified but '" + springClassName + "' was not found. " +- + "Please add 'cz.habarta.typescript-generator:typescript-generator-spring' artifact " +- + "to typescript-generator plugin dependencies (not module dependencies)."); +- } +- try { +- final Object instance = springClass.getConstructor().newInstance(); +- factories.add((RestApplicationParser.Factory) instance); +- } catch (ReflectiveOperationException e) { +- throw new RuntimeException(e); +- } ++ public boolean areDefaultStringEnumsOverriddenByExtension() { ++ for (EmitterExtension extension : extensions) { ++ if (extension.getFeatures().overridesStringEnums) { ++ return true; + } +- restApplicationParserFactories = factories; + } +- return restApplicationParserFactories; +- } +- +- public boolean isGenerateJaxrs() { +- return generateJaxrsApplicationInterface || generateJaxrsApplicationClient; +- } +- +- public boolean isGenerateSpring() { +- return generateSpringApplicationInterface || generateSpringApplicationClient; +- } +- +- public boolean isGenerateRest() { +- return isGenerateJaxrs() || isGenerateSpring(); +- } +- +- public boolean areDefaultStringEnumsOverriddenByExtension() { +- return defaultStringEnumsOverriddenByExtension; ++ return false; + } + + private String seeLink() { +@@ -778,76 +157,30 @@ public class Settings { + + private static List> loadClasses(ClassLoader classLoader, List classNames, Class requiredClassType) { + if (classNames == null) { +- return Collections.emptyList(); +- } +- final List> classes = new ArrayList<>(); +- for (String className : classNames) { +- classes.add(loadClass(classLoader, className, requiredClassType)); ++ return null; + } +- return classes; +- } +- +- static Class loadClass(ClassLoader classLoader, String className, Class requiredClassType) { +- Objects.requireNonNull(classLoader, "classLoader"); +- Objects.requireNonNull(className, "className"); + try { +- TypeScriptGenerator.getLogger().verbose("Loading class " + className); +- final Pair pair = parseArrayClassDimensions(className); +- final int arrayDimensions = pair.getValue2(); +- final Class loadedClass; +- if (arrayDimensions > 0) { +- final String componentTypeName = pair.getValue1(); +- final Class componentType = loadPrimitiveOrRegularClass(classLoader, componentTypeName); +- loadedClass = Utils.getArrayClass(componentType, arrayDimensions); +- } else { +- loadedClass = loadPrimitiveOrRegularClass(classLoader, className); +- } +- if (requiredClassType != null && !requiredClassType.isAssignableFrom(loadedClass)) { +- throw new RuntimeException(String.format("Class '%s' is not assignable to '%s'.", loadedClass, requiredClassType)); ++ final List> classes = new ArrayList<>(); ++ for (String className : classNames) { ++ System.out.println("Loading class " + className); ++ final Class loadedClass = classLoader.loadClass(className); ++ if (requiredClassType.isAssignableFrom(loadedClass)) { ++ @SuppressWarnings("unchecked") ++ final Class castedClass = (Class) loadedClass; ++ classes.add(castedClass); ++ } else { ++ throw new RuntimeException(String.format("Class '%s' is not assignable to '%s'.", loadedClass, requiredClassType)); ++ } + } +- @SuppressWarnings("unchecked") +- final Class castedClass = (Class) loadedClass; +- return castedClass; ++ return classes; + } catch (ReflectiveOperationException e) { + throw new RuntimeException(e); + } + } + +- private static void checkAnnotationsHaveRuntimeRetention(List> annotationClasses) { +- annotationClasses.forEach(Settings::checkAnnotationHasRuntimeRetention); +- } +- +- private static void checkAnnotationHasRuntimeRetention(Class annotationClass) { +- if (annotationClass == null) { +- return; +- } +- final Retention retention = annotationClass.getAnnotation(Retention.class); +- if (retention == null || retention.value() != RetentionPolicy.RUNTIME) { +- TypeScriptGenerator.getLogger().warning(String.format( +- "Annotation '%s' has no effect because it doesn't have 'RUNTIME' retention.", +- annotationClass.getName())); +- } +- } +- +- private static Pair parseArrayClassDimensions(String className) { +- int dimensions = 0; +- while (className.endsWith("[]")) { +- dimensions++; +- className = className.substring(0, className.length() - 2); +- } +- return Pair.of(className, dimensions); +- } +- +- private static Class loadPrimitiveOrRegularClass(ClassLoader classLoader, String className) throws ClassNotFoundException { +- final Class primitiveType = Utils.getPrimitiveType(className); +- return primitiveType != null +- ? primitiveType +- : classLoader.loadClass(className); +- } +- + private static List loadInstances(ClassLoader classLoader, List classNames, Class requiredType) { + if (classNames == null) { +- return Collections.emptyList(); ++ return null; + } + final List instances = new ArrayList<>(); + for (String className : classNames) { +@@ -858,50 +191,11 @@ public class Settings { + + private static T loadInstance(ClassLoader classLoader, String className, Class requiredType) { + try { +- TypeScriptGenerator.getLogger().verbose("Loading class " + className); +- return requiredType.cast(classLoader.loadClass(className).getConstructor().newInstance()); ++ System.out.println("Loading class " + className); ++ return requiredType.cast(classLoader.loadClass(className).newInstance()); + } catch (ReflectiveOperationException e) { + throw new RuntimeException(e); + } + } + +- public static int parseModifiers(String modifiers, int allowedModifiers) { +- return Stream.of(modifiers.split("\\|")) +- .map(String::trim) +- .filter(s -> !s.isEmpty()) +- .map(s -> { +- try { +- return javax.lang.model.element.Modifier.valueOf(s.toUpperCase(Locale.US)); +- } catch (IllegalArgumentException e) { +- throw new RuntimeException("Invalid modifier: " + s); +- } +- }) +- .mapToInt(modifier -> { +- final int mod = Settings.modifierToBitMask(modifier); +- if ((mod & allowedModifiers) == 0) { +- throw new RuntimeException("Modifier not allowed: " + modifier); +- } +- return mod; +- }) +- .reduce(0, (a, b) -> a | b); +- } +- +- private static int modifierToBitMask(javax.lang.model.element.Modifier modifier) { +- switch (modifier) { +- case PUBLIC: return java.lang.reflect.Modifier.PUBLIC; +- case PROTECTED: return java.lang.reflect.Modifier.PROTECTED; +- case PRIVATE: return java.lang.reflect.Modifier.PRIVATE; +- case ABSTRACT: return java.lang.reflect.Modifier.ABSTRACT; +- // case DEFAULT: no equivalent +- case STATIC: return java.lang.reflect.Modifier.STATIC; +- case FINAL: return java.lang.reflect.Modifier.FINAL; +- case TRANSIENT: return java.lang.reflect.Modifier.TRANSIENT; +- case VOLATILE: return java.lang.reflect.Modifier.VOLATILE; +- case SYNCHRONIZED: return java.lang.reflect.Modifier.SYNCHRONIZED; +- case NATIVE: return java.lang.reflect.Modifier.NATIVE; +- case STRICTFP: return java.lang.reflect.Modifier.STRICT; +- default: return 0; +- } +- } +- + } +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/StringQuotes.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/StringQuotes.java +deleted file mode 100644 +index 8e4423a93..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/StringQuotes.java ++++ /dev/null +@@ -1,9 +0,0 @@ +- +-package cz.habarta.typescript.generator; +- +- +-public enum StringQuotes { +- +- doubleQuotes, singleQuotes; +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/TsParameter.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/TsParameter.java +deleted file mode 100644 +index eb86a9abd..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/TsParameter.java ++++ /dev/null +@@ -1,23 +0,0 @@ +- +-package cz.habarta.typescript.generator; +- +- +-public class TsParameter { +- +- public final String name; +- public final TsType tsType; +- +- public TsParameter(String name, TsType tsType) { +- this.name = name; +- this.tsType = tsType; +- } +- +- public String getName() { +- return name; +- } +- +- public TsType getTsType() { +- return tsType; +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/TsProperty.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/TsProperty.java +deleted file mode 100644 +index a12b38d83..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/TsProperty.java ++++ /dev/null +@@ -1,30 +0,0 @@ +- +-package cz.habarta.typescript.generator; +- +-import cz.habarta.typescript.generator.emitter.Emitter; +- +- +-public class TsProperty { +- +- public final String name; +- public final TsType tsType; +- +- public TsProperty(String name, TsType tsType) { +- this.name = name; +- this.tsType = tsType; +- } +- +- public String getName() { +- return name; +- } +- +- public TsType getTsType() { +- return tsType; +- } +- +- public String format(Settings settings) { +- final String questionMark = (tsType instanceof TsType.OptionalType) ? "?" : ""; +- return Emitter.quoteIfNeeded(name, settings) + questionMark + ": " + tsType.format(settings) + ";"; +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/TsType.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/TsType.java +index b9eef5d7c..36e431612 100644 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/TsType.java ++++ b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/TsType.java +@@ -2,22 +2,15 @@ + package cz.habarta.typescript.generator; + + import cz.habarta.typescript.generator.compiler.Symbol; +-import cz.habarta.typescript.generator.emitter.Emittable; +-import cz.habarta.typescript.generator.emitter.Emitter; + import cz.habarta.typescript.generator.util.Utils; +-import java.util.ArrayList; +-import java.util.Arrays; +-import java.util.LinkedHashSet; +-import java.util.List; +-import java.util.stream.Collectors; +-import java.util.stream.Stream; ++import java.util.*; + + + /** + * Represents TypeScript type. + * That means something which can appear in type position (after ":" character). + */ +-public abstract class TsType implements Emittable { ++public abstract class TsType { + + public static final TsType Any = new BasicType("any"); + public static final TsType Boolean = new BasicType("boolean"); +@@ -25,10 +18,6 @@ public abstract class TsType implements Emittable { + public static final TsType String = new BasicType("string"); + public static final TsType Date = new BasicType("Date"); + public static final TsType Void = new BasicType("void"); +- public static final TsType Undefined = new BasicType("undefined"); +- public static final TsType Null = new BasicType("null"); +- public static final TsType Never = new BasicType("never"); +- public static final TsType Unknown = new BasicType("unknown"); + + @Override + public boolean equals(Object rhs) { +@@ -44,14 +33,21 @@ public abstract class TsType implements Emittable { + return new TsType.OptionalType(this); + } + +- @Override + public abstract String format(Settings settings); + ++ protected static List format(List types, Settings settings) { ++ final List formatted = new ArrayList<>(); ++ for (TsType type : types) { ++ formatted.add(type.format(settings)); ++ } ++ return formatted; ++ } ++ + @Override + public String toString() { + return format(new Settings()); + } +- ++ + public static class BasicType extends TsType { + + public final String name; +@@ -66,39 +62,6 @@ public abstract class TsType implements Emittable { + } + } + +- public static class GenericBasicType extends TsType.BasicType { +- +- public final List typeArguments; +- +- public GenericBasicType(String name, TsType... typeArguments) { +- this(name, Arrays.asList(typeArguments)); +- } +- +- public GenericBasicType(String name, List typeArguments) { +- super(name); +- this.typeArguments = new ArrayList<>(typeArguments); +- } +- +- @Override +- public String format(Settings settings) { +- return super.format(settings) + "<" + Emitter.formatList(settings, typeArguments) + ">"; +- } +- } +- +- public static class VerbatimType extends TsType { +- +- public final String verbatimType; +- +- public VerbatimType(String verbatimType) { +- this.verbatimType = verbatimType; +- } +- +- @Override +- public String format(Settings settings) { +- return verbatimType; +- } +- } +- + /** + * Identifier which references some type, for example interface or type alias. + */ +@@ -112,7 +75,7 @@ public abstract class TsType implements Emittable { + + @Override + public String format(Settings settings) { +- return symbol.getFullName(); ++ return symbol.toString(); + } + + } +@@ -121,18 +84,14 @@ public abstract class TsType implements Emittable { + + public final List typeArguments; + +- public GenericReferenceType(Symbol symbol, TsType... typeArguments) { +- this(symbol, Arrays.asList(typeArguments)); +- } +- +- public GenericReferenceType(Symbol symbol, List typeArguments) { ++ public GenericReferenceType(Symbol symbol, List typeArguments) { + super(symbol); +- this.typeArguments = new ArrayList<>(typeArguments); ++ this.typeArguments = typeArguments; + } + + @Override + public String format(Settings settings) { +- return super.format(settings) + "<" + Emitter.formatList(settings, typeArguments) + ">"; ++ return symbol + "<" + Utils.join(format(typeArguments, settings), ", ") + ">"; + } + } + +@@ -186,108 +145,19 @@ public abstract class TsType implements Emittable { + + } + +- public static class MappedType extends TsType { +- +- public final TsType parameterType; +- public final QuestionToken questionToken; +- public final TsType type; +- +- public MappedType(TsType parameterType, QuestionToken questionToken, TsType type) { +- this.parameterType = parameterType; +- this.questionToken = questionToken; +- this.type = type; +- } +- +- @Override +- public String format(Settings settings) { +- return "{ " + +- "[P in " + parameterType.format(settings) + "]" + +- (questionToken != null ? questionToken : "") + +- ": " + +- type.format(settings) + +- " }"; +- } +- +- public enum QuestionToken { +- Question("?"), +- Plus("+?"), +- Minus("-?"); +- +- private final String token; +- +- private QuestionToken(String token) { +- this.token = token; +- } +- +- @Override +- public String toString() { +- return token; +- } +- +- } +- +- } +- + public static class UnionType extends TsType { + + public final List types; + +- public UnionType(TsType... types) { +- this(Arrays.asList(types)); +- } +- + public UnionType(List types) { +- this.types = new ArrayList<>(new LinkedHashSet<>(types)); +- } +- +- public static UnionType combine(List types) { +- return new UnionType(types.stream() +- .flatMap(type -> { +- if (type instanceof UnionType) { +- final UnionType unionType = (UnionType) type; +- return unionType.types.stream(); +- } else { +- return Stream.of(type); +- } +- }) +- .collect(Collectors.toList()) +- ); +- } +- +- public UnionType add(List types) { +- return new UnionType(Utils.concat(this.types, types)); +- } +- +- public UnionType remove(List types) { +- return new UnionType(Utils.removeAll(this.types, types)); ++ this.types = new ArrayList<>(types); + } + + @Override + public String format(Settings settings) { + return types.isEmpty() +- ? Never.format(settings) +- : Emitter.formatList(settings, types, " | "); +- } +- +- } +- +- public static class IntersectionType extends TsType { +- +- public final List types; +- +- public IntersectionType(TsType... types) { +- this(Arrays.asList(types)); +- } +- +- public IntersectionType(List types) { +- this.types = new ArrayList<>(new LinkedHashSet<>(types)); +- } +- +- @Override +- public String format(Settings settings) { +- return types.isEmpty() +- ? Unknown.format(settings) +- : Emitter.formatList(settings, types, " & "); ++ ? "never" ++ : Utils.join(format(types, settings), " | "); + } + + } +@@ -307,22 +177,6 @@ public abstract class TsType implements Emittable { + + } + +- public static class NumberLiteralType extends TsType { +- +- public final Number literal; +- +- public NumberLiteralType(Number literal) { +- this.literal = literal; +- } +- +- @Override +- public String format(Settings settings) { +- return "" + literal; +- } +- +- } +- +- // optionality should have been represented as attribute of properties and parameters + public static class OptionalType extends TsType { + + public final TsType type; +@@ -338,151 +192,27 @@ public abstract class TsType implements Emittable { + + } + +- public static class NullableType extends TsType { +- +- public static final String AliasName = "Nullable"; +- +- public final TsType type; +- +- public NullableType(TsType type) { +- this.type = type; +- } +- +- @Override +- public String format(Settings settings) { +- return AliasName + "<" + type.format(settings) + ">"; +- } +- +- } +- +- public static class ObjectType extends TsType { +- +- public final List properties; +- +- public ObjectType(TsProperty... properties) { +- this(Utils.removeNulls(Arrays.asList(properties))); +- } +- +- public ObjectType(List properties) { +- this.properties = new ArrayList<>(properties); +- } +- +- @Override +- public String format(Settings settings) { +- final List props = new ArrayList<>(); +- for (TsProperty property : properties) { +- props.add(property.format(settings)); +- } +- if (props.isEmpty()) { +- return "{}"; +- } else { +- return "{ " + java.lang.String.join(" ", props) + " }"; +- } +- } +- +- } +- +- public static class FunctionType extends TsType { +- +- public final List parameters; +- public final TsType type; +- +- public FunctionType(List parameters, TsType type) { +- this.parameters = new ArrayList<>(parameters); +- this.type = type; +- } +- +- @Override +- public String format(Settings settings) { +- return Emitter.formatParameterList(parameters) + " => " + type.format(settings); +- } +- +- } +- +- public static TsType transformTsType(Context context, TsType tsType, Transformer transformer) { +- final TsType type = transformer.transform(context, tsType); +- if (type instanceof TsType.GenericBasicType) { +- final GenericBasicType genericBasicType = (TsType.GenericBasicType) type; +- final List typeArguments = new ArrayList<>(); +- for (TsType typeArgument : genericBasicType.typeArguments) { +- typeArguments.add(transformTsType(context, typeArgument, transformer)); +- } +- return new TsType.GenericBasicType(genericBasicType.name, typeArguments); +- } +- if (type instanceof TsType.GenericReferenceType) { +- final GenericReferenceType genericReferenceType = (TsType.GenericReferenceType) type; +- final List typeArguments = new ArrayList<>(); +- for (TsType typeArgument : genericReferenceType.typeArguments) { +- typeArguments.add(transformTsType(context, typeArgument, transformer)); +- } +- return new TsType.GenericReferenceType(genericReferenceType.symbol, typeArguments); +- } ++ public static TsType transformTsType(TsType tsType, Transformer transformer) { ++ final TsType type = transformer.transform(tsType); + if (type instanceof TsType.OptionalType) { + final TsType.OptionalType optionalType = (TsType.OptionalType) type; +- return new TsType.OptionalType(transformTsType(context, optionalType.type, transformer)); +- } +- if (type instanceof TsType.NullableType) { +- final TsType.NullableType nullableType = (TsType.NullableType) type; +- return new TsType.NullableType(transformTsType(context, nullableType.type, transformer)); ++ return new TsType.OptionalType(transformTsType(optionalType.type, transformer)); + } + if (type instanceof TsType.BasicArrayType) { + final TsType.BasicArrayType basicArrayType = (TsType.BasicArrayType) type; +- return new TsType.BasicArrayType(transformTsType(context, basicArrayType.elementType, transformer)); ++ return new TsType.BasicArrayType(transformTsType(basicArrayType.elementType, transformer)); + } + if (type instanceof TsType.IndexedArrayType) { + final TsType.IndexedArrayType indexedArrayType = (TsType.IndexedArrayType) type; + return new TsType.IndexedArrayType( +- transformTsType(context, indexedArrayType.indexType, transformer), +- transformTsType(context, indexedArrayType.elementType, transformer)); +- } +- if (type instanceof TsType.MappedType) { +- final TsType.MappedType mappedType = (TsType.MappedType) type; +- return new TsType.MappedType( +- transformTsType(context, mappedType.parameterType, transformer), +- mappedType.questionToken, +- transformTsType(context, mappedType.type, transformer)); +- } +- if (type instanceof TsType.UnionType) { +- final TsType.UnionType unionType = (TsType.UnionType) type; +- final List types = new ArrayList<>(); +- for (TsType constituentType : unionType.types) { +- types.add(transformTsType(context, constituentType, transformer)); +- } +- return new TsType.UnionType(types); +- } +- if (type instanceof TsType.IntersectionType) { +- final TsType.IntersectionType intersectionType = (TsType.IntersectionType) type; +- final List types = new ArrayList<>(); +- for (TsType constituent : intersectionType.types) { +- types.add(transformTsType(context, constituent, transformer)); +- } +- return new TsType.IntersectionType(types); +- } +- if (type instanceof TsType.ObjectType) { +- final TsType.ObjectType objectType = (TsType.ObjectType) type; +- final List properties = new ArrayList<>(); +- for (TsProperty property : objectType.properties) { +- properties.add(new TsProperty(property.name, transformTsType(context, property.tsType, transformer))); +- } +- return new TsType.ObjectType(properties); +- } +- if (type instanceof TsType.FunctionType) { +- final TsType.FunctionType functionType = (TsType.FunctionType) type; +- final List parameters = new ArrayList<>(); +- for (TsParameter parameter : functionType.parameters) { +- parameters.add(new TsParameter(parameter.name, transformTsType(context, parameter.tsType, transformer))); +- } +- return new TsType.FunctionType(parameters, transformTsType(context, functionType.type, transformer)); ++ transformTsType(indexedArrayType.indexType, transformer), ++ transformTsType(indexedArrayType.elementType, transformer)); + } + return type; + } + +- public static class Context { +- // currently not needed +- } +- + public static interface Transformer { +- public TsType transform(Context context, TsType tsType); ++ public TsType transform(TsType tsType); + } + + } +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/TypeProcessor.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/TypeProcessor.java +index d2c4fd5fe..edbca1f54 100644 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/TypeProcessor.java ++++ b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/TypeProcessor.java +@@ -1,13 +1,10 @@ + + package cz.habarta.typescript.generator; + +-import cz.habarta.typescript.generator.compiler.Symbol; + import cz.habarta.typescript.generator.compiler.SymbolTable; ++import cz.habarta.typescript.generator.compiler.Symbol; + import java.lang.reflect.Type; +-import java.util.Arrays; +-import java.util.Collections; +-import java.util.List; +-import java.util.Objects; ++import java.util.*; + + + public interface TypeProcessor { +@@ -17,70 +14,25 @@ public interface TypeProcessor { + */ + public Result processType(Type javaType, Context context); + +- public default Result processTypeInTemporaryContext(Type type, Object typeContext, Settings settings) { +- return processType(type, new Context(new SymbolTable(settings), this, typeContext)); +- } +- +- public default List> discoverClassesUsedInType(Type type, Object typeContext, Settings settings) { +- final TypeProcessor.Result result = processTypeInTemporaryContext(type, typeContext, settings); +- return result != null ? result.getDiscoveredClasses() : Collections.emptyList(); +- } +- +- public default boolean isTypeExcluded(Type type, Object typeContext, Settings settings) { +- final TypeProcessor.Result result = processTypeInTemporaryContext(type, typeContext, settings); +- return result != null && result.tsType == TsType.Any; +- } + + public static class Context { + + private final SymbolTable symbolTable; + private final TypeProcessor typeProcessor; +- private final Object typeContext; +- private final boolean insideCollection; +- +- public Context(SymbolTable symbolTable, TypeProcessor typeProcessor, Object typeContext) { +- this(symbolTable, typeProcessor, typeContext, false); +- } + +- public Context(SymbolTable symbolTable, TypeProcessor typeProcessor, Object typeContext, boolean insideCollection) { +- this.symbolTable = Objects.requireNonNull(symbolTable, "symbolTable"); +- this.typeProcessor = Objects.requireNonNull(typeProcessor, "typeProcessor"); +- this.typeContext = typeContext; +- this.insideCollection = insideCollection; ++ public Context(SymbolTable symbolTable, TypeProcessor typeProcessor) { ++ this.symbolTable = symbolTable; ++ this.typeProcessor = typeProcessor; + } + + public Symbol getSymbol(Class cls) { + return symbolTable.getSymbol(cls); + } + +- public Symbol getSymbolIfImported(Class cls) { +- return symbolTable.getSymbolIfImported(cls); +- } +- + public Result processType(Type javaType) { + return typeProcessor.processType(javaType, this); + } + +- public Result processTypeInsideCollection(Type javaType) { +- return typeProcessor.processType(javaType, this.withInsideCollection()); +- } +- +- public Object getTypeContext() { +- return typeContext; +- } +- +- public boolean isInsideCollection() { +- return insideCollection; +- } +- +- public Context withTypeContext(Object typeContext) { +- return new Context(symbolTable, typeProcessor, typeContext, insideCollection); +- } +- +- public Context withInsideCollection() { +- return new Context(symbolTable, typeProcessor, typeContext, true); +- } +- + } + + public static class Result { +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/TypeScriptGenerator.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/TypeScriptGenerator.java +index 41ffefcc8..24336c135 100644 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/TypeScriptGenerator.java ++++ b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/TypeScriptGenerator.java +@@ -1,54 +1,22 @@ + + package cz.habarta.typescript.generator; + +-import cz.habarta.typescript.generator.compiler.ModelCompiler; +-import cz.habarta.typescript.generator.emitter.Emitter; +-import cz.habarta.typescript.generator.emitter.InfoJsonEmitter; +-import cz.habarta.typescript.generator.emitter.NpmPackageJson; +-import cz.habarta.typescript.generator.emitter.NpmPackageJsonEmitter; +-import cz.habarta.typescript.generator.emitter.TsModel; +-import cz.habarta.typescript.generator.parser.GsonParser; +-import cz.habarta.typescript.generator.parser.Jackson2Parser; +-import cz.habarta.typescript.generator.parser.JsonbParser; +-import cz.habarta.typescript.generator.parser.Model; +-import cz.habarta.typescript.generator.parser.ModelParser; +-import cz.habarta.typescript.generator.parser.RestApplicationParser; +-import cz.habarta.typescript.generator.util.Utils; +-import java.io.File; +-import java.io.InputStream; +-import java.io.StringWriter; +-import java.util.ArrayList; +-import java.util.Collections; +-import java.util.LinkedHashMap; +-import java.util.List; +-import java.util.Objects; +-import java.util.Properties; +-import java.util.regex.Pattern; +-import java.util.stream.Collectors; +-import java.util.stream.Stream; ++import cz.habarta.typescript.generator.compiler.*; ++import cz.habarta.typescript.generator.emitter.*; ++import cz.habarta.typescript.generator.parser.*; ++import java.io.*; ++import java.util.*; + + + public class TypeScriptGenerator { + + public static final String Version = getVersion(); + +- private static Logger logger = new Logger(); +- + private final Settings settings; +- private TypeProcessor commonTypeProcessor = null; ++ private TypeProcessor typeProcessor = null; + private ModelParser modelParser = null; + private ModelCompiler modelCompiler = null; + private Emitter emitter = null; +- private InfoJsonEmitter infoJsonEmitter = null; +- private NpmPackageJsonEmitter npmPackageJsonEmitter = null; +- +- public static Logger getLogger() { +- return logger; +- } +- +- public static void setLogger(Logger logger) { +- TypeScriptGenerator.logger = logger; +- } + + public TypeScriptGenerator() { + this (new Settings()); +@@ -60,7 +28,7 @@ public class TypeScriptGenerator { + } + + public static void printVersion() { +- TypeScriptGenerator.getLogger().info("Running TypeScriptGenerator version " + Version); ++ System.out.println("Running TypeScriptGenerator version " + Version); + } + + public String generateTypeScript(Input input) { +@@ -70,104 +38,31 @@ public class TypeScriptGenerator { + } + + public void generateTypeScript(Input input, Output output) { +- final Model model = getModelParser().parseModel(input.getSourceTypes()); +- final TsModel tsModel = getModelCompiler().javaToTypeScript(model); +- generateTypeScript(tsModel, output); +- generateInfoJson(tsModel, output); +- generateNpmPackageJson(output); ++ generateTypeScript(input, output, false, 0); + } + +- private void generateTypeScript(TsModel tsModel, Output output) { +- getEmitter().emit(tsModel, output.getWriter(), output.getName(), output.shouldCloseWriter()); ++ public void generateEmbeddableTypeScript(Input input, Output output, boolean addExportKeyword, int initialIndentationLevel) { ++ generateTypeScript(input, output, addExportKeyword, initialIndentationLevel); + } + +- private void generateInfoJson(TsModel tsModel, Output output) { +- if (settings.generateInfoJson) { +- if (output.getName() == null) { +- throw new RuntimeException("Generating info JSON can only be used when output is specified using file name"); +- } +- final File outputFile = new File(output.getName()); +- final Output out = Output.to(new File(outputFile.getParent(), "typescript-generator-info.json")); +- getInfoJsonEmitter().emit(tsModel, out.getWriter(), out.getName(), out.shouldCloseWriter()); +- } ++ private void generateTypeScript(Input input, Output output, boolean forceExportKeyword, int initialIndentationLevel) { ++ final Model model = getModelParser().parseModel(input.getSourceTypes()); ++ final TsModel tsModel = getModelCompiler().javaToTypeScript(model); ++ getEmitter().emit(tsModel, output.getWriter(), output.getName(), output.shouldCloseWriter(), forceExportKeyword, initialIndentationLevel); + } + +- private void generateNpmPackageJson(Output output) { +- if (settings.generateNpmPackageJson) { +- if (output.getName() == null) { +- throw new RuntimeException("Generating NPM package.json can only be used when output is specified using file name"); +- } +- final File outputFile = new File(output.getName()); +- final Output npmOutput = Output.to(new File(outputFile.getParent(), "package.json")); +- final NpmPackageJson npmPackageJson = new NpmPackageJson(); +- npmPackageJson.name = settings.npmName; +- npmPackageJson.version = settings.npmVersion; +- npmPackageJson.types = outputFile.getName(); +- npmPackageJson.dependencies = new LinkedHashMap<>(); +- npmPackageJson.devDependencies = new LinkedHashMap<>(); +- npmPackageJson.peerDependencies = new LinkedHashMap<>(); +- if (settings.moduleDependencies != null) { +- for (ModuleDependency dependency : settings.moduleDependencies) { +- if (dependency.peerDependency) { +- npmPackageJson.peerDependencies.put(dependency.npmPackageName, dependency.npmVersionRange); +- } else { +- npmPackageJson.dependencies.put(dependency.npmPackageName, dependency.npmVersionRange); +- } +- } +- } +- if (settings.outputFileType == TypeScriptFileType.implementationFile) { +- npmPackageJson.types = Utils.replaceExtension(outputFile, ".d.ts").getName(); +- npmPackageJson.main = Utils.replaceExtension(outputFile, ".js").getName(); +- npmPackageJson.dependencies.putAll(settings.npmPackageDependencies); +- npmPackageJson.devDependencies.putAll(settings.npmDevDependencies); +- npmPackageJson.peerDependencies.putAll(settings.npmPeerDependencies); +- final String typescriptVersion = settings.npmTypescriptVersion != null ? settings.npmTypescriptVersion : settings.typescriptVersion; +- npmPackageJson.devDependencies.put("typescript", typescriptVersion); +- final String npmBuildScript = settings.npmBuildScript != null +- ? settings.npmBuildScript +- : "tsc --module umd --moduleResolution node --typeRoots --target es5 --lib es6 --declaration --sourceMap $outputFile"; +- final String build = npmBuildScript.replaceAll(Pattern.quote("$outputFile"), outputFile.getName()); +- npmPackageJson.scripts = Collections.singletonMap("build", build); +- } +- if (npmPackageJson.dependencies.isEmpty()) { +- npmPackageJson.dependencies = null; +- } +- if (npmPackageJson.devDependencies.isEmpty()) { +- npmPackageJson.devDependencies = null; ++ public TypeProcessor getTypeProcessor() { ++ if (typeProcessor == null) { ++ final List processors = new ArrayList<>(); ++ processors.add(new ExcludingTypeProcessor(settings.getExcludeFilter())); ++ if (settings.customTypeProcessor != null) { ++ processors.add(settings.customTypeProcessor); + } +- if (npmPackageJson.peerDependencies.isEmpty()) { +- npmPackageJson.peerDependencies = null; +- } +- getNpmPackageJsonEmitter().emit(npmPackageJson, npmOutput.getWriter(), npmOutput.getName(), npmOutput.shouldCloseWriter()); +- } +- } +- +- public TypeProcessor getCommonTypeProcessor() { +- if (commonTypeProcessor == null) { +- final List restFactories = settings.getRestApplicationParserFactories(); +- final ModelParser.Factory modelParserFactory = getModelParserFactory(); +- final List specificTypeProcessors = Stream +- .concat( +- restFactories.stream().map(factory -> factory.getSpecificTypeProcessor()), +- Stream.of(modelParserFactory.getSpecificTypeProcessor()) +- ) +- .filter(Objects::nonNull) +- .collect(Collectors.toList()); +- commonTypeProcessor = createTypeProcessor(specificTypeProcessors); ++ processors.add(new CustomMappingTypeProcessor(settings.customTypeMappings)); ++ processors.add(new GenericsTypeProcessor()); ++ processors.add(new DefaultTypeProcessor()); ++ typeProcessor = new TypeProcessor.Chain(processors); + } +- return commonTypeProcessor; +- } +- +- private TypeProcessor createTypeProcessor(List specificTypeProcessors) { +- final List processors = new ArrayList<>(); +- processors.add(new ExcludingTypeProcessor(settings.getExcludeFilter())); +- if (settings.customTypeProcessor != null) { +- processors.add(settings.customTypeProcessor); +- } +- processors.add(new CustomMappingTypeProcessor(settings.getValidatedCustomTypeMappings())); +- processors.addAll(specificTypeProcessors); +- processors.add(new DefaultTypeProcessor(settings.getLoadedDataLibraries())); +- final TypeProcessor typeProcessor = new TypeProcessor.Chain(processors); + return typeProcessor; + } + +@@ -179,23 +74,13 @@ public class TypeScriptGenerator { + } + + private ModelParser createModelParser() { +- final List factories = settings.getRestApplicationParserFactories(); +- final List restApplicationParsers = factories.stream() +- .map(factory -> factory.create(settings, getCommonTypeProcessor())) +- .collect(Collectors.toList()); +- return getModelParserFactory().create(settings, getCommonTypeProcessor(), restApplicationParsers); +- } +- +- private ModelParser.Factory getModelParserFactory() { + switch (settings.jsonLibrary) { ++ case jackson1: ++ return new Jackson1Parser(settings, getTypeProcessor()); + case jackson2: +- return new Jackson2Parser.Jackson2ParserFactory(); ++ return new Jackson2Parser(settings, getTypeProcessor()); + case jaxb: +- return new Jackson2Parser.JaxbParserFactory(); +- case gson: +- return new GsonParser.Factory(); +- case jsonb: +- return new JsonbParser.Factory(); ++ return new Jackson2Parser(settings, getTypeProcessor(), /*useJaxbAnnotations*/ true); + default: + throw new RuntimeException(); + } +@@ -203,7 +88,7 @@ public class TypeScriptGenerator { + + public ModelCompiler getModelCompiler() { + if (modelCompiler == null) { +- modelCompiler = new ModelCompiler(settings, getCommonTypeProcessor()); ++ modelCompiler = new ModelCompiler(settings, getTypeProcessor()); + } + return modelCompiler; + } +@@ -215,20 +100,6 @@ public class TypeScriptGenerator { + return emitter; + } + +- public InfoJsonEmitter getInfoJsonEmitter() { +- if (infoJsonEmitter == null) { +- infoJsonEmitter = new InfoJsonEmitter(); +- } +- return infoJsonEmitter; +- } +- +- public NpmPackageJsonEmitter getNpmPackageJsonEmitter() { +- if (npmPackageJsonEmitter == null) { +- npmPackageJsonEmitter = new NpmPackageJsonEmitter(); +- } +- return npmPackageJsonEmitter; +- } +- + private static String getVersion() { + try { + final InputStream inputStream = TypeScriptGenerator.class.getResourceAsStream( +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/compiler/EnumKind.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/compiler/EnumKind.java +index f29d571b0..5552bed2a 100644 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/compiler/EnumKind.java ++++ b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/compiler/EnumKind.java +@@ -2,8 +2,12 @@ + package cz.habarta.typescript.generator.compiler; + + +-public enum EnumKind { ++public final class EnumKind { + +- StringBased, NumberBased ++ public static final EnumKind StringBased = new EnumKind<>(); ++ public static final EnumKind NumberBased = new EnumKind<>(); ++ ++ private EnumKind() { ++ } + + } +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/compiler/EnumMemberModel.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/compiler/EnumMemberModel.java +index f8a7f0c00..43ace2074 100644 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/compiler/EnumMemberModel.java ++++ b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/compiler/EnumMemberModel.java +@@ -1,29 +1,18 @@ + + package cz.habarta.typescript.generator.compiler; + +-import java.lang.reflect.Field; + import java.util.List; + + +-public class EnumMemberModel { +- ++public class EnumMemberModel { ++ + private final String propertyName; +- private final Object/*String|Number*/ enumValue; +- private final Field originalField; ++ private final T enumValue; + private final List comments; + +- public EnumMemberModel(String propertyName, String enumValue, Field originalField, List comments) { +- this(propertyName, (Object)enumValue, originalField, comments); +- } +- +- public EnumMemberModel(String propertyName, Number enumValue, Field originalField, List comments) { +- this(propertyName, (Object)enumValue, originalField, comments); +- } +- +- private EnumMemberModel(String propertyName, Object enumValue, Field originalField, List comments) { ++ public EnumMemberModel(String propertyName, T enumValue, List comments) { + this.propertyName = propertyName; + this.enumValue = enumValue; +- this.originalField = originalField; + this.comments = comments; + } + +@@ -31,24 +20,16 @@ public class EnumMemberModel { + return propertyName; + } + +- public Object getEnumValue() { ++ public T getEnumValue() { + return enumValue; + } + +- public Field getOriginalField() { +- return originalField; +- } +- + public List getComments() { + return comments; + } + +- public EnumMemberModel withPropertyName(String propertyName) { +- return new EnumMemberModel(propertyName, enumValue, originalField, comments); +- } +- +- public EnumMemberModel withComments(List comments) { +- return new EnumMemberModel(propertyName, enumValue, originalField, comments); ++ public EnumMemberModel withComments(List comments) { ++ return new EnumMemberModel<>(propertyName, enumValue, comments); + } + + } +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/compiler/ModelCompiler.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/compiler/ModelCompiler.java +index 35517b622..e67e28b71 100644 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/compiler/ModelCompiler.java ++++ b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/compiler/ModelCompiler.java +@@ -1,81 +1,11 @@ + + package cz.habarta.typescript.generator.compiler; + +-import cz.habarta.typescript.generator.DateMapping; +-import cz.habarta.typescript.generator.EnumMapping; +-import cz.habarta.typescript.generator.Extension; +-import cz.habarta.typescript.generator.IdentifierCasing; +-import cz.habarta.typescript.generator.MapMapping; +-import cz.habarta.typescript.generator.NullabilityDefinition; +-import cz.habarta.typescript.generator.OptionalPropertiesDeclaration; +-import cz.habarta.typescript.generator.RestNamespacing; +-import cz.habarta.typescript.generator.Settings; +-import cz.habarta.typescript.generator.TsParameter; +-import cz.habarta.typescript.generator.TsProperty; +-import cz.habarta.typescript.generator.TsType; +-import cz.habarta.typescript.generator.TypeProcessor; +-import cz.habarta.typescript.generator.TypeScriptGenerator; +-import cz.habarta.typescript.generator.emitter.EmitterExtension; +-import cz.habarta.typescript.generator.emitter.TsAccessibilityModifier; +-import cz.habarta.typescript.generator.emitter.TsAliasModel; +-import cz.habarta.typescript.generator.emitter.TsAssignmentExpression; +-import cz.habarta.typescript.generator.emitter.TsBeanCategory; +-import cz.habarta.typescript.generator.emitter.TsBeanModel; +-import cz.habarta.typescript.generator.emitter.TsCallExpression; +-import cz.habarta.typescript.generator.emitter.TsConstructorModel; +-import cz.habarta.typescript.generator.emitter.TsEnumModel; +-import cz.habarta.typescript.generator.emitter.TsExpression; +-import cz.habarta.typescript.generator.emitter.TsExpressionStatement; +-import cz.habarta.typescript.generator.emitter.TsHelper; +-import cz.habarta.typescript.generator.emitter.TsIdentifierReference; +-import cz.habarta.typescript.generator.emitter.TsMemberExpression; +-import cz.habarta.typescript.generator.emitter.TsMethodModel; +-import cz.habarta.typescript.generator.emitter.TsModel; +-import cz.habarta.typescript.generator.emitter.TsModifierFlags; +-import cz.habarta.typescript.generator.emitter.TsObjectLiteral; +-import cz.habarta.typescript.generator.emitter.TsParameterModel; +-import cz.habarta.typescript.generator.emitter.TsPropertyDefinition; +-import cz.habarta.typescript.generator.emitter.TsPropertyModel; +-import cz.habarta.typescript.generator.emitter.TsReturnStatement; +-import cz.habarta.typescript.generator.emitter.TsStatement; +-import cz.habarta.typescript.generator.emitter.TsStringLiteral; +-import cz.habarta.typescript.generator.emitter.TsSuperExpression; +-import cz.habarta.typescript.generator.emitter.TsTaggedTemplateLiteral; +-import cz.habarta.typescript.generator.emitter.TsTemplateLiteral; +-import cz.habarta.typescript.generator.emitter.TsThisExpression; +-import cz.habarta.typescript.generator.parser.BeanModel; +-import cz.habarta.typescript.generator.parser.EnumModel; +-import cz.habarta.typescript.generator.parser.MethodModel; +-import cz.habarta.typescript.generator.parser.MethodParameterModel; +-import cz.habarta.typescript.generator.parser.Model; +-import cz.habarta.typescript.generator.parser.PathTemplate; +-import cz.habarta.typescript.generator.parser.PropertyAccess; +-import cz.habarta.typescript.generator.parser.PropertyModel; +-import cz.habarta.typescript.generator.parser.RestApplicationModel; +-import cz.habarta.typescript.generator.parser.RestMethodModel; +-import cz.habarta.typescript.generator.parser.RestQueryParam; +-import cz.habarta.typescript.generator.type.JTypeWithNullability; +-import cz.habarta.typescript.generator.util.GenericsResolver; +-import cz.habarta.typescript.generator.util.Pair; +-import cz.habarta.typescript.generator.util.Utils; +-import java.lang.annotation.Annotation; +-import java.lang.reflect.Type; +-import java.lang.reflect.TypeVariable; +-import java.util.ArrayList; +-import java.util.Arrays; +-import java.util.Collections; +-import java.util.Comparator; +-import java.util.LinkedHashMap; +-import java.util.LinkedHashSet; +-import java.util.List; +-import java.util.Map; +-import java.util.Objects; +-import java.util.Set; +-import java.util.concurrent.atomic.AtomicBoolean; +-import java.util.regex.Matcher; +-import java.util.regex.Pattern; +-import java.util.stream.Collectors; +-import java.util.stream.Stream; ++import cz.habarta.typescript.generator.*; ++import cz.habarta.typescript.generator.emitter.*; ++import cz.habarta.typescript.generator.parser.*; ++import java.lang.reflect.*; ++import java.util.*; + + + /** +@@ -108,61 +38,14 @@ public class ModelCompiler { + this.typeProcessor = typeProcessor; + } + +- public enum TransformationPhase { +- BeforeTsModel, +- BeforeEnums, +- BeforeSymbolResolution, +- AfterDeclarationSorting, +- } +- + public TsModel javaToTypeScript(Model model) { + final SymbolTable symbolTable = new SymbolTable(settings); +- final List extensionTransformers = getExtensionTransformers(); +- model = applyExtensionModelTransformers(symbolTable, model, extensionTransformers); + TsModel tsModel = processModel(symbolTable, model); +- tsModel = addCustomTypeAliases(symbolTable, tsModel); +- tsModel = removeInheritedProperties(symbolTable, tsModel); +- tsModel = addImplementedProperties(symbolTable, tsModel); +- tsModel = sortPropertiesDeclarations(symbolTable, tsModel); +- if (settings.generateConstructors) { +- tsModel = addConstructors(symbolTable, tsModel); +- } +- +- // REST +- if (settings.isGenerateRest()) { +- final Symbol responseSymbol = createRestResponseType(symbolTable, tsModel); +- final TsType optionsType = settings.restOptionsType != null +- ? new TsType.VerbatimType(settings.restOptionsType) +- : null; +- final TsType.GenericVariableType optionsGenericVariable = settings.restOptionsTypeIsGeneric +- ? new TsType.GenericVariableType(settings.restOptionsType) +- : null; +- final List restApplicationsWithInterface = model.getRestApplications().stream() +- .filter(restApplication -> restApplication.getType().generateInterface.apply(settings)) +- .collect(Collectors.toList()); +- final List restApplicationsWithClient = model.getRestApplications().stream() +- .filter(restApplication -> restApplication.getType().generateClient.apply(settings)) +- .collect(Collectors.toList()); +- if (!restApplicationsWithInterface.isEmpty()) { +- createRestInterfaces(tsModel, symbolTable, restApplicationsWithInterface, responseSymbol, optionsGenericVariable, optionsType); +- } +- if (!restApplicationsWithClient.isEmpty()) { +- createRestClients(tsModel, symbolTable, restApplicationsWithClient, responseSymbol, optionsGenericVariable, optionsType); +- } +- } +- +- // maps +- tsModel = transformMaps(symbolTable, tsModel); + + // dates + tsModel = transformDates(symbolTable, tsModel); + + // enums +- tsModel = applyExtensionTransformers(symbolTable, model, tsModel, TransformationPhase.BeforeEnums, extensionTransformers); +- tsModel = addEnumValuesToJavadoc(tsModel); +- if (settings.enumMemberCasing != null && settings.enumMemberCasing != IdentifierCasing.keepOriginal) { +- tsModel = transformEnumMembersCase(tsModel); +- } + if (!settings.areDefaultStringEnumsOverriddenByExtension()) { + if (settings.mapEnum == null || settings.mapEnum == EnumMapping.asUnion || settings.mapEnum == EnumMapping.asInlineUnion) { + tsModel = transformEnumsToUnions(tsModel); +@@ -170,68 +53,18 @@ public class ModelCompiler { + if (settings.mapEnum == EnumMapping.asInlineUnion) { + tsModel = inlineEnums(tsModel, symbolTable); + } +- if (settings.mapEnum == EnumMapping.asNumberBasedEnum) { +- tsModel = transformEnumsToNumberBasedEnum(tsModel); +- } + } + +- // after enum transformations transform Maps with rest of the enums (not unions) used in keys +- tsModel = transformNonStringEnumKeyMaps(symbolTable, tsModel); +- + // tagged unions + tsModel = createAndUseTaggedUnions(symbolTable, tsModel); + +- // nullable types and optional properties +- tsModel = makeUndefinablePropertiesAndParametersOptional(symbolTable, tsModel); +- tsModel = transformNullableTypes(symbolTable, tsModel); +- tsModel = eliminateUndefinedFromOptionalPropertiesAndParameters(symbolTable, tsModel); +- tsModel = transformOptionalProperties(symbolTable, tsModel); +- +- tsModel = applyExtensionTransformers(symbolTable, model, tsModel, TransformationPhase.BeforeSymbolResolution, extensionTransformers); + symbolTable.resolveSymbolNames(); +- tsModel = sortTypeDeclarations(symbolTable, tsModel); +- tsModel = applyExtensionTransformers(symbolTable, model, tsModel, TransformationPhase.AfterDeclarationSorting, extensionTransformers); +- return tsModel; +- } +- +- private List getExtensionTransformers() { +- final List transformers = new ArrayList<>(); +- for (EmitterExtension emitterExtension : settings.extensions) { +- if (emitterExtension instanceof Extension) { +- final Extension extension = (Extension) emitterExtension; +- transformers.addAll(extension.getTransformers()); +- } +- } +- return transformers; +- } +- +- private static Model applyExtensionModelTransformers(SymbolTable symbolTable, Model model, +- List transformerDefinitions +- ) { +- for (Extension.TransformerDefinition definition : transformerDefinitions) { +- if (definition.phase == TransformationPhase.BeforeTsModel) { +- model = definition.transformer.transformModel(symbolTable, model); +- } +- } +- return model; +- } +- +- private static TsModel applyExtensionTransformers(SymbolTable symbolTable, Model model, TsModel tsModel, +- TransformationPhase phase, List transformerDefinitions +- ) { +- final TsModelTransformer.Context context = new TsModelTransformer.Context(symbolTable, model); +- for (Extension.TransformerDefinition definition : transformerDefinitions) { +- if (definition.phase == phase) { +- tsModel = definition.tsTransformer.transformModel(context, tsModel); +- } +- } + return tsModel; + } + + public TsType javaToTypeScript(Type type) { +- final BeanModel beanModel = new BeanModel(Object.class, Object.class, null, null, null, Collections.emptyList(), +- Collections.singletonList(new PropertyModel("property", type, false, null, null, null, null, null)), null); +- final Model model = new Model(Collections.singletonList(beanModel), Collections.emptyList(), null); ++ final BeanModel beanModel = new BeanModel(Object.class, Object.class, null, null, null, Collections.emptyList(), Collections.singletonList(new PropertyModel("property", type, false, null, null)), null); ++ final Model model = new Model(Collections.singletonList(beanModel), Collections.>emptyList()); + final TsModel tsModel = javaToTypeScript(model); + return tsModel.getBeans().get(0).getProperties().get(0).getTsType(); + } +@@ -240,52 +73,35 @@ public class ModelCompiler { + final Map> children = createChildrenMap(model); + final List beans = new ArrayList<>(); + for (BeanModel bean : model.getBeans()) { +- beans.add(processBean(symbolTable, model, children, bean)); ++ beans.add(processBean(symbolTable, children, bean)); + } +- final List enums = new ArrayList<>(); +- final List stringEnums = new ArrayList<>(); +- for (EnumModel enumModel : model.getEnums()) { +- final TsEnumModel tsEnumModel = processEnum(symbolTable, enumModel); +- enums.add(tsEnumModel); +- if (tsEnumModel.getKind() == EnumKind.StringBased) { +- stringEnums.add(tsEnumModel); +- } ++ final List> enums = new ArrayList<>(); ++ for (EnumModel enumModel : model.getEnums()) { ++ enums.add(processEnum(symbolTable, enumModel)); + } +- return new TsModel().withBeans(beans).withEnums(enums).withOriginalStringEnums(stringEnums); ++ final List typeAliases = new ArrayList<>(); ++ return new TsModel(beans, enums, typeAliases); + } + + private Map> createChildrenMap(Model model) { + final Map> children = new LinkedHashMap<>(); + for (BeanModel bean : model.getBeans()) { +- for (Type ancestor : bean.getParentAndInterfaces()) { +- final Type processedAncestor = Utils.getRawClassOrNull(ancestor); +- if (!children.containsKey(processedAncestor)) { +- children.put(processedAncestor, new ArrayList<>()); ++ for (Type ancestor : bean.getDirectAncestors()) { ++ if (!children.containsKey(ancestor)) { ++ children.put(ancestor, new ArrayList()); + } +- children.get(processedAncestor).add(bean); ++ children.get(ancestor).add(bean); + } + } + return children; + } + +- private TsBeanModel processBean(SymbolTable symbolTable, Model model, Map> children, BeanModel bean) { +- final boolean isClass = mappedToClass(bean.getOrigin()); +- final List extendsList = new ArrayList<>(); +- final List implementsList = new ArrayList<>(); +- +- final TsType parentTypeFromJava = typeFromJava(symbolTable, bean.getParent()); +- final TsType parentType = parentTypeFromJava != null && !parentTypeFromJava.equals(TsType.Any) +- ? parentTypeFromJava +- : null; +- if (parentType != null) { +- final boolean isParentMappedToClass = mappedToClass(getOriginClass(symbolTable, parentType)); +- if (isClass && !isParentMappedToClass) { +- implementsList.add(parentType); +- } else { +- extendsList.add(parentType); +- } ++ private TsBeanModel processBean(SymbolTable symbolTable, Map> children, BeanModel bean) { ++ final TsType beanType = typeFromJava(symbolTable, bean.getOrigin()); ++ TsType parentType = typeFromJava(symbolTable, bean.getParent()); ++ if (parentType != null && parentType.equals(TsType.Any)) { ++ parentType = null; + } +- + final List interfaces = new ArrayList<>(); + for (Type aInterface : bean.getInterfaces()) { + final TsType interfaceType = typeFromJava(symbolTable, aInterface); +@@ -293,99 +109,26 @@ public class ModelCompiler { + interfaces.add(interfaceType); + } + } +- if (isClass) { +- implementsList.addAll(interfaces); +- } else { +- extendsList.addAll(interfaces); ++ final List properties = new ArrayList<>(); ++ for (PropertyModel property : bean.getProperties()) { ++ properties.add(processProperty(symbolTable, bean, property)); + } + +- final List properties = processProperties(symbolTable, model, bean); +- +- boolean isTaggedUnion = false; +- if (bean.getDiscriminantProperty() != null && bean.getProperty(bean.getDiscriminantProperty()) == null) { +- isTaggedUnion = true; +- boolean isDisciminantProperty = true; ++ if (bean.getDiscriminantProperty() != null && !containsProperty(properties, bean.getDiscriminantProperty())) { + final List selfAndDescendants = getSelfAndDescendants(bean, children); + final List literals = new ArrayList<>(); + for (BeanModel descendant : selfAndDescendants) { +- if (descendant.getDiscriminantProperty() == null || descendant.getProperty(bean.getDiscriminantProperty()) != null) { +- // do not handle bean as tagged union if any descendant or it itself has duplicate discriminant property +- isTaggedUnion = false; +- isDisciminantProperty = false; +- } + if (descendant.getDiscriminantLiteral() != null) { + literals.add(new TsType.StringLiteralType(descendant.getDiscriminantLiteral())); + } + } +- final List descendants = selfAndDescendants.subList(1, selfAndDescendants.size()); +- for (BeanModel descendant : descendants) { +- // do not handle bean as tagged union if any descendant has "non-related" generic parameter +- final List mappedGenericVariables = GenericsResolver.mapGenericVariablesToBase(descendant.getOrigin(), bean.getOrigin()); +- if (mappedGenericVariables.contains(null)) { +- isTaggedUnion = false; +- } +- } +- final TsType discriminantType = isDisciminantProperty && !literals.isEmpty() +- ? new TsType.UnionType(literals) +- : TsType.String; +- final TsModifierFlags modifiers = TsModifierFlags.None.setReadonly(settings.declarePropertiesAsReadOnly); +- properties.add(0, new TsPropertyModel(bean.getDiscriminantProperty(), discriminantType, modifiers, /*ownProperty*/ true, null)); ++ final TsType discriminantType = literals.isEmpty() ++ ? TsType.String ++ : new TsType.UnionType(literals); ++ properties.add(0, new TsPropertyModel(bean.getDiscriminantProperty(), discriminantType, null)); + } + +- final TsBeanModel tsBean = new TsBeanModel( +- bean.getOrigin(), +- TsBeanCategory.Data, +- isClass, +- symbolTable.getSymbol(bean.getOrigin()), +- getTypeParameters(bean.getOrigin()), +- parentType, +- extendsList, +- implementsList, +- properties, +- /*constructor*/ null, +- /*methods*/ null, +- bean.getComments()); +- return isTaggedUnion +- ? tsBean.withTaggedUnion(bean.getTaggedUnionClasses(), bean.getDiscriminantProperty(), bean.getDiscriminantLiteral()) +- : tsBean; +- } +- +- private boolean mappedToClass(Class cls) { +- return cls != null && !cls.isInterface() && settings.getMapClassesAsClassesFilter().test(cls.getName()); +- } +- +- private static List getTypeParameters(Class cls) { +- final List typeParameters = new ArrayList<>(); +- for (TypeVariable typeParameter : cls.getTypeParameters()) { +- typeParameters.add(new TsType.GenericVariableType(typeParameter.getName())); +- } +- return typeParameters; +- } +- +- private List processProperties(SymbolTable symbolTable, Model model, BeanModel bean) { +- return processProperties(symbolTable, model, bean, "", ""); +- } +- +- private List processProperties(SymbolTable symbolTable, Model model, BeanModel bean, String prefix, String suffix) { +- final List properties = new ArrayList<>(); +- for (PropertyModel property : bean.getProperties()) { +- boolean pulled = false; +- final PropertyModel.PullProperties pullProperties = property.getPullProperties(); +- if (pullProperties != null) { +- final Type type = JTypeWithNullability.getPlainType(property.getType()); +- if (type instanceof Class) { +- final BeanModel pullBean = model.getBean((Class) type); +- if (pullBean != null) { +- properties.addAll(processProperties(symbolTable, model, pullBean, prefix + pullProperties.prefix, pullProperties.suffix + suffix)); +- pulled = true; +- } +- } +- } +- if (!pulled) { +- properties.add(processProperty(symbolTable, bean, property, prefix, suffix)); +- } +- } +- return properties; ++ return new TsBeanModel(bean.getOrigin(), beanType, parentType, bean.getTaggedUnionClasses(), interfaces, properties, bean.getComments()); + } + + private static List getSelfAndDescendants(BeanModel bean, Map> children) { +@@ -400,41 +143,24 @@ public class ModelCompiler { + return descendants; + } + +- private TsPropertyModel processProperty(SymbolTable symbolTable, BeanModel bean, PropertyModel property, String prefix, String suffix) { +- final TsType type = typeFromJava(symbolTable, property.getType(), property.getContext(), property.getName(), bean.getOrigin()); +- final TsType tsType = property.isOptional() ? type.optional() : type; +- final TsModifierFlags modifiers = TsModifierFlags.None.setReadonly(settings.declarePropertiesAsReadOnly); +- final List comments = settings.generateReadonlyAndWriteonlyJSDocTags +- ? Utils.concat(property.getComments(), getPropertyAccessComments(property.getAccess())) +- : property.getComments(); +- return new TsPropertyModel(prefix + property.getName() + suffix, tsType, modifiers, /*ownProperty*/ false, comments); ++ private static boolean containsProperty(List properties, String propertyName) { ++ for (TsPropertyModel property : properties) { ++ if (property.getName().equals(propertyName)) { ++ return true; ++ } ++ } ++ return false; + } + +- private static List getPropertyAccessComments(PropertyAccess access) { +- final String accessTag = +- access == PropertyAccess.ReadOnly ? "@readonly" : +- access == PropertyAccess.WriteOnly ? "@writeonly" : +- null; +- return accessTag != null ? Collections.singletonList(accessTag) : null; ++ private TsPropertyModel processProperty(SymbolTable symbolTable, BeanModel bean, PropertyModel property) { ++ final TsType type = typeFromJava(symbolTable, property.getType(), property.getName(), bean.getOrigin()); ++ final TsType tsType = property.isOptional() ? type.optional() : type; ++ return new TsPropertyModel(property.getName(), tsType, property.getComments()); + } + +- private TsEnumModel processEnum(SymbolTable symbolTable, EnumModel enumModel) { +- final Symbol beanIdentifier = symbolTable.getSymbol(enumModel.getOrigin()); +- TsEnumModel tsEnumModel = TsEnumModel.fromEnumModel(beanIdentifier, enumModel, isEnumNonConst(enumModel)); +- return tsEnumModel; +- } +- +- private boolean isEnumNonConst(EnumModel enumModel) { +- boolean isNonConst = settings.nonConstEnums; +- if (!isNonConst) { +- for (Class nonConstAnnotation : settings.nonConstEnumAnnotations) { +- if (enumModel.getOrigin().isAnnotationPresent(nonConstAnnotation)) { +- isNonConst = true; +- break; +- } +- } +- } +- return isNonConst; ++ private TsEnumModel processEnum(SymbolTable symbolTable, EnumModel enumModel) { ++ final TsType enumType = typeFromJava(symbolTable, enumModel.getOrigin()); ++ return TsEnumModel.fromEnumModel(enumType, enumModel); + } + + private TsType typeFromJava(SymbolTable symbolTable, Type javaType) { +@@ -442,593 +168,83 @@ public class ModelCompiler { + } + + private TsType typeFromJava(SymbolTable symbolTable, Type javaType, String usedInProperty, Class usedInClass) { +- return typeFromJava(symbolTable, javaType, null, usedInProperty, usedInClass); +- } +- +- private TsType typeFromJava(SymbolTable symbolTable, Type javaType, Object typeContext, String usedInProperty, Class usedInClass) { + if (javaType == null) { + return null; + } +- final TypeProcessor.Context context = new TypeProcessor.Context(symbolTable, typeProcessor, typeContext); ++ final TypeProcessor.Context context = new TypeProcessor.Context(symbolTable, typeProcessor); + final TypeProcessor.Result result = context.processType(javaType); + if (result != null) { + return result.getTsType(); + } else { + if (usedInClass != null && usedInProperty != null) { +- TypeScriptGenerator.getLogger().warning(String.format("Unsupported type '%s' used in '%s.%s'", javaType, usedInClass.getSimpleName(), usedInProperty)); ++ System.out.println(String.format("Warning: Unsupported type '%s' used in '%s.%s'", javaType, usedInClass.getSimpleName(), usedInProperty)); + } else { +- TypeScriptGenerator.getLogger().warning(String.format("Unsupported type '%s'", javaType)); ++ System.out.println(String.format("Warning: Unsupported type '%s'", javaType)); + } + return TsType.Any; + } + } + +- private TsModel addCustomTypeAliases(SymbolTable symbolTable, TsModel tsModel) { +- final List aliases = new ArrayList<>(tsModel.getTypeAliases()); +- for (Settings.CustomTypeAlias customTypeAlias : settings.getValidatedCustomTypeAliases()) { +- final Symbol name = symbolTable.getSyntheticSymbol(customTypeAlias.tsType.rawName); +- final List typeParameters = customTypeAlias.tsType.typeParameters != null +- ? customTypeAlias.tsType.typeParameters.stream() +- .map(TsType.GenericVariableType::new) +- .collect(Collectors.toList()) +- : null; +- final TsType definition = new TsType.VerbatimType(customTypeAlias.tsDefinition); +- aliases.add(new TsAliasModel(null, name, typeParameters, definition, null)); +- } +- return tsModel.withTypeAliases(aliases); +- } +- +- private TsModel removeInheritedProperties(SymbolTable symbolTable, TsModel tsModel) { +- final List beans = new ArrayList<>(); +- for (TsBeanModel bean : tsModel.getBeans()) { +- final Map inheritedPropertyTypes = getInheritedProperties(symbolTable, tsModel, bean.getAllParents()); +- final List properties = new ArrayList<>(); +- for (TsPropertyModel property : bean.getProperties()) { +- if (property.isOwnProperty() || !Objects.equals(property.getTsType(), inheritedPropertyTypes.get(property.getName()))) { +- properties.add(property); +- } +- } +- beans.add(bean.withProperties(properties)); +- } +- return tsModel.withBeans(beans); +- } +- +- private TsModel addImplementedProperties(SymbolTable symbolTable, TsModel tsModel) { +- final List beans = new ArrayList<>(); +- for (TsBeanModel bean : tsModel.getBeans()) { +- if (bean.isClass()) { +- final List resultProperties = new ArrayList<>(bean.getProperties()); +- +- final Set classPropertyNames = new LinkedHashSet<>(); +- for (TsPropertyModel property : bean.getProperties()) { +- classPropertyNames.add(property.getName()); +- } +- classPropertyNames.addAll(getInheritedProperties(symbolTable, tsModel, bean.getExtendsList()).keySet()); +- +- final List implementedProperties = getImplementedProperties(symbolTable, tsModel, bean.getImplementsList()); +- Collections.reverse(implementedProperties); +- for (TsPropertyModel implementedProperty : implementedProperties) { +- if (!classPropertyNames.contains(implementedProperty.getName())) { +- resultProperties.add(0, implementedProperty); +- classPropertyNames.add(implementedProperty.getName()); +- } +- } +- +- beans.add(bean.withProperties(resultProperties)); +- } else { +- beans.add(bean); +- } +- } +- return tsModel.withBeans(beans); +- } +- +- private TsModel addConstructors(SymbolTable symbolTable, TsModel tsModel) { +- final List beans = new ArrayList<>(); +- for (TsBeanModel bean : tsModel.getBeans()) { +- final Symbol beanIdentifier = symbolTable.getSymbol(bean.getOrigin()); +- final List typeParameters = getTypeParameters(bean.getOrigin()); +- final TsType.ReferenceType dataType = typeParameters.isEmpty() +- ? new TsType.ReferenceType(beanIdentifier) +- : new TsType.GenericReferenceType(beanIdentifier, typeParameters); +- final List body = new ArrayList<>(); +- if (bean.getParent() != null) { +- body.add(new TsExpressionStatement( +- new TsCallExpression( +- new TsSuperExpression(), +- new TsIdentifierReference("data") +- ) +- )); +- } +- for (TsPropertyModel property : bean.getProperties()) { +- final Map inheritedProperties = ModelCompiler.getInheritedProperties(symbolTable, tsModel, Utils.listFromNullable(bean.getParent())); +- if (!inheritedProperties.containsKey(property.getName())) { +- body.add(new TsExpressionStatement(new TsAssignmentExpression( +- new TsMemberExpression(new TsThisExpression(), property.name), +- new TsMemberExpression(new TsIdentifierReference("data"), property.name) +- ))); +- } +- } +- if (bean.isClass()) { +- final TsConstructorModel constructor = new TsConstructorModel( +- TsModifierFlags.None, +- Arrays.asList(new TsParameterModel("data", dataType)), +- body, +- /*comments*/ null +- ); +- beans.add(bean.withConstructor(constructor)); +- } else { +- beans.add(bean); +- } +- } +- return tsModel.withBeans(beans); +- } +- +- public static Map getInheritedProperties(SymbolTable symbolTable, TsModel tsModel, List parents) { +- final Map properties = new LinkedHashMap<>(); +- for (TsType parentType : parents) { +- final TsBeanModel parent = tsModel.getBean(getOriginClass(symbolTable, parentType)); +- if (parent != null) { +- properties.putAll(getInheritedProperties(symbolTable, tsModel, parent.getAllParents())); +- for (TsPropertyModel property : parent.getProperties()) { +- properties.put(property.getName(), property.getTsType()); +- } +- } +- } +- return properties; +- } +- +- private static List getImplementedProperties(SymbolTable symbolTable, TsModel tsModel, List interfaces) { +- final List properties = new ArrayList<>(); +- for (TsType aInterface : interfaces) { +- final TsBeanModel bean = tsModel.getBean(getOriginClass(symbolTable, aInterface)); +- if (bean != null) { +- properties.addAll(getImplementedProperties(symbolTable, tsModel, bean.getExtendsList())); +- properties.addAll(bean.getProperties()); +- } +- } +- return properties; +- } +- +- private Symbol createRestResponseType(SymbolTable symbolTable, TsModel tsModel) { +- // response type +- final Symbol responseSymbol = symbolTable.getSyntheticSymbol("RestResponse"); +- final TsType.GenericVariableType varR = new TsType.GenericVariableType("R"); +- final TsAliasModel responseTypeAlias; +- if (settings.restResponseType != null) { +- responseTypeAlias = new TsAliasModel(null, responseSymbol, Arrays.asList(varR), new TsType.VerbatimType(settings.restResponseType), null); +- } else { +- final TsType.GenericReferenceType responseTypeDefinition = new TsType.GenericReferenceType(symbolTable.getSyntheticSymbol("Promise"), varR); +- responseTypeAlias = new TsAliasModel(null, responseSymbol, Arrays.asList(varR), responseTypeDefinition, null); +- } +- tsModel.getTypeAliases().add(responseTypeAlias); +- return responseSymbol; +- } +- +- private void createRestInterfaces(TsModel tsModel, SymbolTable symbolTable, List restApplications, +- Symbol responseSymbol, TsType.GenericVariableType optionsGenericVariable, TsType optionsType) { +- final List typeParameters = Utils.listFromNullable(optionsGenericVariable); +- final Map> groupedMethods = processRestMethods(tsModel, restApplications, symbolTable, null, responseSymbol, optionsType, false); +- for (Map.Entry> entry : groupedMethods.entrySet()) { +- final TsBeanModel interfaceModel = new TsBeanModel(null, TsBeanCategory.Service, false, entry.getKey(), typeParameters, null, null, null, null, null, entry.getValue(), null); +- tsModel.getBeans().add(interfaceModel); +- } +- } +- +- private void createRestClients(TsModel tsModel, SymbolTable symbolTable, List restApplications, +- Symbol responseSymbol, TsType.GenericVariableType optionsGenericVariable, TsType optionsType) { +- final Symbol httpClientSymbol = symbolTable.getSyntheticSymbol("HttpClient"); +- final List typeParameters = Utils.listFromNullable(optionsGenericVariable); +- +- // HttpClient interface +- final TsType.GenericVariableType returnGenericVariable = new TsType.GenericVariableType("R"); +- tsModel.getBeans().add(new TsBeanModel(null, TsBeanCategory.ServicePrerequisite, false, httpClientSymbol, typeParameters, null, null, null, null, null, Arrays.asList( +- new TsMethodModel("request", TsModifierFlags.None, Arrays.asList(returnGenericVariable), Arrays.asList( +- new TsParameterModel("requestConfig", new TsType.ObjectType( +- new TsProperty("method", TsType.String), +- new TsProperty("url", TsType.String), +- new TsProperty("queryParams", new TsType.OptionalType(TsType.Any)), +- new TsProperty("data", new TsType.OptionalType(TsType.Any)), +- new TsProperty("copyFn", new TsType.OptionalType(new TsType.FunctionType(Arrays.asList(new TsParameter("data", returnGenericVariable)), returnGenericVariable))), +- optionsType != null ? new TsProperty("options", new TsType.OptionalType(optionsType)) : null +- )) +- ), new TsType.GenericReferenceType(responseSymbol, returnGenericVariable), null, null) +- ), null)); +- +- // application client classes +- final TsType.ReferenceType httpClientType = optionsGenericVariable != null +- ? new TsType.GenericReferenceType(httpClientSymbol, optionsGenericVariable) +- : new TsType.ReferenceType(httpClientSymbol); +- final TsConstructorModel constructor = new TsConstructorModel( +- TsModifierFlags.None, +- Arrays.asList(new TsParameterModel(TsAccessibilityModifier.Protected, "httpClient", httpClientType)), +- Collections.emptyList(), +- null +- ); +- final boolean bothInterfacesAndClients = settings.generateJaxrsApplicationInterface || settings.generateSpringApplicationInterface; +- final String groupingSuffix = bothInterfacesAndClients ? null : "Client"; +- final Map> groupedMethods = processRestMethods(tsModel, restApplications, symbolTable, groupingSuffix, responseSymbol, optionsType, true); +- for (Map.Entry> entry : groupedMethods.entrySet()) { +- final Symbol symbol = bothInterfacesAndClients ? symbolTable.addSuffixToSymbol(entry.getKey(), "Client") : entry.getKey(); +- final TsType interfaceType = bothInterfacesAndClients ? new TsType.ReferenceType(entry.getKey()) : null; +- final TsBeanModel clientModel = new TsBeanModel(null, TsBeanCategory.Service, true, symbol, typeParameters, null, null, +- Utils.listFromNullable(interfaceType), null, constructor, entry.getValue(), null); +- tsModel.getBeans().add(clientModel); +- } +- // helper +- tsModel.getHelpers().add(TsHelper.loadFromResource("/helpers/uriEncoding.ts")); +- } +- +- private Map> processRestMethods(TsModel tsModel, List restApplications, SymbolTable symbolTable, String nameSuffix, Symbol responseSymbol, TsType optionsType, boolean implement) { +- final Map> result = new LinkedHashMap<>(); +- final Map>> groupedMethods = groupingByMethodContainer(restApplications, symbolTable, nameSuffix); +- for (Map.Entry>> entry : groupedMethods.entrySet()) { +- result.put(entry.getKey(), processRestMethodGroup(tsModel, symbolTable, entry.getValue(), responseSymbol, optionsType, implement)); +- } +- return result; +- } +- +- private List processRestMethodGroup(TsModel tsModel, SymbolTable symbolTable, List> methods, Symbol responseSymbol, TsType optionsType, boolean implement) { +- final List resultMethods = new ArrayList<>(); +- final Map methodNamesCount = groupingByMethodName(methods); +- for (Pair pair : methods) { +- final RestApplicationModel restApplication = pair.getValue1(); +- final RestMethodModel method = pair.getValue2(); +- final boolean createLongName = methodNamesCount.get(method.getName()) > 1; +- resultMethods.add(processRestMethod(tsModel, symbolTable, restApplication.getApplicationPath(), responseSymbol, method, createLongName, optionsType, implement)); +- } +- return resultMethods; +- } +- +- private Map>> groupingByMethodContainer(List restApplications, SymbolTable symbolTable, String nameSuffix) { +- return restApplications.stream() +- .flatMap(restApplication -> restApplication.getMethods().stream().map(method -> Pair.of(restApplication, method))) +- .collect(Collectors.groupingBy( +- pair -> getContainerSymbol(pair.getValue1(), symbolTable, nameSuffix, pair.getValue2()), +- Utils.toSortedList(Comparator.comparing(pair -> pair.getValue2().getPath())) +- )); +- } +- +- private Symbol getContainerSymbol(RestApplicationModel restApplication, SymbolTable symbolTable, String nameSuffix, RestMethodModel method) { +- if (settings.restNamespacing == RestNamespacing.perResource) { +- return symbolTable.getSymbol(method.getRootResource(), nameSuffix); +- } +- if (settings.restNamespacing == RestNamespacing.byAnnotation) { +- final Annotation annotation = method.getRootResource().getAnnotation(settings.restNamespacingAnnotation); +- final String element = settings.restNamespacingAnnotationElement != null ? settings.restNamespacingAnnotationElement : "value"; +- final String annotationValue = Utils.getAnnotationElementValue(annotation, element, String.class); +- if (annotationValue != null) { +- if (isValidIdentifierName(annotationValue)) { +- return symbolTable.getSyntheticSymbol(annotationValue, nameSuffix); +- } else { +- TypeScriptGenerator.getLogger().warning(String.format("Ignoring annotation value '%s' since it is not a valid identifier, '%s' will be in default namespace", annotationValue, method.getOriginClass().getName() + "." + method.getName())); +- } +- } +- } +- final String applicationName = getApplicationName(restApplication); +- return symbolTable.getSyntheticSymbol(applicationName, nameSuffix); +- } +- +- private static String getApplicationName(RestApplicationModel restApplication) { +- return restApplication.getApplicationName() != null ? restApplication.getApplicationName() : "RestApplication"; +- } +- +- private static Map groupingByMethodName(List> methods) { +- return methods.stream() +- .map(pair -> pair.getValue2()) +- .collect(Collectors.groupingBy(RestMethodModel::getName, Collectors.counting())); +- } +- +- private TsMethodModel processRestMethod(TsModel tsModel, SymbolTable symbolTable, String pathPrefix, Symbol responseSymbol, RestMethodModel method, boolean createLongName, TsType optionsType, boolean implement) { +- final String path = Utils.joinPath(pathPrefix, method.getPath()); +- final PathTemplate pathTemplate = PathTemplate.parse(path); +- final List comments = Utils.concat(method.getComments(), Arrays.asList( +- "HTTP " + method.getHttpMethod() + " /" + path, +- "Java method: " + method.getOriginClass().getName() + "." + method.getName() +- )); +- final List parameters = new ArrayList<>(); +- // path params +- for (MethodParameterModel parameter : method.getPathParams()) { +- parameters.add(processParameter(symbolTable, method, parameter)); +- } +- // entity param +- if (method.getEntityParam() != null) { +- parameters.add(processParameter(symbolTable, method, method.getEntityParam())); +- } +- // query params +- final List queryParams = method.getQueryParams(); +- final TsParameterModel queryParameter; +- if (queryParams != null && !queryParams.isEmpty()) { +- final List types = new ArrayList<>(); +- if (queryParams.stream().anyMatch(param -> param instanceof RestQueryParam.Map)) { +- types.add(new TsType.IndexedArrayType(TsType.String, TsType.Any)); +- } else { +- final List currentSingles = new ArrayList<>(); +- final Runnable flushSingles = () -> { +- if (!currentSingles.isEmpty()) { +- types.add(new TsType.ObjectType(currentSingles)); +- currentSingles.clear(); +- } +- }; +- for (RestQueryParam restQueryParam : queryParams) { +- if (restQueryParam instanceof RestQueryParam.Single) { +- final MethodParameterModel queryParam = ((RestQueryParam.Single) restQueryParam).getQueryParam(); +- final TsType type = typeFromJava(symbolTable, queryParam.getType(), method.getName(), method.getOriginClass()); +- currentSingles.add(new TsProperty(queryParam.getName(), restQueryParam.required ? type : new TsType.OptionalType(type))); +- } +- if (restQueryParam instanceof RestQueryParam.Bean) { +- final BeanModel queryBean = ((RestQueryParam.Bean) restQueryParam).getBean(); +- flushSingles.run(); +- final Symbol queryParamsSymbol = symbolTable.getSymbol(queryBean.getOrigin(), "QueryParams"); +- if (tsModel.getBean(queryParamsSymbol) == null) { +- tsModel.getBeans().add(new TsBeanModel( +- queryBean.getOrigin(), +- TsBeanCategory.Data, +- /*isClass*/false, +- queryParamsSymbol, +- /*typeParameters*/null, +- /*parent*/null, +- /*extendsList*/null, +- /*implementsList*/null, +- processProperties(symbolTable, null, queryBean), +- /*constructor*/null, +- /*methods*/null, +- /*comments*/null +- )); +- } +- types.add(new TsType.ReferenceType(queryParamsSymbol)); +- } +- } +- flushSingles.run(); +- } +- boolean allQueryParamsOptional = queryParams.stream().noneMatch(queryParam -> queryParam.required); +- TsType.IntersectionType queryParamType = new TsType.IntersectionType(types); +- queryParameter = new TsParameterModel("queryParams", allQueryParamsOptional ? new TsType.OptionalType(queryParamType) : queryParamType); +- parameters.add(queryParameter); +- } else { +- queryParameter = null; +- } +- if (optionsType != null) { +- final TsParameterModel optionsParameter = new TsParameterModel("options", new TsType.OptionalType(optionsType)); +- parameters.add(optionsParameter); +- } +- // return type +- final TsType returnType = typeFromJava(symbolTable, method.getReturnType(), method.getName(), method.getOriginClass()); +- final TsType wrappedReturnType = new TsType.GenericReferenceType(responseSymbol, returnType); +- // method name +- final String nameSuffix; +- if (createLongName) { +- nameSuffix = "$" + method.getHttpMethod() + "$" + pathTemplate.format("", "", false) +- .replaceAll("/", "_") +- .replaceAll("\\W", ""); +- } else { +- nameSuffix = ""; +- } +- // implementation +- final List body; +- if (implement) { +- body = new ArrayList<>(); +- body.add(new TsReturnStatement( +- new TsCallExpression( +- new TsMemberExpression(new TsMemberExpression(new TsThisExpression(), "httpClient"), "request"), +- new TsObjectLiteral( +- new TsPropertyDefinition("method", new TsStringLiteral(method.getHttpMethod())), +- new TsPropertyDefinition("url", processPathTemplate(pathTemplate)), +- queryParameter != null ? new TsPropertyDefinition("queryParams", new TsIdentifierReference("queryParams")) : null, +- method.getEntityParam() != null ? new TsPropertyDefinition("data", new TsIdentifierReference(method.getEntityParam().getName())) : null, +- optionsType != null ? new TsPropertyDefinition("options", new TsIdentifierReference("options")) : null +- ) +- ) +- )); +- } else { +- body = null; +- } +- // method +- final TsMethodModel tsMethodModel = new TsMethodModel(method.getName() + nameSuffix, TsModifierFlags.None, null, parameters, wrappedReturnType, body, comments); +- return tsMethodModel; +- } +- +- private TsParameterModel processParameter(SymbolTable symbolTable, MethodModel method, MethodParameterModel parameter) { +- final String parameterName = parameter.getName(); +- final TsType parameterType = typeFromJava(symbolTable, parameter.getType(), method.getName(), method.getOriginClass()); +- return new TsParameterModel(parameterName, parameterType); +- } +- +- private static TsTemplateLiteral processPathTemplate(PathTemplate pathTemplate) { +- final List spans = new ArrayList<>(); +- for (PathTemplate.Part part : pathTemplate.getParts()) { +- if (part instanceof PathTemplate.Literal) { +- final PathTemplate.Literal literal = (PathTemplate.Literal) part; +- spans.add(new TsStringLiteral(literal.getLiteral())); +- } +- if (part instanceof PathTemplate.Parameter) { +- final PathTemplate.Parameter parameter = (PathTemplate.Parameter) part; +- spans.add(new TsIdentifierReference(parameter.getValidName())); +- } +- } +- return new TsTaggedTemplateLiteral(new TsIdentifierReference("uriEncoding"), spans); +- } +- +- private TsModel transformMaps(SymbolTable symbolTable, TsModel tsModel) { +- if (settings.mapMap != MapMapping.asRecord) { +- return tsModel; +- } +- final TsModel model = transformBeanPropertyTypes(tsModel, new TsType.Transformer() { +- @Override +- public TsType transform(TsType.Context context, TsType type) { +- if (type instanceof TsType.IndexedArrayType) { +- final TsType.IndexedArrayType indexedArrayType = (TsType.IndexedArrayType) type; +- return new TsType.GenericBasicType("Record", indexedArrayType.indexType, indexedArrayType.elementType); +- } +- return type; +- } +- }); +- return model; +- } +- + private TsModel transformDates(SymbolTable symbolTable, TsModel tsModel) { +- final TsAliasModel dateAsNumber = new TsAliasModel(null, symbolTable.getSyntheticSymbol("DateAsNumber"), null, TsType.Number, null); +- final TsAliasModel dateAsString = new TsAliasModel(null, symbolTable.getSyntheticSymbol("DateAsString"), null, TsType.String, null); ++ final TsAliasModel dateAsNumber = new TsAliasModel(new TsType.ReferenceType(symbolTable.getSyntheticSymbol("DateAsNumber")), TsType.Number, null); ++ final TsAliasModel dateAsString = new TsAliasModel(new TsType.ReferenceType(symbolTable.getSyntheticSymbol("DateAsString")), TsType.String, null); + final LinkedHashSet typeAliases = new LinkedHashSet<>(tsModel.getTypeAliases()); + final TsModel model = transformBeanPropertyTypes(tsModel, new TsType.Transformer() { + @Override +- public TsType transform(TsType.Context context, TsType type) { ++ public TsType transform(TsType type) { + if (type == TsType.Date) { + if (settings.mapDate == DateMapping.asNumber) { + typeAliases.add(dateAsNumber); +- return new TsType.ReferenceType(dateAsNumber.getName()); ++ return dateAsNumber.getName(); + } + if (settings.mapDate == DateMapping.asString) { + typeAliases.add(dateAsString); +- return new TsType.ReferenceType(dateAsString.getName()); ++ return dateAsString.getName(); + } + } + return type; +- ++ + } + }); +- return model.withTypeAliases(new ArrayList<>(typeAliases)); +- } +- +- static List splitIdentifierIntoWords(String identifier) { +- final String pattern = String.join("|", +- "_", // example: UPPER CASE +- "(?<=\\p{javaUpperCase})" + "(?=\\p{javaUpperCase}\\p{javaLowerCase})", // example: XML Http +- "(?<=[^_\\p{javaUpperCase}])" + "(?=\\p{javaUpperCase})", // example: camel Case +- "(?<=[\\p{javaUpperCase}\\p{javaLowerCase}])" + "(?=[^\\p{javaUpperCase}\\p{javaLowerCase}])", // example: string 2 +- "(?<=[^_\\p{javaUpperCase}\\p{javaLowerCase}])" + "(?=[\\p{javaUpperCase}\\p{javaLowerCase}])" // example: 2 json +- ); +- return Arrays.asList(identifier.split(pattern)); +- } +- +- private String convertIdentifierCasing(String identifier) { +- final List words = splitIdentifierIntoWords(identifier); +- final String pascalCase = words.stream() +- .map(word -> word.substring(0, 1).toUpperCase() + word.substring(1).toLowerCase()) +- .collect(Collectors.joining()); +- if (settings.enumMemberCasing == IdentifierCasing.PascalCase) { +- return pascalCase; +- } +- if (settings.enumMemberCasing == IdentifierCasing.camelCase) { +- return pascalCase.substring(0, 1).toLowerCase() + pascalCase.substring(1); +- } +- return identifier; +- } +- +- private TsModel transformEnumMembersCase(TsModel tsModel) { +- final List originalEnums = tsModel.getEnums(); +- final LinkedHashSet enums = new LinkedHashSet<>(); +- for (TsEnumModel enumModel : originalEnums) { +- final List members = new ArrayList<>(); +- for (EnumMemberModel member : enumModel.getMembers()) { +- members.add(member.withPropertyName(convertIdentifierCasing(member.getPropertyName()))); +- } +- enums.add(enumModel.withMembers(members)); +- } +- return tsModel.withRemovedEnums(originalEnums).withAddedEnums(new ArrayList<>(enums)); ++ return model.setTypeAliases(new ArrayList<>(typeAliases)); + } + + private TsModel transformEnumsToUnions(TsModel tsModel) { +- final List stringEnums = tsModel.getEnums(EnumKind.StringBased); + final LinkedHashSet typeAliases = new LinkedHashSet<>(tsModel.getTypeAliases()); +- for (TsEnumModel enumModel : stringEnums) { ++ for (TsEnumModel enumModel : tsModel.getEnums(EnumKind.StringBased)) { + final List values = new ArrayList<>(); +- for (EnumMemberModel member : enumModel.getMembers()) { +- values.add(member.getEnumValue() instanceof Number +- ? new TsType.NumberLiteralType((Number) member.getEnumValue()) +- : new TsType.StringLiteralType(String.valueOf(member.getEnumValue())) +- ); ++ for (EnumMemberModel member : enumModel.getMembers()) { ++ values.add(new TsType.StringLiteralType(member.getEnumValue())); + } + final TsType union = new TsType.UnionType(values); +- typeAliases.add(new TsAliasModel(enumModel.getOrigin(), enumModel.getName(), null, union, enumModel.getComments())); ++ typeAliases.add(new TsAliasModel(enumModel.getOrigin(), enumModel.getName(), union, enumModel.getComments())); + } +- return tsModel.withRemovedEnums(stringEnums).withTypeAliases(new ArrayList<>(typeAliases)); ++ return tsModel.setTypeAliases(new ArrayList<>(typeAliases)); + } + + private TsModel inlineEnums(final TsModel tsModel, final SymbolTable symbolTable) { + final Set inlinedAliases = new LinkedHashSet<>(); + final TsModel newTsModel = transformBeanPropertyTypes(tsModel, new TsType.Transformer() { + @Override +- public TsType transform(TsType.Context context, TsType tsType) { ++ public TsType transform(TsType tsType) { + if (tsType instanceof TsType.EnumReferenceType) { +- final TsAliasModel alias = tsModel.getTypeAlias(getOriginClass(symbolTable, tsType)); +- if (alias != null) { +- inlinedAliases.add(alias); +- return alias.getDefinition(); +- } +- } +- return tsType; +- } +- }); +- return newTsModel.withRemovedTypeAliases(new ArrayList<>(inlinedAliases)); +- } +- +- private TsModel transformEnumsToNumberBasedEnum(TsModel tsModel) { +- final List stringEnums = tsModel.getEnums(EnumKind.StringBased); +- final LinkedHashSet enums = new LinkedHashSet<>(); +- for (TsEnumModel enumModel : stringEnums) { +- final List members = new ArrayList<>(); +- for (EnumMemberModel member : enumModel.getMembers()) { +- members.add(new EnumMemberModel(member.getPropertyName(), (Number) null, member.getOriginalField(), member.getComments())); +- } +- enums.add(enumModel.withMembers(members)); +- } +- return tsModel.withRemovedEnums(stringEnums).withAddedEnums(new ArrayList<>(enums)); +- } +- +- private TsModel transformNonStringEnumKeyMaps(SymbolTable symbolTable, TsModel tsModel) { +- return transformBeanPropertyTypes(tsModel, new TsType.Transformer() { +- @Override +- public TsType transform(TsType.Context context, TsType tsType) { +- if (tsType instanceof TsType.MappedType) { +- final TsType.MappedType mappedType = (TsType.MappedType) tsType; +- if (mappedType.parameterType instanceof TsType.EnumReferenceType) { +- final TsType.EnumReferenceType enumType = (TsType.EnumReferenceType) mappedType.parameterType; +- final Class enumClass = symbolTable.getSymbolClass(enumType.symbol); +- final TsEnumModel enumModel = tsModel.getEnums().stream() +- .filter(model -> Objects.equals(model.getOrigin(), enumClass)) +- .findFirst() +- .orElse(null); +- if (settings.mapEnum == EnumMapping.asNumberBasedEnum +- || enumModel != null && enumModel.getKind() == EnumKind.NumberBased +- || enumModel != null && enumModel.getMembers().stream().anyMatch(member -> !(member.getEnumValue() instanceof String))) { +- return new TsType.IndexedArrayType(TsType.String, mappedType.type); ++ final TsType.ReferenceType reference = (TsType.ReferenceType) tsType; ++ final Class cls = symbolTable.getSymbolClass(reference.symbol); ++ if (cls != null) { ++ for (TsAliasModel alias : tsModel.getTypeAliases()) { ++ if (alias.getOrigin() == cls) { ++ inlinedAliases.add(alias); ++ return alias.getDefinition(); ++ } + } + } + } + return tsType; + } + }); +- } +- +- private static TsModel addEnumValuesToJavadoc(TsModel tsModel) { +- return tsModel.withEnums(tsModel.getEnums().stream() +- .map(enumModel -> addEnumValuesToJavadoc(enumModel)) +- .collect(Collectors.toList()) +- ); +- } +- +- private static TsEnumModel addEnumValuesToJavadoc(TsEnumModel enumModel) { +- final boolean hasComments = enumModel.getComments() != null && !enumModel.getComments().isEmpty(); +- final boolean hasMemberComments = enumModel.getMembers().stream() +- .anyMatch(enumMember -> enumMember.getComments() != null && !enumMember.getComments().isEmpty()); +- if (hasComments || hasMemberComments) { +- return enumModel.withComments(Stream +- .of( +- Utils.listFromNullable(enumModel.getComments()).stream(), +- (hasComments ? Stream.of("") : Stream.empty()), +- Stream.of("Values:"), +- enumModel.getMembers().stream() +- .map(enumMember -> "- `" + enumMember.getEnumValue() + "`" +- + (enumMember.getComments() != null +- ? " - " + String.join(" ", enumMember.getComments()) +- : "")) +- ) +- .flatMap(s -> s) +- .collect(Collectors.toList()) +- ); +- } else { +- return enumModel; +- } ++ final ArrayList aliases = new ArrayList<>(tsModel.getTypeAliases()); ++ aliases.removeAll(inlinedAliases); ++ return newTsModel.setTypeAliases(aliases); + } + + private TsModel createAndUseTaggedUnions(final SymbolTable symbolTable, TsModel tsModel) { +@@ -1036,48 +252,31 @@ public class ModelCompiler { + return tsModel; + } + // create tagged unions +- final List beans = new ArrayList<>(); + final LinkedHashSet typeAliases = new LinkedHashSet<>(tsModel.getTypeAliases()); + for (TsBeanModel bean : tsModel.getBeans()) { +- if (!bean.getTaggedUnionClasses().isEmpty() && bean.getDiscriminantProperty() != null) { +- final Symbol unionName = symbolTable.getSymbol(bean.getOrigin(), "Union"); +- final boolean isGeneric = !bean.getTypeParameters().isEmpty(); +- final List unionTypes = new ArrayList<>(); +- for (Class cls : bean.getTaggedUnionClasses()) { +- final TsType type; +- if (isGeneric && cls.getTypeParameters().length != 0) { +- final List mappedGenericVariables = GenericsResolver.mapGenericVariablesToBase(cls, bean.getOrigin()); +- type = new TsType.GenericReferenceType( +- symbolTable.getSymbol(cls), +- mappedGenericVariables.stream() +- .map(TsType.GenericVariableType::new) +- .collect(Collectors.toList())); +- } else { +- type = new TsType.ReferenceType(symbolTable.getSymbol(cls)); ++ if (bean.getTaggedUnionClasses() != null) { ++ if (bean.getName() instanceof TsType.ReferenceType) { ++ final TsType.ReferenceType unionName = new TsType.ReferenceType(symbolTable.getSymbol(bean.getOrigin(), "Union")); ++ final List unionTypes = new ArrayList<>(); ++ for (Class cls : bean.getTaggedUnionClasses()) { ++ final TsType type = new TsType.ReferenceType(symbolTable.getSymbol(cls)); ++ unionTypes.add(type); + } +- unionTypes.add(type); ++ final TsType.UnionType union = new TsType.UnionType(unionTypes); ++ typeAliases.add(new TsAliasModel(bean.getOrigin(), unionName, union, null)); + } +- final TsType.UnionType union = new TsType.UnionType(unionTypes); +- final TsAliasModel tsAliasModel = new TsAliasModel(bean.getOrigin(), unionName, bean.getTypeParameters(), union, null); +- beans.add(bean.withTaggedUnionAlias(tsAliasModel)); +- typeAliases.add(tsAliasModel); +- } else { +- beans.add(bean); + } + } +- final TsModel modelWithTaggedUnions = tsModel.withBeans(beans).withTypeAliases(new ArrayList<>(typeAliases)); + // use tagged unions +- final TsModel modelWithUsedTaggedUnions = transformBeanPropertyTypes(modelWithTaggedUnions, new TsType.Transformer() { ++ final TsModel model = transformBeanPropertyTypes(tsModel, new TsType.Transformer() { + @Override +- public TsType transform(TsType.Context context, TsType tsType) { +- final Class cls = getOriginClass(symbolTable, tsType); +- if (cls != null) { +- final Symbol unionSymbol = symbolTable.hasSymbol(cls, "Union"); +- if (unionSymbol != null) { +- if (tsType instanceof TsType.GenericReferenceType) { +- final TsType.GenericReferenceType genericReferenceType = (TsType.GenericReferenceType) tsType; +- return new TsType.GenericReferenceType(unionSymbol, genericReferenceType.typeArguments); +- } else { ++ public TsType transform(TsType tsType) { ++ if (tsType instanceof TsType.ReferenceType) { ++ final TsType.ReferenceType referenceType = (TsType.ReferenceType) tsType; ++ if (!(referenceType instanceof TsType.GenericReferenceType)) { ++ final Class cls = symbolTable.getSymbolClass(referenceType.symbol); ++ final Symbol unionSymbol = symbolTable.hasSymbol(cls, "Union"); ++ if (unionSymbol != null) { + return new TsType.ReferenceType(unionSymbol); + } + } +@@ -1085,278 +284,20 @@ public class ModelCompiler { + return tsType; + } + }); +- return modelWithUsedTaggedUnions; +- } +- +- // example: transforms property `text: string | undefined` to `text?: string | undefined` +- private TsModel makeUndefinablePropertiesAndParametersOptional(final SymbolTable symbolTable, TsModel tsModel) { +- final NullabilityDefinition nullabilityDefinition = settings.getNullabilityDefinition(); +- if (!nullabilityDefinition.containsUndefined()) { +- return tsModel; +- } +- return tsModel.withBeans(tsModel.getBeans().stream() +- .map(bean -> { +- bean = bean.withProperties(bean.getProperties().stream() +- .map(property -> property.withTsType(makeNullableTypeOptional(property.getTsType()))) +- .collect(Collectors.toList()) +- ); +- bean = bean.withMethods(bean.getMethods().stream() +- .map(method -> method.withParameters(method.getParameters().stream() +- .map(parameter -> parameter.withTsType(makeNullableTypeOptional(parameter.getTsType()))) +- .collect(Collectors.toList()) +- )) +- .collect(Collectors.toList()) +- ); +- return bean; +- }) +- .collect(Collectors.toList()) +- ); +- } +- +- private static TsType makeNullableTypeOptional(TsType type) { +- return type instanceof TsType.NullableType +- ? new TsType.OptionalType(type) +- : type; +- } +- +- private TsModel transformNullableTypes(final SymbolTable symbolTable, TsModel tsModel) { +- final AtomicBoolean declareNullableType = new AtomicBoolean(false); +- final NullabilityDefinition nullabilityDefinition = settings.getNullabilityDefinition(); +- TsModel transformedModel = transformBeanPropertyTypes(tsModel, new TsType.Transformer() { +- @Override +- public TsType transform(TsType.Context context, TsType tsType) { +- if (tsType instanceof TsType.NullableType) { +- final TsType.NullableType nullableType = (TsType.NullableType) tsType; +- if (nullabilityDefinition.isInline()) { +- return new TsType.UnionType(nullableType.type).add(nullabilityDefinition.getTypes()); +- } else { +- declareNullableType.set(true); +- } +- } +- return tsType; +- } +- }); +- // type Nullable = T | ... +- if (declareNullableType.get()) { +- final TsType.GenericVariableType tVar = new TsType.GenericVariableType("T"); +- transformedModel = transformedModel.withAddedTypeAliases(Arrays.asList(new TsAliasModel( +- /*origin*/ null, +- symbolTable.getSyntheticSymbol(TsType.NullableType.AliasName), +- Arrays.asList(tVar), +- new TsType.UnionType(tVar).add(nullabilityDefinition.getTypes()), +- /*comments*/ null +- ))); +- } +- return transformedModel; +- } +- +- // example: transforms property `text?: string | null | undefined` to `text?: string | null` +- private TsModel eliminateUndefinedFromOptionalPropertiesAndParameters(final SymbolTable symbolTable, TsModel tsModel) { +- return tsModel.withBeans(tsModel.getBeans().stream() +- .map(bean -> { +- bean = bean.withProperties(bean.getProperties().stream() +- .map(property -> property.withTsType(eliminateUndefinedFromOptionalType(property.getTsType()))) +- .collect(Collectors.toList()) +- ); +- bean = bean.withMethods(bean.getMethods().stream() +- .map(method -> method.withParameters(method.getParameters().stream() +- .map(parameter -> parameter.withTsType(eliminateUndefinedFromOptionalType(parameter.getTsType()))) +- .collect(Collectors.toList()) +- )) +- .collect(Collectors.toList()) +- ); +- return bean; +- }) +- .collect(Collectors.toList()) +- ); +- } +- +- private static TsType eliminateUndefinedFromOptionalType(TsType type) { +- if (type instanceof TsType.OptionalType) { +- final TsType.OptionalType optionalType = (TsType.OptionalType) type; +- if (optionalType.type instanceof TsType.UnionType) { +- final TsType.UnionType unionType = (TsType.UnionType) optionalType.type; +- if (unionType.types.contains(TsType.Undefined)) { +- return new TsType.OptionalType(unionType.remove(Arrays.asList(TsType.Undefined))); +- } +- } +- } +- return type; +- } +- +- private TsModel transformOptionalProperties(final SymbolTable symbolTable, TsModel tsModel) { +- return tsModel.withBeans(tsModel.getBeans().stream() +- .map(bean -> { +- if (bean.getCategory() != TsBeanCategory.Data) { +- return bean; +- } +- return bean.withProperties(bean.getProperties().stream() +- .map(property -> { +- if (property.getTsType() instanceof TsType.OptionalType) { +- final TsType.OptionalType optionalType = (TsType.OptionalType) property.getTsType(); +- if (settings.optionalPropertiesDeclaration == OptionalPropertiesDeclaration.nullableType) { +- return property.withTsType( +- TsType.UnionType.combine(Arrays.asList(optionalType.type, TsType.Null))); +- } +- if (settings.optionalPropertiesDeclaration == OptionalPropertiesDeclaration.questionMarkAndNullableType) { +- return property.withTsType( +- new TsType.OptionalType( +- TsType.UnionType.combine(Arrays.asList(optionalType.type, TsType.Null)))); +- } +- if (settings.optionalPropertiesDeclaration == OptionalPropertiesDeclaration.nullableAndUndefinableType) { +- return property.withTsType( +- TsType.UnionType.combine(Arrays.asList(optionalType.type, TsType.Null, TsType.Undefined))); +- } +- if (settings.optionalPropertiesDeclaration == OptionalPropertiesDeclaration.undefinableType) { +- return property.withTsType( +- TsType.UnionType.combine(Arrays.asList(optionalType.type, TsType.Undefined))); +- } +- } +- return property; +- }) +- .collect(Collectors.toList()) +- ); +- }) +- .collect(Collectors.toList()) +- ); +- } +- +- private TsModel sortPropertiesDeclarations(SymbolTable symbolTable, TsModel tsModel) { +- if (settings.sortDeclarations) { +- for (TsBeanModel bean : tsModel.getBeans()) { +- Collections.sort(bean.getProperties()); +- } +- } +- return tsModel; +- } +- +- private TsModel sortTypeDeclarations(SymbolTable symbolTable, TsModel tsModel) { +- final List beans = tsModel.getBeans(); +- final List aliases = tsModel.getTypeAliases(); +- final List enums = tsModel.getEnums(); +- if (settings.sortDeclarations || settings.sortTypeDeclarations) { +- Collections.sort(beans); +- Collections.sort(aliases); +- Collections.sort(enums); +- } +- final LinkedHashSet orderedBeans = new LinkedHashSet<>(); +- for (TsBeanModel bean : beans) { +- addOrderedClass(symbolTable, tsModel, bean, orderedBeans); +- } +- return tsModel +- .withBeans(new ArrayList<>(orderedBeans)) +- .withTypeAliases(aliases) +- .withEnums(enums); +- } +- +- private static void addOrderedClass(SymbolTable symbolTable, TsModel tsModel, TsBeanModel bean, LinkedHashSet orderedBeans) { +- // for classes first add their parents to ordered list +- if (bean.isClass() && bean.getParent() != null) { +- final TsBeanModel parentBean = tsModel.getBean(getOriginClass(symbolTable, bean.getParent())); +- if (parentBean != null) { +- addOrderedClass(symbolTable, tsModel, parentBean, orderedBeans); +- } +- } +- // add current bean to the ordered list +- orderedBeans.add(bean); ++ return model.setTypeAliases(new ArrayList<>(typeAliases)); + } + + private static TsModel transformBeanPropertyTypes(TsModel tsModel, TsType.Transformer transformer) { + final List newBeans = new ArrayList<>(); + for (TsBeanModel bean : tsModel.getBeans()) { +- final TsType.Context context = new TsType.Context(); + final List newProperties = new ArrayList<>(); + for (TsPropertyModel property : bean.getProperties()) { +- final TsType newType = TsType.transformTsType(context, property.getTsType(), transformer); +- newProperties.add(property.withTsType(newType)); +- } +- final List newMethods = new ArrayList<>(); +- for (TsMethodModel method : bean.getMethods()) { +- final List newParameters = new ArrayList<>(); +- for (TsParameterModel parameter : method.getParameters()) { +- final TsType newParameterType = TsType.transformTsType(context, parameter.getTsType(), transformer); +- newParameters.add(new TsParameterModel(parameter.getAccessibilityModifier(), parameter.getName(), newParameterType)); +- } +- final TsType newReturnType = TsType.transformTsType(context, method.getReturnType(), transformer); +- newMethods.add(new TsMethodModel(method.getName(), method.getModifiers(), method.getTypeParameters(), newParameters, newReturnType, method.getBody(), method.getComments())); +- } +- final List newImplements = new ArrayList<>(); +- for (TsType type: bean.getImplementsList()) { +- if (type instanceof TsType.GenericBasicType || type instanceof TsType.GenericReferenceType) { +- newImplements.add(TsType.transformTsType(context, type, transformer)); +- } else { +- newImplements.add(type); +- } +- } +- final List newExtends = new ArrayList<>(); +- for (TsType type: bean.getExtendsList()) { +- if (type instanceof TsType.GenericBasicType || type instanceof TsType.GenericReferenceType) { +- newExtends.add(TsType.transformTsType(context, type, transformer)); +- } else { +- newExtends.add(type); +- } +- } +- newBeans.add(bean.withProperties(newProperties).withMethods(newMethods).withImplements(newImplements).withExtends(newExtends)); +- } +- return tsModel.withBeans(newBeans); +- } +- +- private static Class getOriginClass(SymbolTable symbolTable, TsType type) { +- if (type instanceof TsType.ReferenceType) { +- final TsType.ReferenceType referenceType = (TsType.ReferenceType) type; +- return symbolTable.getSymbolClass(referenceType.symbol); +- } +- return null; +- } +- +- public static String getValidIdentifierName(String name) { +- final String identifier = removeInvalidIdentifierCharacters(replaceDashPattern(name)); +- final String prefix = SymbolTable.isReservedWord(identifier) ? "_" : ""; +- return prefix + identifier; +- } +- +- private static String replaceDashPattern(String name) { +- final StringBuffer sb = new StringBuffer(); +- final Matcher matcher = Pattern.compile("-[^-]").matcher(name); +- while (matcher.find()) { +- matcher.appendReplacement(sb, Matcher.quoteReplacement("" + Character.toUpperCase(matcher.group().charAt(1)))); +- } +- matcher.appendTail(sb); +- return sb.toString(); +- } +- +- private static String removeInvalidIdentifierCharacters(String name) { +- final StringBuilder sb = new StringBuilder(); +- for (char c : name.toCharArray()) { +- if (sb.length() == 0 ? isValidIdentifierStart(c) : isValidIdentifierPart(c)) { +- sb.append(c); ++ final TsType newType = TsType.transformTsType(property.getTsType(), transformer); ++ newProperties.add(property.setTsType(newType)); + } ++ newBeans.add(bean.withProperties(newProperties)); + } +- return sb.toString(); +- } +- +- public static boolean isValidIdentifierName(String name) { +- if (name == null || name.isEmpty()) { +- return false; +- } +- for (int i = 0; i < name.length(); i++) { +- final char c = name.charAt(i); +- if (i == 0 ? !isValidIdentifierStart(c) : !isValidIdentifierPart(c)) { +- return false; +- } +- } +- return true; +- } +- +- // https://github.com/Microsoft/TypeScript/blob/master/doc/spec-ARCHIVED.md#222-property-names +- // http://www.ecma-international.org/ecma-262/6.0/index.html#sec-names-and-keywords +- +- private static boolean isValidIdentifierStart(char start) { +- return Character.isUnicodeIdentifierStart(start) || start == '$' || start == '_'; +- } +- +- private static boolean isValidIdentifierPart(char c) { +- return Character.isUnicodeIdentifierPart(c) || c == '$' || c == '_' || c == '\u200C' || c == '\u200D'; ++ return tsModel.setBeans(newBeans); + } + + } +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/compiler/ModelTransformer.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/compiler/ModelTransformer.java +deleted file mode 100644 +index 81698cd01..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/compiler/ModelTransformer.java ++++ /dev/null +@@ -1,11 +0,0 @@ +- +-package cz.habarta.typescript.generator.compiler; +- +-import cz.habarta.typescript.generator.parser.Model; +- +- +-public interface ModelTransformer { +- +- public Model transformModel(SymbolTable symbolTable, Model model); +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/compiler/Symbol.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/compiler/Symbol.java +index 3504f4701..1a8bf675c 100644 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/compiler/Symbol.java ++++ b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/compiler/Symbol.java +@@ -4,57 +4,15 @@ package cz.habarta.typescript.generator.compiler; + + public class Symbol { + +- private String module; +- private String namespace; +- private String simpleName; +- private boolean isResolved = false; ++ protected String name; + +- public Symbol(String temporaryName) { +- this.simpleName = temporaryName; ++ public Symbol(String name) { ++ this.name = name; + } + +- public String getModule() { +- return module; +- } +- +- public String getNamespace() { +- return namespace; +- } +- +- public String getSimpleName() { +- return simpleName; +- } +- +- public boolean isResolved() { +- return isResolved; +- } +- +- public String getFullName() { +- String fullName = simpleName; +- if (namespace != null) { +- fullName = namespace + "." + fullName; +- } +- if (module != null) { +- fullName = module + "." + fullName; +- } +- return fullName; +- } +- +- public void setFullName(String module, String namespacedName) { +- this.module = module; +- final int index = namespacedName.lastIndexOf('.'); +- if (index == -1) { +- namespace = null; +- simpleName = namespacedName; +- } else { +- namespace = namespacedName.substring(0, index); +- simpleName = namespacedName.substring(index + 1); +- } +- this.isResolved = true; +- } +- +- void addSuffix(String suffix) { +- simpleName = simpleName + suffix; ++ @Override ++ public String toString() { ++ return name; + } + + } +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/compiler/SymbolTable.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/compiler/SymbolTable.java +index dd8b530ec..1f6525ecd 100644 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/compiler/SymbolTable.java ++++ b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/compiler/SymbolTable.java +@@ -1,24 +1,9 @@ + + package cz.habarta.typescript.generator.compiler; + +-import com.oracle.truffle.js.scriptengine.GraalJSScriptEngine; + import cz.habarta.typescript.generator.Settings; +-import cz.habarta.typescript.generator.TypeScriptGenerator; + import cz.habarta.typescript.generator.util.Pair; +-import java.util.ArrayList; +-import java.util.Arrays; +-import java.util.LinkedHashMap; +-import java.util.LinkedHashSet; +-import java.util.List; +-import java.util.Map; +-import java.util.Set; +-import java.util.regex.Pattern; +-import javax.script.Invocable; +-import javax.script.ScriptEngine; +-import javax.script.ScriptException; +-import org.graalvm.polyglot.Context; +-import org.graalvm.polyglot.Engine; +-import org.graalvm.polyglot.HostAccess; ++import java.util.*; + + + /** +@@ -29,7 +14,6 @@ public class SymbolTable { + private final Settings settings; + private final LinkedHashMap, String>, Symbol> symbols = new LinkedHashMap<>(); + private final LinkedHashMap syntheticSymbols = new LinkedHashMap<>(); +- private CustomTypeNamingFunction customTypeNamingFunction; + + public SymbolTable(Settings settings) { + this.settings = settings; +@@ -40,9 +24,9 @@ public class SymbolTable { + } + + public Symbol getSymbol(Class cls, String suffix) { +- final String suffixString = suffix != null ? suffix : ""; +- final Pair, String> key = Pair., String>of(cls, suffixString); ++ final Pair, String> key = Pair., String>of(cls, suffix); + if (!symbols.containsKey(key)) { ++ final String suffixString = suffix != null ? suffix : ""; + symbols.put(key, new Symbol("$" + cls.getName().replace('.', '$') + suffixString + "$")); + } + return symbols.get(key); +@@ -68,35 +52,19 @@ public class SymbolTable { + return syntheticSymbols.get(name); + } + +- public Symbol getSyntheticSymbol(String name, String suffix) { +- return getSyntheticSymbol(name + (suffix != null ? suffix : "")); +- } +- +- public Symbol addSuffixToSymbol(Symbol symbol, String suffix) { +- // try symbols +- for (Map.Entry, String>, Symbol> entry : symbols.entrySet()) { +- if (entry.getValue() == symbol) { +- return getSymbol(entry.getKey().getValue1(), entry.getKey().getValue2() + suffix); +- } +- } +- // syntheticSymbols +- return getSyntheticSymbol(symbol.getFullName() + suffix); +- } +- + public void resolveSymbolNames() { + final Map>> names = new LinkedHashMap<>(); + for (Map.Entry, String>, Symbol> entry : symbols.entrySet()) { + final Class cls = entry.getKey().getValue1(); + final String suffix = entry.getKey().getValue2(); + final Symbol symbol = entry.getValue(); +- if (!symbol.isResolved()) { +- setSymbolQualifiedName(symbol, cls, suffix); ++ final String suffixString = suffix != null ? suffix : ""; ++ final String name = getMappedName(cls) + suffixString; ++ symbol.name = name; ++ if (!names.containsKey(name)) { ++ names.put(name, new ArrayList>()); + } +- final String fullName = symbol.getFullName(); +- if (!names.containsKey(fullName)) { +- names.put(fullName, new ArrayList<>()); +- } +- names.get(fullName).add(cls); ++ names.get(name).add(cls); + } + reportConflicts(names); + } +@@ -107,31 +75,16 @@ public class SymbolTable { + final String name = entry.getKey(); + final List> classes = entry.getValue(); + if (classes.size() > 1) { +- TypeScriptGenerator.getLogger().warning(String.format("Multiple classes are mapped to '%s' name. Conflicting classes: %s", name, classes)); ++ System.out.println(String.format("Multiple classes are mapped to '%s' name. Conflicting classes: %s", name, classes)); + conflict = true; + } + } + if (conflict) { +- throw new NameConflictException("Multiple classes are mapped to the same name. You can use 'customTypeNaming' or 'customTypeNamingFunction' settings to resolve conflicts or exclude conflicting class if it was added accidentally."); +- } +- } +- +- private void setSymbolQualifiedName(Symbol symbol, Class cls, String suffix) { +- final String module; +- final String namespacedName; +- final Pair fullNameFromDependency = settings.getModuleDependencies().getFullName(cls); +- if (fullNameFromDependency != null) { +- module = fullNameFromDependency.getValue1(); +- namespacedName = fullNameFromDependency.getValue2(); +- } else { +- module = null; +- namespacedName = getMappedNamespacedName(cls); ++ throw new NameConflictException("Multiple classes are mapped to the same name. You can use 'customTypeNaming' setting to resolve conflicts or exclude conflicting class if it was added accidentally."); + } +- final String suffixString = suffix != null ? suffix : ""; +- symbol.setFullName(module, namespacedName + suffixString); + } + +- public String getMappedNamespacedName(Class cls) { ++ private String getMappedName(Class cls) { + if (cls == null) { + return null; + } +@@ -139,104 +92,22 @@ public class SymbolTable { + if (customName != null) { + return customName; + } +- if (settings.customTypeNamingFunctionImpl != null || settings.customTypeNamingFunction != null) { +- try { +- final CustomTypeNamingFunction function; +- if (settings.customTypeNamingFunctionImpl != null) { +- function = settings.customTypeNamingFunctionImpl; +- } else { +- function = getCustomTypeNamingFunction(); +- } +- +- final Object getNameResult = function.getName(cls.getName(), cls.getSimpleName()); +- if (getNameResult instanceof String) { +- return (String) getNameResult; +- } +- } catch (ScriptException e) { +- throw new RuntimeException("Evaluating 'customTypeNamingFunction' failed.", e); +- } +- } +- String simpleName = cls.getSimpleName(); +- if (settings.removeTypeNamePrefix != null && simpleName.startsWith(settings.removeTypeNamePrefix)) { +- simpleName = simpleName.substring(settings.removeTypeNamePrefix.length(), simpleName.length()); ++ String name = cls.getSimpleName(); ++ if (settings.removeTypeNamePrefix != null && name.startsWith(settings.removeTypeNamePrefix)) { ++ name = name.substring(settings.removeTypeNamePrefix.length(), name.length()); + } +- if (settings.removeTypeNameSuffix != null && simpleName.endsWith(settings.removeTypeNameSuffix)) { +- simpleName = simpleName.substring(0, simpleName.length() - settings.removeTypeNameSuffix.length()); ++ if (settings.removeTypeNameSuffix != null && name.endsWith(settings.removeTypeNameSuffix)) { ++ name = name.substring(0, name.length() - settings.removeTypeNameSuffix.length()); + } + if (settings.addTypeNamePrefix != null) { +- simpleName = settings.addTypeNamePrefix + simpleName; ++ name = settings.addTypeNamePrefix + name; + } + if (settings.addTypeNameSuffix != null) { +- simpleName = simpleName + settings.addTypeNameSuffix; ++ name = name + settings.addTypeNameSuffix; + } +- +- if (settings.mapPackagesToNamespaces) { +- final String classNameDotted = cls.getName().replace('$', '.'); +- final String[] parts = classNameDotted.split(Pattern.quote(".")); +- final List safeParts = new ArrayList<>(); +- for (String part : Arrays.asList(parts).subList(0, parts.length - 1)) { +- safeParts.add(isReservedWord(part) ? "_" + part : part); +- } +- safeParts.add(simpleName); +- return String.join(".", safeParts); +- } else { +- return simpleName; +- } +- } +- +- // https://github.com/Microsoft/TypeScript/blob/master/doc/spec-ARCHIVED.md#221-reserved-words +- private static final Set Keywords = new LinkedHashSet<>(Arrays.asList( +- "break", "case", "catch", "class", +- "const", "continue", "debugger", "default", +- "delete", "do", "else", "enum", +- "export", "extends", "false", "finally", +- "for", "function", "if", "import", +- "in", "instanceof", "new", "null", +- "return", "super", "switch", "this", +- "throw", "true", "try", "typeof", +- "var", "void", "while", "with", +- +- "implements", "interface", "let", "package", +- "private", "protected", "public", "static", +- "yield" +- )); +- +- public static boolean isReservedWord(String word) { +- return Keywords.contains(word); ++ return name; + } + +- private CustomTypeNamingFunction getCustomTypeNamingFunction() throws ScriptException { +- if (customTypeNamingFunction == null) { +- final ScriptEngine engine = GraalJSScriptEngine.create( +- Engine.newBuilder().option("engine.WarnInterpreterOnly", "false").build(), +- Context.newBuilder("js").allowHostAccess(HostAccess.ALL) +- ); +- engine.eval("var getName = " + settings.customTypeNamingFunction); +- final Invocable invocable = (Invocable) engine; +- customTypeNamingFunction = invocable.getInterface(CustomTypeNamingFunction.class); +- } +- return customTypeNamingFunction; +- } +- +- /** +- * Function for getting custom TypeScript names for Java classes. +- * If the function returns null, the default is used. +- * Used by parameter {@link Settings#customTypeNamingFunction} (JavaScript) and {@link Settings#customTypeNamingFunctionImpl} (Java). +- */ +- public static interface CustomTypeNamingFunction { +- public Object getName(String className, String classSimpleName); +- } +- +- public Symbol getSymbolIfImported(Class cls) { +- final Pair fullNameFromDependency = settings.getModuleDependencies().getFullName(cls); +- if (fullNameFromDependency != null) { +- final Symbol symbol = new Symbol(null); +- symbol.setFullName(fullNameFromDependency.getValue1(), fullNameFromDependency.getValue2()); +- return symbol; +- } else { +- return null; +- } +- } + + public static class NameConflictException extends RuntimeException { + +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/compiler/TsModelTransformer.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/compiler/TsModelTransformer.java +deleted file mode 100644 +index 76d0bbea1..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/compiler/TsModelTransformer.java ++++ /dev/null +@@ -1,48 +0,0 @@ +- +-package cz.habarta.typescript.generator.compiler; +- +-import cz.habarta.typescript.generator.emitter.TsBeanModel; +-import cz.habarta.typescript.generator.emitter.TsModel; +-import cz.habarta.typescript.generator.emitter.TsPropertyModel; +-import cz.habarta.typescript.generator.parser.BeanModel; +-import cz.habarta.typescript.generator.parser.Model; +-import cz.habarta.typescript.generator.parser.PropertyModel; +-import java.util.Objects; +- +- +-@FunctionalInterface +-public interface TsModelTransformer { +- +- public TsModel transformModel(Context context, TsModel model); +- +- public static class Context { +- +- private final SymbolTable symbolTable; +- private final Model model; +- +- public Context(SymbolTable symbolTable, Model model) { +- this.symbolTable = Objects.requireNonNull(symbolTable, "symbolTable"); +- this.model = Objects.requireNonNull(model, "model"); +- } +- +- public SymbolTable getSymbolTable() { +- return symbolTable; +- } +- +- public BeanModel getBeanModelOrigin(TsBeanModel tsBean) { +- final BeanModel bean = model.getBean(tsBean.getOrigin()); +- return bean; +- } +- +- public PropertyModel getPropertyModelOrigin(TsBeanModel tsBean, TsPropertyModel tsProperty) { +- final BeanModel bean = getBeanModelOrigin(tsBean); +- if (bean == null) { +- return null; +- } +- final PropertyModel property = bean.getProperty(tsProperty.getName()); +- return property; +- } +- +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/Emittable.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/Emittable.java +deleted file mode 100644 +index 95cb5d882..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/Emittable.java ++++ /dev/null +@@ -1,11 +0,0 @@ +- +-package cz.habarta.typescript.generator.emitter; +- +-import cz.habarta.typescript.generator.Settings; +- +- +-public interface Emittable { +- +- public String format(Settings settings); +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/Emitter.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/Emitter.java +index 3d2760fdb..0ba29bdb6 100644 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/Emitter.java ++++ b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/Emitter.java +@@ -1,61 +1,43 @@ + + package cz.habarta.typescript.generator.emitter; + +-import cz.habarta.typescript.generator.ModuleDependency; +-import cz.habarta.typescript.generator.Settings; +-import cz.habarta.typescript.generator.TsParameter; +-import cz.habarta.typescript.generator.TsType; +-import cz.habarta.typescript.generator.TypeScriptFileType; +-import cz.habarta.typescript.generator.TypeScriptGenerator; +-import cz.habarta.typescript.generator.TypeScriptOutputKind; ++import cz.habarta.typescript.generator.*; ++import cz.habarta.typescript.generator.compiler.EnumKind; + import cz.habarta.typescript.generator.compiler.EnumMemberModel; +-import cz.habarta.typescript.generator.compiler.ModelCompiler; +-import java.io.IOException; +-import java.io.Writer; +-import java.text.SimpleDateFormat; +-import java.util.ArrayList; +-import java.util.Date; +-import java.util.List; +-import java.util.Map; +-import java.util.stream.Collectors; ++import cz.habarta.typescript.generator.util.Utils; ++import java.io.*; ++import java.text.*; ++import java.util.*; + + +-public class Emitter implements EmitterExtension.Writer { ++public class Emitter { + + private final Settings settings; + private Writer writer; ++ private boolean forceExportKeyword; + private int indent; + + public Emitter(Settings settings) { + this.settings = settings; + } + +- public void emit(TsModel model, Writer output, String outputName, boolean closeOutput) { ++ public void emit(TsModel model, Writer output, String outputName, boolean closeOutput, boolean forceExportKeyword, int initialIndentationLevel) { + this.writer = output; +- this.indent = 0; ++ this.forceExportKeyword = forceExportKeyword; ++ this.indent = initialIndentationLevel; + if (outputName != null) { +- TypeScriptGenerator.getLogger().info("Writing declarations to: " + outputName); ++ System.out.println("Writing declarations to: " + outputName); + } + emitFileComment(); + emitReferences(); + emitImports(); + emitModule(model); +- emitUmdNamespace(); + if (closeOutput) { + close(); + } + } + + private void emitFileComment() { +- if (!settings.noTslintDisable) { +- writeIndentedLine("/* tslint:disable */"); +- } +- if (!settings.noEslintDisable) { +- writeIndentedLine("/* eslint-disable */"); +- } +- if (settings.tsNoCheck) { +- writeIndentedLine("// @ts-nocheck"); +- } + if (!settings.noFileComment) { + final String timestamp = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()); + writeIndentedLine("// Generated using typescript-generator version " + TypeScriptGenerator.Version + " on " + timestamp + "."); +@@ -66,20 +48,12 @@ public class Emitter implements EmitterExtension.Writer { + if (settings.referencedFiles != null && !settings.referencedFiles.isEmpty()) { + writeNewLine(); + for (String reference : settings.referencedFiles) { +- writeIndentedLine("/// "); ++ writeIndentedLine("/// "); + } + } + } + + private void emitImports() { +- if (settings.moduleDependencies != null && !settings.moduleDependencies.isEmpty()) { +- writeNewLine(); +- for (ModuleDependency dependency : settings.moduleDependencies) { +- if (!dependency.global) { +- writeIndentedLine("import * as " + dependency.importAs + " from " + quote(dependency.importFrom, settings) + ";"); +- } +- } +- } + if (settings.importDeclarations != null && !settings.importDeclarations.isEmpty()) { + writeNewLine(); + for (String importDeclaration : settings.importDeclarations) { +@@ -91,7 +65,7 @@ public class Emitter implements EmitterExtension.Writer { + private void emitModule(TsModel model) { + if (settings.outputKind == TypeScriptOutputKind.ambientModule) { + writeNewLine(); +- writeIndentedLine("declare module " + quote(settings.module, settings) + " {"); ++ writeIndentedLine("declare module " + quote(settings.module) + " {"); + indent++; + emitNamespace(model); + indent--; +@@ -121,324 +95,112 @@ public class Emitter implements EmitterExtension.Writer { + writeIndentedLine("}"); + } else { + final boolean exportElements = settings.outputKind == TypeScriptOutputKind.module; +- final boolean declareElements = settings.outputFileType == TypeScriptFileType.declarationFile && settings.outputKind == TypeScriptOutputKind.global; ++ final boolean declareElements = settings.outputKind == TypeScriptOutputKind.global; + emitElements(model, exportElements, declareElements); + } + } + + private void emitElements(TsModel model, boolean exportKeyword, boolean declareKeyword) { +- emitBeans(model, exportKeyword, declareKeyword); +- emitTypeAliases(model, exportKeyword, declareKeyword); +- emitLiteralEnums(model, exportKeyword, declareKeyword); +- emitHelpers(model); +- emitExtensions(model, exportKeyword); +- } +- +- private void emitBeans(TsModel model, boolean exportKeyword, boolean declareKeyword) { +- for (TsBeanModel bean : model.getBeans()) { +- emitFullyQualifiedDeclaration(bean, exportKeyword, declareKeyword); +- } +- } +- +- private void emitTypeAliases(TsModel model, boolean exportKeyword, boolean declareKeyword) { +- for (TsAliasModel alias : model.getTypeAliases()) { +- emitFullyQualifiedDeclaration(alias, exportKeyword, declareKeyword); ++ exportKeyword = exportKeyword || forceExportKeyword; ++ emitInterfaces(model, exportKeyword); ++ emitTypeAliases(model, exportKeyword); ++ emitNumberEnums(model, exportKeyword, declareKeyword); ++ for (EmitterExtension emitterExtension : settings.extensions) { ++ emitterExtension.emitElements(new EmitterExtension.Writer() { ++ @Override ++ public void writeIndentedLine(String line) { ++ Emitter.this.writeIndentedLine(line); ++ } ++ }, settings, exportKeyword, model); + } + } + +- private void emitLiteralEnums(TsModel model, boolean exportKeyword, boolean declareKeyword) { +- for (TsEnumModel enumModel : model.getEnums()) { +- emitFullyQualifiedDeclaration(enumModel, exportKeyword, declareKeyword); ++ private void emitInterfaces(TsModel model, boolean exportKeyword) { ++ final List beans = new ArrayList<>(model.getBeans()); ++ if (settings.sortDeclarations || settings.sortTypeDeclarations) { ++ Collections.sort(beans); + } +- } +- +- private void emitFullyQualifiedDeclaration(TsDeclarationModel declaration, boolean exportKeyword, boolean declareKeyword) { +- if (declaration.getName().getNamespace() != null) { ++ for (TsBeanModel bean : beans) { + writeNewLine(); +- final String prefix = declareKeyword ? "declare " : ""; +- writeIndentedLine(exportKeyword, prefix + "namespace " + declaration.getName().getNamespace() + " {"); ++ emitComments(bean.getComments()); ++ final List parents = bean.getParentAndInterfaces(); ++ final String extendsClause = parents.isEmpty() ? "" : " extends " + Utils.join(parents, ", "); ++ writeIndentedLine(exportKeyword, "interface " + bean.getName() + extendsClause + " {"); + indent++; +- emitDeclaration(declaration, true, false); ++ final List properties = bean.getProperties(); ++ if (settings.sortDeclarations) { ++ Collections.sort(properties); ++ } ++ for (TsPropertyModel property : properties) { ++ emitProperty(property); ++ } + indent--; +- writeNewLine(); + writeIndentedLine("}"); +- } else { +- emitDeclaration(declaration, exportKeyword, declareKeyword); +- } +- } +- +- private void emitDeclaration(TsDeclarationModel declaration, boolean exportKeyword, boolean declareKeyword) { +- if (declaration instanceof TsBeanModel) { +- emitBean((TsBeanModel) declaration, exportKeyword); +- } else if (declaration instanceof TsAliasModel) { +- emitTypeAlias((TsAliasModel) declaration, exportKeyword); +- } else if (declaration instanceof TsEnumModel) { +- emitLiteralEnum((TsEnumModel) declaration, exportKeyword, declareKeyword); +- } else { +- throw new RuntimeException("Unknown declaration type: " + declaration.getClass().getName()); + } + } + +- private void emitBean(TsBeanModel bean, boolean exportKeyword) { +- writeNewLine(); +- emitComments(bean.getComments()); +- emitDecorators(bean.getDecorators()); +- final String declarationType = bean.isClass() ? "class" : "interface"; +- final String typeParameters = bean.getTypeParameters().isEmpty() ? "" : "<" + formatList(settings, bean.getTypeParameters()) + ">"; +- final List extendsList = bean.getExtendsList(); +- final List implementsList = bean.getImplementsList(); +- final String extendsClause = extendsList.isEmpty() ? "" : " extends " + formatList(settings, extendsList); +- final String implementsClause = implementsList.isEmpty() ? "" : " implements " + formatList(settings, implementsList); +- writeIndentedLine(exportKeyword, declarationType + " " + bean.getName().getSimpleName() + typeParameters + extendsClause + implementsClause + " {"); +- indent++; +- for (TsPropertyModel property : bean.getProperties()) { +- emitProperty(property); +- } +- if (bean.getConstructor() != null) { +- emitCallable(bean.getConstructor()); +- } +- for (TsMethodModel method : bean.getMethods()) { +- emitCallable(method); +- } +- indent--; +- writeIndentedLine("}"); +- } +- + private void emitProperty(TsPropertyModel property) { + emitComments(property.getComments()); +- emitDecorators(property.getDecorators()); + final TsType tsType = property.getTsType(); +- final String staticString = property.modifiers.isStatic ? "static " : ""; +- final String readonlyString = property.modifiers.isReadonly ? "readonly " : ""; +- final String questionMark = tsType instanceof TsType.OptionalType ? "?" : ""; +- final String defaultString = property.getDefaultValue() != null ? " = " + property.getDefaultValue().format(settings) : ""; +- writeIndentedLine(staticString + readonlyString + quoteIfNeeded(property.getName(), settings) + questionMark + ": " + tsType.format(settings) + defaultString + ";"); +- } +- +- private void emitDecorators(List decorators) { +- for (TsDecorator decorator : decorators) { +- writeIndentedLine(formatDecorator(settings, decorator)); +- } +- } +- +- private static String formatDecoratorList(Settings settings, List decorators) { +- return decorators.stream() +- .map(decorator -> formatDecorator(settings, decorator)) +- .collect(Collectors.joining(", ")); +- } +- +- private static String formatDecorator(Settings settings, TsDecorator decorator) { +- final String at = decorator.getIdentifierReference().getIdentifier().startsWith("@") ? "" : "@"; +- final String parameters = decorator.getArguments() != null +- ? ("(" + formatList(settings, decorator.getArguments()) + ")") +- : ""; +- return at + decorator.getIdentifierReference().format(settings) + parameters; +- } +- +- public static String quoteIfNeeded(String name, Settings settings) { +- return ModelCompiler.isValidIdentifierName(name) ? name : quote(name, settings); ++ final String questionMark = settings.declarePropertiesAsOptional || (tsType instanceof TsType.OptionalType) ? "?" : ""; ++ writeIndentedLine(toPropertyName(property.getName()) + questionMark + ": " + tsType.format(settings) + ";"); + } + +- public static String quote(String value, Settings settings) { +- return settings.quotes + value + settings.quotes; +- } +- +- public static String formatList(Settings settings, List list) { +- return formatList(settings, list, ", "); +- } +- +- public static String formatList(Settings settings, List list, String delimiter) { +- return list.stream() +- .map(item -> item.format(settings)) +- .collect(Collectors.joining(delimiter)); +- } +- +- private void emitCallable(TsCallableModel method) { +- writeNewLine(); +- emitComments(method.getComments()); +- if (method instanceof TsMethodModel) { +- emitDecorators(((TsMethodModel) method).getDecorators()); +- } +- final String staticString = method.getModifiers().isStatic ? "static " : ""; +- final String typeParametersString = method.getTypeParameters().isEmpty() ? "" : "<" + formatList(settings, method.getTypeParameters()) + ">"; +- final String parametersString = formatParameterModelList(settings, method.getParameters()); +- final String type = method.getReturnType() != null ? ": " + method.getReturnType() : ""; +- final String signature = staticString + method.getName() + typeParametersString + parametersString + type; +- if (method.getBody() != null) { +- writeIndentedLine(signature + " {"); +- indent++; +- emitStatements(method.getBody()); +- indent--; +- writeIndentedLine("}"); +- } else { +- writeIndentedLine(signature + ";"); +- } ++ private String toPropertyName(String name) { ++ return isValidIdentifierName(name) ? name : quote(name); + } + +- public static String formatParameterModelList(Settings settings, List parameters) { +- final List params = new ArrayList<>(); +- for (TsParameterModel parameter : parameters) { +- final List decorators = parameter.getDecorators(); +- final String decoratorsString = decorators != null && !decorators.isEmpty() ? formatDecoratorList(settings, decorators) + " " : ""; +- final TsAccessibilityModifier accessibilityModifier = parameter.getAccessibilityModifier(); +- final String access = accessibilityModifier != null ? accessibilityModifier.format() + " " : ""; +- params.add(decoratorsString + access + formatParameterNameAndType(parameter)); ++ // https://github.com/Microsoft/TypeScript/blob/master/doc/spec.md#2.2.2 ++ // http://www.ecma-international.org/ecma-262/6.0/index.html#sec-names-and-keywords ++ private static boolean isValidIdentifierName(String name) { ++ if (name == null || name.isEmpty()) { ++ return false; + } +- return joinParameters(params, true); +- } +- +- public static String formatParameterList(List parameters) { +- final List params = new ArrayList<>(); +- for (TsParameter parameter : parameters) { +- params.add(formatParameterNameAndType(parameter)); ++ final char start = name.charAt(0); ++ if (!Character.isUnicodeIdentifierStart(start) && start != '$' && start != '_') { ++ return false; + } +- final boolean parentheses = parameters.size() != 1 || parameters.get(0).tsType != null; +- return joinParameters(params, parentheses); +- } +- +- private static String formatParameterNameAndType(TsParameter parameter) { +- final String questionMark = (parameter.getTsType() instanceof TsType.OptionalType) ? "?" : ""; +- final String type = parameter.getTsType() != null ? ": " + parameter.getTsType() : ""; +- return parameter.getName() + questionMark + type; +- } +- +- private static String joinParameters(List params, boolean parentheses) { +- return parentheses +- ? "(" + String.join(", ", params) + ")" +- : String.join(", ", params); +- } +- +- private void emitStatements(List statements) { +- for (TsStatement statement : statements) { +- if (statement instanceof TsReturnStatement) { +- emitReturnStatement((TsReturnStatement) statement); +- } else if (statement instanceof TsIfStatement) { +- emitIfStatement((TsIfStatement) statement); +- } else if (statement instanceof TsExpressionStatement) { +- emitExpressionStatement((TsExpressionStatement) statement); +- } else if (statement instanceof TsVariableDeclarationStatement) { +- emitVariableDeclarationStatement((TsVariableDeclarationStatement) statement); +- } else if (statement instanceof TsSwitchStatement) { +- emitTsSwitchStatement((TsSwitchStatement) statement); ++ for (char c : name.substring(1).toCharArray()) { ++ if (!Character.isUnicodeIdentifierPart(c) && c != '$' && c != '_' && c != '\u200C' && c != '\u200D') { ++ return false; + } + } ++ return true; + } + +- private void emitReturnStatement(TsReturnStatement returnStatement) { +- if (returnStatement.getExpression() != null) { +- writeIndentedLine("return " + returnStatement.getExpression().format(settings) + ";"); +- } else { +- writeIndentedLine("return;"); +- } +- } +- +- private void emitIfStatement(TsIfStatement ifStatement) { +- writeIndentedLine("if (" + ifStatement.getExpression().format(settings) + ") {"); +- indent++; +- emitStatements(ifStatement.getThenStatements()); +- indent--; +- if (ifStatement.getElseStatements() != null) { +- writeIndentedLine("} else {"); +- indent++; +- emitStatements(ifStatement.getElseStatements()); +- indent--; ++ private void emitTypeAliases(TsModel model, boolean exportKeyword) { ++ final ArrayList aliases = new ArrayList<>(model.getTypeAliases()); ++ if (settings.sortDeclarations || settings.sortTypeDeclarations) { ++ Collections.sort(aliases); + } +- writeIndentedLine("}"); +- } +- +- private void emitExpressionStatement(TsExpressionStatement expressionStatement) { +- writeIndentedLine(expressionStatement.getExpression().format(settings) + ";"); +- } +- +- private void emitVariableDeclarationStatement(TsVariableDeclarationStatement variableDeclarationStatement) { +- writeIndentedLine( +- (variableDeclarationStatement.isConst() ? "const " : "let ") +- + variableDeclarationStatement.getName() +- + (variableDeclarationStatement.getType() != null ? ": " + variableDeclarationStatement.getType().format(settings) : "") +- + (variableDeclarationStatement.getInitializer() != null ? " = " + variableDeclarationStatement.getInitializer().format(settings) : "") +- + ";" +- ); +- } +- +- private void emitTsSwitchStatement(TsSwitchStatement switchStatement) { +- writeIndentedLine("switch (" + switchStatement.getExpression().format(settings) + ") {"); +- indent++; +- for (TsSwitchCaseClause caseClause : switchStatement.getCaseClauses()) { +- writeIndentedLine("case " + caseClause.getExpression().format(settings) + ":"); +- indent++; +- emitStatements(caseClause.getStatements()); +- indent--; +- } +- if (switchStatement.getDefaultClause() != null) { +- writeIndentedLine("default:"); +- indent++; +- emitStatements(switchStatement.getDefaultClause()); +- indent--; +- } +- indent--; +- writeIndentedLine("}"); +- } +- +- private void emitTypeAlias(TsAliasModel alias, boolean exportKeyword) { +- writeNewLine(); +- emitComments(alias.getComments()); +- final String genericParameters = alias.getTypeParameters().isEmpty() +- ? "" +- : "<" + formatList(settings, alias.getTypeParameters()) + ">"; +- writeIndentedLine(exportKeyword, "type " + alias.getName().getSimpleName() + genericParameters + " = " + alias.getDefinition().format(settings) + ";"); +- } +- +- private void emitLiteralEnum(TsEnumModel enumModel, boolean exportKeyword, boolean declareKeyword) { +- writeNewLine(); +- emitComments(enumModel.getComments()); +- final String declareText = declareKeyword ? "declare " : ""; +- final String constText = enumModel.isNonConstEnum() ? "" : "const "; +- writeIndentedLine(exportKeyword, declareText + constText + "enum " + enumModel.getName().getSimpleName() + " {"); +- indent++; +- for (EnumMemberModel member : enumModel.getMembers()) { +- emitComments(member.getComments()); +- final Object value = member.getEnumValue(); +- final String initializer = value != null +- ? " = " + (value instanceof String ? quote((String) value, settings) : String.valueOf(value)) +- : ""; +- writeIndentedLine(member.getPropertyName() + initializer + ","); +- } +- indent--; +- writeIndentedLine("}"); +- } +- +- private void emitHelpers(TsModel model) { +- for (TsHelper helper : model.getHelpers()) { ++ for (TsAliasModel alias : aliases) { + writeNewLine(); +- writeTemplate(this, settings, helper.getLines(), null); ++ emitComments(alias.getComments()); ++ writeIndentedLine(exportKeyword, "type " + alias.getName() + " = " + alias.getDefinition().format(settings) + ";"); + } + } + +- private void emitExtensions(TsModel model, boolean exportKeyword) { +- for (EmitterExtension emitterExtension : settings.extensions) { +- final List extensionLines = new ArrayList<>(); +- final EmitterExtension.Writer extensionWriter = new EmitterExtension.Writer() { +- @Override +- public void writeIndentedLine(String line) { +- extensionLines.add(line); +- } +- }; +- emitterExtension.emitElements(extensionWriter, settings, exportKeyword, model); +- if (!extensionLines.isEmpty()) { +- writeNewLine(); +- writeNewLine(); +- writeIndentedLine(String.format("// Added by '%s' extension", emitterExtension.getClass().getSimpleName())); +- for (String line : extensionLines) { +- this.writeIndentedLine(line); +- } +- } ++ private void emitNumberEnums(TsModel model, boolean exportKeyword, boolean declareKeyword) { ++ final ArrayList> enums = settings.mapEnum == EnumMapping.asNumberBasedEnum && !settings.areDefaultStringEnumsOverriddenByExtension() ++ ? new ArrayList<>(model.getEnums()) ++ : new ArrayList>(model.getEnums(EnumKind.NumberBased)); ++ if (settings.sortDeclarations || settings.sortTypeDeclarations) { ++ Collections.sort(enums); + } +- } +- +- private void emitUmdNamespace() { +- if (settings.umdNamespace != null) { ++ for (TsEnumModel enumModel : enums) { + writeNewLine(); +- writeIndentedLine("export as namespace " + settings.umdNamespace + ";"); ++ emitComments(enumModel.getComments()); ++ writeIndentedLine(exportKeyword, (declareKeyword ? "declare " : "") + "const enum " + enumModel.getName() + " {"); ++ indent++; ++ for (EnumMemberModel member : enumModel.getMembers()) { ++ emitComments(member.getComments()); ++ final String initializer = enumModel.getKind() == EnumKind.NumberBased ++ ? " = " + member.getEnumValue() ++ : ""; ++ writeIndentedLine(member.getPropertyName() + initializer + ","); ++ } ++ indent--; ++ writeIndentedLine("}"); + } + } + +@@ -452,26 +214,11 @@ public class Emitter implements EmitterExtension.Writer { + } + } + +- public static void writeTemplate(EmitterExtension.Writer writer, Settings settings, List template, Map replacements) { +- for (String line : template) { +- if (replacements != null) { +- for (Map.Entry entry : replacements.entrySet()) { +- line = line.replace(entry.getKey(), entry.getValue()); +- } +- } +- writer.writeIndentedLine(line +- .replace("\t", settings.indentString) +- .replace("\"", settings.quotes) +- ); +- } +- } +- + private void writeIndentedLine(boolean exportKeyword, String line) { + writeIndentedLine((exportKeyword ? "export " : "") + line); + } + +- @Override +- public void writeIndentedLine(String line) { ++ private void writeIndentedLine(String line) { + try { + if (!line.isEmpty()) { + for (int i = 0; i < indent; i++) { +@@ -494,6 +241,10 @@ public class Emitter implements EmitterExtension.Writer { + } + } + ++ private String quote(String value) { ++ return settings.quotes + value + settings.quotes; ++ } ++ + private void close() { + try { + writer.close(); +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/EmitterExtensionFeatures.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/EmitterExtensionFeatures.java +index 77186e7e6..ffc2b5032 100644 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/EmitterExtensionFeatures.java ++++ b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/EmitterExtensionFeatures.java +@@ -1,23 +1,10 @@ + + package cz.habarta.typescript.generator.emitter; + +-import java.util.Map; +- + + public class EmitterExtensionFeatures { + +- // declared abilities + public boolean generatesRuntimeCode = false; +- public boolean generatesModuleCode = false; +- public boolean worksWithPackagesMappedToNamespaces = false; + public boolean overridesStringEnums = false; + +- // overridden settings +- public boolean generatesJaxrsApplicationClient = false; +- public String restResponseType = null; +- public String restOptionsType = null; +- public Map npmPackageDependencies = null; +- public Map npmDevDependencies = null; +- public Map npmPeerDependencies = null; +- + } +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/InfoJson.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/InfoJson.java +deleted file mode 100644 +index 03a7e0f4e..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/InfoJson.java ++++ /dev/null +@@ -1,17 +0,0 @@ +- +-package cz.habarta.typescript.generator.emitter; +- +-import java.util.List; +- +- +-public class InfoJson { +- +- public List classes; +- +- +- public static class ClassInfo { +- public String javaClass; +- public String typeName; +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/InfoJsonEmitter.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/InfoJsonEmitter.java +deleted file mode 100644 +index 0c3d805ca..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/InfoJsonEmitter.java ++++ /dev/null +@@ -1,74 +0,0 @@ +- +-package cz.habarta.typescript.generator.emitter; +- +-import com.fasterxml.jackson.databind.ObjectMapper; +-import cz.habarta.typescript.generator.TypeScriptGenerator; +-import cz.habarta.typescript.generator.util.Utils; +-import java.io.IOException; +-import java.io.Writer; +-import java.util.ArrayList; +-import java.util.LinkedHashMap; +-import java.util.stream.Stream; +- +- +-public class InfoJsonEmitter { +- +- private Writer writer; +- +- public void emit(TsModel tsModel, Writer output, String outputName, boolean closeOutput) { +- this.writer = output; +- if (outputName != null) { +- TypeScriptGenerator.getLogger().info("Writing module info to: " + outputName); +- } +- emitTypeMappingJson(tsModel); +- if (closeOutput) { +- close(); +- } +- } +- +- private void emitTypeMappingJson(TsModel tsModel) { +- try { +- final ObjectMapper objectMapper = Utils.getObjectMapper(); +- final InfoJson infoJson = getInfoJson(tsModel); +- objectMapper.writeValue(writer, infoJson); +- } catch (IOException e) { +- throw new RuntimeException(e); +- } +- } +- +- private InfoJson getInfoJson(TsModel tsModel) { +- final LinkedHashMap map = new LinkedHashMap<>(); +- Stream +- .of( +- tsModel.getBeans(), +- tsModel.getEnums(), +- tsModel.getTypeAliases() +- ) +- .flatMap(s -> s.stream()) +- .filter(declaration -> declaration.origin != null) +- .map(declaration -> { +- final InfoJson.ClassInfo typeMapping = new InfoJson.ClassInfo(); +- typeMapping.javaClass = declaration.origin.getName(); +- typeMapping.typeName = declaration.name.getFullName(); +- return typeMapping; +- }) +- .forEach(info -> { +- // remove duplicates, append new items to the end +- map.remove(info.javaClass); +- map.put(info.javaClass, info); +- }); +- +- final InfoJson infoJson = new InfoJson(); +- infoJson.classes = new ArrayList<>(map.values()); +- return infoJson; +- } +- +- private void close() { +- try { +- writer.close(); +- } catch (IOException e) { +- throw new RuntimeException(e); +- } +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/NpmPackageJson.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/NpmPackageJson.java +deleted file mode 100644 +index e24a41e9a..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/NpmPackageJson.java ++++ /dev/null +@@ -1,18 +0,0 @@ +- +-package cz.habarta.typescript.generator.emitter; +- +-import java.util.Map; +- +- +-public class NpmPackageJson { +- +- public String name; +- public String version; +- public String types; +- public String main; +- public Map dependencies; +- public Map devDependencies; +- public Map peerDependencies; +- public Map scripts; +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/NpmPackageJsonEmitter.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/NpmPackageJsonEmitter.java +deleted file mode 100644 +index ec567ffd9..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/NpmPackageJsonEmitter.java ++++ /dev/null +@@ -1,43 +0,0 @@ +- +-package cz.habarta.typescript.generator.emitter; +- +-import com.fasterxml.jackson.databind.ObjectMapper; +-import cz.habarta.typescript.generator.TypeScriptGenerator; +-import cz.habarta.typescript.generator.util.Utils; +-import java.io.IOException; +-import java.io.Writer; +- +- +-public class NpmPackageJsonEmitter { +- +- private Writer writer; +- +- public void emit(NpmPackageJson npmPackageJson, Writer output, String outputName, boolean closeOutput) { +- this.writer = output; +- if (outputName != null) { +- TypeScriptGenerator.getLogger().info("Writing NPM package to: " + outputName); +- } +- emitPackageJson(npmPackageJson); +- if (closeOutput) { +- close(); +- } +- } +- +- private void emitPackageJson(NpmPackageJson npmPackageJson) { +- try { +- final ObjectMapper objectMapper = Utils.getObjectMapper(); +- objectMapper.writeValue(writer, npmPackageJson); +- } catch (IOException e) { +- throw new RuntimeException(e); +- } +- } +- +- private void close() { +- try { +- writer.close(); +- } catch (IOException e) { +- throw new RuntimeException(e); +- } +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsAccessibilityModifier.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsAccessibilityModifier.java +deleted file mode 100644 +index b6223380b..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsAccessibilityModifier.java ++++ /dev/null +@@ -1,13 +0,0 @@ +- +-package cz.habarta.typescript.generator.emitter; +- +- +-public enum TsAccessibilityModifier { +- +- Public, Private, Protected; +- +- public String format() { +- return name().toLowerCase(); +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsAliasModel.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsAliasModel.java +index 76072201b..4efe6f7d4 100644 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsAliasModel.java ++++ b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsAliasModel.java +@@ -2,24 +2,21 @@ + package cz.habarta.typescript.generator.emitter; + + import cz.habarta.typescript.generator.TsType; +-import cz.habarta.typescript.generator.compiler.Symbol; +-import java.util.Collections; + import java.util.List; + + + public class TsAliasModel extends TsDeclarationModel { + +- private final List typeParameters; + private final TsType definition; + +- public TsAliasModel(Class origin, Symbol name, List typeParameters, TsType definition, List comments) { +- super(origin, null, name, comments); +- this.typeParameters = typeParameters != null ? typeParameters : Collections.emptyList(); ++ public TsAliasModel(TsType name, TsType definition, List comments) { ++ super(name, comments); + this.definition = definition; + } + +- public List getTypeParameters() { +- return typeParameters; ++ public TsAliasModel(Class origin, TsType name, TsType definition, List comments) { ++ super(origin, name, comments); ++ this.definition = definition; + } + + public TsType getDefinition() { +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsArrowFunction.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsArrowFunction.java +deleted file mode 100644 +index 49e8bbb7b..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsArrowFunction.java ++++ /dev/null +@@ -1,35 +0,0 @@ +- +-package cz.habarta.typescript.generator.emitter; +- +-import cz.habarta.typescript.generator.Settings; +-import cz.habarta.typescript.generator.TsParameter; +-import java.util.List; +- +- +-public class TsArrowFunction extends TsExpression { +- +- private final List parameters; +- +- // ConciseBody = FunctionBody | Expression; +- private final TsExpression expression; +-// private final List body; +- +- public TsArrowFunction(List parameters, TsExpression expression) { +- this.parameters = parameters; +- this.expression = expression; +- } +- +- public List getParameters() { +- return parameters; +- } +- +- public TsExpression getExpression() { +- return expression; +- } +- +- @Override +- public String format(Settings settings) { +- return Emitter.formatParameterList(parameters) + " => " + expression.format(settings); +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsAssignmentExpression.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsAssignmentExpression.java +deleted file mode 100644 +index ed65914ea..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsAssignmentExpression.java ++++ /dev/null +@@ -1,33 +0,0 @@ +- +-package cz.habarta.typescript.generator.emitter; +- +-import cz.habarta.typescript.generator.Settings; +-import java.util.Objects; +- +- +-public class TsAssignmentExpression extends TsExpression { +- +- private final TsExpression leftHandSideExpression; +- private final TsExpression assignmentExpression; +- +- public TsAssignmentExpression(TsExpression leftHandSideExpression, TsExpression assignmentExpression) { +- Objects.requireNonNull(leftHandSideExpression); +- Objects.requireNonNull(assignmentExpression); +- this.leftHandSideExpression = leftHandSideExpression; +- this.assignmentExpression = assignmentExpression; +- } +- +- public TsExpression getLeftHandSideExpression() { +- return leftHandSideExpression; +- } +- +- public TsExpression getAssignmentExpression() { +- return assignmentExpression; +- } +- +- @Override +- public String format(Settings settings) { +- return leftHandSideExpression.format(settings) + " = " + assignmentExpression.format(settings); +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsBeanCategory.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsBeanCategory.java +deleted file mode 100644 +index 3ac5f6172..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsBeanCategory.java ++++ /dev/null +@@ -1,12 +0,0 @@ +- +-package cz.habarta.typescript.generator.emitter; +- +- +-public enum TsBeanCategory { +- +- // order of these constants determines order of emitted declarations +- ServicePrerequisite, +- Service, +- Data, +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsBeanModel.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsBeanModel.java +index 9fd779a3e..54cede9ea 100644 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsBeanModel.java ++++ b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsBeanModel.java +@@ -1,136 +1,48 @@ + + package cz.habarta.typescript.generator.emitter; + +-import cz.habarta.typescript.generator.TsType; +-import cz.habarta.typescript.generator.compiler.Symbol; +-import cz.habarta.typescript.generator.util.Utils; +-import java.util.ArrayList; +-import java.util.List; ++import cz.habarta.typescript.generator.*; ++import java.util.*; + + + public class TsBeanModel extends TsDeclarationModel { + +- private final boolean isClass; +- private final List decorators; +- private final List typeParameters; + private final TsType parent; +- private final List extendsList; +- private final List implementsList; + private final List> taggedUnionClasses; +- private final String discriminantProperty; +- private final String discriminantLiteral; +- private final TsAliasModel taggedUnionAlias; ++ private final List interfaces; + private final List properties; +- private final TsConstructorModel constructor; +- private final List methods; + +- public TsBeanModel( +- Class origin, +- TsBeanCategory category, +- boolean isClass, +- Symbol name, +- List typeParameters, +- TsType parent, +- List extendsList, +- List implementsList, +- List properties, +- TsConstructorModel constructor, +- List methods, +- List comments) { +- this(origin, category, isClass, null, name, typeParameters, parent, extendsList, implementsList, null, null, null, null, properties, constructor, methods, comments); ++ public TsBeanModel(TsType name, TsType parent, List> taggedUnionClasses, List interfaces, List properties, List comments) { ++ this(null, name, parent, taggedUnionClasses, interfaces, properties, comments); + } + +- private TsBeanModel( +- Class origin, +- TsBeanCategory category, +- boolean isClass, +- List decorators, +- Symbol name, +- List typeParameters, +- TsType parent, +- List extendsList, +- List implementsList, +- List> taggedUnionClasses, +- String discriminantProperty, +- String discriminantLiteral, +- TsAliasModel taggedUnionAlias, +- List properties, +- TsConstructorModel constructor, +- List methods, +- List comments) { +- super(origin, category, name, comments); +- this.isClass = isClass; +- this.decorators = Utils.listFromNullable(decorators); +- this.typeParameters = Utils.listFromNullable(typeParameters); ++ public TsBeanModel(Class origin, TsType name, TsType parent, List> taggedUnionClasses, List interfaces, List properties, List comments) { ++ super(origin, name, comments); + this.parent = parent; +- this.extendsList = Utils.listFromNullable(extendsList); +- this.implementsList = Utils.listFromNullable(implementsList); +- this.taggedUnionClasses = Utils.listFromNullable(taggedUnionClasses); +- this.discriminantProperty = discriminantProperty; +- this.discriminantLiteral = discriminantLiteral; +- this.taggedUnionAlias = taggedUnionAlias; +- this.properties = Utils.listFromNullable(properties); +- this.constructor = constructor; +- this.methods = Utils.listFromNullable(methods); +- } +- +- public boolean isClass() { +- return isClass; +- } +- +- public List getDecorators() { +- return decorators; +- } +- +- public TsBeanModel withDecorators(List decorators) { +- return new TsBeanModel(origin, category, isClass, decorators, name, typeParameters, parent, extendsList, implementsList, taggedUnionClasses, discriminantProperty, discriminantLiteral, taggedUnionAlias, properties, constructor, methods, comments); +- } +- +- public List getTypeParameters() { +- return typeParameters; ++ this.taggedUnionClasses = taggedUnionClasses; ++ this.interfaces = interfaces; ++ this.properties = properties; + } + + public TsType getParent() { + return parent; + } + +- public List getExtendsList() { +- return extendsList; +- } +- +- public List getImplementsList() { +- return implementsList; +- } +- +- public List getAllParents() { +- final List parents = new ArrayList<>(); +- parents.addAll(extendsList); +- parents.addAll(implementsList); +- return parents; +- } +- + public List> getTaggedUnionClasses() { + return taggedUnionClasses; + } + +- public String getDiscriminantProperty() { +- return discriminantProperty; +- } +- +- public String getDiscriminantLiteral() { +- return discriminantLiteral; +- } +- +- public TsBeanModel withTaggedUnion(List> taggedUnionClasses, String discriminantProperty, String discriminantLiteral) { +- return new TsBeanModel(origin, category, isClass, decorators, name, typeParameters, parent, extendsList, implementsList, taggedUnionClasses, discriminantProperty, discriminantLiteral, taggedUnionAlias, properties, constructor, methods, comments); ++ public List getInterfaces() { ++ return interfaces; + } + +- public TsAliasModel getTaggedUnionAlias() { +- return taggedUnionAlias; +- } +- +- public TsBeanModel withTaggedUnionAlias(TsAliasModel taggedUnionAlias) { +- return new TsBeanModel(origin, category, isClass, decorators, name, typeParameters, parent, extendsList, implementsList, taggedUnionClasses, discriminantProperty, discriminantLiteral, taggedUnionAlias, properties, constructor, methods, comments); ++ public List getParentAndInterfaces() { ++ final List parents = new ArrayList<>(); ++ if (parent != null) { ++ parents.add(parent); ++ } ++ parents.addAll(interfaces); ++ return parents; + } + + public List getProperties() { +@@ -138,39 +50,7 @@ public class TsBeanModel extends TsDeclarationModel { + } + + public TsBeanModel withProperties(List properties) { +- return new TsBeanModel(origin, category, isClass, decorators, name, typeParameters, parent, extendsList, implementsList, taggedUnionClasses, discriminantProperty, discriminantLiteral, taggedUnionAlias, properties, constructor, methods, comments); +- } +- +- public TsConstructorModel getConstructor() { +- return constructor; +- } +- +- public TsBeanModel withConstructor(TsConstructorModel constructor) { +- return new TsBeanModel(origin, category, isClass, decorators, name, typeParameters, parent, extendsList, implementsList, taggedUnionClasses, discriminantProperty, discriminantLiteral, taggedUnionAlias, properties, constructor, methods, comments); +- } +- +- public List getMethods() { +- return methods; +- } +- +- public TsBeanModel withMethods(List methods) { +- return new TsBeanModel(origin, category, isClass, decorators, name, typeParameters, parent, extendsList, implementsList, taggedUnionClasses, discriminantProperty, discriminantLiteral, taggedUnionAlias, properties, constructor, methods, comments); +- } +- +- public boolean isJaxrsApplicationClientBean() { +- return category == TsBeanCategory.Service && isClass; +- } +- +- public boolean isDataClass() { +- return category == TsBeanCategory.Data && isClass; +- } +- +- public TsBeanModel withImplements(List implementsList) { +- return new TsBeanModel(origin, category, isClass, decorators, name, typeParameters, parent, extendsList, implementsList, taggedUnionClasses, discriminantProperty, discriminantLiteral, taggedUnionAlias, properties, constructor, methods, comments); +- } +- +- public TsBeanModel withExtends(List extendsList) { +- return new TsBeanModel(origin, category, isClass, decorators, name, typeParameters, parent, extendsList, implementsList, taggedUnionClasses, discriminantProperty, discriminantLiteral, taggedUnionAlias, properties, constructor, methods, comments); ++ return new TsBeanModel(origin, name, parent, taggedUnionClasses, interfaces, properties, comments); + } + + } +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsBinaryExpression.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsBinaryExpression.java +deleted file mode 100644 +index 1a5a13d53..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsBinaryExpression.java ++++ /dev/null +@@ -1,36 +0,0 @@ +- +-package cz.habarta.typescript.generator.emitter; +- +-import cz.habarta.typescript.generator.Settings; +- +- +-public class TsBinaryExpression extends TsExpression { +- +- private final TsExpression left; +- private final TsBinaryOperator operator; +- private final TsExpression right; +- +- public TsBinaryExpression(TsExpression left, TsBinaryOperator operator, TsExpression right) { +- this.left = left; +- this.operator = operator; +- this.right = right; +- } +- +- public TsExpression getLeft() { +- return left; +- } +- +- public TsBinaryOperator getOperator() { +- return operator; +- } +- +- public TsExpression getRight() { +- return right; +- } +- +- @Override +- public String format(Settings settings) { +- return left.format(settings) + " " + operator.format(settings) + " " + right.format(settings); +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsBinaryOperator.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsBinaryOperator.java +deleted file mode 100644 +index 05699c040..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsBinaryOperator.java ++++ /dev/null +@@ -1,22 +0,0 @@ +- +-package cz.habarta.typescript.generator.emitter; +- +-import cz.habarta.typescript.generator.Settings; +- +- +-public enum TsBinaryOperator implements Emittable { +- +- BarBar("||"); +- +- private final String formatted; +- +- private TsBinaryOperator(String formatted) { +- this.formatted = formatted; +- } +- +- @Override +- public String format(Settings settings) { +- return formatted; +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsBooleanLiteral.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsBooleanLiteral.java +deleted file mode 100644 +index 7ec7ff0f3..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsBooleanLiteral.java ++++ /dev/null +@@ -1,24 +0,0 @@ +- +-package cz.habarta.typescript.generator.emitter; +- +-import cz.habarta.typescript.generator.Settings; +- +- +-public class TsBooleanLiteral extends TsExpression { +- +- private final boolean literal; +- +- public TsBooleanLiteral(boolean literal) { +- this.literal = literal; +- } +- +- public boolean getLiteral() { +- return literal; +- } +- +- @Override +- public String format(Settings settings) { +- return String.valueOf(literal); +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsCallExpression.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsCallExpression.java +deleted file mode 100644 +index 0507e67eb..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsCallExpression.java ++++ /dev/null +@@ -1,45 +0,0 @@ +- +-package cz.habarta.typescript.generator.emitter; +- +-import cz.habarta.typescript.generator.Settings; +-import cz.habarta.typescript.generator.TsType; +-import java.util.Arrays; +-import java.util.Collections; +-import java.util.List; +- +- +-public class TsCallExpression extends TsExpression { +- +- private final TsExpression expression; +- private final List typeArguments; +- private final List arguments; +- +- public TsCallExpression(TsExpression expression, TsExpression... arguments) { +- this(expression, null, Arrays.asList(arguments)); +- } +- +- public TsCallExpression(TsExpression expression, List typeArguments, List arguments) { +- this.expression = expression; +- this.typeArguments = typeArguments != null ? typeArguments : Collections.emptyList(); +- this.arguments = arguments; +- } +- +- public TsExpression getExpression() { +- return expression; +- } +- +- public List getTypeArguments() { +- return typeArguments; +- } +- +- public List getArguments() { +- return arguments; +- } +- +- @Override +- public String format(Settings settings) { +- final String typeArgumentsString = typeArguments.isEmpty() ? "" : "<" + Emitter.formatList(settings, typeArguments) + ">"; +- return expression.format(settings) + typeArgumentsString + "(" + Emitter.formatList(settings, arguments) + ")"; +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsCallableModel.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsCallableModel.java +deleted file mode 100644 +index 0d233aa97..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsCallableModel.java ++++ /dev/null +@@ -1,58 +0,0 @@ +- +-package cz.habarta.typescript.generator.emitter; +- +-import cz.habarta.typescript.generator.TsType; +-import java.util.Collections; +-import java.util.List; +- +- +-public class TsCallableModel { +- +- protected final String name; +- protected final TsModifierFlags modifiers; +- protected final List typeParameters; +- protected final List parameters; +- protected final TsType returnType; +- protected final List body; +- protected final List comments; +- +- public TsCallableModel(String name, TsModifierFlags modifiers, List typeParameters, +- List parameters, TsType returnType, List body, List comments) { +- this.name = name; +- this.modifiers = modifiers != null ? modifiers : TsModifierFlags.None; +- this.typeParameters = typeParameters != null ? typeParameters : Collections.emptyList(); +- this.parameters = parameters; +- this.returnType = returnType; +- this.body = body; +- this.comments = comments; +- } +- +- public String getName() { +- return name; +- } +- +- public TsModifierFlags getModifiers() { +- return modifiers; +- } +- +- public List getTypeParameters() { +- return typeParameters; +- } +- +- public List getParameters() { +- return parameters; +- } +- +- public TsType getReturnType() { +- return returnType; +- } +- +- public List getBody() { +- return body; +- } +- +- public List getComments() { +- return comments; +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsConstructorModel.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsConstructorModel.java +deleted file mode 100644 +index fa1c3639c..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsConstructorModel.java ++++ /dev/null +@@ -1,17 +0,0 @@ +- +-package cz.habarta.typescript.generator.emitter; +- +-import java.util.List; +- +- +-public class TsConstructorModel extends TsCallableModel { +- +- public TsConstructorModel(TsModifierFlags modifiers, List parameters, List body, List comments) { +- super("constructor", modifiers, null, parameters, null, body, comments); +- } +- +- public TsConstructorModel withParameters(List parameters) { +- return new TsConstructorModel(modifiers, parameters, body, comments); +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsDeclarationModel.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsDeclarationModel.java +index 6ef0e69b6..dd6b78d87 100644 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsDeclarationModel.java ++++ b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsDeclarationModel.java +@@ -1,22 +1,23 @@ + + package cz.habarta.typescript.generator.emitter; + +-import cz.habarta.typescript.generator.compiler.Symbol; +-import java.util.List; +-import java.util.Objects; ++import cz.habarta.typescript.generator.TsType; ++import java.util.*; + + + public class TsDeclarationModel implements Comparable { + + protected final Class origin; +- protected final TsBeanCategory category; +- protected final Symbol name; ++ protected final TsType name; + protected final List comments; + +- public TsDeclarationModel(Class origin, TsBeanCategory category, Symbol name, List comments) { ++ public TsDeclarationModel(TsType name, List comments) { ++ this(null, name, comments); ++ } ++ ++ public TsDeclarationModel(Class origin, TsType name, List comments) { + this.origin = origin; +- this.category = category; +- this.name = Objects.requireNonNull(name); ++ this.name = name; + this.comments = comments; + } + +@@ -24,11 +25,7 @@ public class TsDeclarationModel implements Comparable { + return origin; + } + +- public TsBeanCategory getCategory() { +- return category; +- } +- +- public Symbol getName() { ++ public TsType getName() { + return name; + } + +@@ -38,26 +35,7 @@ public class TsDeclarationModel implements Comparable { + + @Override + public int compareTo(TsDeclarationModel o) { +- final int categoryResult = compare(this.category, o.category); +- if (categoryResult != 0) { +- return categoryResult; +- } +- final int nameResult = compare(this.name.getFullName(), o.name.getFullName()); +- if (nameResult != 0) { +- return nameResult; +- } +- return 0; +- } +- +- /** +- * Natural order with null last. +- */ +- private static > int compare(T o1, T o2) { +- if (o1 != null) { +- return o2 != null ? o1.compareTo(o2) : -1; +- } else { +- return o2 != null ? 1 : 0; +- } ++ return name.toString().compareTo(o.name.toString()); + } + + @Override +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsDecorator.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsDecorator.java +deleted file mode 100644 +index 3da64f821..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsDecorator.java ++++ /dev/null +@@ -1,26 +0,0 @@ +- +-package cz.habarta.typescript.generator.emitter; +- +-import java.util.List; +-import java.util.Objects; +- +- +-public class TsDecorator { +- +- private final TsIdentifierReference identifierReference; +- private final List arguments; +- +- public TsDecorator(TsIdentifierReference identifierReference, List arguments) { +- this.identifierReference = Objects.requireNonNull(identifierReference); +- this.arguments = arguments; +- } +- +- public TsIdentifierReference getIdentifierReference() { +- return identifierReference; +- } +- +- public List getArguments() { +- return arguments; +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsEnumModel.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsEnumModel.java +index 59be71ec5..8e1a953b6 100644 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsEnumModel.java ++++ b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsEnumModel.java +@@ -1,49 +1,35 @@ + + package cz.habarta.typescript.generator.emitter; + ++import cz.habarta.typescript.generator.TsType; + import cz.habarta.typescript.generator.compiler.EnumKind; + import cz.habarta.typescript.generator.compiler.EnumMemberModel; +-import cz.habarta.typescript.generator.compiler.Symbol; + import cz.habarta.typescript.generator.parser.EnumModel; + import java.util.List; +-import java.util.Objects; + + +-public class TsEnumModel extends TsDeclarationModel { ++// T extends String | Number ++public class TsEnumModel extends TsDeclarationModel { ++ ++ private final EnumKind kind; ++ private final List> members; + +- private final EnumKind kind; +- private final List members; +- private final boolean isNonConstEnum; +- +- public TsEnumModel(Class origin, Symbol name, EnumKind kind, List members, List comments, boolean isNonConstEnum) { +- super(origin, null, name, comments); +- this.kind = Objects.requireNonNull(kind); +- this.members = Objects.requireNonNull(members); +- this.isNonConstEnum = isNonConstEnum; ++ public TsEnumModel(Class origin, TsType name, EnumKind kind, List> members, List comments) { ++ super(origin, name, comments); ++ this.kind = kind; ++ this.members = members; + } + +- public static TsEnumModel fromEnumModel(Symbol name, EnumModel enumModel, boolean isNonConstEnum) { +- return new TsEnumModel(enumModel.getOrigin(), name, enumModel.getKind(), enumModel.getMembers(), enumModel.getComments(), isNonConstEnum); ++ public static TsEnumModel fromEnumModel(TsType name, EnumModel enumModel) { ++ return new TsEnumModel<>(enumModel.getOrigin(), name, enumModel.getKind(), enumModel.getMembers(), enumModel.getComments()); + } + +- public EnumKind getKind() { ++ public EnumKind getKind() { + return kind; + } + +- public List getMembers() { ++ public List> getMembers() { + return members; + } + +- public boolean isNonConstEnum() { +- return isNonConstEnum; +- } +- +- public TsEnumModel withMembers(List members) { +- return new TsEnumModel(origin, name, kind, members, comments, isNonConstEnum); +- } +- +- public TsEnumModel withComments(List comments) { +- return new TsEnumModel(origin, name, kind, members, comments, isNonConstEnum); +- } +- + } +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsExpression.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsExpression.java +deleted file mode 100644 +index 1b4cffa2d..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsExpression.java ++++ /dev/null +@@ -1,12 +0,0 @@ +- +-package cz.habarta.typescript.generator.emitter; +- +-import cz.habarta.typescript.generator.Settings; +- +- +-public abstract class TsExpression implements Emittable { +- +- @Override +- public abstract String format(Settings settings); +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsExpressionStatement.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsExpressionStatement.java +deleted file mode 100644 +index 71982c523..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsExpressionStatement.java ++++ /dev/null +@@ -1,20 +0,0 @@ +- +-package cz.habarta.typescript.generator.emitter; +- +-import java.util.Objects; +- +- +-public class TsExpressionStatement extends TsStatement { +- +- private final TsExpression expression; +- +- public TsExpressionStatement(TsExpression expression) { +- Objects.requireNonNull(expression); +- this.expression = expression; +- } +- +- public TsExpression getExpression() { +- return expression; +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsHelper.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsHelper.java +deleted file mode 100644 +index 7ec504aab..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsHelper.java ++++ /dev/null +@@ -1,24 +0,0 @@ +- +-package cz.habarta.typescript.generator.emitter; +- +-import cz.habarta.typescript.generator.util.Utils; +-import java.util.List; +- +- +-public class TsHelper { +- +- private final List lines; +- +- public TsHelper(List lines) { +- this.lines = lines; +- } +- +- public static TsHelper loadFromResource(String resourceName) { +- return new TsHelper(Utils.readLines(TsHelper.class.getResourceAsStream(resourceName))); +- } +- +- public List getLines() { +- return lines; +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsIdentifierReference.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsIdentifierReference.java +deleted file mode 100644 +index 227154f8b..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsIdentifierReference.java ++++ /dev/null +@@ -1,26 +0,0 @@ +- +-package cz.habarta.typescript.generator.emitter; +- +-import cz.habarta.typescript.generator.Settings; +- +- +-public class TsIdentifierReference extends TsExpression { +- +- public static final TsIdentifierReference Undefined = new TsIdentifierReference("undefined"); +- +- private final String identifier; +- +- public TsIdentifierReference(String identifier) { +- this.identifier = identifier; +- } +- +- public String getIdentifier() { +- return identifier; +- } +- +- @Override +- public String format(Settings settings) { +- return identifier; +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsIfStatement.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsIfStatement.java +deleted file mode 100644 +index 62f81ae5d..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsIfStatement.java ++++ /dev/null +@@ -1,38 +0,0 @@ +- +-package cz.habarta.typescript.generator.emitter; +- +-import java.util.List; +-import java.util.Objects; +- +- +-public class TsIfStatement extends TsStatement { +- +- private final TsExpression expression; +- private final List thenStatements; +- private final List elseStatements; +- +- public TsIfStatement(TsExpression expression, List thenStatements) { +- this(expression, thenStatements, null); +- } +- +- public TsIfStatement(TsExpression expression, List thenStatements, List elseStatements) { +- Objects.requireNonNull(expression); +- Objects.requireNonNull(thenStatements); +- this.expression = expression; +- this.thenStatements = thenStatements; +- this.elseStatements = elseStatements; +- } +- +- public TsExpression getExpression() { +- return expression; +- } +- +- public List getThenStatements() { +- return thenStatements; +- } +- +- public List getElseStatements() { +- return elseStatements; +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsMemberExpression.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsMemberExpression.java +deleted file mode 100644 +index b74fb5c50..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsMemberExpression.java ++++ /dev/null +@@ -1,35 +0,0 @@ +- +-package cz.habarta.typescript.generator.emitter; +- +-import cz.habarta.typescript.generator.Settings; +-import cz.habarta.typescript.generator.compiler.ModelCompiler; +- +- +-public class TsMemberExpression extends TsExpression { +- +- private final TsExpression expression; +- private final String identifierName; +- +- public TsMemberExpression(TsExpression expression, String identifierName) { +- this.expression = expression; +- this.identifierName = identifierName; +- } +- +- public TsExpression getExpression() { +- return expression; +- } +- +- public String getIdentifierName() { +- return identifierName; +- } +- +- @Override +- public String format(Settings settings) { +- if (ModelCompiler.isValidIdentifierName(identifierName)) { +- return expression.format(settings) + "." + identifierName; +- } else { +- return expression.format(settings) + "[" + Emitter.quote(identifierName, settings) + "]"; +- } +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsMethodModel.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsMethodModel.java +deleted file mode 100644 +index c707bf7e0..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsMethodModel.java ++++ /dev/null +@@ -1,34 +0,0 @@ +- +-package cz.habarta.typescript.generator.emitter; +- +-import cz.habarta.typescript.generator.TsType; +-import cz.habarta.typescript.generator.util.Utils; +-import java.util.List; +- +- +-public class TsMethodModel extends TsCallableModel { +- +- protected final List decorators; +- +- public TsMethodModel(String name, TsModifierFlags modifiers, List typeParameters, List parameters, TsType returnType, List body, List comments) { +- this(name, null, modifiers, typeParameters, parameters, returnType, body, comments); +- } +- +- private TsMethodModel(String name, List decorators, TsModifierFlags modifiers, List typeParameters, List parameters, TsType returnType, List body, List comments) { +- super(name, modifiers, typeParameters, parameters, returnType, body, comments); +- this.decorators = Utils.listFromNullable(decorators); +- } +- +- public List getDecorators() { +- return decorators; +- } +- +- public TsMethodModel withDecorators(List decorators) { +- return new TsMethodModel(name, decorators, modifiers, typeParameters, parameters, returnType, body, comments); +- } +- +- public TsMethodModel withParameters(List parameters) { +- return new TsMethodModel(name, decorators, modifiers, typeParameters, parameters, returnType, body, comments); +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsModel.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsModel.java +index 0e372c8ca..700078149 100644 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsModel.java ++++ b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsModel.java +@@ -2,130 +2,61 @@ + package cz.habarta.typescript.generator.emitter; + + import cz.habarta.typescript.generator.compiler.EnumKind; +-import cz.habarta.typescript.generator.compiler.Symbol; +-import cz.habarta.typescript.generator.util.Utils; +-import java.util.ArrayList; +-import java.util.List; +-import java.util.Objects; ++import java.util.*; + + + public class TsModel { + + private final List beans; +- private final List enums; +- private final List originalStringEnums; ++ private final List> enums; + private final List typeAliases; +- private final List helpers; + + public TsModel() { +- this (new ArrayList(), new ArrayList(), new ArrayList(), new ArrayList(), new ArrayList()); ++ this (new ArrayList(), new ArrayList>(), new ArrayList()); + } + +- public TsModel(List beans, List enums, List originalStringEnums, List typeAliases, List helpers) { +- this.beans = Objects.requireNonNull(beans); +- this.enums = Objects.requireNonNull(enums); +- this.originalStringEnums = originalStringEnums; +- this.typeAliases = Objects.requireNonNull(typeAliases); +- this.helpers = helpers; ++ public TsModel(List beans, List> enums, List typeAliases) { ++ if (beans == null) throw new NullPointerException(); ++ if (enums == null) throw new NullPointerException(); ++ if (typeAliases == null) throw new NullPointerException(); ++ this.beans = beans; ++ this.enums = enums; ++ this.typeAliases = typeAliases; + } + + public List getBeans() { + return beans; + } + +- public TsBeanModel getBean(Class origin) { +- if (origin != null) { +- for (TsBeanModel bean : beans) { +- if (Objects.equals(bean.getOrigin(), origin)) { +- return bean; +- } +- } +- } +- return null; +- } +- +- public TsBeanModel getBean(Symbol name) { +- if (name != null) { +- for (TsBeanModel bean : beans) { +- if (Objects.equals(bean.getName(), name)) { +- return bean; +- } +- } +- } +- return null; +- } +- +- public TsModel withBeans(List beans) { +- return new TsModel(beans, enums, originalStringEnums, typeAliases, helpers); +- } +- +- public TsModel withoutBeans(List beans) { +- return new TsModel(Utils.removeAll(this.beans, beans), enums, originalStringEnums, typeAliases, helpers); ++ public TsModel setBeans(List beans) { ++ return new TsModel(beans, enums, typeAliases); + } + +- public List getEnums() { ++ public List> getEnums() { + return enums; + } + +- public List getEnums(EnumKind enumKind) { +- final List result = new ArrayList<>(); +- for (TsEnumModel enumModel : enums) { ++ @SuppressWarnings("unchecked") ++ public List> getEnums(EnumKind enumKind) { ++ final List> result = new ArrayList<>(); ++ for (TsEnumModel enumModel : enums) { + if (enumModel.getKind() == enumKind) { +- result.add(enumModel); ++ result.add((TsEnumModel) enumModel); + } + } + return result; + } + +- public TsModel withEnums(List enums) { +- return new TsModel(beans, enums, originalStringEnums, typeAliases, helpers); +- } +- +- public TsModel withAddedEnums(List enums) { +- return new TsModel(beans, Utils.concat(this.enums, enums), originalStringEnums, typeAliases, helpers); +- } +- +- public TsModel withRemovedEnums(List enums) { +- return new TsModel(beans, Utils.removeAll(this.enums, enums), originalStringEnums, typeAliases, helpers); +- } +- +- public List getOriginalStringEnums() { +- return originalStringEnums; +- } +- +- public TsModel withOriginalStringEnums(List originalStringEnums) { +- return new TsModel(beans, enums, originalStringEnums, typeAliases, helpers); ++ public TsModel setEnums(List> enums) { ++ return new TsModel(beans, enums, typeAliases); + } + + public List getTypeAliases() { + return typeAliases; + } + +- public TsAliasModel getTypeAlias(Class origin) { +- if (origin != null) { +- for (TsAliasModel alias : typeAliases) { +- if (Objects.equals(alias.getOrigin(), origin)) { +- return alias; +- } +- } +- } +- return null; +- } +- +- public TsModel withTypeAliases(List typeAliases) { +- return new TsModel(beans, enums, originalStringEnums, typeAliases, helpers); +- } +- +- public TsModel withAddedTypeAliases(List typeAliases) { +- return new TsModel(beans, enums, originalStringEnums, Utils.concat(this.typeAliases, typeAliases), helpers); +- } +- +- public TsModel withRemovedTypeAliases(List typeAliases) { +- return new TsModel(beans, enums, originalStringEnums, Utils.removeAll(this.typeAliases, typeAliases), helpers); +- } +- +- public List getHelpers() { +- return helpers; ++ public TsModel setTypeAliases(List typeAliases) { ++ return new TsModel(beans, enums, typeAliases); + } + + } +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsModifierFlags.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsModifierFlags.java +deleted file mode 100644 +index c7b3ce398..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsModifierFlags.java ++++ /dev/null +@@ -1,33 +0,0 @@ +- +-package cz.habarta.typescript.generator.emitter; +- +- +-public class TsModifierFlags { +- +- public static final TsModifierFlags None = new TsModifierFlags(false, false); +- +- public final boolean isStatic; +- public final boolean isReadonly; +- +- private TsModifierFlags(boolean isStatic, boolean isReadonly) { +- this.isStatic = isStatic; +- this.isReadonly = isReadonly; +- } +- +- public TsModifierFlags setStatic() { +- return new TsModifierFlags(true, isReadonly); +- } +- +- public TsModifierFlags setStatic(boolean isStatic) { +- return new TsModifierFlags(isStatic, isReadonly); +- } +- +- public TsModifierFlags setReadonly() { +- return new TsModifierFlags(isStatic, true); +- } +- +- public TsModifierFlags setReadonly(boolean isReadonly) { +- return new TsModifierFlags(isStatic, isReadonly); +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsNewExpression.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsNewExpression.java +deleted file mode 100644 +index 041850c02..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsNewExpression.java ++++ /dev/null +@@ -1,48 +0,0 @@ +- +-package cz.habarta.typescript.generator.emitter; +- +-import cz.habarta.typescript.generator.Settings; +-import cz.habarta.typescript.generator.TsType; +-import java.util.ArrayList; +-import java.util.Collections; +-import java.util.List; +- +- +-public class TsNewExpression extends TsExpression { +- +- private final TsExpression expression; +- private final List typeArguments; +- private final List arguments; +- +- public TsNewExpression(TsExpression expression, List arguments) { +- this(expression, null, arguments); +- } +- +- public TsNewExpression(TsExpression expression, List typeArguments, List arguments) { +- this.expression = expression; +- this.typeArguments = typeArguments != null ? new ArrayList(typeArguments) : Collections.emptyList(); +- this.arguments = arguments != null ? new ArrayList(arguments) : Collections.emptyList(); +- } +- +- public TsExpression getExpression() { +- return expression; +- } +- +- public List getTypeArguments() { +- return typeArguments; +- } +- +- public List getArguments() { +- return arguments; +- } +- +- @Override +- public String format(Settings settings) { +- return "new " +- + expression.format(settings) +- + (typeArguments.isEmpty() ? "" : "<" + Emitter.formatList(settings, typeArguments) + ">") +- + "(" + Emitter.formatList(settings, arguments) +- + ")"; +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsNumberLiteral.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsNumberLiteral.java +deleted file mode 100644 +index f8b5ac5fb..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsNumberLiteral.java ++++ /dev/null +@@ -1,24 +0,0 @@ +- +-package cz.habarta.typescript.generator.emitter; +- +-import cz.habarta.typescript.generator.Settings; +- +- +-public class TsNumberLiteral extends TsExpression { +- +- private final Number literal; +- +- public TsNumberLiteral(Number literal) { +- this.literal = literal; +- } +- +- public Number getLiteral() { +- return literal; +- } +- +- @Override +- public String format(Settings settings) { +- return literal.toString(); +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsObjectLiteral.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsObjectLiteral.java +deleted file mode 100644 +index a86aad14f..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsObjectLiteral.java ++++ /dev/null +@@ -1,40 +0,0 @@ +- +-package cz.habarta.typescript.generator.emitter; +- +-import cz.habarta.typescript.generator.Settings; +-import cz.habarta.typescript.generator.util.Utils; +-import java.util.ArrayList; +-import java.util.Arrays; +-import java.util.List; +- +- +-public class TsObjectLiteral extends TsExpression { +- +- private final List propertyDefinitions; +- +- public TsObjectLiteral(TsPropertyDefinition... propertyDefinitions) { +- this(Utils.removeNulls(Arrays.asList(propertyDefinitions))); +- } +- +- public TsObjectLiteral(List propertyDefinitions) { +- this.propertyDefinitions = propertyDefinitions; +- } +- +- public List getPropertyDefinitions() { +- return propertyDefinitions; +- } +- +- @Override +- public String format(Settings settings) { +- final List props = new ArrayList<>(); +- for (TsPropertyDefinition property : propertyDefinitions) { +- props.add(property.format(settings)); +- } +- if (props.isEmpty()) { +- return "{}"; +- } else { +- return "{ " + String.join(", ", props) + " }"; +- } +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsParameterModel.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsParameterModel.java +deleted file mode 100644 +index 63d332e22..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsParameterModel.java ++++ /dev/null +@@ -1,45 +0,0 @@ +- +-package cz.habarta.typescript.generator.emitter; +- +-import cz.habarta.typescript.generator.TsParameter; +-import cz.habarta.typescript.generator.TsType; +-import cz.habarta.typescript.generator.util.Utils; +-import java.util.List; +- +- +-public class TsParameterModel extends TsParameter { +- +- protected final List decorators; +- private final TsAccessibilityModifier accessibilityModifier; +- +- public TsParameterModel(String name, TsType tsType) { +- this(null, name, tsType); +- } +- +- public TsParameterModel(TsAccessibilityModifier accessibilityModifier, String name, TsType tsType) { +- this(null, accessibilityModifier, name, tsType); +- } +- +- private TsParameterModel(List decorators, TsAccessibilityModifier accessibilityModifier, String name, TsType tsType) { +- super(name, tsType); +- this.decorators = Utils.listFromNullable(decorators); +- this.accessibilityModifier = accessibilityModifier; +- } +- +- public List getDecorators() { +- return decorators; +- } +- +- public TsAccessibilityModifier getAccessibilityModifier() { +- return accessibilityModifier; +- } +- +- public TsParameterModel withTsType(TsType tsType) { +- return new TsParameterModel(decorators, accessibilityModifier, name, tsType); +- } +- +- public TsParameterModel withDecorators(List decorators) { +- return new TsParameterModel(decorators, accessibilityModifier, name, tsType); +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsPrefixUnaryExpression.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsPrefixUnaryExpression.java +deleted file mode 100644 +index 9d3874b1e..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsPrefixUnaryExpression.java ++++ /dev/null +@@ -1,30 +0,0 @@ +- +-package cz.habarta.typescript.generator.emitter; +- +-import cz.habarta.typescript.generator.Settings; +- +- +-public class TsPrefixUnaryExpression extends TsExpression { +- +- private final TsUnaryOperator operator; +- private final TsExpression operand; +- +- public TsPrefixUnaryExpression(TsUnaryOperator operator, TsExpression operand) { +- this.operator = operator; +- this.operand = operand; +- } +- +- public TsUnaryOperator getOperator() { +- return operator; +- } +- +- public TsExpression getOperand() { +- return operand; +- } +- +- @Override +- public String format(Settings settings) { +- return operator.format(settings) + operand.format(settings); +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsPropertyDefinition.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsPropertyDefinition.java +deleted file mode 100644 +index f0f95bf29..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsPropertyDefinition.java ++++ /dev/null +@@ -1,29 +0,0 @@ +- +-package cz.habarta.typescript.generator.emitter; +- +-import cz.habarta.typescript.generator.Settings; +- +- +-public class TsPropertyDefinition { +- +- private final String propertyName; +- private final TsExpression expression; +- +- public TsPropertyDefinition(String propertyName, TsExpression expression) { +- this.propertyName = propertyName; +- this.expression = expression; +- } +- +- public String getPropertyName() { +- return propertyName; +- } +- +- public TsExpression getExpression() { +- return expression; +- } +- +- public String format(Settings settings) { +- return Emitter.quoteIfNeeded(propertyName, settings) + ": " + expression.format(settings); +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsPropertyModel.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsPropertyModel.java +index 98bf662cb..c959c6d7c 100644 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsPropertyModel.java ++++ b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsPropertyModel.java +@@ -1,73 +1,46 @@ + + package cz.habarta.typescript.generator.emitter; + +-import cz.habarta.typescript.generator.TsProperty; + import cz.habarta.typescript.generator.TsType; +-import cz.habarta.typescript.generator.util.Utils; + import java.util.List; + + +-public class TsPropertyModel extends TsProperty implements Comparable { ++public class TsPropertyModel implements Comparable { + +- public final List decorators; +- public final TsModifierFlags modifiers; +- public final boolean ownProperty; // property exists directly on the bean, should not be inherited +- public final TsExpression defaultValue; +- public final List comments; ++ private final String name; ++ private final TsType tsType; ++ private final List comments; + +- public TsPropertyModel(String name, TsType tsType, TsModifierFlags modifiers, boolean ownProperty, List comments) { +- this(name, tsType, /*decorators*/ null, modifiers, ownProperty, /*defaultValue*/ null, comments); +- } +- +- public TsPropertyModel(String name, TsType tsType, List decorators, TsModifierFlags modifiers, boolean ownProperty, TsExpression defaultValue, List comments) { +- super(name, tsType); +- this.decorators = Utils.listFromNullable(decorators); +- this.modifiers = modifiers != null ? modifiers : TsModifierFlags.None; ++ public TsPropertyModel(String name, TsType tsType, List comments) { ++ this.name = name; ++ this.tsType = tsType; + this.comments = comments; +- this.defaultValue = defaultValue; +- this.ownProperty = ownProperty; +- } +- +- public List getDecorators() { +- return decorators; +- } +- +- public TsPropertyModel withDecorators(List decorators) { +- return new TsPropertyModel(getName(), tsType, decorators, modifiers, ownProperty, defaultValue, getComments()); +- } +- +- public TsModifierFlags getModifiers() { +- return modifiers; + } + +- public boolean isOwnProperty() { +- return ownProperty; ++ public String getName() { ++ return name; + } + +- public TsExpression getDefaultValue() { +- return defaultValue; ++ public TsType getTsType() { ++ return tsType; + } + +- public TsPropertyModel withDefaultValue(TsExpression defaultValue) { +- return new TsPropertyModel(name, tsType, decorators, modifiers, ownProperty, defaultValue, comments); ++ public TsPropertyModel setTsType(TsType type) { ++ return new TsPropertyModel(name, type, comments); + } + + public List getComments() { + return comments; + } + +- public TsPropertyModel withTsType(TsType tsType) { +- return new TsPropertyModel(name, tsType, decorators, modifiers, ownProperty, defaultValue, comments); +- } +- + @Override +- public int compareTo(TsProperty o) { +- return name.compareTo(o.getName()); ++ public String toString() { ++ return "TsPropertyModel{" + "name=" + name + ", tsType=" + tsType + '}'; + } + + @Override +- public String toString() { +- return "TsPropertyModel{" + "name=" + name + ", tsType=" + tsType + '}'; ++ public int compareTo(TsPropertyModel o) { ++ return name.compareTo(o.getName()); + } + + } +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsReturnStatement.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsReturnStatement.java +deleted file mode 100644 +index 30a4863d2..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsReturnStatement.java ++++ /dev/null +@@ -1,21 +0,0 @@ +- +-package cz.habarta.typescript.generator.emitter; +- +- +-public class TsReturnStatement extends TsStatement { +- +- private final TsExpression expression; +- +- public TsReturnStatement() { +- this(null); +- } +- +- public TsReturnStatement(TsExpression expression) { +- this.expression = expression; +- } +- +- public TsExpression getExpression() { +- return expression; +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsStatement.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsStatement.java +deleted file mode 100644 +index a345f758d..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsStatement.java ++++ /dev/null +@@ -1,6 +0,0 @@ +- +-package cz.habarta.typescript.generator.emitter; +- +- +-public abstract class TsStatement { +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsStringLiteral.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsStringLiteral.java +deleted file mode 100644 +index 3a76886d4..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsStringLiteral.java ++++ /dev/null +@@ -1,24 +0,0 @@ +- +-package cz.habarta.typescript.generator.emitter; +- +-import cz.habarta.typescript.generator.Settings; +- +- +-public class TsStringLiteral extends TsExpression { +- +- private final String literal; +- +- public TsStringLiteral(String literal) { +- this.literal = literal; +- } +- +- public String getLiteral() { +- return literal; +- } +- +- @Override +- public String format(Settings settings) { +- return Emitter.quote(literal, settings); +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsSuperExpression.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsSuperExpression.java +deleted file mode 100644 +index 37aa56c8c..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsSuperExpression.java ++++ /dev/null +@@ -1,14 +0,0 @@ +- +-package cz.habarta.typescript.generator.emitter; +- +-import cz.habarta.typescript.generator.Settings; +- +- +-public class TsSuperExpression extends TsExpression { +- +- @Override +- public String format(Settings settings) { +- return "super"; +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsSwitchCaseClause.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsSwitchCaseClause.java +deleted file mode 100644 +index e893875a6..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsSwitchCaseClause.java ++++ /dev/null +@@ -1,25 +0,0 @@ +- +-package cz.habarta.typescript.generator.emitter; +- +-import java.util.List; +- +- +-public class TsSwitchCaseClause extends TsStatement { +- +- private final TsExpression expression; +- private final List statements; +- +- public TsSwitchCaseClause(TsExpression expression, List statements) { +- this.expression = expression; +- this.statements = statements; +- } +- +- public TsExpression getExpression() { +- return expression; +- } +- +- public List getStatements() { +- return statements; +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsSwitchStatement.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsSwitchStatement.java +deleted file mode 100644 +index d71e15196..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsSwitchStatement.java ++++ /dev/null +@@ -1,32 +0,0 @@ +- +-package cz.habarta.typescript.generator.emitter; +- +-import cz.habarta.typescript.generator.util.Utils; +-import java.util.List; +- +- +-public class TsSwitchStatement extends TsStatement { +- +- private final TsExpression expression; +- private final List caseClauses; +- private final List defaultClause; +- +- public TsSwitchStatement(TsExpression expression, List caseClauses, List defaultClause) { +- this.expression = expression; +- this.caseClauses = Utils.listFromNullable(caseClauses); +- this.defaultClause = defaultClause; +- } +- +- public TsExpression getExpression() { +- return expression; +- } +- +- public List getCaseClauses() { +- return caseClauses; +- } +- +- public List getDefaultClause() { +- return defaultClause; +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsTaggedTemplateLiteral.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsTaggedTemplateLiteral.java +deleted file mode 100644 +index 1d9078ed2..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsTaggedTemplateLiteral.java ++++ /dev/null +@@ -1,26 +0,0 @@ +- +-package cz.habarta.typescript.generator.emitter; +- +-import cz.habarta.typescript.generator.Settings; +-import java.util.List; +- +- +-public class TsTaggedTemplateLiteral extends TsTemplateLiteral { +- +- private final TsExpression tagFunction; +- +- public TsTaggedTemplateLiteral(TsExpression tagFunction, List spans) { +- super(spans); +- this.tagFunction = tagFunction; +- } +- +- public TsExpression getTagFunction() { +- return tagFunction; +- } +- +- @Override +- public String format(Settings settings) { +- return tagFunction.format(settings) + super.format(settings); +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsTemplateLiteral.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsTemplateLiteral.java +deleted file mode 100644 +index 4ee7f65b5..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsTemplateLiteral.java ++++ /dev/null +@@ -1,38 +0,0 @@ +- +-package cz.habarta.typescript.generator.emitter; +- +-import cz.habarta.typescript.generator.Settings; +-import java.util.List; +- +- +-public class TsTemplateLiteral extends TsExpression { +- +- private final List spans; +- +- public TsTemplateLiteral(List spans) { +- this.spans = spans; +- } +- +- public List getSpans() { +- return spans; +- } +- +- @Override +- public String format(Settings settings) { +- final StringBuilder sb = new StringBuilder(); +- sb.append("`"); +- for (TsExpression span : spans) { +- if (span instanceof TsStringLiteral) { +- final TsStringLiteral literal = (TsStringLiteral) span; +- sb.append(literal.getLiteral()); +- } else { +- sb.append("${"); +- sb.append(span.format(settings)); +- sb.append("}"); +- } +- } +- sb.append("`"); +- return sb.toString(); +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsThisExpression.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsThisExpression.java +deleted file mode 100644 +index 65ed9a564..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsThisExpression.java ++++ /dev/null +@@ -1,14 +0,0 @@ +- +-package cz.habarta.typescript.generator.emitter; +- +-import cz.habarta.typescript.generator.Settings; +- +- +-public class TsThisExpression extends TsExpression { +- +- @Override +- public String format(Settings settings) { +- return "this"; +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsTypeReferenceExpression.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsTypeReferenceExpression.java +deleted file mode 100644 +index e9b3a3122..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsTypeReferenceExpression.java ++++ /dev/null +@@ -1,25 +0,0 @@ +- +-package cz.habarta.typescript.generator.emitter; +- +-import cz.habarta.typescript.generator.Settings; +-import cz.habarta.typescript.generator.TsType; +- +- +-public class TsTypeReferenceExpression extends TsExpression { +- +- private final TsType.ReferenceType type; +- +- public TsTypeReferenceExpression(TsType.ReferenceType type) { +- this.type = type; +- } +- +- public TsType.ReferenceType getType() { +- return type; +- } +- +- @Override +- public String format(Settings settings) { +- return type.format(settings); +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsUnaryOperator.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsUnaryOperator.java +deleted file mode 100644 +index 4c94546af..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsUnaryOperator.java ++++ /dev/null +@@ -1,22 +0,0 @@ +- +-package cz.habarta.typescript.generator.emitter; +- +-import cz.habarta.typescript.generator.Settings; +- +- +-public enum TsUnaryOperator implements Emittable { +- +- Exclamation("!"); +- +- private final String formatted; +- +- private TsUnaryOperator(String formatted) { +- this.formatted = formatted; +- } +- +- @Override +- public String format(Settings settings) { +- return formatted; +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsVariableDeclarationStatement.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsVariableDeclarationStatement.java +deleted file mode 100644 +index 101252f16..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/TsVariableDeclarationStatement.java ++++ /dev/null +@@ -1,39 +0,0 @@ +- +-package cz.habarta.typescript.generator.emitter; +- +-import cz.habarta.typescript.generator.TsType; +-import java.util.Objects; +- +- +-public class TsVariableDeclarationStatement extends TsStatement { +- +- private final boolean isConst; +- private final String name; +- private final TsType type; +- private final TsExpression initializer; +- +- public TsVariableDeclarationStatement(boolean isConst, String name, TsType type, TsExpression initializer) { +- Objects.requireNonNull(name); +- this.isConst = isConst; +- this.name = name; +- this.type = type; +- this.initializer = initializer; +- } +- +- public boolean isConst() { +- return isConst; +- } +- +- public String getName() { +- return name; +- } +- +- public TsType getType() { +- return type; +- } +- +- public TsExpression getInitializer() { +- return initializer; +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/ext/AxiosClientExtension.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/ext/AxiosClientExtension.java +deleted file mode 100644 +index 682b2f982..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/ext/AxiosClientExtension.java ++++ /dev/null +@@ -1,70 +0,0 @@ +- +-package cz.habarta.typescript.generator.ext; +- +-import cz.habarta.typescript.generator.Extension; +-import cz.habarta.typescript.generator.Settings; +-import cz.habarta.typescript.generator.emitter.Emitter; +-import cz.habarta.typescript.generator.emitter.EmitterExtensionFeatures; +-import cz.habarta.typescript.generator.emitter.TsBeanModel; +-import cz.habarta.typescript.generator.emitter.TsModel; +-import cz.habarta.typescript.generator.util.Utils; +-import java.util.Collections; +-import java.util.LinkedHashMap; +-import java.util.List; +-import java.util.Map; +- +-public class AxiosClientExtension extends Extension { +- +- public static final String CFG_AXIOS_VERSION = "axiosVersion"; +- +- private String axiosVersion = "0.21.1"; +- +- @Override +- public void setConfiguration(Map configuration) throws RuntimeException { +- if (configuration.containsKey(CFG_AXIOS_VERSION)) { +- this.axiosVersion = configuration.get(CFG_AXIOS_VERSION); +- } +- } +- +- @Override +- public EmitterExtensionFeatures getFeatures() { +- final EmitterExtensionFeatures features = new EmitterExtensionFeatures(); +- features.generatesRuntimeCode = true; +- features.generatesModuleCode = true; +- features.worksWithPackagesMappedToNamespaces = true; +- features.generatesJaxrsApplicationClient = true; +- features.restResponseType = "Promise>"; +- features.restOptionsType = ""; +- features.npmPackageDependencies = Collections.singletonMap("axios", axiosVersion); +- return features; +- } +- +- @Override +- public void emitElements(Writer writer, Settings settings, boolean exportKeyword, TsModel model) { +- emitSharedPart(writer, settings); +- for (TsBeanModel bean : model.getBeans()) { +- if (bean.isJaxrsApplicationClientBean()) { +- final String clientName = bean.getName().getSimpleName(); +- final String clientFullName = settings.mapPackagesToNamespaces ? bean.getName().getFullName(): bean.getName().getSimpleName(); +- emitClient(writer, settings, exportKeyword, clientName, clientFullName); +- } +- } +- } +- +- private void emitSharedPart(Writer writer, Settings settings) { +- final List template = Utils.readLines(getClass().getResourceAsStream("AxiosClientExtension-shared.template.ts")); +- Emitter.writeTemplate(writer, settings, template, null); +- } +- +- private void emitClient(Writer writer, Settings settings, boolean exportKeyword, String clientName, String clientFullName) { +- final List template = Utils.readLines(getClass().getResourceAsStream("AxiosClientExtension-client.template.ts")); +- final Map replacements = new LinkedHashMap<>(); +- replacements.put("\"", settings.quotes); +- replacements.put("/*export*/ ", exportKeyword ? "export " : ""); +- replacements.put("$$RestApplicationClient$$", clientName); +- replacements.put("$$RestApplicationClientFullName$$", clientFullName); +- replacements.put("$$AxiosRestApplicationClient$$", "Axios" + clientName); +- Emitter.writeTemplate(writer, settings, template, replacements); +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/ext/BeanPropertyPathExtension.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/ext/BeanPropertyPathExtension.java +index 728e9a1bc..33e872476 100644 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/ext/BeanPropertyPathExtension.java ++++ b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/ext/BeanPropertyPathExtension.java +@@ -1,17 +1,17 @@ + package cz.habarta.typescript.generator.ext; + ++import java.util.*; + import cz.habarta.typescript.generator.Settings; + import cz.habarta.typescript.generator.TsType; ++import cz.habarta.typescript.generator.TsType.GenericReferenceType; ++import cz.habarta.typescript.generator.compiler.EnumKind; ++import cz.habarta.typescript.generator.compiler.EnumMemberModel; + import cz.habarta.typescript.generator.emitter.EmitterExtension; + import cz.habarta.typescript.generator.emitter.EmitterExtensionFeatures; + import cz.habarta.typescript.generator.emitter.TsBeanModel; ++import cz.habarta.typescript.generator.emitter.TsEnumModel; + import cz.habarta.typescript.generator.emitter.TsModel; + import cz.habarta.typescript.generator.emitter.TsPropertyModel; +-import java.util.ArrayList; +-import java.util.Arrays; +-import java.util.HashSet; +-import java.util.List; +-import java.util.Set; + + /** + * Emitter which generates type-safe property path getters. +@@ -50,18 +50,18 @@ public class BeanPropertyPathExtension extends EmitterExtension { + + private static void emitFieldsClass(Writer writer, Settings settings) { + List fieldsClassLines = Arrays.asList( +- "export class Fields {", +- " protected $$parent: Fields | undefined;", +- " protected $$name: string;", ++ "class Fields {", ++ " protected parent: Fields | undefined;", ++ " protected name: string | undefined;", + " constructor(parent?: Fields, name?: string) {", +- " this.$$parent = parent;", +- " this.$$name = name || '';", ++ " this.parent = parent;", ++ " this.name = name;", + " };", +- " get(): string {", +- " if (this.$$parent && this.$$parent.get().length > 0) {", +- " return this.$$parent.get() + \".\" + this.$$name;", ++ " get(): string | undefined {", ++ " if (this.parent && this.parent.get()) {", ++ " return this.name ? this.parent.get() + \".\" + this.name : this.parent.get();", + " } else {", +- " return this.$$name;", ++ " return this.name;", + " }", + " }", + "}"); +@@ -101,65 +101,24 @@ public class BeanPropertyPathExtension extends EmitterExtension { + return emittedBeans; + } + +- /** +- * is this type an 'original' TS type, or a contextual information? +- * null, undefined and optional info are not original types, everything +- * else is original +- */ +- private static boolean isOriginalTsType(TsType type) { +- if (type instanceof TsType.BasicType) { +- TsType.BasicType basicType = (TsType.BasicType)type; +- return !(basicType.name.equals("null") || basicType.name.equals("undefined")); +- } +- return true; +- } +- +- /** +- * If the type is optional of number|null|undefined, or list of +- * of integer, we want to be able to recognize it as number +- * to link the member to another class. +- * => extract the original type while ignoring the |null|undefined +- * and optional informations. +- */ +- private static TsType extractOriginalTsType(TsType type) { +- if (type instanceof TsType.OptionalType) { +- return extractOriginalTsType(((TsType.OptionalType)type).type); +- } +- if (type instanceof TsType.UnionType) { +- TsType.UnionType union = (TsType.UnionType)type; +- List originalTypes = new ArrayList<>(); +- for (TsType curType : union.types) { +- if (isOriginalTsType(curType)) { +- originalTypes.add(curType); +- } +- } +- return originalTypes.size() == 1 +- ? extractOriginalTsType(originalTypes.get(0)) +- : type; +- } +- if (type instanceof TsType.BasicArrayType) { +- return extractOriginalTsType(((TsType.BasicArrayType)type).elementType); +- } +- return type; +- } +- + private static TsBeanModel getBeanModelByType(TsModel model, TsType type) { +- TsType originalType = extractOriginalTsType(type); +- if (!(originalType instanceof TsType.ReferenceType)) { +- return null; +- } +- TsType.ReferenceType originalTypeBean = (TsType.ReferenceType)originalType; +- + for (TsBeanModel curBean : model.getBeans()) { +- if (curBean.getName().equals(originalTypeBean.symbol)) { ++ if (curBean.getName().equals(type)) { + return curBean; + } + } + return null; + } + ++ /** ++ * return a class name formatted for rendering in code ++ * as part of another class name (so, for generics, strip ++ * the type arguments) ++ */ + private static String getBeanModelClassName(TsBeanModel bean) { +- return bean.getName().getSimpleName(); ++ return bean.getName() instanceof GenericReferenceType ++ ? ((GenericReferenceType)bean.getName()).symbol.toString() ++ : bean.getName().toString(); + } + + private static void writeBeanProperty( +@@ -167,10 +126,6 @@ public class BeanPropertyPathExtension extends EmitterExtension { + TsPropertyModel property) { + TsBeanModel fieldBeanModel = getBeanModelByType(model, property.getTsType()); + String fieldClassName = fieldBeanModel != null ? getBeanModelClassName(fieldBeanModel) : ""; +- // if a class has a field of its own type, we get stackoverflow exception +- if (fieldClassName.equals(bean.getName().getSimpleName())) { +- fieldClassName = ""; +- } + writer.writeIndentedLine( + settings.indentString + property.getName() + " = new " + fieldClassName + "Fields(this, \"" + property.getName() + "\");"); + } +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/ext/ClassEnumExtension.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/ext/ClassEnumExtension.java +deleted file mode 100644 +index 89ef4cbec..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/ext/ClassEnumExtension.java ++++ /dev/null +@@ -1,75 +0,0 @@ +- +-package cz.habarta.typescript.generator.ext; +- +-import cz.habarta.typescript.generator.Extension; +-import cz.habarta.typescript.generator.compiler.EnumKind; +-import cz.habarta.typescript.generator.compiler.EnumMemberModel; +-import cz.habarta.typescript.generator.compiler.ModelCompiler; +-import cz.habarta.typescript.generator.compiler.TsModelTransformer; +-import cz.habarta.typescript.generator.emitter.EmitterExtensionFeatures; +-import cz.habarta.typescript.generator.emitter.TsBeanModel; +-import cz.habarta.typescript.generator.emitter.TsEnumModel; +-import cz.habarta.typescript.generator.emitter.TsModel; +-import java.lang.reflect.Field; +-import java.util.ArrayList; +-import java.util.Arrays; +-import java.util.List; +-import java.util.Map; +- +- +-public class ClassEnumExtension extends Extension { +- +- public static final String CFG_CLASS_ENUM_PATTERN = "classEnumPattern"; +- +- private String classEnumPattern = "ClassEnum"; +- +- @Override +- public EmitterExtensionFeatures getFeatures() { +- return new EmitterExtensionFeatures(); +- } +- +- @Override +- public void setConfiguration(Map configuration) throws RuntimeException { +- if (configuration.containsKey(CFG_CLASS_ENUM_PATTERN)) { +- classEnumPattern = configuration.get(CFG_CLASS_ENUM_PATTERN); +- } +- } +- +- @Override +- public List getTransformers() { +- return Arrays.asList(new TransformerDefinition(ModelCompiler.TransformationPhase.BeforeEnums, new TsModelTransformer() { +- @Override +- public TsModel transformModel(Context context, TsModel model) { +- List beans = model.getBeans(); +- List classEnums = new ArrayList<>(); +- for (TsBeanModel bean : beans) { +- if (bean.getName().getSimpleName().contains(classEnumPattern)) { +- classEnums.add(bean); +- } +- } +- +- List stringEnums = new ArrayList<>(); +- for (TsBeanModel tsBeanModel : classEnums) { +- List members = new ArrayList<>(); +- for (Field declaredField : tsBeanModel.getOrigin().getDeclaredFields()) { +- if (declaredField.getType().getName().equals(tsBeanModel.getOrigin().getName())) { +- members.add(new EnumMemberModel(declaredField.getName(), declaredField.getName(), declaredField, null)); +- } +- } +- TsEnumModel temp = new TsEnumModel( +- tsBeanModel.getOrigin(), +- tsBeanModel.getName(), +- EnumKind.StringBased, +- members, +- null, +- false +- ); +- stringEnums.add(temp); +- } +- +- stringEnums.addAll(model.getEnums()); +- return model.withEnums(stringEnums).withoutBeans(classEnums); +- } +- })); +- } +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/ext/DefaultsFromInstanceExtension.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/ext/DefaultsFromInstanceExtension.java +deleted file mode 100644 +index 40e93c7f1..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/ext/DefaultsFromInstanceExtension.java ++++ /dev/null +@@ -1,120 +0,0 @@ +- +-package cz.habarta.typescript.generator.ext; +- +-import cz.habarta.typescript.generator.Extension; +-import cz.habarta.typescript.generator.TypeScriptGenerator; +-import cz.habarta.typescript.generator.compiler.ModelCompiler; +-import cz.habarta.typescript.generator.compiler.TsModelTransformer; +-import cz.habarta.typescript.generator.emitter.EmitterExtensionFeatures; +-import cz.habarta.typescript.generator.emitter.TsBeanModel; +-import cz.habarta.typescript.generator.emitter.TsModel; +-import cz.habarta.typescript.generator.emitter.TsNumberLiteral; +-import cz.habarta.typescript.generator.emitter.TsPropertyModel; +-import cz.habarta.typescript.generator.emitter.TsStringLiteral; +-import cz.habarta.typescript.generator.parser.BeanModel; +-import cz.habarta.typescript.generator.parser.PropertyModel; +-import java.lang.reflect.Constructor; +-import java.lang.reflect.Field; +-import java.lang.reflect.Member; +-import java.lang.reflect.Method; +-import java.util.Arrays; +-import java.util.List; +-import java.util.stream.Collectors; +- +- +-/** +- * This is an example extension that generates default values of properties in a class, +- * it gets those values from class instance (object) created using default (parameter-less) constructor. +- */ +-public class DefaultsFromInstanceExtension extends Extension { +- +- @Override +- public EmitterExtensionFeatures getFeatures() { +- final EmitterExtensionFeatures features = new EmitterExtensionFeatures(); +- features.generatesRuntimeCode = true; +- features.worksWithPackagesMappedToNamespaces = true; +- return features; +- } +- +- @Override +- public List getTransformers() { +- return Arrays.asList(new TransformerDefinition(ModelCompiler.TransformationPhase.BeforeEnums, this::transformModel)); +- } +- +- protected TsModel transformModel(TsModelTransformer.Context context, TsModel model) { +- final List beans = model.getBeans().stream() +- .map(bean -> transformBean(context, bean)) +- .collect(Collectors.toList()); +- return model.withBeans(beans); +- } +- +- protected TsBeanModel transformBean(TsModelTransformer.Context context, TsBeanModel tsBean) { +- if (!tsBean.isClass()) { +- return tsBean; +- } +- final BeanModel bean = context.getBeanModelOrigin(tsBean); +- if (bean == null) { +- return tsBean; +- } +- final Class originClass = bean.getOrigin(); +- if (originClass == null) { +- return tsBean; +- } +- try { +- final Constructor constructor = originClass.getConstructor(); +- final Object instance = constructor.newInstance(); +- final List properties = tsBean.getProperties().stream() +- .map(tsProperty -> withDefaultValue(bean, instance, tsProperty)) +- .collect(Collectors.toList()); +- return tsBean.withProperties(properties); +- } catch (Exception e) { +- TypeScriptGenerator.getLogger().verbose(String.format( +- "Cannot create instance of class '%s' to get default values: %s", +- originClass.getName(), e.getMessage())); +- return tsBean; +- } +- } +- +- protected TsPropertyModel withDefaultValue(BeanModel bean, Object instance, TsPropertyModel tsProperty) { +- final Object defaultValue = getDefaultValue(bean, instance, tsProperty.getName()); +- if (defaultValue instanceof String) { +- return tsProperty.withDefaultValue(new TsStringLiteral((String) defaultValue)); +- } else if (defaultValue instanceof Number) { +- return tsProperty.withDefaultValue(new TsNumberLiteral((Number) defaultValue)); +- } else { +- return tsProperty; +- } +- } +- +- protected Object getDefaultValue(BeanModel bean, Object instance, String propertyName) { +- final PropertyModel property = bean.getProperty(propertyName); +- if (property == null) { +- return null; +- } +- final Member member = property.getOriginalMember(); +- if (member == null) { +- return null; +- } +- try { +- if (member instanceof Field) { +- final Field field = (Field) member; +- field.setAccessible(true); +- final Object value = field.get(instance); +- return value; +- } +- if (member instanceof Method) { +- final Method method = (Method) member; +- method.setAccessible(true); +- final Object value = method.invoke(instance); +- return value; +- } +- return null; +- } catch (ReflectiveOperationException e) { +- TypeScriptGenerator.getLogger().verbose(String.format( +- "Cannot get default value of property '%s' of class '%s': %s", +- propertyName, bean.getOrigin().getName(), e.getMessage())); +- return null; +- } +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/ext/EnumConstantsExtension.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/ext/EnumConstantsExtension.java +new file mode 100644 +index 000000000..9541fa633 +--- /dev/null ++++ b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/ext/EnumConstantsExtension.java +@@ -0,0 +1,39 @@ ++ ++package cz.habarta.typescript.generator.ext; ++ ++import cz.habarta.typescript.generator.Settings; ++import cz.habarta.typescript.generator.compiler.EnumKind; ++import cz.habarta.typescript.generator.compiler.EnumMemberModel; ++import cz.habarta.typescript.generator.emitter.EmitterExtension; ++import cz.habarta.typescript.generator.emitter.EmitterExtensionFeatures; ++import cz.habarta.typescript.generator.emitter.TsEnumModel; ++import cz.habarta.typescript.generator.emitter.TsModel; ++import java.util.Collections; ++import java.util.List; ++ ++ ++public class EnumConstantsExtension extends EmitterExtension { ++ ++ @Override ++ public EmitterExtensionFeatures getFeatures() { ++ final EmitterExtensionFeatures features = new EmitterExtensionFeatures(); ++ features.generatesRuntimeCode = true; ++ return features; ++ } ++ ++ @Override ++ public void emitElements(Writer writer, Settings settings, boolean exportKeyword, TsModel model) { ++ String exportString = exportKeyword ? "export " : ""; ++ List> enums = model.getEnums(EnumKind.StringBased); ++ Collections.sort(enums); ++ for (TsEnumModel tsEnum : enums) { ++ writer.writeIndentedLine(""); ++ writer.writeIndentedLine(exportString + "const " + tsEnum.getName() + " = {"); ++ for (EnumMemberModel member : tsEnum.getMembers()) { ++ writer.writeIndentedLine(settings.indentString + member.getPropertyName() + ": " + "<" + tsEnum.getName() + ">\"" + member.getEnumValue() + "\","); ++ } ++ writer.writeIndentedLine("}"); ++ } ++ } ++ ++} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/ext/JsonDeserializationExtension.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/ext/JsonDeserializationExtension.java +deleted file mode 100644 +index c15743b94..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/ext/JsonDeserializationExtension.java ++++ /dev/null +@@ -1,402 +0,0 @@ +- +-package cz.habarta.typescript.generator.ext; +- +-import cz.habarta.typescript.generator.Extension; +-import cz.habarta.typescript.generator.TsParameter; +-import cz.habarta.typescript.generator.TsType; +-import cz.habarta.typescript.generator.compiler.ModelCompiler; +-import cz.habarta.typescript.generator.compiler.Symbol; +-import cz.habarta.typescript.generator.compiler.SymbolTable; +-import cz.habarta.typescript.generator.compiler.TsModelTransformer; +-import cz.habarta.typescript.generator.emitter.EmitterExtensionFeatures; +-import cz.habarta.typescript.generator.emitter.TsArrowFunction; +-import cz.habarta.typescript.generator.emitter.TsAssignmentExpression; +-import cz.habarta.typescript.generator.emitter.TsBeanModel; +-import cz.habarta.typescript.generator.emitter.TsBinaryExpression; +-import cz.habarta.typescript.generator.emitter.TsBinaryOperator; +-import cz.habarta.typescript.generator.emitter.TsCallExpression; +-import cz.habarta.typescript.generator.emitter.TsConstructorModel; +-import cz.habarta.typescript.generator.emitter.TsExpression; +-import cz.habarta.typescript.generator.emitter.TsExpressionStatement; +-import cz.habarta.typescript.generator.emitter.TsHelper; +-import cz.habarta.typescript.generator.emitter.TsIdentifierReference; +-import cz.habarta.typescript.generator.emitter.TsIfStatement; +-import cz.habarta.typescript.generator.emitter.TsMemberExpression; +-import cz.habarta.typescript.generator.emitter.TsMethodModel; +-import cz.habarta.typescript.generator.emitter.TsModel; +-import cz.habarta.typescript.generator.emitter.TsModifierFlags; +-import cz.habarta.typescript.generator.emitter.TsNewExpression; +-import cz.habarta.typescript.generator.emitter.TsObjectLiteral; +-import cz.habarta.typescript.generator.emitter.TsParameterModel; +-import cz.habarta.typescript.generator.emitter.TsPrefixUnaryExpression; +-import cz.habarta.typescript.generator.emitter.TsPropertyDefinition; +-import cz.habarta.typescript.generator.emitter.TsPropertyModel; +-import cz.habarta.typescript.generator.emitter.TsReturnStatement; +-import cz.habarta.typescript.generator.emitter.TsStatement; +-import cz.habarta.typescript.generator.emitter.TsStringLiteral; +-import cz.habarta.typescript.generator.emitter.TsSuperExpression; +-import cz.habarta.typescript.generator.emitter.TsSwitchCaseClause; +-import cz.habarta.typescript.generator.emitter.TsSwitchStatement; +-import cz.habarta.typescript.generator.emitter.TsTypeReferenceExpression; +-import cz.habarta.typescript.generator.emitter.TsUnaryOperator; +-import cz.habarta.typescript.generator.emitter.TsVariableDeclarationStatement; +-import cz.habarta.typescript.generator.util.Utils; +-import java.lang.reflect.TypeVariable; +-import java.util.ArrayList; +-import java.util.Arrays; +-import java.util.Collections; +-import java.util.List; +-import java.util.Map; +- +- +-public class JsonDeserializationExtension extends Extension { +- +- public static final String CFG_USE_JSON_DESERIALIZATION_IN_JAXRS_APPLICATION_CLIENT = "useJsonDeserializationInJaxrsApplicationClient"; +- +- private boolean useJsonDeserializationInJaxrsApplicationClient = false; +- +- public JsonDeserializationExtension() { +- } +- +- public JsonDeserializationExtension(boolean useJsonDeserializationInJaxrsApplicationClient) { +- this.useJsonDeserializationInJaxrsApplicationClient = useJsonDeserializationInJaxrsApplicationClient; +- } +- +- @Override +- public EmitterExtensionFeatures getFeatures() { +- final EmitterExtensionFeatures features = new EmitterExtensionFeatures(); +- features.generatesRuntimeCode = true; +- features.worksWithPackagesMappedToNamespaces = true; +- return features; +- } +- +- @Override +- public void setConfiguration(Map configuration) throws RuntimeException { +- if (configuration.containsKey(CFG_USE_JSON_DESERIALIZATION_IN_JAXRS_APPLICATION_CLIENT)) { +- useJsonDeserializationInJaxrsApplicationClient = Boolean.parseBoolean(configuration.get(CFG_USE_JSON_DESERIALIZATION_IN_JAXRS_APPLICATION_CLIENT)); +- } +- } +- +- @Override +- public List getTransformers() { +- return Arrays.asList(new TransformerDefinition(ModelCompiler.TransformationPhase.BeforeSymbolResolution, new TsModelTransformer() { +- @Override +- public TsModel transformModel(Context context, TsModel model) { +- model = createDeserializationMethods(context.getSymbolTable(), model); +- if (useJsonDeserializationInJaxrsApplicationClient) { +- model = useDeserializationMethodsInJaxrs(context.getSymbolTable(), model); +- } +- return model; +- } +- })); +- } +- +- private static TsModel createDeserializationMethods(SymbolTable symbolTable, TsModel tsModel) { +- tsModel.getHelpers().add(TsHelper.loadFromResource("/helpers/jsonDeserialization.ts")); +- final List beans = new ArrayList<>(); +- for (TsBeanModel bean : tsModel.getBeans()) { +- if (bean.isDataClass()) { +- final List methods = new ArrayList<>(bean.getMethods()); +- final TsMethodModel deserializationMethod = createDeserializationMethod(symbolTable, tsModel, bean); +- methods.add(0, deserializationMethod); +- if (!bean.getTypeParameters().isEmpty()) { +- final TsMethodModel genericFunctionConstructor = createDeserializationGenericFunctionConstructor(symbolTable, tsModel, bean); +- methods.add(0, genericFunctionConstructor); +- } +- if (bean.getTaggedUnionAlias() != null) { +- final TsMethodModel unionDeserializationMethod = createDeserializationMethodForTaggedUnion(symbolTable, tsModel, bean); +- methods.add(1, unionDeserializationMethod); +- } +- beans.add(bean.withMethods(methods)); +- } else { +- beans.add(bean); +- } +- } +- return tsModel.withBeans(beans); +- } +- +- private static TsMethodModel createDeserializationMethod(SymbolTable symbolTable, TsModel tsModel, TsBeanModel bean) { +- final Symbol beanIdentifier = symbolTable.getSymbol(bean.getOrigin()); +- List typeParameters = getTypeParameters(bean.getOrigin()); +- +- final TsType.ReferenceType dataType = typeParameters.isEmpty() +- ? new TsType.ReferenceType(beanIdentifier) +- : new TsType.GenericReferenceType(beanIdentifier, typeParameters); +- final List parameters = new ArrayList<>(); +- parameters.add(new TsParameterModel("data", dataType)); +- parameters.addAll(getConstructorFnOfParameters(typeParameters)); +- parameters.add(new TsParameterModel("target", dataType.optional())); +- +- final List body = new ArrayList<>(); +- body.add(ifUndefinedThenReturnItStatement("data")); +- body.add(new TsVariableDeclarationStatement( +- /*const*/ true, +- "instance", +- /*type*/ null, +- new TsBinaryExpression( +- new TsIdentifierReference("target"), +- TsBinaryOperator.BarBar, +- new TsNewExpression(new TsTypeReferenceExpression(new TsType.ReferenceType(beanIdentifier)), typeParameters, getConstructorParameters(bean)) +- ) +- )); +- if (bean.getParent() != null) { +- body.add(new TsExpressionStatement( +- new TsCallExpression( +- new TsMemberExpression(new TsSuperExpression(), "fromData"), +- new TsIdentifierReference("data"), +- new TsIdentifierReference("instance") +- ) +- )); +- } +- for (TsPropertyModel property : bean.getProperties()) { +- final Map inheritedProperties = ModelCompiler.getInheritedProperties(symbolTable, tsModel, Utils.listFromNullable(bean.getParent())); +- if (!inheritedProperties.containsKey(property.getName())) { +- body.add(new TsExpressionStatement(new TsAssignmentExpression( +- new TsMemberExpression(new TsIdentifierReference("instance"), property.name), +- getPropertyCopy(symbolTable, tsModel, bean, property) +- ))); +- } +- } +- body.add(new TsReturnStatement(new TsIdentifierReference("instance"))); +- +- return new TsMethodModel( +- "fromData", +- TsModifierFlags.None.setStatic(), +- typeParameters, +- parameters, +- dataType, +- body, +- null +- ); +- } +- +- private static List getConstructorParameters(TsBeanModel bean) { +- TsConstructorModel constructor = bean.getConstructor(); +- if (constructor == null) { +- return null; +- } +- List parameters = new ArrayList<>(); +- for (TsParameterModel parameter : constructor.getParameters()) { +- parameters.add(new TsIdentifierReference(parameter.name)); +- } +- return parameters; +- } +- +- private static TsMethodModel createDeserializationGenericFunctionConstructor(SymbolTable symbolTable, TsModel tsModel, TsBeanModel bean) { +- final Symbol beanIdentifier = symbolTable.getSymbol(bean.getOrigin()); +- List typeParameters = getTypeParameters(bean.getOrigin()); +- final TsType.ReferenceType dataType = new TsType.GenericReferenceType(beanIdentifier, typeParameters); +- +- final List constructorFnOfParameters = getConstructorFnOfParameters(typeParameters); +- final List arguments = new ArrayList<>(); +- arguments.add(new TsIdentifierReference("data")); +- for (TsParameterModel constructorFnOfParameter : constructorFnOfParameters) { +- arguments.add(new TsIdentifierReference(constructorFnOfParameter.name)); +- } +- final List body = new ArrayList<>(); +- body.add(new TsReturnStatement( +- new TsArrowFunction( +- Arrays.asList(new TsParameter("data", null)), +- new TsCallExpression( +- new TsMemberExpression(new TsTypeReferenceExpression(new TsType.ReferenceType(beanIdentifier)), "fromData"), +- null, +- arguments +- ) +- ) +- )); +- +- return new TsMethodModel( +- "fromDataFn", +- TsModifierFlags.None.setStatic(), +- typeParameters, +- constructorFnOfParameters, +- new TsType.FunctionType(Arrays.asList(new TsParameter("data", dataType)), dataType), +- body, +- null +- ); +- } +- +- private static List getTypeParameters(Class cls) { +- final List typeParameters = new ArrayList<>(); +- for (TypeVariable typeParameter : cls.getTypeParameters()) { +- typeParameters.add(new TsType.GenericVariableType(typeParameter.getName())); +- } +- return typeParameters; +- } +- +- private static List getConstructorFnOfParameters(List typeParameters) { +- final List parameters = new ArrayList<>(); +- for (TsType.GenericVariableType typeParameter : typeParameters) { +- parameters.add(new TsParameterModel( +- "constructorFnOf" + typeParameter.name, +- new TsType.FunctionType(Arrays.asList(new TsParameter("data", typeParameter)), typeParameter) +- )); +- } +- return parameters; +- } +- +- private static TsIfStatement ifUndefinedThenReturnItStatement(String identifier) { +- return new TsIfStatement( +- new TsPrefixUnaryExpression(TsUnaryOperator.Exclamation, new TsIdentifierReference(identifier)), +- Arrays.asList(new TsReturnStatement(new TsIdentifierReference(identifier))) +- ); +- } +- +- private static TsExpression getPropertyCopy(SymbolTable symbolTable, TsModel tsModel, TsBeanModel bean, TsPropertyModel property) { +- final TsExpression copyFunction = getCopyFunctionForTsType(symbolTable, tsModel, property.getTsType()); +- if (copyFunction instanceof TsCallExpression) { +- final TsCallExpression callExpression = (TsCallExpression) copyFunction; +- if (callExpression.getExpression() instanceof TsIdentifierReference) { +- final TsIdentifierReference reference = (TsIdentifierReference) callExpression.getExpression(); +- if (reference.getIdentifier().equals("__identity")) { +- // function degenerates to the same value (data.property) +- return new TsMemberExpression(new TsIdentifierReference("data"), property.name); +- } +- } +- } +- return new TsCallExpression( +- copyFunction, +- new TsMemberExpression(new TsIdentifierReference("data"), property.name) +- ); +- } +- +- private static TsExpression getCopyFunctionForTsType(SymbolTable symbolTable, TsModel tsModel, TsType tsType) { +- if (tsType instanceof TsType.GenericReferenceType) { +- final TsType.GenericReferenceType genericReferenceType = (TsType.GenericReferenceType) tsType; +- // Class.fromDataFn(constructorFnOfT1...) +- final List arguments = new ArrayList<>(); +- for (TsType typeArgument : genericReferenceType.typeArguments) { +- arguments.add(getCopyFunctionForTsType(symbolTable, tsModel, typeArgument)); +- } +- return new TsCallExpression( +- new TsMemberExpression(new TsTypeReferenceExpression(new TsType.ReferenceType(genericReferenceType.symbol)), "fromDataFn"), +- genericReferenceType.typeArguments, +- arguments +- ); +- } +- if (tsType instanceof TsType.ReferenceType) { +- final TsType.ReferenceType referenceType = (TsType.ReferenceType) tsType; +- final TsBeanModel referencedBean = tsModel.getBean(symbolTable.getSymbolClass(referenceType.symbol)); +- if (referencedBean != null && referencedBean.isClass()) { +- if (referencedBean.getTaggedUnionAlias() != null) { +- // Class.fromDataUnion (tagged union) +- return new TsMemberExpression(new TsTypeReferenceExpression(new TsType.ReferenceType(referencedBean.getName())), "fromDataUnion"); +- } else { +- // Class.fromData +- return new TsMemberExpression(new TsTypeReferenceExpression(referenceType), "fromData"); +- } +- } +- } +- if (tsType instanceof TsType.BasicArrayType) { +- // __getCopyArrayFn +- final TsType.BasicArrayType arrayType = (TsType.BasicArrayType) tsType; +- return new TsCallExpression( +- new TsIdentifierReference("__getCopyArrayFn"), +- getCopyFunctionForTsType(symbolTable, tsModel, arrayType.elementType) +- ); +- } +- if (tsType instanceof TsType.IndexedArrayType) { +- // __getCopyObjectFn +- final TsType.IndexedArrayType objectType = (TsType.IndexedArrayType) tsType; +- return new TsCallExpression( +- new TsIdentifierReference("__getCopyObjectFn"), +- getCopyFunctionForTsType(symbolTable, tsModel, objectType.elementType) +- ); +- } +- if (tsType instanceof TsType.GenericVariableType) { +- // constructorFnOfT +- final TsType.GenericVariableType genericVariableType = (TsType.GenericVariableType) tsType; +- return new TsIdentifierReference("constructorFnOf" + genericVariableType.name); +- } +- // __identity +- return new TsCallExpression( +- new TsIdentifierReference("__identity"), +- Arrays.asList(tsType), +- Collections.emptyList() +- ); +- } +- +- private static TsMethodModel createDeserializationMethodForTaggedUnion(SymbolTable symbolTable, TsModel tsModel, TsBeanModel bean) { +- final List caseClauses = new ArrayList<>(); +- for (Class cls : bean.getTaggedUnionClasses()) { +- final TsBeanModel tuBean = tsModel.getBean(cls); +- caseClauses.add(new TsSwitchCaseClause( +- new TsStringLiteral(tuBean.getDiscriminantLiteral()), +- Arrays.asList(new TsReturnStatement( +- new TsCallExpression( +- new TsMemberExpression(new TsTypeReferenceExpression(new TsType.ReferenceType(symbolTable.getSymbol(cls))), "fromData"), +- new TsIdentifierReference("data") +- ) +- )) +- )); +- } +- +- final List body = new ArrayList<>(); +- body.add(ifUndefinedThenReturnItStatement("data")); +- body.add(new TsSwitchStatement( +- new TsMemberExpression(new TsIdentifierReference("data"), bean.getDiscriminantProperty()), +- caseClauses, +- null +- )); +- final TsType.ReferenceType unionType = new TsType.ReferenceType(bean.getTaggedUnionAlias().getName()); +- return new TsMethodModel( +- "fromDataUnion", +- TsModifierFlags.None.setStatic(), +- null, //typeParameters, +- Arrays.asList(new TsParameterModel("data", unionType)), +- unionType, +- body, +- null +- ); +- } +- +- private TsModel useDeserializationMethodsInJaxrs(SymbolTable symbolTable, TsModel tsModel) { +- final List beans = new ArrayList<>(); +- for (TsBeanModel bean : tsModel.getBeans()) { +- if (bean.isJaxrsApplicationClientBean()) { +- final List methods = new ArrayList<>(); +- for (TsMethodModel method : bean.getMethods()) { +- final TsMethodModel changedMethod = addCopyFnToJaxrsMethod(symbolTable, tsModel, method); +- methods.add(changedMethod != null ? changedMethod : method); +- } +- beans.add(bean.withMethods(methods)); +- } else { +- beans.add(bean); +- } +- } +- return tsModel.withBeans(beans); +- } +- +- private static TsMethodModel addCopyFnToJaxrsMethod(SymbolTable symbolTable, TsModel tsModel, TsMethodModel method) { +- final TsType returnType = method.getReturnType(); +- if (!(returnType instanceof TsType.GenericReferenceType)) return null; +- final TsType.GenericReferenceType genericReferenceReturnType = (TsType.GenericReferenceType) returnType; +- if (genericReferenceReturnType.symbol != symbolTable.getSyntheticSymbol("RestResponse")) return null; +- final List typeArguments = genericReferenceReturnType.typeArguments; +- if (typeArguments == null || typeArguments.size() != 1) return null; +- final TsType returnDataType = typeArguments.get(0); +- final List body = method.getBody(); +- if (body == null || body.size() != 1) return null; +- final TsStatement statement = body.get(0); +- if (!(statement instanceof TsReturnStatement)) return null; +- final TsReturnStatement returnStatement = (TsReturnStatement) statement; +- final TsExpression returnExpression = returnStatement.getExpression(); +- if (returnExpression == null) return null; +- if (!(returnExpression instanceof TsCallExpression)) return null; +- final TsCallExpression callExpression = (TsCallExpression) returnExpression; +- final List arguments = callExpression.getArguments(); +- if (arguments == null || arguments.isEmpty()) return null; +- final TsExpression firstArgument = arguments.get(0); +- if (!(firstArgument instanceof TsObjectLiteral)) return null; +- final TsObjectLiteral objectLiteral = (TsObjectLiteral) firstArgument; +- +- // todo create changed method instead of modifying existing +- final int index = Math.max(objectLiteral.getPropertyDefinitions().size() - 1, 0); +- final TsExpression copyFunction = returnDataType == TsType.Void +- ? TsIdentifierReference.Undefined +- : getCopyFunctionForTsType(symbolTable, tsModel, returnDataType); +- objectLiteral.getPropertyDefinitions().add(index, new TsPropertyDefinition("copyFn", copyFunction)); +- return method; +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/ext/NonConstEnumsExtension.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/ext/NonConstEnumsExtension.java +new file mode 100644 +index 000000000..9f7137fdb +--- /dev/null ++++ b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/ext/NonConstEnumsExtension.java +@@ -0,0 +1,40 @@ ++ ++package cz.habarta.typescript.generator.ext; ++ ++import cz.habarta.typescript.generator.Settings; ++import cz.habarta.typescript.generator.compiler.EnumKind; ++import cz.habarta.typescript.generator.compiler.EnumMemberModel; ++import cz.habarta.typescript.generator.emitter.EmitterExtension; ++import cz.habarta.typescript.generator.emitter.EmitterExtensionFeatures; ++import cz.habarta.typescript.generator.emitter.TsEnumModel; ++import cz.habarta.typescript.generator.emitter.TsModel; ++import java.util.Collections; ++import java.util.List; ++ ++ ++public class NonConstEnumsExtension extends EmitterExtension { ++ ++ @Override ++ public EmitterExtensionFeatures getFeatures() { ++ final EmitterExtensionFeatures features = new EmitterExtensionFeatures(); ++ features.generatesRuntimeCode = true; ++ features.overridesStringEnums = true; ++ return features; ++ } ++ ++ @Override ++ public void emitElements(Writer writer, Settings settings, boolean exportKeyword, TsModel model) { ++ String exportString = exportKeyword ? "export " : ""; ++ List> enums = model.getEnums(EnumKind.StringBased); ++ Collections.sort(enums); ++ for (TsEnumModel tsEnum : enums) { ++ writer.writeIndentedLine(""); ++ writer.writeIndentedLine(exportString + "enum " + tsEnum.getName() + " {"); ++ for (EnumMemberModel member : tsEnum.getMembers()) { ++ writer.writeIndentedLine(settings.indentString + member.getPropertyName() + ","); ++ } ++ writer.writeIndentedLine("}"); ++ } ++ } ++ ++} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/ext/OnePossiblePropertyValueAssigningExtension.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/ext/OnePossiblePropertyValueAssigningExtension.java +deleted file mode 100644 +index a53048687..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/ext/OnePossiblePropertyValueAssigningExtension.java ++++ /dev/null +@@ -1,158 +0,0 @@ +-package cz.habarta.typescript.generator.ext; +- +-import cz.habarta.typescript.generator.Extension; +-import cz.habarta.typescript.generator.TsType; +-import cz.habarta.typescript.generator.compiler.EnumMemberModel; +-import cz.habarta.typescript.generator.compiler.ModelCompiler; +-import cz.habarta.typescript.generator.compiler.Symbol; +-import cz.habarta.typescript.generator.compiler.TsModelTransformer.Context; +-import cz.habarta.typescript.generator.emitter.EmitterExtensionFeatures; +-import cz.habarta.typescript.generator.emitter.TsAssignmentExpression; +-import cz.habarta.typescript.generator.emitter.TsBeanModel; +-import cz.habarta.typescript.generator.emitter.TsCallExpression; +-import cz.habarta.typescript.generator.emitter.TsConstructorModel; +-import cz.habarta.typescript.generator.emitter.TsEnumModel; +-import cz.habarta.typescript.generator.emitter.TsExpression; +-import cz.habarta.typescript.generator.emitter.TsExpressionStatement; +-import cz.habarta.typescript.generator.emitter.TsMemberExpression; +-import cz.habarta.typescript.generator.emitter.TsModel; +-import cz.habarta.typescript.generator.emitter.TsModifierFlags; +-import cz.habarta.typescript.generator.emitter.TsPropertyModel; +-import cz.habarta.typescript.generator.emitter.TsStatement; +-import cz.habarta.typescript.generator.emitter.TsStringLiteral; +-import cz.habarta.typescript.generator.emitter.TsSuperExpression; +-import cz.habarta.typescript.generator.emitter.TsThisExpression; +-import java.util.ArrayList; +-import java.util.Collection; +-import java.util.Collections; +-import java.util.List; +-import java.util.Optional; +-import java.util.stream.Collectors; +- +-/** +- * The extension marks all properties which type allows only one possible value (for instance, enum with only one value +- * or {@link cz.habarta.typescript.generator.TsType.UnionType} with only one option) as read only and sets their +- * value in the constructor. +- * It may be useful while generating code for class hierarchy where each subclass has a discriminator property that can +- * only have one value. Hence, using the TypeScript code it will not be necessary to set this value manually. +- * +- * @author krzs +- */ +-public class OnePossiblePropertyValueAssigningExtension extends Extension { +- +- @Override +- public EmitterExtensionFeatures getFeatures() { +- EmitterExtensionFeatures features = new EmitterExtensionFeatures(); +- features.generatesRuntimeCode = true; +- return features; +- } +- +- @Override +- public List getTransformers() { +- return Collections.singletonList( +- new TransformerDefinition(ModelCompiler.TransformationPhase.AfterDeclarationSorting, +- OnePossiblePropertyValueAssigningExtension::transformModel) +- ); +- } +- +- private static TsModel transformModel(Context context, TsModel model) { +- List beans = model.getBeans().stream() +- .map(bean -> transformBean(bean, model)) +- .collect(Collectors.toList()); +- return model.withBeans(beans); +- } +- +- private static TsBeanModel transformBean(TsBeanModel bean, TsModel model) { +- if (!bean.isClass() || bean.getConstructor() != null) { +- return bean; +- } +- +- List newProperties = new ArrayList<>(); +- Collection valueAssignmentStatements = new ArrayList<>(); +- +- for (TsPropertyModel property : bean.getProperties()) { +- TsPropertyModel newProperty = property; +- +- Optional onlyValue = findOnlyValueForProperty(property, model); +- if (onlyValue.isPresent()) { +- newProperty = new TsPropertyModel(property.name, property.tsType, +- TsModifierFlags.None.setReadonly(), property.ownProperty, property.comments); +- +- TsExpressionStatement assignmentStatement = createValueAssignmentStatement(newProperty, onlyValue.get()); +- valueAssignmentStatements.add(assignmentStatement); +- } +- +- newProperties.add(newProperty); +- } +- +- TsBeanModel newBean = bean.withProperties(newProperties); +- if (!valueAssignmentStatements.isEmpty()) { +- TsConstructorModel constructor = createConstructor(bean, valueAssignmentStatements); +- newBean = newBean.withConstructor(constructor); +- } +- return newBean; +- } +- +- private static TsConstructorModel createConstructor(TsBeanModel bean, +- Collection valueAssignmentStatements) { +- List body = new ArrayList<>(); +- if (bean.getParent() != null) { +- body.add(new TsExpressionStatement(new TsCallExpression(new TsSuperExpression()))); +- } +- +- body.addAll(valueAssignmentStatements); +- +- return new TsConstructorModel(TsModifierFlags.None, Collections.emptyList(), body, null); +- } +- +- private static TsExpressionStatement createValueAssignmentStatement(TsPropertyModel property, TsExpression value) { +- TsMemberExpression leftHandSideExpression = new TsMemberExpression(new TsThisExpression(), property.name); +- TsExpression assignment = new TsAssignmentExpression(leftHandSideExpression, value); +- return new TsExpressionStatement(assignment); +- } +- +- private static Optional findOnlyValueForProperty(TsPropertyModel property, TsModel model) { +- TsType propertyType = property.tsType; +- if (propertyType instanceof TsType.UnionType) { +- return findOnlyValueForUnionType((TsType.UnionType) propertyType); +- } +- if (propertyType instanceof TsType.EnumReferenceType) { +- return findOnlyValueForEnumReferenceType(model, (TsType.EnumReferenceType) propertyType); +- } +- return Optional.empty(); +- } +- +- private static Optional findOnlyValueForUnionType(TsType.UnionType unionType) { +- List unionTypeElements = unionType.types; +- if (unionTypeElements.size() != 1) { +- return Optional.empty(); +- } +- TsType onlyElement = unionTypeElements.iterator().next(); +- if (!(onlyElement instanceof TsType.StringLiteralType)) { +- return Optional.empty(); +- } +- TsType.StringLiteralType onlyValue = (TsType.StringLiteralType) onlyElement; +- TsStringLiteral expression = new TsStringLiteral(onlyValue.literal); +- return Optional.of(expression); +- } +- +- private static Optional findOnlyValueForEnumReferenceType(TsModel model, +- TsType.EnumReferenceType propertyType) { +- Symbol symbol = propertyType.symbol; +- Optional enumModelOption = model.getOriginalStringEnums().stream() +- .filter(candidate -> candidate.getName().getFullName().equals(symbol.getFullName())) +- .findAny(); +- if (!enumModelOption.isPresent()) { +- return Optional.empty(); +- } +- TsEnumModel enumModel = enumModelOption.get(); +- if (enumModel.getMembers().size() != 1) { +- return Optional.empty(); +- } +- EnumMemberModel singleElement = enumModel.getMembers().iterator().next(); +- Object enumValue = singleElement.getEnumValue(); +- TsStringLiteral expression = new TsStringLiteral((String) enumValue); +- return Optional.of(expression); +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/ext/PropertyPolymorphismExtension.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/ext/PropertyPolymorphismExtension.java +deleted file mode 100644 +index a866d25fb..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/ext/PropertyPolymorphismExtension.java ++++ /dev/null +@@ -1,256 +0,0 @@ +-package cz.habarta.typescript.generator.ext; +- +-import cz.habarta.typescript.generator.Extension; +-import cz.habarta.typescript.generator.TsType; +-import cz.habarta.typescript.generator.TsType.ReferenceType; +-import cz.habarta.typescript.generator.compiler.ModelCompiler.TransformationPhase; +-import cz.habarta.typescript.generator.compiler.Symbol; +-import cz.habarta.typescript.generator.compiler.TsModelTransformer; +-import cz.habarta.typescript.generator.emitter.EmitterExtensionFeatures; +-import cz.habarta.typescript.generator.emitter.TsBeanCategory; +-import cz.habarta.typescript.generator.emitter.TsBeanModel; +-import cz.habarta.typescript.generator.emitter.TsModel; +-import cz.habarta.typescript.generator.emitter.TsPropertyModel; +-import java.lang.annotation.Annotation; +-import java.lang.reflect.Method; +-import java.util.ArrayList; +-import java.util.Arrays; +-import java.util.Collections; +-import java.util.HashMap; +-import java.util.HashSet; +-import java.util.List; +-import java.util.Locale; +-import java.util.Map; +-import java.util.Set; +-import java.util.function.Function; +-import java.util.function.Predicate; +- +-/** +- * Extension to support property based polymorphism. Given the following +- * classes: +- * +- *
+- * class ReferencingType {
+- *     Base ref;
+- * }
+- *
+- * class Base {
+- * }
+- *
+- * class A extends Base {
+- *     String foo;
+- * }
+- *
+- * class B extends Base {
+- *     String bar;
+- * }
+- * 
+- * +- * A serialization of an instance of {@code ReferencingType} would become: +- * +- *
+- * {"ref": { "a": { "foo": "Hello World"} }}
+- * 
+- * +- * Thus a synthetic object is inserted into the reference, with a property for +- * each sub type (in this case "a"). In typescript this becomes: +- * +- *
+- * interface ReferencingType{ ref: BaseRef}
+- * interface BaseRef{a: A; b: B}
+- * interface Base{}
+- * interface A extends Base {foo: string}
+- * interface B extends Base{bar: string}
+- * 
+- * +- * Configuration
+- * When instantiating from java, the +- * {@link #PropertyPolymorphismExtension(Predicate, Function)} constructor or +- * the {@link #isPolymorphicBase} and {@link #getPropertyName} fields can be +- * used to supply appropriate strategies. When using in a build system, use the +- * {@value #MARKER_ANNOTATION}, {@value #NAME_ANNOTATION} and +- * {@value #NAME_ELEMENT} extensions properties. +- * +- */ +-public class PropertyPolymorphismExtension extends Extension { +- +- /** +- * Fully qualified type name of the annotation marking polymorphic base classes. +- * Required configuration parameter. +- */ +- public static final String MARKER_ANNOTATION = "markerAnnotation"; +- +- /** +- * Fully qualified type name of the annotation overriding the property name of a +- * subclass. If absent or not configured at all, the +- * {@link Class#getSimpleName()}, converted from UpperCamel to lowerCamel, is +- * used. +- */ +- public static final String NAME_ANNOTATION = "nameAnnotation"; +- +- /** +- * Name of the element in the {@value #NAME_ANNOTATION} to use as property name. +- * If not configured the {@code value} element is used. +- */ +- public static final String NAME_ELEMENT = "nameElement"; +- +- /** +- * Predicate to determine if a class is a polymorphic base class, thus +- * references to it should be replaced with a reference to the synthetic ref +- * type. +- */ +- public Predicate> isPolymorphicBase; +- +- /** +- * Function to get the property name in the synthetic ref type for the given sub +- * class. +- */ +- public Function, String> getPropertyName; +- +- PropertyPolymorphismExtension() { +- +- } +- +- public PropertyPolymorphismExtension(Predicate> isPolymorphicBase, +- Function, String> getPropertyName) { +- this.isPolymorphicBase = isPolymorphicBase; +- this.getPropertyName = getPropertyName; +- } +- +- @Override +- public EmitterExtensionFeatures getFeatures() { +- return new EmitterExtensionFeatures(); +- } +- +- @Override +- public void setConfiguration(Map configuration) throws RuntimeException { +- { +- String markerAnnotationName = configuration.get(MARKER_ANNOTATION); +- if (markerAnnotationName == null) { +- throw new RuntimeException("Property '" + MARKER_ANNOTATION + "' has to be configured"); +- } +- isPolymorphicBase = cls -> { +- for (Annotation annotation : cls.getAnnotations()) { +- if (markerAnnotationName.equals(annotation.annotationType().getName())) { +- return true; +- } +- } +- return false; +- }; +- } +- +- { +- String nameAnnotationName = configuration.get(NAME_ANNOTATION); +- if (nameAnnotationName == null) { +- getPropertyName = this::defaultPropertyName; +- } else { +- String nameElementName = configuration.get(NAME_ELEMENT); +- if (nameElementName == null) { +- nameElementName = "value"; +- } +- String nameFieldNameFinal = nameElementName; +- +- getPropertyName = subType -> { +- try { +- for (Annotation annotation : subType.getAnnotations()) { +- if (nameAnnotationName.equals(annotation.annotationType().getName())) { +- Method method = annotation.annotationType().getDeclaredMethod(nameFieldNameFinal); +- return (String) method.invoke(annotation); +- } +- } +- } catch (Throwable t) { +- throw new RuntimeException(t); +- } +- return defaultPropertyName(subType); +- }; +- } +- +- } +- } +- +- private String defaultPropertyName(Class subType) { +- String name = subType.getSimpleName(); +- return name.substring(0, 1).toLowerCase(Locale.ENGLISH) + name.substring(1); +- } +- +- @Override +- public List getTransformers() { +- return Arrays +- .asList(new TransformerDefinition(TransformationPhase.BeforeSymbolResolution, new TsModelTransformer() { +- @Override +- public TsModel transformModel(Context context, TsModel model) { +- List newBeans = new ArrayList<>(); +- +- for (TsBeanModel bean : model.getBeans()) { +- // replace references +- List newProperties = new ArrayList<>(); +- for (TsPropertyModel property : bean.getProperties()) { +- if (property.tsType instanceof ReferenceType) { +- ReferenceType type = (ReferenceType) property.tsType; +- TsBeanModel referencedBean = model.getBean(type.symbol); +- if (isPolymorphicBase.test(referencedBean.getOrigin())) { +- Symbol refSymbol = context.getSymbolTable().addSuffixToSymbol(type.symbol, "Ref"); +- newProperties.add(property.withTsType(new TsType.ReferenceType(refSymbol))); +- continue; +- } +- } +- newProperties.add(property); +- } +- newBeans.add(bean.withProperties(newProperties)); +- } +- +- // add reference beans +- { +- List bases = new ArrayList<>(); +- Map, Set>> subTypes = new HashMap<>(); +- Map, TsBeanModel> beanByOrigin = new HashMap<>(); +- for (TsBeanModel bean : model.getBeans()) { +- Class origin = bean.getOrigin(); +- if (origin == null) { +- continue; +- } +- beanByOrigin.put(origin, bean); +- if (isPolymorphicBase.test(origin)) { +- bases.add(bean); +- } +- +- fillSubTypes(origin, subTypes, origin, new HashSet<>()); +- } +- +- for (TsBeanModel base : bases) { +- List refProperties = new ArrayList<>(); +- for (Class subType : subTypes.getOrDefault(base.getOrigin(), +- Collections.emptySet())) { +- refProperties.add(new TsPropertyModel(getPropertyName.apply(subType), +- new ReferenceType(context.getSymbolTable().getSymbol(subType)), null, true, null)); +- } +- newBeans.add(new TsBeanModel(base.getOrigin(), TsBeanCategory.Data, false, +- context.getSymbolTable().addSuffixToSymbol(base.getName(), "Ref"), null, null, null, null, +- refProperties, null, null, null)); +- } +- } +- +- return model.withBeans(newBeans); +- } +- +- })); +- } +- +- private void fillSubTypes(Class root, Map, Set>> subTypes, Class cls, Set> seen) { +- if (cls == null || cls == Object.class) { +- return; +- } +- if (!seen.add(cls)) { +- return; +- } +- if (root != cls) { +- subTypes.computeIfAbsent(cls, k -> new HashSet<>()).add(root); +- } +- +- fillSubTypes(root, subTypes, cls.getSuperclass(), seen); +- for (Class i : cls.getInterfaces()) { +- fillSubTypes(root, subTypes, i, seen); +- } +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/ext/RequiredPropertyConstructorExtension.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/ext/RequiredPropertyConstructorExtension.java +deleted file mode 100644 +index 93f036788..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/ext/RequiredPropertyConstructorExtension.java ++++ /dev/null +@@ -1,179 +0,0 @@ +-package cz.habarta.typescript.generator.ext; +- +-import cz.habarta.typescript.generator.Extension; +-import cz.habarta.typescript.generator.TsType; +-import cz.habarta.typescript.generator.compiler.EnumMemberModel; +-import cz.habarta.typescript.generator.compiler.ModelCompiler; +-import cz.habarta.typescript.generator.compiler.Symbol; +-import cz.habarta.typescript.generator.compiler.TsModelTransformer; +-import cz.habarta.typescript.generator.emitter.EmitterExtensionFeatures; +-import cz.habarta.typescript.generator.emitter.TsAssignmentExpression; +-import cz.habarta.typescript.generator.emitter.TsBeanModel; +-import cz.habarta.typescript.generator.emitter.TsCallExpression; +-import cz.habarta.typescript.generator.emitter.TsConstructorModel; +-import cz.habarta.typescript.generator.emitter.TsEnumModel; +-import cz.habarta.typescript.generator.emitter.TsExpression; +-import cz.habarta.typescript.generator.emitter.TsExpressionStatement; +-import cz.habarta.typescript.generator.emitter.TsIdentifierReference; +-import cz.habarta.typescript.generator.emitter.TsMemberExpression; +-import cz.habarta.typescript.generator.emitter.TsModel; +-import cz.habarta.typescript.generator.emitter.TsModifierFlags; +-import cz.habarta.typescript.generator.emitter.TsParameterModel; +-import cz.habarta.typescript.generator.emitter.TsPropertyModel; +-import cz.habarta.typescript.generator.emitter.TsStatement; +-import cz.habarta.typescript.generator.emitter.TsStringLiteral; +-import cz.habarta.typescript.generator.emitter.TsSuperExpression; +-import cz.habarta.typescript.generator.emitter.TsThisExpression; +-import java.util.ArrayList; +-import java.util.Arrays; +-import java.util.HashMap; +-import java.util.List; +-import java.util.Map; +-import java.util.Optional; +-import java.util.regex.Pattern; +- +-/** +- * Adds constructor with each required property to every generated class. +- */ +-public class RequiredPropertyConstructorExtension extends Extension { +- static final String CFG_CLASSES = "classes"; +- +- private List classes; +- +- @Override +- public EmitterExtensionFeatures getFeatures() { +- EmitterExtensionFeatures features = new EmitterExtensionFeatures(); +- features.generatesRuntimeCode = true; +- return features; +- } +- +- @Override +- public void setConfiguration(Map configuration) throws RuntimeException { +- if (configuration.containsKey(CFG_CLASSES)) { +- classes = Arrays.asList(Pattern.compile("\\s+").split(configuration.get(CFG_CLASSES))); +- } +- } +- +- @Override +- public List getTransformers() { +- return Arrays.asList(new TransformerDefinition(ModelCompiler.TransformationPhase.AfterDeclarationSorting, new TsModelTransformer() { +- @Override +- public TsModel transformModel(Context context, TsModel model) { +- List beans = new ArrayList<>(); +- Map generatedConstructors = new HashMap<>(); +- for (TsBeanModel bean : model.getBeans()) { +- TsBeanModel newBean = transformBean(bean, model, generatedConstructors); +- beans.add(newBean); +- } +- return model.withBeans(beans); +- } +- })); +- } +- +- private TsBeanModel transformBean(TsBeanModel bean, TsModel model, +- Map generatedConstructors) { +- if (classes != null && !classes.contains(bean.getOrigin().getCanonicalName())) { +- return bean; +- } +- if (!bean.isClass() || bean.getConstructor() != null) { +- return bean; +- } +- Optional constructorOption = createConstructor(bean, model, generatedConstructors); +- if (!constructorOption.isPresent()) { +- return bean; +- } +- TsConstructorModel constructor = constructorOption.get(); +- generatedConstructors.put(bean.getName().getFullName(), constructor); +- return bean.withConstructor(constructor); +- } +- +- private static Optional createConstructor(TsBeanModel bean, TsModel model, +- Map generatedConstructors) { +- List parameters = new ArrayList<>(); +- List optionalParameters = new ArrayList<>(); +- List body = new ArrayList<>(); +- TsType parent = bean.getParent(); +- if (parent != null) { +- if (!(parent instanceof TsType.ReferenceType)) { +- throw new IllegalStateException("Generating constructor for non-reference parent types is not currently supported"); +- } +- TsType.ReferenceType referenceParent = (TsType.ReferenceType) parent; +- TsConstructorModel parentConstructor = generatedConstructors.get(referenceParent.symbol.getFullName()); +- if (parentConstructor == null) { +- throw new IllegalStateException("Generating constructor for class with non-generated constructor is not currently supported"); +- } +- List parentParameters = parentConstructor.getParameters(); +- TsIdentifierReference[] callParameters = new TsIdentifierReference[parentParameters.size()]; +- int i = 0; +- for (TsParameterModel parentParameter : parentParameters) { +- List targetParameterList = +- parentParameter.tsType instanceof TsType.OptionalType ? optionalParameters : parameters; +- targetParameterList.add(parentParameter); +- callParameters[i] = new TsIdentifierReference(parentParameter.name); +- i++; +- } +- body.add(new TsExpressionStatement(new TsCallExpression(new TsSuperExpression(), callParameters))); +- } +- for (TsPropertyModel property : bean.getProperties()) { +- if (!property.modifiers.isReadonly) { +- continue; +- } +- TsExpression assignmentExpression; +- Optional predefinedValue = getPredefinedValueForProperty(property, model); +- if (predefinedValue.isPresent()) { +- assignmentExpression = predefinedValue.get(); +- } else { +- TsParameterModel parameter = new TsParameterModel(property.name, property.tsType); +- List targetParameterList = +- property.tsType instanceof TsType.OptionalType ? optionalParameters : parameters; +- targetParameterList.add(parameter); +- assignmentExpression = new TsIdentifierReference(property.name); +- } +- TsMemberExpression leftHandSideExpression = new TsMemberExpression(new TsThisExpression(), property.name); +- TsExpression assignment = new TsAssignmentExpression(leftHandSideExpression, assignmentExpression); +- TsExpressionStatement assignmentStatement = new TsExpressionStatement(assignment); +- body.add(assignmentStatement); +- } +- parameters.addAll(optionalParameters); +- if(parameters.isEmpty() && body.isEmpty()) { +- return Optional.empty(); +- } +- TsConstructorModel constructor = new TsConstructorModel(TsModifierFlags.None, parameters, body, null); +- return Optional.of(constructor); +- } +- +- private static Optional getPredefinedValueForProperty(TsPropertyModel property, TsModel model) { +- if (property.tsType instanceof TsType.UnionType) { +- List unionTypeElements = ((TsType.UnionType) property.tsType).types; +- if (unionTypeElements.size() != 1) { +- return Optional.empty(); +- } +- TsType onlyElement = unionTypeElements.iterator().next(); +- if (!(onlyElement instanceof TsType.StringLiteralType)) { +- return Optional.empty(); +- } +- TsType.StringLiteralType onlyValue = (TsType.StringLiteralType) onlyElement; +- TsStringLiteral expression = new TsStringLiteral(onlyValue.literal); +- return Optional.of(expression); +- } +- if (property.tsType instanceof TsType.EnumReferenceType) { +- Symbol symbol = ((TsType.EnumReferenceType) property.tsType).symbol; +- Optional enumModelOption = model.getOriginalStringEnums().stream() +- .filter(candidate -> candidate.getName().getFullName().equals(symbol.getFullName())) +- .findAny(); +- if (!enumModelOption.isPresent()) { +- return Optional.empty(); +- } +- TsEnumModel enumModel = enumModelOption.get(); +- if(enumModel.getMembers().size() != 1) { +- return Optional.empty(); +- } +- EnumMemberModel singleElement = enumModel.getMembers().iterator().next(); +- Object enumValue = singleElement.getEnumValue(); +- TsStringLiteral expression = new TsStringLiteral((String) enumValue); +- return Optional.of(expression); +- } +- return Optional.empty(); +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/ext/TypeGuardsForJackson2PolymorphismExtension.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/ext/TypeGuardsForJackson2PolymorphismExtension.java +index 4af0d24fd..09f7471ed 100644 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/ext/TypeGuardsForJackson2PolymorphismExtension.java ++++ b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/ext/TypeGuardsForJackson2PolymorphismExtension.java +@@ -1,14 +1,9 @@ + + package cz.habarta.typescript.generator.ext; + +-import com.fasterxml.jackson.annotation.JsonSubTypes; +-import com.fasterxml.jackson.annotation.JsonTypeInfo; +-import com.fasterxml.jackson.annotation.JsonTypeName; ++import com.fasterxml.jackson.annotation.*; + import cz.habarta.typescript.generator.Settings; +-import cz.habarta.typescript.generator.emitter.EmitterExtension; +-import cz.habarta.typescript.generator.emitter.EmitterExtensionFeatures; +-import cz.habarta.typescript.generator.emitter.TsBeanModel; +-import cz.habarta.typescript.generator.emitter.TsModel; ++import cz.habarta.typescript.generator.emitter.*; + + + public class TypeGuardsForJackson2PolymorphismExtension extends EmitterExtension { +@@ -42,7 +37,7 @@ public class TypeGuardsForJackson2PolymorphismExtension extends EmitterExtension + } + } + if (propertyValue != null) { +- final String baseTypeName = tsBean.getName().getSimpleName(); ++ final String baseTypeName = tsBean.getName().toString(); + final String subTypeName = findTypeName(subType.value(), model); + if (baseTypeName != null && subTypeName != null) { + writer.writeIndentedLine(""); +@@ -58,7 +53,7 @@ public class TypeGuardsForJackson2PolymorphismExtension extends EmitterExtension + static String findTypeName(Class beanClass, TsModel model) { + for (TsBeanModel bean : model.getBeans()) { + if (bean.getOrigin().equals(beanClass)) { +- return bean.getName().getSimpleName(); ++ return bean.getName().toString(); + } + } + return null; +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/BeanModel.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/BeanModel.java +index 3e7922f36..5d95b406b 100644 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/BeanModel.java ++++ b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/BeanModel.java +@@ -1,11 +1,8 @@ + + package cz.habarta.typescript.generator.parser; + +-import cz.habarta.typescript.generator.util.Utils; + import java.lang.reflect.Type; +-import java.util.ArrayList; +-import java.util.List; +-import java.util.Objects; ++import java.util.*; + + + public class BeanModel extends DeclarationModel { +@@ -23,7 +20,7 @@ public class BeanModel extends DeclarationModel { + this.taggedUnionClasses = taggedUnionClasses; + this.discriminantProperty = discriminantProperty; + this.discriminantLiteral = discriminantLiteral; +- this.interfaces = Utils.listFromNullable(interfaces); ++ this.interfaces = interfaces; + this.properties = properties; + } + +@@ -47,7 +44,7 @@ public class BeanModel extends DeclarationModel { + return interfaces; + } + +- public List getParentAndInterfaces() { ++ public List getDirectAncestors() { + final List ancestors = new ArrayList<>(); + if (parent != null) { + ancestors.add(parent); +@@ -60,13 +57,6 @@ public class BeanModel extends DeclarationModel { + return properties; + } + +- public PropertyModel getProperty(String name) { +- return properties.stream() +- .filter(property -> Objects.equals(property.getName(), name)) +- .findFirst() +- .orElse(null); +- } +- + public BeanModel withProperties(List properties) { + return new BeanModel(origin, parent, taggedUnionClasses, discriminantProperty, discriminantLiteral, interfaces, properties, comments); + } +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/DeprecationEnricher.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/DeprecationEnricher.java +deleted file mode 100644 +index 4c830ccf6..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/DeprecationEnricher.java ++++ /dev/null +@@ -1,95 +0,0 @@ +- +-package cz.habarta.typescript.generator.parser; +- +-import cz.habarta.typescript.generator.compiler.EnumMemberModel; +-import cz.habarta.typescript.generator.util.DeprecationUtils; +-import cz.habarta.typescript.generator.util.Utils; +-import java.lang.reflect.AnnotatedElement; +-import java.lang.reflect.Field; +-import java.lang.reflect.Method; +-import java.util.Collections; +-import java.util.List; +-import java.util.function.Function; +-import java.util.stream.Collectors; +- +- +-public class DeprecationEnricher { +- +- public Model enrichModel(Model model) { +- final List beans = mapList(model.getBeans(), this::enrichBean); +- final List enums = mapList(model.getEnums(), this::enrichEnum); +- final List restApplications = mapList(model.getRestApplications(), this::enrichRestApplication); +- return new Model(beans, enums, restApplications); +- } +- +- private BeanModel enrichBean(BeanModel bean) { +- final List properties = mapList(bean.getProperties(), property -> enrichProperty(property)); +- return bean +- .withProperties(properties) +- .withComments(addDeprecation(bean.getComments(), bean.getOrigin())); +- } +- +- private PropertyModel enrichProperty(PropertyModel property) { +- if (property.getOriginalMember() instanceof Method) { +- final Method method = (Method) property.getOriginalMember(); +- return enrichMethodProperty(property, method); +- } else if (property.getOriginalMember() instanceof Field) { +- final Field field = (Field) property.getOriginalMember(); +- return enrichFieldProperty(property, field); +- } else { +- return property; +- } +- } +- +- private PropertyModel enrichFieldProperty(PropertyModel property, Field field) { +- return property +- .withComments(addDeprecation(property.getComments(), field)); +- } +- +- private PropertyModel enrichMethodProperty(PropertyModel property, Method method) { +- return property +- .withComments(addDeprecation(property.getComments(), method)); +- } +- +- private EnumModel enrichEnum(EnumModel enumModel) { +- final List members = mapList(enumModel.getMembers(), enumMember -> enrichEnumMember(enumMember)); +- return enumModel +- .withMembers(members) +- .withComments(addDeprecation(enumModel.getComments(), enumModel.getOrigin())); +- } +- +- private EnumMemberModel enrichEnumMember(EnumMemberModel enumMember) { +- return enumMember +- .withComments(addDeprecation(enumMember.getComments(), enumMember.getOriginalField())); +- } +- +- private RestApplicationModel enrichRestApplication(RestApplicationModel restApplicationModel) { +- final List enrichedRestMethods = mapList(restApplicationModel.getMethods(), restMethod -> enrichRestMethod(restMethod)); +- return restApplicationModel.withMethods(enrichedRestMethods); +- } +- +- private RestMethodModel enrichRestMethod(RestMethodModel method) { +- return method +- .withComments(addDeprecation(method.getComments(), method.getOriginalMethod())); +- } +- +- private static List mapList(List list, Function mapper) { +- return list.stream().map(mapper).collect(Collectors.toList()); +- } +- +- private static List addDeprecation(List comments, AnnotatedElement annotatedElement) { +- if (annotatedElement == null || !annotatedElement.isAnnotationPresent(Deprecated.class) || containsDeprecatedTag(comments)) { +- return comments; +- } +- +- String deprecatedComment = DeprecationUtils.convertToComment(annotatedElement.getAnnotation(Deprecated.class)); +- return Utils.concat(comments, Collections.singletonList(deprecatedComment)); +- } +- +- private static boolean containsDeprecatedTag(List comments) { +- return comments != null +- ? comments.stream().anyMatch(comment -> comment.startsWith(DeprecationUtils.DEPRECATED)) +- : false; +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/EnumModel.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/EnumModel.java +index 1e21d396a..1b5651054 100644 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/EnumModel.java ++++ b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/EnumModel.java +@@ -1,37 +1,38 @@ + + package cz.habarta.typescript.generator.parser; + +-import cz.habarta.typescript.generator.compiler.EnumKind; + import cz.habarta.typescript.generator.compiler.EnumMemberModel; +-import java.util.List; ++import cz.habarta.typescript.generator.compiler.EnumKind; ++import java.util.*; + + +-public class EnumModel extends DeclarationModel { ++// T extends String | Number ++public class EnumModel extends DeclarationModel { + +- private final EnumKind kind; +- private final List members; ++ private final EnumKind kind; ++ private final List> members; + +- public EnumModel(Class origin, EnumKind kind, List members, List comments) { ++ public EnumModel(Class origin, EnumKind kind, List> members, List comments) { + super (origin, comments); + this.kind = kind; + this.members = members; + } + +- public EnumKind getKind() { ++ public EnumKind getKind() { + return kind; + } + +- public List getMembers() { ++ public List> getMembers() { + return members; + } + +- public EnumModel withMembers(List members) { +- return new EnumModel(origin, kind, members, comments); ++ public EnumModel withMembers(List> members) { ++ return new EnumModel<>(origin, kind, members, comments); + } + + @Override +- public EnumModel withComments(List comments) { +- return new EnumModel(origin, kind, members, comments); ++ public EnumModel withComments(List comments) { ++ return new EnumModel<>(origin, kind, members, comments); + } + + } +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/GsonParser.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/GsonParser.java +deleted file mode 100644 +index 5b405e587..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/GsonParser.java ++++ /dev/null +@@ -1,118 +0,0 @@ +-package cz.habarta.typescript.generator.parser; +- +-import com.google.gson.ExclusionStrategy; +-import com.google.gson.FieldAttributes; +-import com.google.gson.Gson; +-import com.google.gson.GsonBuilder; +-import com.google.gson.annotations.SerializedName; +-import cz.habarta.typescript.generator.ExcludingTypeProcessor; +-import cz.habarta.typescript.generator.GsonConfiguration; +-import cz.habarta.typescript.generator.OptionalProperties; +-import cz.habarta.typescript.generator.Settings; +-import cz.habarta.typescript.generator.TypeProcessor; +-import cz.habarta.typescript.generator.util.PropertyMember; +-import java.lang.reflect.Field; +-import java.lang.reflect.Modifier; +-import java.lang.reflect.Type; +-import java.util.ArrayList; +-import java.util.Arrays; +-import java.util.Collections; +-import java.util.List; +- +-public class GsonParser extends ModelParser { +- +- public static class Factory extends ModelParser.Factory { +- +- @Override +- public TypeProcessor getSpecificTypeProcessor() { +- return createSpecificTypeProcessor(); +- } +- +- @Override +- public GsonParser create(Settings settings, TypeProcessor commonTypeProcessor, +- List restApplicationParsers) { +- return new GsonParser(settings, commonTypeProcessor, restApplicationParsers); +- } +- +- } +- +- private final Gson gson; +- +- public GsonParser(Settings settings, TypeProcessor commonTypeProcessor) { +- this(settings, commonTypeProcessor, Collections.emptyList()); +- } +- +- public GsonParser(Settings settings, TypeProcessor commonTypeProcessor, +- List restApplicationParsers) { +- super(settings, commonTypeProcessor, restApplicationParsers); +- if (!settings.optionalAnnotations.isEmpty()) { +- +- } +- final GsonConfiguration config = settings.gsonConfiguration; +- int modifiers = config != null && config.excludeFieldsWithModifiers != null +- ? Settings.parseModifiers(config.excludeFieldsWithModifiers, Modifier.fieldModifiers()) +- : Modifier.STATIC | Modifier.TRANSIENT; +- this.gson = new GsonBuilder() +- .excludeFieldsWithModifiers(modifiers) +- .setExclusionStrategies(new ExclusionStrategy() { +- @Override +- public boolean shouldSkipField(FieldAttributes fieldAttributes) { +- return !isAnnotatedPropertyIncluded(fieldAttributes::getAnnotation, fieldAttributes.getDeclaringClass().getName() + "." + fieldAttributes.getName()); +- } +- +- @Override +- public boolean shouldSkipClass(Class aClass) { +- return false; +- } +- }) +- .create(); +- } +- +- private static TypeProcessor createSpecificTypeProcessor() { +- return new ExcludingTypeProcessor(Arrays.asList()); +- } +- +- @Override +- protected DeclarationModel parseClass(SourceType> sourceClass) { +- if (sourceClass.type.isEnum()) { +- return ModelParser.parseEnum(sourceClass); +- } else { +- return parseBean(sourceClass); +- } +- } +- +- private BeanModel parseBean(SourceType> sourceClass) { +- final List properties = new ArrayList<>(); +- Class cls = sourceClass.type; +- while (cls != null) { +- for (Field field : cls.getDeclaredFields()) { +- if (gson.excluder().excludeField(field, /*serialize*/true)) { +- continue; +- } +- String name = field.getName(); +- SerializedName serializedName = field.getAnnotation(SerializedName.class); +- if (serializedName != null) { +- name = serializedName.value(); +- } +- final boolean optional = settings.optionalProperties == OptionalProperties.useLibraryDefinition +- ? true +- : isPropertyOptional(new PropertyMember(field, field.getGenericType(), field.getAnnotatedType(), null)); +- properties.add(new PropertyModel(name, field.getGenericType(), optional, null, field, null, null, null)); +- addBeanToQueue(new SourceType<>(field.getGenericType(), sourceClass.type, name)); +- } +- cls = cls.getSuperclass(); +- } +- +- final Type superclass = sourceClass.type.getGenericSuperclass() == Object.class ? null +- : sourceClass.type.getGenericSuperclass(); +- if (superclass != null) { +- addBeanToQueue(new SourceType<>(superclass, sourceClass.type, "")); +- } +- final List interfaces = Arrays.asList(sourceClass.type.getGenericInterfaces()); +- for (Type aInterface : interfaces) { +- addBeanToQueue(new SourceType<>(aInterface, sourceClass.type, "")); +- } +- return new BeanModel(sourceClass.type, superclass, null, null, null, interfaces, properties, null); +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/Jackson1Parser.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/Jackson1Parser.java +new file mode 100644 +index 000000000..e2a3cd4ce +--- /dev/null ++++ b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/Jackson1Parser.java +@@ -0,0 +1,151 @@ ++ ++package cz.habarta.typescript.generator.parser; ++ ++import cz.habarta.typescript.generator.*; ++import java.lang.annotation.Annotation; ++import java.lang.reflect.Member; ++import java.lang.reflect.Type; ++import java.util.*; ++import org.codehaus.jackson.JsonNode; ++import org.codehaus.jackson.annotate.JsonSubTypes; ++import org.codehaus.jackson.annotate.JsonTypeInfo; ++import org.codehaus.jackson.map.*; ++import org.codehaus.jackson.map.introspect.NopAnnotationIntrospector; ++import org.codehaus.jackson.map.ser.*; ++import org.codehaus.jackson.type.JavaType; ++ ++ ++public class Jackson1Parser extends ModelParser { ++ ++ private final ObjectMapper objectMapper = new ObjectMapper(); ++ ++ public Jackson1Parser(Settings settings, TypeProcessor typeProcessor) { ++ super(settings, typeProcessor); ++ if (!settings.optionalAnnotations.isEmpty()) { ++ final AnnotationIntrospector defaultAnnotationIntrospector = objectMapper.getSerializationConfig().getAnnotationIntrospector(); ++ final AnnotationIntrospector allAnnotationIntrospector = new NopAnnotationIntrospector() { ++ @Override ++ public boolean isHandled(Annotation ann) { ++ return true; ++ } ++ }; ++ this.objectMapper.setAnnotationIntrospector(new AnnotationIntrospector.Pair(defaultAnnotationIntrospector, allAnnotationIntrospector)); ++ } ++ } ++ ++ @Override ++ protected BeanModel parseBean(SourceType> sourceClass) { ++ final List properties = new ArrayList<>(); ++ ++ final BeanHelper beanHelper = getBeanHelper(sourceClass.type); ++ if (beanHelper != null) { ++ for (BeanPropertyWriter beanPropertyWriter : beanHelper.getProperties()) { ++ if (!isParentProperty(beanPropertyWriter.getName(), sourceClass.type)) { ++ Type propertyType = beanPropertyWriter.getGenericPropertyType(); ++ if (propertyType == JsonNode.class) { ++ propertyType = Object.class; ++ } ++ boolean isInAnnotationFilter = settings.includePropertyAnnotations.isEmpty(); ++ if (!isInAnnotationFilter) { ++ for (Class optionalAnnotation : settings.includePropertyAnnotations) { ++ if (beanPropertyWriter.getAnnotation(optionalAnnotation) != null) { ++ isInAnnotationFilter = true; ++ break; ++ } ++ } ++ if (!isInAnnotationFilter) { ++ System.out.println("Skipping " + sourceClass.type + "." + beanPropertyWriter.getName() + " because it is missing an annotation from includePropertyAnnotations!"); ++ continue; ++ } ++ } ++ boolean optional = false; ++ for (Class optionalAnnotation : settings.optionalAnnotations) { ++ if (beanPropertyWriter.getAnnotation(optionalAnnotation) != null) { ++ optional = true; ++ break; ++ } ++ } ++ final Member originalMember = beanPropertyWriter.getMember().getMember(); ++ properties.add(processTypeAndCreateProperty(beanPropertyWriter.getName(), propertyType, optional, sourceClass.type, originalMember)); ++ } ++ } ++ } ++ ++ final JsonTypeInfo jsonTypeInfo = sourceClass.type.getAnnotation(JsonTypeInfo.class); ++ if (jsonTypeInfo != null && jsonTypeInfo.include() == JsonTypeInfo.As.PROPERTY) { ++ if (!containsProperty(properties, jsonTypeInfo.property())) { ++ properties.add(new PropertyModel(jsonTypeInfo.property(), String.class, false, null, null)); ++ } ++ } ++ ++ final JsonSubTypes jsonSubTypes = sourceClass.type.getAnnotation(JsonSubTypes.class); ++ if (jsonSubTypes != null) { ++ for (JsonSubTypes.Type type : jsonSubTypes.value()) { ++ addBeanToQueue(new SourceType<>(type.value(), sourceClass.type, "")); ++ } ++ } ++ final Type superclass = sourceClass.type.getGenericSuperclass() == Object.class ? null : sourceClass.type.getGenericSuperclass(); ++ if (superclass != null) { ++ addBeanToQueue(new SourceType<>(superclass, sourceClass.type, "")); ++ } ++ final List interfaces = Arrays.asList(sourceClass.type.getGenericInterfaces()); ++ for (Type aInterface : interfaces) { ++ addBeanToQueue(new SourceType<>(aInterface, sourceClass.type, "")); ++ } ++ return new BeanModel(sourceClass.type, superclass, null, null, null, interfaces, properties, null); ++ } ++ ++ private boolean isParentProperty(String property, Class cls) { ++ final List> parents = new ArrayList<>(); ++ if (cls.getSuperclass() != Object.class) { ++ parents.add(cls.getSuperclass()); ++ } ++ parents.addAll(Arrays.asList(cls.getInterfaces())); ++ for (Class parent : parents) { ++ final BeanHelper beanHelper = getBeanHelper(parent); ++ if (beanHelper != null) { ++ for (BeanPropertyWriter beanPropertyWriter : beanHelper.getProperties()) { ++ if (beanPropertyWriter.getName().equals(property)) { ++ return true; ++ } ++ } ++ } ++ } ++ return false; ++ } ++ ++ private BeanHelper getBeanHelper(Class beanClass) { ++ if (beanClass == null) { ++ return null; ++ } ++ try { ++ final SerializationConfig serializationConfig = objectMapper.getSerializationConfig(); ++ final JavaType simpleType = objectMapper.constructType(beanClass); ++ final JsonSerializer jsonSerializer = BeanSerializerFactory.instance.createSerializer(serializationConfig, simpleType, null); ++ if (jsonSerializer == null) { ++ return null; ++ } ++ if (jsonSerializer instanceof BeanSerializer) { ++ return new BeanHelper((BeanSerializer) jsonSerializer); ++ } else { ++ final String jsonSerializerName = jsonSerializer.getClass().getName(); ++ throw new RuntimeException(String.format("Unknown serializer '%s' for class '%s'", jsonSerializerName, beanClass)); ++ } ++ } catch (JsonMappingException e) { ++ throw new RuntimeException(e); ++ } ++ } ++ ++ private static class BeanHelper extends BeanSerializer { ++ ++ public BeanHelper(BeanSerializer src) { ++ super(src); ++ } ++ ++ public BeanPropertyWriter[] getProperties() { ++ return _props; ++ } ++ ++ } ++ ++} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/Jackson2Parser.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/Jackson2Parser.java +index dec22c40f..3341ea49c 100644 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/Jackson2Parser.java ++++ b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/Jackson2Parser.java +@@ -1,349 +1,113 @@ + + package cz.habarta.typescript.generator.parser; + +-import com.fasterxml.jackson.annotation.JsonAutoDetect; +-import com.fasterxml.jackson.annotation.JsonClassDescription; + import com.fasterxml.jackson.annotation.JsonFormat; +-import com.fasterxml.jackson.annotation.JsonIdentityInfo; +-import com.fasterxml.jackson.annotation.JsonIdentityReference; +-import com.fasterxml.jackson.annotation.JsonPropertyDescription; ++import com.fasterxml.jackson.annotation.JsonProperty; + import com.fasterxml.jackson.annotation.JsonSubTypes; + import com.fasterxml.jackson.annotation.JsonTypeInfo; +-import com.fasterxml.jackson.annotation.JsonUnwrapped; +-import com.fasterxml.jackson.annotation.JsonView; +-import com.fasterxml.jackson.annotation.ObjectIdGenerators; +-import com.fasterxml.jackson.annotation.PropertyAccessor; +-import com.fasterxml.jackson.core.type.TypeReference; +-import com.fasterxml.jackson.databind.AnnotationIntrospector; +-import com.fasterxml.jackson.databind.BeanDescription; +-import com.fasterxml.jackson.databind.BeanProperty; +-import com.fasterxml.jackson.databind.DeserializationContext; +-import com.fasterxml.jackson.databind.DeserializationFeature; +-import com.fasterxml.jackson.databind.JavaType; +-import com.fasterxml.jackson.databind.JsonDeserializer; +-import com.fasterxml.jackson.databind.JsonNode; +-import com.fasterxml.jackson.databind.JsonSerializer; +-import com.fasterxml.jackson.databind.Module; +-import com.fasterxml.jackson.databind.ObjectMapper; +-import com.fasterxml.jackson.databind.SerializationConfig; +-import com.fasterxml.jackson.databind.SerializationFeature; +-import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +-import com.fasterxml.jackson.databind.annotation.JsonSerialize; +-import com.fasterxml.jackson.databind.cfg.MutableConfigOverride; +-import com.fasterxml.jackson.databind.deser.BeanDeserializer; +-import com.fasterxml.jackson.databind.deser.BeanDeserializerFactory; +-import com.fasterxml.jackson.databind.deser.CreatorProperty; +-import com.fasterxml.jackson.databind.deser.DefaultDeserializationContext; +-import com.fasterxml.jackson.databind.deser.impl.BeanPropertyMap; +-import com.fasterxml.jackson.databind.introspect.AnnotatedClass; +-import com.fasterxml.jackson.databind.introspect.AnnotationIntrospectorPair; +-import com.fasterxml.jackson.databind.jsontype.NamedType; +-import com.fasterxml.jackson.databind.jsontype.SubtypeResolver; +-import com.fasterxml.jackson.databind.jsontype.TypeIdResolver; +-import com.fasterxml.jackson.databind.jsontype.TypeSerializer; +-import com.fasterxml.jackson.databind.ser.BeanPropertyWriter; +-import com.fasterxml.jackson.databind.ser.BeanSerializer; +-import com.fasterxml.jackson.databind.ser.BeanSerializerFactory; +-import com.fasterxml.jackson.databind.ser.DefaultSerializerProvider; +-import com.fasterxml.jackson.databind.type.TypeFactory; +-import com.fasterxml.jackson.module.jakarta.xmlbind.JakartaXmlBindAnnotationIntrospector; ++import com.fasterxml.jackson.annotation.JsonTypeName; ++import com.fasterxml.jackson.annotation.JsonValue; ++import com.fasterxml.jackson.databind.*; ++import com.fasterxml.jackson.databind.ser.*; + import com.fasterxml.jackson.module.jaxb.JaxbAnnotationIntrospector; +-import cz.habarta.typescript.generator.ExcludingTypeProcessor; +-import cz.habarta.typescript.generator.Jackson2ConfigurationResolved; +-import cz.habarta.typescript.generator.OptionalProperties; +-import cz.habarta.typescript.generator.Settings; +-import cz.habarta.typescript.generator.TsType; +-import cz.habarta.typescript.generator.TypeProcessor; +-import cz.habarta.typescript.generator.TypeScriptGenerator; ++import cz.habarta.typescript.generator.*; + import cz.habarta.typescript.generator.compiler.EnumKind; + import cz.habarta.typescript.generator.compiler.EnumMemberModel; +-import cz.habarta.typescript.generator.type.JUnionType; +-import cz.habarta.typescript.generator.util.Pair; +-import cz.habarta.typescript.generator.util.PropertyMember; +-import cz.habarta.typescript.generator.util.Utils; ++import cz.habarta.typescript.generator.util.Predicate; ++import java.beans.BeanInfo; ++import java.beans.Introspector; ++import java.beans.PropertyDescriptor; + import java.lang.annotation.Annotation; + import java.lang.reflect.Field; + import java.lang.reflect.Member; +-import java.lang.reflect.Modifier; ++import java.lang.reflect.Method; + import java.lang.reflect.Type; +-import java.util.ArrayList; +-import java.util.Arrays; +-import java.util.Collection; +-import java.util.Collections; +-import java.util.Comparator; +-import java.util.LinkedHashSet; +-import java.util.List; +-import java.util.Map; +-import java.util.Objects; +-import java.util.Optional; +-import java.util.function.Predicate; +-import java.util.stream.Collectors; +-import java.util.stream.Stream; ++import java.util.*; + + + public class Jackson2Parser extends ModelParser { + +- public static class Jackson2ParserFactory extends ModelParser.Factory { +- +- private final boolean useJaxbAnnotations; +- +- public Jackson2ParserFactory() { +- this(false); +- } +- +- private Jackson2ParserFactory(boolean useJaxbAnnotations) { +- this.useJaxbAnnotations = useJaxbAnnotations; +- } +- +- @Override +- public TypeProcessor getSpecificTypeProcessor() { +- return createSpecificTypeProcessor(); +- } +- +- @Override +- public Jackson2Parser create(Settings settings, TypeProcessor commonTypeProcessor, List restApplicationParsers) { +- return new Jackson2Parser(settings, commonTypeProcessor, restApplicationParsers, useJaxbAnnotations); +- } +- +- } +- +- public static class JaxbParserFactory extends Jackson2ParserFactory { +- +- public JaxbParserFactory() { +- super(true); +- } +- +- } +- + private final ObjectMapper objectMapper = new ObjectMapper(); + + public Jackson2Parser(Settings settings, TypeProcessor typeProcessor) { +- this(settings, typeProcessor, Collections.emptyList(), false); ++ this(settings, typeProcessor, false); + } + +- public Jackson2Parser(Settings settings, TypeProcessor commonTypeProcessor, List restApplicationParsers, boolean useJaxbAnnotations) { +- super(settings, commonTypeProcessor, restApplicationParsers); +- if (settings.jackson2ModuleDiscovery) { +- objectMapper.registerModules(ObjectMapper.findModules(settings.classLoader)); +- } +- for (Class moduleClass : settings.jackson2Modules) { +- try { +- objectMapper.registerModule(moduleClass.getConstructor().newInstance()); +- } catch (ReflectiveOperationException e) { +- throw new RuntimeException(String.format("Cannot instantiate Jackson2 module '%s'", moduleClass.getName()), e); +- } +- } ++ public Jackson2Parser(Settings settings, TypeProcessor typeProcessor, boolean useJaxbAnnotations) { ++ super(settings, typeProcessor); + if (useJaxbAnnotations) { +- final AnnotationIntrospector original = objectMapper.getSerializationConfig().getAnnotationIntrospector(); +- final AnnotationIntrospector jakartaIntrospector = new JakartaXmlBindAnnotationIntrospector(objectMapper.getTypeFactory()); +- final AnnotationIntrospector javaxIntrospector = new JaxbAnnotationIntrospector(objectMapper.getTypeFactory()); +- final AnnotationIntrospectorPair jaxbPair = new AnnotationIntrospectorPair(jakartaIntrospector, javaxIntrospector); +- final AnnotationIntrospectorPair pair = new AnnotationIntrospectorPair(jaxbPair, original); +- objectMapper.setAnnotationIntrospector(pair); +- } +- final Jackson2ConfigurationResolved config = settings.jackson2Configuration; +- if (config != null) { +- setVisibility(PropertyAccessor.FIELD, config.fieldVisibility); +- setVisibility(PropertyAccessor.GETTER, config.getterVisibility); +- setVisibility(PropertyAccessor.IS_GETTER, config.isGetterVisibility); +- setVisibility(PropertyAccessor.SETTER, config.setterVisibility); +- setVisibility(PropertyAccessor.CREATOR, config.creatorVisibility); +- if (config.shapeConfigOverrides != null) { +- config.shapeConfigOverrides.entrySet() +- .forEach(entry -> setShapeOverride(entry.getKey(), entry.getValue())); +- } +- if (config.enumsUsingToString) { +- objectMapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING); +- objectMapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING); +- } +- } +- } +- +- private void setVisibility(PropertyAccessor accessor, JsonAutoDetect.Visibility visibility) { +- if (visibility != null) { +- objectMapper.setVisibility(accessor, visibility); ++ AnnotationIntrospector introspector = new JaxbAnnotationIntrospector(objectMapper.getTypeFactory()); ++ objectMapper.setAnnotationIntrospector(introspector); + } + } + +- private void setShapeOverride(Class cls, JsonFormat.Shape shape) { +- final MutableConfigOverride configOverride = objectMapper.configOverride(cls); +- configOverride.setFormat( +- JsonFormat.Value.merge( +- configOverride.getFormat(), +- JsonFormat.Value.forShape(shape))); +- } ++ @Override ++ protected BeanModel parseBean(SourceType> sourceClass) { ++ final List properties = new ArrayList<>(); + +- private static TypeProcessor createSpecificTypeProcessor() { +- return new TypeProcessor.Chain( +- new ExcludingTypeProcessor(Arrays.asList(JsonNode.class.getName())), +- new TypeProcessor() { +- @Override +- public TypeProcessor.Result processType(Type javaType, TypeProcessor.Context context) { +- if (context.getTypeContext() instanceof Jackson2TypeContext) { +- final Jackson2TypeContext jackson2TypeContext = (Jackson2TypeContext) context.getTypeContext(); +- final Jackson2ConfigurationResolved config = jackson2TypeContext.parser.settings.jackson2Configuration; +- // JsonSerialize +- final JsonSerialize jsonSerialize = jackson2TypeContext.beanProperty.getAnnotation(JsonSerialize.class); +- if (jsonSerialize != null && config != null && config.serializerTypeMappings != null) { +- @SuppressWarnings("unchecked") +- final Class> using = (Class>) +- (context.isInsideCollection() ? jsonSerialize.contentUsing() : jsonSerialize.using()); +- final String mappedType = config.serializerTypeMappings.get(using); +- if (mappedType != null) { +- return new TypeProcessor.Result(new TsType.VerbatimType(mappedType)); +- } +- } +- // JsonDeserialize +- final JsonDeserialize jsonDeserialize = jackson2TypeContext.beanProperty.getAnnotation(JsonDeserialize.class); +- if (jsonDeserialize != null && config != null && config.deserializerTypeMappings != null) { +- @SuppressWarnings("unchecked") +- final Class> using = (Class>) +- (context.isInsideCollection() ? jsonDeserialize.contentUsing() : jsonDeserialize.using()); +- final String mappedType = config.deserializerTypeMappings.get(using); +- if (mappedType != null) { +- return new TypeProcessor.Result(new TsType.VerbatimType(mappedType)); +- } +- } +- // disableObjectIdentityFeature +- if (!jackson2TypeContext.disableObjectIdentityFeature) { +- final Type resultType = jackson2TypeContext.parser.processIdentity(javaType, jackson2TypeContext.beanProperty); +- if (resultType != null) { +- return context.withTypeContext(null).processType(resultType); +- } +- } +- // Map.Entry +- final Class rawClass = Utils.getRawClassOrNull(javaType); +- if (rawClass != null && Map.Entry.class.isAssignableFrom(rawClass)) { +- final ObjectMapper objectMapper = jackson2TypeContext.parser.objectMapper; +- final SerializationConfig serializationConfig = objectMapper.getSerializationConfig(); +- final BeanDescription beanDescription = serializationConfig +- .introspect(TypeFactory.defaultInstance().constructType(rawClass)); +- final JsonFormat.Value formatOverride = serializationConfig.getDefaultPropertyFormat(Map.Entry.class); +- final JsonFormat.Value formatFromAnnotation = beanDescription.findExpectedFormat(null); +- final JsonFormat.Value format = JsonFormat.Value.merge(formatFromAnnotation, formatOverride); +- if (format.getShape() != JsonFormat.Shape.OBJECT) { +- final Type mapType = Utils.replaceRawClassInType(javaType, Map.class); +- return context.processType(mapType); +- } ++ final BeanHelper beanHelper = getBeanHelper(sourceClass.type); ++ if (beanHelper != null) { ++ for (BeanPropertyWriter beanPropertyWriter : beanHelper.getProperties()) { ++ if (!isParentProperty(beanPropertyWriter.getName(), sourceClass.type)) { ++ Type propertyType = beanPropertyWriter.getGenericPropertyType(); ++ if (propertyType == JsonNode.class) { ++ propertyType = Object.class; ++ } ++ boolean isInAnnotationFilter = settings.includePropertyAnnotations.isEmpty(); ++ if (!isInAnnotationFilter) { ++ for (Class optionalAnnotation : settings.includePropertyAnnotations) { ++ if (beanPropertyWriter.getAnnotation(optionalAnnotation) != null) { ++ isInAnnotationFilter = true; ++ break; + } + } +- return null; ++ if (!isInAnnotationFilter) { ++ System.out.println("Skipping " + sourceClass.type + "." + beanPropertyWriter.getName() + " because it is missing an annotation from includePropertyAnnotations!"); ++ continue; ++ } + } ++ boolean optional = false; ++ for (Class optionalAnnotation : settings.optionalAnnotations) { ++ if (beanPropertyWriter.getAnnotation(optionalAnnotation) != null) { ++ optional = true; ++ break; ++ } ++ } ++ final Member originalMember = beanPropertyWriter.getMember().getMember(); ++ properties.add(processTypeAndCreateProperty(beanPropertyWriter.getName(), propertyType, optional, sourceClass.type, originalMember)); + } +- ); +- } +- +- private static class Jackson2TypeContext { +- public final Jackson2Parser parser; +- public final BeanProperty beanProperty; +- public final boolean disableObjectIdentityFeature; +- +- public Jackson2TypeContext(Jackson2Parser parser, BeanProperty beanProperty, boolean disableObjectIdentityFeature) { +- this.parser = parser; +- this.beanProperty = beanProperty; +- this.disableObjectIdentityFeature = disableObjectIdentityFeature; +- } +- } +- +- @Override +- protected DeclarationModel parseClass(SourceType> sourceClass) { +- final List classComments = getComments(sourceClass.type.getAnnotation(JsonClassDescription.class)); +- if (sourceClass.type.isEnum()) { +- return parseEnumOrObjectEnum(sourceClass, classComments); +- } else { +- return parseBean(sourceClass, classComments); +- } +- } +- +- private BeanModel parseBean(SourceType> sourceClass, List classComments) { +- final List properties = new ArrayList<>(); +- +- final Class view = settings.jackson2Configuration != null ? settings.jackson2Configuration.view : null; +- final BeanHelpers beanHelpers = getBeanHelpers(sourceClass.type, view); +- if (beanHelpers != null) { +- for (final Pair pair : beanHelpers.getPropertiesAndAccess()) { +- final BeanProperty beanProperty = pair.getValue1(); +- final PropertyAccess access = pair.getValue2(); +- final Member member = beanProperty.getMember().getMember(); +- final PropertyMember propertyMember = wrapMember(settings.getTypeParser(), member, getCreatorIndex(beanProperty), beanProperty::getAnnotation, beanProperty.getName(), sourceClass.type); +- if (propertyMember == null) { +- continue; +- } +- Type propertyType = propertyMember.getType(); +- final List propertyComments = getComments(beanProperty.getAnnotation(JsonPropertyDescription.class)); +- +- final Jackson2TypeContext jackson2TypeContext = new Jackson2TypeContext( +- this, +- beanProperty, +- settings.jackson2Configuration != null && settings.jackson2Configuration.disableObjectIdentityFeature); +- +- if (!isAnnotatedPropertyIncluded(beanProperty::getAnnotation, sourceClass.type.getName() + "." + beanProperty.getName())) { +- continue; +- } +- final boolean optional = settings.optionalProperties == OptionalProperties.useLibraryDefinition +- ? !beanProperty.isRequired() +- : isPropertyOptional(propertyMember); +- // @JsonUnwrapped +- PropertyModel.PullProperties pullProperties = null; +- final JsonUnwrapped annotation = beanProperty.getAnnotation(JsonUnwrapped.class); +- if (annotation != null && annotation.enabled()) { +- pullProperties = new PropertyModel.PullProperties(annotation.prefix(), annotation.suffix()); +- } +- properties.add(processTypeAndCreateProperty(beanProperty.getName(), propertyType, jackson2TypeContext, optional, access, sourceClass.type, member, pullProperties, propertyComments)); + } + } +- if (sourceClass.type.isEnum()) { +- return new BeanModel(sourceClass.type, null, null, null, null, null, properties, classComments); +- } + + final String discriminantProperty; +- final boolean syntheticDiscriminantProperty; + final String discriminantLiteral; + +- final Pair, JsonTypeInfo> classWithJsonTypeInfo = Pair.of(sourceClass.type, sourceClass.type.getAnnotation(JsonTypeInfo.class)); +- final Pair, JsonTypeInfo> parentClassWithJsonTypeInfo; +- final boolean isTaggedUnionParent = isTaggedUnion(classWithJsonTypeInfo); +- if (isTaggedUnionParent) { ++ final JsonTypeInfo jsonTypeInfo = sourceClass.type.getAnnotation(JsonTypeInfo.class); ++ final JsonTypeInfo parentJsonTypeInfo; ++ if (isSupported(jsonTypeInfo)) { + // this is parent +- final JsonTypeInfo jsonTypeInfo = classWithJsonTypeInfo.getValue2(); + discriminantProperty = getDiscriminantPropertyName(jsonTypeInfo); +- syntheticDiscriminantProperty = isDiscriminantPropertySynthetic(jsonTypeInfo); +- discriminantLiteral = isInterfaceOrAbstract(sourceClass.type) ? null : getTypeName(sourceClass.type); +- } else if (isTaggedUnion(parentClassWithJsonTypeInfo = getAnnotationRecursive(sourceClass.type, JsonTypeInfo.class))) { ++ discriminantLiteral = null; ++ } else if (!sourceClass.type.isInterface() && isSupported(parentJsonTypeInfo = getAnnotationRecursive(sourceClass.type, JsonTypeInfo.class))) { + // this is child class +- final JsonTypeInfo parentJsonTypeInfo = parentClassWithJsonTypeInfo.getValue2(); + discriminantProperty = getDiscriminantPropertyName(parentJsonTypeInfo); +- syntheticDiscriminantProperty = isDiscriminantPropertySynthetic(parentJsonTypeInfo); + discriminantLiteral = getTypeName(sourceClass.type); + } else { + // not part of explicit hierarchy + discriminantProperty = null; +- syntheticDiscriminantProperty = false; + discriminantLiteral = null; + } +- +- if (discriminantProperty != null) { +- final PropertyModel foundDiscriminantProperty = properties.stream() +- .filter(property -> Objects.equals(property.getName(), discriminantProperty)) +- .findFirst() +- .orElse(null); +- if (foundDiscriminantProperty != null) { +- if (syntheticDiscriminantProperty) { +- TypeScriptGenerator.getLogger().warning(String.format( +- "Class '%s' has duplicate property '%s'. " +- + "For more information see 'https://github.com/vojtechhabarta/typescript-generator/issues/392'.", +- sourceClass.type.getName(), discriminantProperty)); +- } else { +- properties.remove(foundDiscriminantProperty); +- } ++ ++ final List> taggedUnionClasses; ++ final JsonSubTypes jsonSubTypes = sourceClass.type.getAnnotation(JsonSubTypes.class); ++ if (jsonSubTypes != null) { ++ taggedUnionClasses = new ArrayList<>(); ++ for (JsonSubTypes.Type type : jsonSubTypes.value()) { ++ addBeanToQueue(new SourceType<>(type.value(), sourceClass.type, "")); ++ taggedUnionClasses.add(type.value()); + } +- } +- +- final List> taggedUnionClasses = getSubClassesFromAnnotation(sourceClass.type) +- .or(() -> isTaggedUnionParent ? getSubClassesFromResolver(sourceClass.type) : Optional.empty()) +- .orElse(null); +- if (taggedUnionClasses != null) { +- taggedUnionClasses.forEach(subClass -> addBeanToQueue(new SourceType<>(subClass, sourceClass.type, ""))); ++ } else { ++ taggedUnionClasses = null; + } + final Type superclass = sourceClass.type.getGenericSuperclass() == Object.class ? null : sourceClass.type.getGenericSuperclass(); + if (superclass != null) { +@@ -353,436 +117,218 @@ public class Jackson2Parser extends ModelParser { + for (Type aInterface : interfaces) { + addBeanToQueue(new SourceType<>(aInterface, sourceClass.type, "")); + } +- return new BeanModel(sourceClass.type, superclass, taggedUnionClasses, discriminantProperty, discriminantLiteral, interfaces, properties, classComments); ++ return new BeanModel(sourceClass.type, superclass, taggedUnionClasses, discriminantProperty, discriminantLiteral, interfaces, properties, null); + } + +- private static Integer getCreatorIndex(BeanProperty beanProperty) { +- if (beanProperty instanceof CreatorProperty) { +- final CreatorProperty creatorProperty = (CreatorProperty) beanProperty; +- return creatorProperty.getCreatorIndex(); +- } else { +- return null; ++ private boolean isParentProperty(String property, Class cls) { ++ final List> parents = new ArrayList<>(); ++ if (cls.getSuperclass() != null && cls.getSuperclass() != Object.class) { ++ parents.add(cls.getSuperclass()); + } +- } +- +- // @JsonIdentityInfo and @JsonIdentityReference +- private Type processIdentity(Type propertyType, BeanProperty beanProperty) { +- +- final Class clsT = Utils.getRawClassOrNull(propertyType); +- final Class clsW = beanProperty.getType().getRawClass(); +- final Class cls = clsT != null ? clsT : clsW; +- +- if (cls != null) { +- final JsonIdentityInfo identityInfoC = getAnnotationRecursive(cls, JsonIdentityInfo.class).getValue2(); +- final JsonIdentityInfo identityInfoP = beanProperty.getAnnotation(JsonIdentityInfo.class); +- final JsonIdentityInfo identityInfo = identityInfoP != null ? identityInfoP : identityInfoC; +- if (identityInfo == null) { +- return null; +- } +- final JsonIdentityReference identityReferenceC = getAnnotationRecursive(cls, JsonIdentityReference.class).getValue2(); +- final JsonIdentityReference identityReferenceP = beanProperty.getAnnotation(JsonIdentityReference.class); +- final JsonIdentityReference identityReference = identityReferenceP != null ? identityReferenceP : identityReferenceC; +- final boolean alwaysAsId = identityReference != null && identityReference.alwaysAsId(); +- +- final Type idType; +- if (identityInfo.generator() == ObjectIdGenerators.None.class) { +- return null; +- } else if (identityInfo.generator() == ObjectIdGenerators.PropertyGenerator.class) { +- final BeanHelpers beanHelpers = getBeanHelpers(cls, null); +- if (beanHelpers == null) { +- return null; +- } +- final List properties = beanHelpers.getProperties(); +- final Optional idPropertyOptional = properties.stream() +- .filter(p -> p.getName().equals(identityInfo.property())) +- .findFirst(); +- if (idPropertyOptional.isPresent()) { +- final BeanProperty idProperty = idPropertyOptional.get(); +- final Member idMember = idProperty.getMember().getMember(); +- final PropertyMember idPropertyMember = wrapMember(settings.getTypeParser(), idMember, getCreatorIndex(idProperty), idProperty::getAnnotation, idProperty.getName(), cls); +- idType = idPropertyMember != null ? idPropertyMember.getType() : Object.class; +- } else { +- return null; ++ parents.addAll(Arrays.asList(cls.getInterfaces())); ++ for (Class parent : parents) { ++ if (!settings.getExcludeFilter().test(parent.getName())) { ++ final BeanHelper beanHelper = getBeanHelper(parent); ++ if (beanHelper != null) { ++ for (BeanPropertyWriter beanPropertyWriter : beanHelper.getProperties()) { ++ if (beanPropertyWriter.getName().equals(property)) { ++ return true; ++ } ++ } + } +- } else if (identityInfo.generator() == ObjectIdGenerators.IntSequenceGenerator.class) { +- idType = Integer.class; +- } else if (identityInfo.generator() == ObjectIdGenerators.UUIDGenerator.class) { +- idType = String.class; +- } else if (identityInfo.generator() == ObjectIdGenerators.StringIdGenerator.class) { +- idType = String.class; +- } else { +- idType = Object.class; + } +- return alwaysAsId +- ? idType +- : new JUnionType(propertyType, idType); + } +- return null; ++ return false; + } + +- private boolean isTaggedUnion(Pair, JsonTypeInfo> classWithJsonTypeInfo) { +- final Class cls = classWithJsonTypeInfo.getValue1(); +- final JsonTypeInfo jsonTypeInfo = classWithJsonTypeInfo.getValue2(); +- if (cls == null || Utils.hasAnyAnnotation(cls::getAnnotation, settings.disableTaggedUnionAnnotations)) { +- return false; +- } ++ private static boolean isSupported(JsonTypeInfo jsonTypeInfo) { + return jsonTypeInfo != null && +- (jsonTypeInfo.include() == JsonTypeInfo.As.PROPERTY || jsonTypeInfo.include() == JsonTypeInfo.As.EXISTING_PROPERTY) && ++ jsonTypeInfo.include() == JsonTypeInfo.As.PROPERTY && + (jsonTypeInfo.use() == JsonTypeInfo.Id.NAME || jsonTypeInfo.use() == JsonTypeInfo.Id.CLASS); + } + +- private boolean isDiscriminantPropertySynthetic(JsonTypeInfo jsonTypeInfo) { +- return jsonTypeInfo.include() == JsonTypeInfo.As.PROPERTY; +- } +- + private String getDiscriminantPropertyName(JsonTypeInfo jsonTypeInfo) { + return jsonTypeInfo.property().isEmpty() + ? jsonTypeInfo.use().getDefaultPropertyName() + : jsonTypeInfo.property(); + } + +- private String getTypeName(Class cls) { +- try { +- final SerializationConfig config = objectMapper.getSerializationConfig(); +- final JavaType javaType = config.constructType(cls); +- final TypeSerializer typeSerializer = objectMapper.getSerializerProviderInstance().findTypeSerializer(javaType); +- final TypeIdResolver typeIdResolver = typeSerializer.getTypeIdResolver(); +- if (typeIdResolver.getMechanism() == JsonTypeInfo.Id.NAME) { +- final List subtypes = getSubtypesFromResolver(cls); +- final String typeName = subtypes.stream() +- .filter(subtype -> Objects.equals(subtype.getType(), cls)) +- .filter(NamedType::hasName) +- .map(NamedType::getName) +- .findFirst() +- .orElse(null); +- if (typeName == null) { +- return isInterfaceOrAbstract(cls) ? null : typeIdResolver.idFromBaseType(); +- } else { +- return typeName; +- } +- } else { +- return typeIdResolver.idFromBaseType(); ++ private String getTypeName(final Class cls) { ++ // find @JsonTypeName recursively ++ final JsonTypeName jsonTypeName = getAnnotationRecursive(cls, JsonTypeName.class); ++ if (jsonTypeName != null) { ++ return jsonTypeName.value(); ++ } ++ // find @JsonSubTypes.Type recursively ++ final JsonSubTypes jsonSubTypes = getAnnotationRecursive(cls, JsonSubTypes.class, new Predicate() { ++ @Override ++ public boolean test(JsonSubTypes types) { ++ return getJsonSubTypeForClass(types, cls) != null; ++ } ++ }); ++ if (jsonSubTypes != null) { ++ final JsonSubTypes.Type jsonSubType = getJsonSubTypeForClass(jsonSubTypes, cls); ++ if (!jsonSubType.name().isEmpty()) { ++ return jsonSubType.name(); + } +- } catch (Exception e) { +- return null; + } ++ // use simplified class name ++ return cls.getName().substring(cls.getName().lastIndexOf(".") + 1); + } + +- private Optional>> getSubClassesFromAnnotation(Class cls) { +- return Optional.ofNullable(cls.getAnnotation(JsonSubTypes.class)) +- .map(jsonSubTypes -> Arrays.stream(jsonSubTypes.value()) +- .map(jsonSubType -> jsonSubType.value()) +- .collect(Collectors.toList())); +- } +- +- private Optional>> getSubClassesFromResolver(Class cls) { +- final List subtypes = getSubtypesFromResolver(cls); +- final List> subClasses = subtypes.stream() +- .map(subtype -> subtype.getType()) +- .filter(subClass -> !Objects.equals(subClass, cls)) +- .collect(Collectors.toList()); +- return subClasses.isEmpty() ? Optional.empty() : Optional.of(subClasses); +- } +- +- /** +- * @return subtypes of specified class including the class itself +- */ +- private List getSubtypesFromResolver(Class cls) { +- final SerializationConfig config = objectMapper.getSerializationConfig(); +- final SubtypeResolver subtypeResolver = config.getSubtypeResolver(); +- final BeanDescription beanDescription = config.introspectClassAnnotations(cls); +- final AnnotatedClass annotatedClass = beanDescription.getClassInfo(); +- final Collection deserializationSubtypes = subtypeResolver.collectAndResolveSubtypesByTypeId(config, annotatedClass); +- final Collection serializationSubtypes = subtypeResolver.collectAndResolveSubtypesByClass(config, annotatedClass); +- final LinkedHashSet subtypes = Stream +- .concat(deserializationSubtypes.stream(), serializationSubtypes.stream()) +- .filter(namedType -> cls.isAssignableFrom(namedType.getType())) // `SubtypeResolver` returns all types from `JsonSubTypes` annotations, not only subtypes +- .collect(Collectors.toCollection(LinkedHashSet::new)); +- return new ArrayList<>(subtypes); +- } +- +- private boolean isInterfaceOrAbstract(Class cls) { +- return cls.isInterface() || Modifier.isAbstract(cls.getModifiers()); ++ private static JsonSubTypes.Type getJsonSubTypeForClass(JsonSubTypes types, Class cls) { ++ for (JsonSubTypes.Type type : types.value()) { ++ if (type.value().equals(cls)) { ++ return type; ++ } ++ } ++ return null; + } + +- private static Pair, T> getAnnotationRecursive(Class cls, Class annotationClass) { ++ private static T getAnnotationRecursive(Class cls, Class annotationClass) { + return getAnnotationRecursive(cls, annotationClass, null); + } + +- private static Pair, T> getAnnotationRecursive(Class cls, Class annotationClass, Predicate annotationFilter) { ++ private static T getAnnotationRecursive(Class cls, Class annotationClass, Predicate annotationFilter) { + if (cls == null) { +- return Pair.of(null, null); ++ return null; + } + final T annotation = cls.getAnnotation(annotationClass); + if (annotation != null && (annotationFilter == null || annotationFilter.test(annotation))) { +- return Pair.of(cls, annotation); ++ return annotation; + } + for (Class aInterface : cls.getInterfaces()) { +- final Pair, T> classWithAnnotation = getAnnotationRecursive(aInterface, annotationClass, annotationFilter); +- if (classWithAnnotation.getValue2() != null) { +- return classWithAnnotation; ++ final T interfaceAnnotation = getAnnotationRecursive(aInterface, annotationClass, annotationFilter); ++ if (interfaceAnnotation != null) { ++ return interfaceAnnotation; + } + } +- final Pair, T> classWithAnnotation = getAnnotationRecursive(cls.getSuperclass(), annotationClass, annotationFilter); +- if (classWithAnnotation.getValue2() != null) { +- return classWithAnnotation; ++ final T superclassAnnotation = getAnnotationRecursive(cls.getSuperclass(), annotationClass, annotationFilter); ++ if (superclassAnnotation != null) { ++ return superclassAnnotation; + } +- return Pair.of(null, null); ++ return null; + } + +- private BeanHelpers getBeanHelpers(Class beanClass, Class view) { ++ private BeanHelper getBeanHelper(Class beanClass) { + if (beanClass == null) { + return null; + } +- if (beanClass == Enum.class) { +- return null; +- } +- final JavaType javaType = objectMapper.constructType(beanClass); +- final BeanSerializerHelper beanSerializerHelper = createBeanSerializerHelper(javaType); +- final BeanDeserializerHelper beanDeserializerHelper = createBeanDeserializerHelper(javaType); +- if (beanSerializerHelper != null || beanDeserializerHelper != null) { +- return new BeanHelpers(beanClass, view, beanSerializerHelper, beanDeserializerHelper); +- } +- return null; +- } +- +- private BeanSerializerHelper createBeanSerializerHelper(JavaType javaType) { + try { +- final DefaultSerializerProvider.Impl serializerProvider = new DefaultSerializerProvider.Impl() +- .createInstance(objectMapper.getSerializationConfig(), objectMapper.getSerializerFactory()); +- final JsonSerializer jsonSerializer = BeanSerializerFactory.instance.createSerializer(serializerProvider, javaType); +- if (jsonSerializer != null && jsonSerializer instanceof BeanSerializer) { +- return new BeanSerializerHelper((BeanSerializer) jsonSerializer); +- } else { ++ final DefaultSerializerProvider.Impl serializerProvider1 = (DefaultSerializerProvider.Impl) objectMapper.getSerializerProvider(); ++ final DefaultSerializerProvider.Impl serializerProvider2 = serializerProvider1.createInstance(objectMapper.getSerializationConfig(), objectMapper.getSerializerFactory()); ++ final JavaType simpleType = objectMapper.constructType(beanClass); ++ final JsonSerializer jsonSerializer = BeanSerializerFactory.instance.createSerializer(serializerProvider2, simpleType); ++ if (jsonSerializer == null) { + return null; + } +- } catch (Exception e) { +- return null; +- } +- } +- +- private BeanDeserializerHelper createBeanDeserializerHelper(JavaType javaType) { +- try { +- final DeserializationContext deserializationContext = new DefaultDeserializationContext.Impl(objectMapper.getDeserializationContext().getFactory()) +- .createInstance(objectMapper.getDeserializationConfig(), null, null); +- final BeanDescription beanDescription = deserializationContext.getConfig().introspect(javaType); +- final JsonDeserializer jsonDeserializer = BeanDeserializerFactory.instance.createBeanDeserializer(deserializationContext, javaType, beanDescription); +- if (jsonDeserializer != null && jsonDeserializer instanceof BeanDeserializer) { +- return new BeanDeserializerHelper((BeanDeserializer) jsonDeserializer); ++ if (jsonSerializer instanceof BeanSerializer) { ++ return new BeanHelper((BeanSerializer) jsonSerializer); + } else { ++ final String jsonSerializerName = jsonSerializer.getClass().getName(); ++ if (settings.displaySerializerWarning) { ++ System.out.println(String.format("Warning: Unknown serializer '%s' for class '%s'", jsonSerializerName, beanClass)); ++ } + return null; + } +- } catch (Exception e) { +- return null; +- } +- } +- +- // for tests +- protected List getBeanProperties(Class beanClass) { +- return getBeanHelpers(beanClass, null).getProperties(); +- } +- +- private static class BeanHelpers { +- public final Class beanClass; +- public final Class view; +- public final BeanSerializerHelper serializer; +- public final BeanDeserializerHelper deserializer; +- +- public BeanHelpers(Class beanClass, Class view, BeanSerializerHelper serializer, BeanDeserializerHelper deserializer) { +- this.beanClass = beanClass; +- this.view = view; +- this.serializer = serializer; +- this.deserializer = deserializer; +- } +- +- public List getProperties() { +- return getPropertiesAndAccess().stream() +- .map(Pair::getValue1) +- .collect(Collectors.toList()); +- } +- +- public List> getPropertiesAndAccess() { +- return getPropertiesPairs().stream() +- .map(pair -> pair.getValue1() != null +- ? Pair.of(pair.getValue1(), pair.getValue2() != null ? PropertyAccess.ReadWrite : PropertyAccess.ReadOnly) +- : Pair.of(pair.getValue2(), PropertyAccess.WriteOnly) +- ) +- .collect(Collectors.toList()); +- } +- +- private List> getPropertiesPairs() { +- final List serializableProperties = getSerializableProperties(); +- final List deserializableProperties = getDeserializableProperties(); +- final List> properties = Stream +- .concat( +- serializableProperties.stream() +- .filter(this::inView) +- .map(property -> Pair.of(property, getBeanProperty(deserializableProperties, property.getName()))), +- deserializableProperties.stream() +- .filter(this::inView) +- .filter(property -> getBeanProperty(serializableProperties, property.getName()) == null) +- .map(property -> Pair.of((BeanProperty) null, property)) +- ) +- .collect(Collectors.toCollection(ArrayList::new)); +- +- // sort +- final Comparator> bySerializationOrder = (pair1, pair2) -> +- pair1.getValue1() != null && pair2.getValue1() != null +- ? Integer.compare( +- serializableProperties.indexOf(pair1.getValue1()), +- serializableProperties.indexOf(pair2.getValue1())) +- : 0; +- final Comparator> byIndex = Comparator.comparing( +- pair -> getIndex(pair), +- Comparator.nullsLast(Comparator.naturalOrder())); +- final List fields = Utils.getAllFields(beanClass); +- final Comparator> byFieldIndex = Comparator.comparing( +- pair -> getFieldIndex(fields, pair), +- Comparator.nullsLast(Comparator.naturalOrder())); +- properties.sort(bySerializationOrder +- .thenComparing(byIndex) +- .thenComparing(byFieldIndex)); +- return properties; +- } +- +- private boolean inView(BeanProperty beanProperty) { +- if (view == null) { +- return true; +- } +- final JsonView annotation = beanProperty.getAnnotation(JsonView.class); +- if (annotation == null || annotation.value().length == 0) { +- return true; +- } +- return Stream.of(annotation.value()) +- .anyMatch(v -> v.isAssignableFrom(view)); +- } +- +- private static BeanProperty getBeanProperty(List properties, String name) { +- return properties.stream() +- .filter(dp -> Objects.equals(dp.getName(), name)) +- .findFirst() +- .orElse(null); +- } +- +- private static Integer getIndex(Pair pair) { +- final Integer index1 = getIndex(pair.getValue1()); +- return index1 != null ? index1 : getIndex(pair.getValue2()); +- } +- +- private static Integer getIndex(BeanProperty property) { +- if (property == null) { +- return null; +- } +- return property.getMetadata().getIndex(); +- } +- +- private static Integer getFieldIndex(List fields, Pair pair) { +- final Integer fieldIndex1 = getFieldIndex(fields, pair.getValue1()); +- return fieldIndex1 != null ? fieldIndex1 : getFieldIndex(fields, pair.getValue2()); +- } +- +- private static Integer getFieldIndex(List fields, BeanProperty property) { +- if (property == null) { +- return null; +- } +- final int index = fields.indexOf(property.getMember().getMember()); +- return index != -1 ? index : null; +- } +- +- private List getSerializableProperties() { +- return serializer != null +- ? Arrays.asList(serializer.getProps()) +- : Collections.emptyList(); +- } +- +- private List getDeserializableProperties() { +- return deserializer != null +- ? Arrays.asList(deserializer.getBeanProperties().getPropertiesInInsertionOrder()) +- : Collections.emptyList(); ++ } catch (JsonMappingException e) { ++ throw new RuntimeException(e); + } + } + +- private static class BeanSerializerHelper extends BeanSerializer { ++ private static class BeanHelper extends BeanSerializer { + private static final long serialVersionUID = 1; + +- public BeanSerializerHelper(BeanSerializer src) { ++ public BeanHelper(BeanSerializer src) { + super(src); + } + +- public BeanPropertyWriter[] getProps() { ++ public BeanPropertyWriter[] getProperties() { + return _props; + } +- } + +- private static class BeanDeserializerHelper extends BeanDeserializer { +- private static final long serialVersionUID = 1; +- +- public BeanDeserializerHelper(BeanDeserializer src) { +- super(src); +- } +- +- public BeanPropertyMap getBeanProperties() { +- return _beanProperties; +- } + } + +- private DeclarationModel parseEnumOrObjectEnum(SourceType> sourceClass, List classComments) { ++ @Override ++ protected EnumModel parseEnum(SourceType> sourceClass) { + final JsonFormat jsonFormat = sourceClass.type.getAnnotation(JsonFormat.class); +- if (jsonFormat != null && jsonFormat.shape() == JsonFormat.Shape.OBJECT) { +- return parseBean(sourceClass, classComments); +- } + final boolean isNumberBased = jsonFormat != null && ( + jsonFormat.shape() == JsonFormat.Shape.NUMBER || + jsonFormat.shape() == JsonFormat.Shape.NUMBER_FLOAT || + jsonFormat.shape() == JsonFormat.Shape.NUMBER_INT); + +- final List enumMembers = new ArrayList<>(); ++ final List> stringMembers = new ArrayList<>(); ++ final List> numberMembers = new ArrayList<>(); + if (sourceClass.type.isEnum()) { +- @SuppressWarnings("unchecked") +- final Class> enumClass = (Class>) sourceClass.type; +- final List constants = Arrays.stream(enumClass.getEnumConstants()).map(e -> { +- try { +- return enumClass.getDeclaredField(e.name()); +- } catch (NoSuchFieldException noSuchFieldException) { +- throw new RuntimeException(noSuchFieldException); +- } +- }).collect(Collectors.toList()); +- for (Field constant : constants) { +- Object value; +- try { +- constant.setAccessible(true); +- final String enumJson = objectMapper.writeValueAsString(constant.get(null)); +- value = objectMapper.readValue(enumJson, new TypeReference(){}); +- } catch (Throwable e) { +- TypeScriptGenerator.getLogger().error(String.format("Cannot get enum value for constant '%s.%s'", enumClass.getName(), constant.getName())); +- TypeScriptGenerator.getLogger().verbose(Utils.exceptionToString(e)); +- value = constant.getName(); ++ final Class enumClass = (Class) sourceClass.type; ++ ++ try { ++ Method valueMethod = null; ++ final BeanInfo beanInfo = Introspector.getBeanInfo(enumClass); ++ for (PropertyDescriptor propertyDescriptor : beanInfo.getPropertyDescriptors()) { ++ final Method readMethod = propertyDescriptor.getReadMethod(); ++ if (readMethod.isAnnotationPresent(JsonValue.class)) { ++ valueMethod = readMethod; ++ } + } + +- final List constantComments = getComments(constant.getAnnotation(JsonPropertyDescription.class)); +- if (value instanceof String) { +- enumMembers.add(new EnumMemberModel(constant.getName(), (String) value, constant, constantComments)); +- } else if (value instanceof Number) { +- enumMembers.add(new EnumMemberModel(constant.getName(), (Number) value, constant, constantComments)); +- } else { +- TypeScriptGenerator.getLogger().warning(String.format("'%s' enum as a @JsonValue that isn't a String or Number, ignoring", enumClass.getName())); ++ int index = 0; ++ for (Field field : enumClass.getFields()) { ++ if (field.isEnumConstant()) { ++ if (isNumberBased) { ++ final Number value = getNumberEnumValue(field, valueMethod, index++); ++ numberMembers.add(new EnumMemberModel<>(field.getName(), value, null)); ++ } else { ++ final String value = getStringEnumValue(field, valueMethod); ++ stringMembers.add(new EnumMemberModel<>(field.getName(), value, null)); ++ } ++ } + } ++ } catch (Exception e) { ++ System.out.println(String.format("Cannot get enum values for '%s' enum", enumClass.getName())); ++ e.printStackTrace(System.out); + } + } + +- return new EnumModel(sourceClass.type, isNumberBased ? EnumKind.NumberBased : EnumKind.StringBased, enumMembers, classComments); ++ if (isNumberBased) { ++ return new EnumModel<>(sourceClass.type, EnumKind.NumberBased, numberMembers, null); ++ } else { ++ return new EnumModel<>(sourceClass.type, EnumKind.StringBased, stringMembers, null); ++ } ++ } ++ ++ private Number getNumberEnumValue(Field field, Method valueMethod, int index) throws Exception { ++ if (valueMethod != null) { ++ final Object valueObject = invokeJsonValueMethod(field, valueMethod); ++ if (valueObject instanceof Number) { ++ return (Number) valueObject; ++ } ++ } ++ return index; + } + +- private static List getComments(JsonClassDescription classDescriptionAnnotation) { +- final String propertyDescriptionValue = classDescriptionAnnotation != null ? classDescriptionAnnotation.value() : null; +- final List classComments = Utils.splitMultiline(propertyDescriptionValue, false); +- return classComments; ++ private String getStringEnumValue(Field field, Method valueMethod) throws Exception { ++ if (valueMethod != null) { ++ final Object valueObject = invokeJsonValueMethod(field, valueMethod); ++ if (valueObject instanceof String) { ++ return (String) valueObject; ++ } ++ } ++ if (field.isAnnotationPresent(JsonProperty.class)) { ++ final JsonProperty jsonProperty = field.getAnnotation(JsonProperty.class); ++ if (!jsonProperty.value().equals(JsonProperty.USE_DEFAULT_NAME)) { ++ return jsonProperty.value(); ++ } ++ } ++ return field.getName(); + } + +- private static List getComments(JsonPropertyDescription propertyDescriptionAnnotation) { +- final String propertyDescriptionValue = propertyDescriptionAnnotation != null ? propertyDescriptionAnnotation.value() : null; +- final List propertyComments = Utils.splitMultiline(propertyDescriptionValue, false); +- return propertyComments; ++ private Object invokeJsonValueMethod(Field field, Method valueMethod) throws ReflectiveOperationException { ++ field.setAccessible(true); ++ final Object constant = field.get(null); ++ valueMethod.setAccessible(true); ++ final Object valueObject = valueMethod.invoke(constant); ++ return valueObject; + } + + } +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/Javadoc.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/Javadoc.java +index 840fd20f8..b2789c1e2 100644 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/Javadoc.java ++++ b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/Javadoc.java +@@ -1,10 +1,7 @@ + + package cz.habarta.typescript.generator.parser; + +-import cz.habarta.typescript.generator.Settings; +-import cz.habarta.typescript.generator.TypeScriptGenerator; + import cz.habarta.typescript.generator.compiler.EnumMemberModel; +-import cz.habarta.typescript.generator.util.Utils; + import cz.habarta.typescript.generator.xmldoclet.Class; + import cz.habarta.typescript.generator.xmldoclet.Enum; + import cz.habarta.typescript.generator.xmldoclet.EnumConstant; +@@ -14,29 +11,24 @@ import cz.habarta.typescript.generator.xmldoclet.Method; + import cz.habarta.typescript.generator.xmldoclet.Package; + import cz.habarta.typescript.generator.xmldoclet.Root; + import cz.habarta.typescript.generator.xmldoclet.TagInfo; +-import jakarta.xml.bind.JAXB; + import java.io.File; +-import java.util.ArrayList; +-import java.util.List; +-import java.util.Objects; ++import java.util.*; ++import javax.xml.bind.JAXB; + + + public class Javadoc { + +- private final String newline; + private final List dRoots; + +- public Javadoc(Settings settings) { +- Objects.requireNonNull(settings, "settings"); +- this.newline = settings.newline; +- this.dRoots = loadJavadocXmlFiles(settings.javadocXmlFiles); ++ public Javadoc(List javadocXmlFiles) { ++ this.dRoots = loadJavadocXmlFiles(javadocXmlFiles); + } + + private static List loadJavadocXmlFiles(List javadocXmlFiles) { + final List dRoots = new ArrayList<>(); + if (javadocXmlFiles != null) { + for (File file : javadocXmlFiles) { +- TypeScriptGenerator.getLogger().info("Loading Javadoc XML file: " + file); ++ System.out.println("Loading Javadoc XML file: " + file); + final Root dRoot = JAXB.unmarshal(file, Root.class); + dRoots.add(dRoot); + } +@@ -48,21 +40,16 @@ public class Javadoc { + + public Model enrichModel(Model model) { + final List dBeans = new ArrayList<>(); ++ final List> dEnums = new ArrayList<>(); + for (BeanModel bean : model.getBeans()) { + final BeanModel dBean = enrichBean(bean); + dBeans.add(dBean); + } +- final List dEnums = new ArrayList<>(); +- for (EnumModel enumModel : model.getEnums()) { +- final EnumModel dEnumModel = enrichEnum(enumModel); ++ for (EnumModel enumModel : model.getEnums()) { ++ final EnumModel dEnumModel = enrichEnum(enumModel); + dEnums.add(dEnumModel); + } +- final List dRestApplications = new ArrayList<>(); +- for (RestApplicationModel restApplication : model.getRestApplications()) { +- final RestApplicationModel dRestApplication = enrichRestApplication(restApplication); +- dRestApplications.add(dRestApplication); +- } +- return new Model(dBeans, dEnums, dRestApplications); ++ return new Model(dBeans, dEnums); + } + + private BeanModel enrichBean(BeanModel bean) { +@@ -86,88 +73,49 @@ public class Javadoc { + final PropertyModel enrichedProperty = enrichProperty(property, dFields, dMethods); + enrichedProperties.add(enrichedProperty); + } +- return bean +- .withProperties(enrichedProperties) +- .withComments(combineComments(getComments(beanComment, tags), bean.getComments())); ++ return bean.withProperties(enrichedProperties).withComments(concat(getComments(beanComment, tags), bean.getComments())); + } + + private PropertyModel enrichProperty(PropertyModel property, List dFields, List dMethods) { +- String propertyComment = null; +- List tags = null; ++ final String propertyComment; ++ final List tags; + if (property.getOriginalMember() instanceof java.lang.reflect.Method) { +- final java.lang.reflect.Method method = (java.lang.reflect.Method) property.getOriginalMember(); +- final Method dMethod = findJavadocMethod(method.getName(), dMethods); ++ final Method dMethod = findJavadocMethod(property.getOriginalMember().getName(), dMethods); + propertyComment = dMethod != null ? dMethod.getComment() : null; + tags = dMethod != null ? dMethod.getTag() : null; + } else if (property.getOriginalMember() instanceof java.lang.reflect.Field) { +- final java.lang.reflect.Field field = (java.lang.reflect.Field) property.getOriginalMember(); +- final Field dField = findJavadocField(field.getName(), dFields); ++ final Field dField = findJavadocField(property.getOriginalMember().getName(), dFields); + propertyComment = dField != null ? dField.getComment() : null; + tags = dField != null ? dField.getTag() : null; +- } +- if (propertyComment == null ) { +- //give a chance for comments on fields but not on getter setters ++ } else { + final Field dField = findJavadocField(property.getName(), dFields); + propertyComment = dField != null ? dField.getComment() : null; + tags = dField != null ? dField.getTag() : null; + } +- return property +- .withComments(combineComments(getComments(propertyComment, tags), property.getComments())); ++ return property.withComments(getComments(propertyComment, tags)); + } + +- private EnumModel enrichEnum(EnumModel enumModel) { ++ private EnumModel enrichEnum(EnumModel enumModel) { + final Enum dEnum = findJavadocEnum(enumModel.getOrigin(), dRoots); +- final List enrichedMembers = new ArrayList<>(); +- for (EnumMemberModel member : enumModel.getMembers()) { +- final EnumMemberModel enrichedMember = enrichEnumMember(member, dEnum); ++ final List> enrichedMembers = new ArrayList<>(); ++ for (EnumMemberModel member : enumModel.getMembers()) { ++ final EnumMemberModel enrichedMember = enrichEnumMember(member, dEnum); + enrichedMembers.add(enrichedMember); + } + final String enumComment = dEnum != null ? dEnum.getComment() : null; + final List tags = dEnum != null ? dEnum.getTag() : null; +- return enumModel +- .withMembers(enrichedMembers) +- .withComments(combineComments(getComments(enumComment, tags), enumModel.getComments())); ++ return enumModel.withMembers(enrichedMembers).withComments(concat(getComments(enumComment, tags), enumModel.getComments())); + } + +- private EnumMemberModel enrichEnumMember(EnumMemberModel enumMember, Enum dEnum) { ++ private EnumMemberModel enrichEnumMember(EnumMemberModel enumMember, Enum dEnum) { + final EnumConstant dConstant = findJavadocEnumConstant(enumMember.getPropertyName(), dEnum); + final List tags = dConstant != null ? dConstant.getTag(): null; + final String memberComment = dConstant != null ? dConstant.getComment() : null; +- return enumMember +- .withComments(combineComments(getComments(memberComment, tags), enumMember.getComments())); +- } +- +- private RestApplicationModel enrichRestApplication(RestApplicationModel restApplicationModel) { +- final List enrichedRestMethods = new ArrayList<>(); +- for (RestMethodModel restMethod : restApplicationModel.getMethods()) { +- final RestMethodModel enrichedRestMethod = enrichRestMethod(restMethod); +- enrichedRestMethods.add(enrichedRestMethod); +- } +- return restApplicationModel.withMethods(enrichedRestMethods); +- } +- +- private RestMethodModel enrichRestMethod(RestMethodModel method) { +- final Method dMethod = findJavadocMethod(method.getOriginClass(), method.getName(), dRoots); +- final String comment = dMethod != null ? dMethod.getComment() : null; +- final List tags = dMethod != null ? dMethod.getTag() : null; +- return method +- .withComments(combineComments(getComments(comment, tags), method.getComments())); ++ return enumMember.withComments(getComments(memberComment, tags)); + } + + // finders + +- private static Method findJavadocMethod(java.lang.Class cls, String name, List dRoots) { +- final Class dClass = findJavadocClass(cls, dRoots); +- final Interface dInterface = findJavadocInterface(cls, dRoots); +- if (dClass != null) { +- return findJavadocMethod(name, dClass.getMethod()); +- } else if (dInterface != null) { +- return findJavadocMethod(name, dInterface.getMethod()); +- } else { +- return null; +- } +- } +- + private static Class findJavadocClass(java.lang.Class cls, List dRoots) { + final String name = cls.getName().replace('$', '.'); + for (Root dRoot : dRoots) { +@@ -243,32 +191,38 @@ public class Javadoc { + return null; + } + +- private List getComments(String dComments, List tags) { ++ private static List getComments(String dComments, List tags) { + if (dComments == null && (tags == null || tags.isEmpty())) { + return null; + } + final List result = new ArrayList<>(); + if (dComments != null) { +- final String nn = newline + newline; +- final String replacedHtmlLines = dComments +- .replaceAll("\\s*
\\s*", nn) +- .replaceAll("\\s*
\\s*", nn) +- .replaceAll("\\s*
\\s*", nn) +- .replaceAll("\\s*

\\s*", nn) +- .replaceAll("\\s*

\\s*", nn); +- result.addAll(Utils.splitMultiline(replacedHtmlLines, true)); ++ result.addAll(splitMultiline(dComments)); + } + if (tags != null) { + for (TagInfo tag : tags) { +- result.addAll(Utils.splitMultiline(tag.getName() + " " + tag.getText(), true)); ++ result.addAll(splitMultiline(tag.getName() + " " + tag.getText())); + } + } + return result; + } + +- private static List combineComments(List firstComments, List secondComments) { +- // consider putting tags (from both comments) after regular comments +- return Utils.concat(firstComments, secondComments); ++ private static List splitMultiline(String comments) { ++ final List result = new ArrayList<>(); ++ final String[] lines = comments.split("\\r\\n|\\n|\\r"); ++ for (String line : lines) { ++ result.add(line.trim()); ++ } ++ return result; + } + ++ private static List concat(List list1, List list2) { ++ if (list1 == null && list2 == null) { ++ return null; ++ } ++ final List result = new ArrayList<>(); ++ if (list1 != null) result.addAll(list1); ++ if (list2 != null) result.addAll(list2); ++ return result; ++ } + } +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/JaxrsApplicationParser.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/JaxrsApplicationParser.java +deleted file mode 100644 +index c0c8c6ec3..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/JaxrsApplicationParser.java ++++ /dev/null +@@ -1,388 +0,0 @@ +- +-package cz.habarta.typescript.generator.parser; +- +-import cz.habarta.typescript.generator.JaxrsApplicationScanner; +-import cz.habarta.typescript.generator.Settings; +-import cz.habarta.typescript.generator.TsType; +-import cz.habarta.typescript.generator.TypeProcessor; +-import cz.habarta.typescript.generator.TypeScriptGenerator; +-import cz.habarta.typescript.generator.type.JTypeWithNullability; +-import cz.habarta.typescript.generator.util.GenericsResolver; +-import cz.habarta.typescript.generator.util.Pair; +-import cz.habarta.typescript.generator.util.Utils; +-import jakarta.ws.rs.ApplicationPath; +-import jakarta.ws.rs.BeanParam; +-import jakarta.ws.rs.CookieParam; +-import jakarta.ws.rs.FormParam; +-import jakarta.ws.rs.HeaderParam; +-import jakarta.ws.rs.HttpMethod; +-import jakarta.ws.rs.MatrixParam; +-import jakarta.ws.rs.Path; +-import jakarta.ws.rs.PathParam; +-import jakarta.ws.rs.QueryParam; +-import jakarta.ws.rs.container.Suspended; +-import jakarta.ws.rs.core.Application; +-import jakarta.ws.rs.core.Context; +-import jakarta.ws.rs.core.GenericEntity; +-import jakarta.ws.rs.core.MultivaluedMap; +-import jakarta.ws.rs.core.Response; +-import jakarta.ws.rs.core.StreamingOutput; +-import java.beans.BeanInfo; +-import java.beans.IntrospectionException; +-import java.beans.Introspector; +-import java.beans.PropertyDescriptor; +-import java.lang.annotation.Annotation; +-import java.lang.reflect.AnnotatedElement; +-import java.lang.reflect.Field; +-import java.lang.reflect.Method; +-import java.lang.reflect.Parameter; +-import java.lang.reflect.ParameterizedType; +-import java.lang.reflect.Type; +-import java.util.ArrayList; +-import java.util.Arrays; +-import java.util.Collections; +-import java.util.LinkedHashMap; +-import java.util.List; +-import java.util.Map; +-import java.util.function.Supplier; +-import java.util.stream.Stream; +- +- +-public class JaxrsApplicationParser extends RestApplicationParser { +- +- public static class Factory extends RestApplicationParser.Factory { +- +- @Override +- public TypeProcessor getSpecificTypeProcessor() { +- return (javaType, context) -> { +- final Class rawClass = Utils.getRawClassOrNull(javaType); +- if (rawClass != null) { +- for (Map.Entry, TsType> entry : getStandardEntityClassesMapping().entrySet()) { +- final Class cls = entry.getKey(); +- final TsType type = entry.getValue(); +- if (cls.isAssignableFrom(rawClass)) { +- return type != null ? new TypeProcessor.Result(type) : null; +- } +- } +- if (getDefaultExcludedClassNames().contains(rawClass.getName())) { +- return new TypeProcessor.Result(TsType.Any); +- } +- } +- return null; +- }; +- } +- +- @Override +- public JaxrsApplicationParser create(Settings settings, TypeProcessor commonTypeProcessor) { +- return new JaxrsApplicationParser(settings, commonTypeProcessor); +- } +- +- }; +- +- public JaxrsApplicationParser(Settings settings, TypeProcessor commonTypeProcessor) { +- super(settings, commonTypeProcessor, new RestApplicationModel(RestApplicationType.Jaxrs)); +- } +- +- @Override +- public Result tryParse(SourceType sourceType) { +- if (!(sourceType.type instanceof Class)) { +- return null; +- } +- final Class cls = (Class) sourceType.type; +- +- // application +- if (Application.class.isAssignableFrom(cls) || javax(Application.class).isAssignableFrom(cls)) { +- final ApplicationPath applicationPathAnnotation = getRsAnnotation(cls, ApplicationPath.class); +- if (applicationPathAnnotation != null) { +- model.setApplicationPath(applicationPathAnnotation.value()); +- } +- model.setApplicationName(cls.getSimpleName()); +- final List> discoveredTypes = JaxrsApplicationScanner.scanJaxrsApplication(cls, isClassNameExcluded); +- return new Result(discoveredTypes); +- } +- +- // resource +- final Path path = getRsAnnotation(cls, Path.class); +- if (path != null) { +- TypeScriptGenerator.getLogger().verbose("Parsing JAX-RS resource: " + cls.getName()); +- final Result result = new Result(); +- parseResource(result, new ResourceContext(cls, path.value()), cls); +- return result; +- } +- +- return null; +- } +- +- private void parseResource(Result result, ResourceContext context, Class resourceClass) { +- // subContext +- final Map pathParamTypes = new LinkedHashMap<>(); +- for (Field field : resourceClass.getDeclaredFields()) { +- final PathParam pathParamAnnotation = getRsAnnotation(field, PathParam.class); +- if (pathParamAnnotation != null) { +- pathParamTypes.put(pathParamAnnotation.value(), field.getType()); +- } +- } +- final ResourceContext subContext = context.subPathParamTypes(pathParamTypes); +- // parse resource methods +- final List methods = Arrays.asList(resourceClass.getMethods()); +- Collections.sort(methods, Utils.methodComparator()); +- for (Method method : methods) { +- parseResourceMethod(result, subContext, resourceClass, method); +- } +- } +- +- private void parseResourceMethod(Result result, ResourceContext context, Class resourceClass, Method method) { +- final Path pathAnnotation = getRsAnnotation(method, Path.class); +- // subContext +- context = context.subPath(pathAnnotation != null ? pathAnnotation.value() : null); +- final Map pathParamTypes = new LinkedHashMap<>(); +- for (Parameter parameter : method.getParameters()) { +- final PathParam pathParamAnnotation = getRsAnnotation(parameter, PathParam.class); +- if (pathParamAnnotation != null) { +- pathParamTypes.put(pathParamAnnotation.value(), parameter.getParameterizedType()); +- } +- } +- context = context.subPathParamTypes(pathParamTypes); +- // JAX-RS specification - 3.3 Resource Methods +- final HttpMethod httpMethod = getHttpMethod(method); +- if (httpMethod != null) { +- // swagger +- final SwaggerOperation swaggerOperation = settings.ignoreSwaggerAnnotations +- ? new SwaggerOperation() +- : Swagger.parseSwaggerAnnotations(method); +- if (swaggerOperation.possibleResponses != null) { +- for (SwaggerResponse response : swaggerOperation.possibleResponses) { +- if (response.responseType != null) { +- foundType(result, response.responseType, resourceClass, method.getName()); +- } +- } +- } +- if (swaggerOperation.hidden) { +- return; +- } +- // path parameters +- final List pathParams = new ArrayList<>(); +- final PathTemplate pathTemplate = PathTemplate.parse(context.path); +- for (PathTemplate.Part part : pathTemplate.getParts()) { +- if (part instanceof PathTemplate.Parameter) { +- final PathTemplate.Parameter parameter = (PathTemplate.Parameter) part; +- final Type type = context.pathParamTypes.get(parameter.getOriginalName()); +- final Type paramType = type != null ? type : String.class; +- final Type resolvedParamType = GenericsResolver.resolveType(resourceClass, paramType, method.getDeclaringClass()); +- pathParams.add(new MethodParameterModel(parameter.getValidName(), resolvedParamType)); +- foundType(result, resolvedParamType, resourceClass, method.getName()); +- } +- } +- // query parameters +- final List queryParams = new ArrayList<>(); +- for (Parameter param : method.getParameters()) { +- final QueryParam queryParamAnnotation = getRsAnnotation(param, QueryParam.class); +- if (queryParamAnnotation != null) { +- queryParams.add(new RestQueryParam.Single(new MethodParameterModel(queryParamAnnotation.value(), param.getParameterizedType()), false)); +- foundType(result, param.getParameterizedType(), resourceClass, method.getName()); +- } +- final BeanParam beanParamAnnotation = getRsAnnotation(param, BeanParam.class); +- if (beanParamAnnotation != null) { +- final Class beanParamClass = param.getType(); +- final BeanModel paramBean = getQueryParameters(beanParamClass); +- if (paramBean != null) { +- queryParams.add(new RestQueryParam.Bean(paramBean)); +- for (PropertyModel property : paramBean.getProperties()) { +- foundType(result, property.getType(), beanParamClass, property.getName()); +- } +- } +- } +- } +- // JAX-RS specification - 3.3.2.1 Entity Parameters +- final List parameterTypes = settings.getTypeParser().getMethodParameterTypes(method); +- final List> parameters = Utils.zip(Arrays.asList(method.getParameters()), parameterTypes); +- final MethodParameterModel entityParameter = getEntityParameter(resourceClass, method, parameters); +- if (entityParameter != null) { +- foundType(result, entityParameter.getType(), resourceClass, method.getName()); +- } +- // JAX-RS specification - 3.3.3 Return Type +- final Class returnType = method.getReturnType(); +- final Type parsedReturnType = settings.getTypeParser().getMethodReturnType(method); +- final Type plainReturnType = JTypeWithNullability.getPlainType(parsedReturnType); +- final Type modelReturnType; +- if (returnType == void.class) { +- //for async response also use swagger +- if (hasAnyAnnotation(method.getParameters(), Arrays.asList(Suspended.class, javax(Suspended.class)))) { +- if (swaggerOperation.responseType != null) { +- modelReturnType = swaggerOperation.responseType; +- } else { +- modelReturnType = Object.class; +- } +- } else { +- modelReturnType = returnType; +- } +- } else if (returnType == Response.class || returnType == javax(Response.class)) { +- if (swaggerOperation.responseType != null) { +- modelReturnType = swaggerOperation.responseType; +- } else { +- modelReturnType = Object.class; +- } +- } else if (plainReturnType instanceof ParameterizedType && (returnType == GenericEntity.class || returnType == javax(GenericEntity.class))) { +- final ParameterizedType parameterizedReturnType = (ParameterizedType) plainReturnType; +- modelReturnType = parameterizedReturnType.getActualTypeArguments()[0]; +- } else { +- modelReturnType = parsedReturnType; +- } +- final Type resolvedModelReturnType = GenericsResolver.resolveType(resourceClass, modelReturnType, method.getDeclaringClass()); +- foundType(result, resolvedModelReturnType, resourceClass, method.getName()); +- // comments +- final List comments = Swagger.getOperationComments(swaggerOperation); +- // create method +- model.getMethods().add(new RestMethodModel(resourceClass, method.getName(), resolvedModelReturnType, method, +- context.rootResource, httpMethod.value(), context.path, pathParams, queryParams, entityParameter, comments)); +- } +- // JAX-RS specification - 3.4.1 Sub Resources +- if (pathAnnotation != null && httpMethod == null) { +- parseResource(result, context, method.getReturnType()); +- } +- } +- +- private static HttpMethod getHttpMethod(Method method) { +- for (Annotation annotation : method.getAnnotations()) { +- final HttpMethod httpMethodAnnotation = getRsAnnotation(annotation.annotationType(), HttpMethod.class); +- if (httpMethodAnnotation != null) { +- return httpMethodAnnotation; +- } +- } +- return null; +- } +- +- private static BeanModel getQueryParameters(Class paramBean) { +- final List properties = new ArrayList<>(); +- final List fields = Utils.getAllFields(paramBean); +- for (Field field : fields) { +- final QueryParam annotation = getRsAnnotation(field, QueryParam.class); +- if (annotation != null) { +- properties.add(new PropertyModel(annotation.value(), field.getGenericType(), /*optional*/true, null, field, null, null, null)); +- } +- } +- try { +- final BeanInfo beanInfo = Introspector.getBeanInfo(paramBean); +- for (PropertyDescriptor propertyDescriptor : beanInfo.getPropertyDescriptors()) { +- final Method writeMethod = propertyDescriptor.getWriteMethod(); +- if (writeMethod != null) { +- final QueryParam annotation = getRsAnnotation(writeMethod, QueryParam.class); +- if (annotation != null) { +- properties.add(new PropertyModel(annotation.value(), propertyDescriptor.getPropertyType(), /*optional*/true, null, writeMethod, null, null, null)); +- } +- } +- } +- } catch (IntrospectionException e) { +- TypeScriptGenerator.getLogger().warning(String.format("Cannot introspect '%s' class: " + e.getMessage(), paramBean)); +- } +- if (properties.isEmpty()) { +- return null; +- } else { +- return new BeanModel(paramBean, null, null, null, null, null, properties, null); +- } +- } +- +- private MethodParameterModel getEntityParameter(Class resourceClass, Method method, List> parameters) { +- for (Pair pair : parameters) { +- if (!Utils.hasAnyAnnotation(annotationClass -> pair.getValue1().getAnnotation(annotationClass), Arrays.asList( +- MatrixParam.class, javax(MatrixParam.class), +- QueryParam.class, javax(QueryParam.class), +- PathParam.class, javax(PathParam.class), +- CookieParam.class, javax(CookieParam.class), +- HeaderParam.class, javax(HeaderParam.class), +- Suspended.class, javax(Suspended.class), +- Context.class, javax(Context.class), +- FormParam.class, javax(FormParam.class), +- BeanParam.class, javax(BeanParam.class) +- ))) { +- final Type resolvedType = GenericsResolver.resolveType(resourceClass, pair.getValue2(), method.getDeclaringClass()); +- return new MethodParameterModel(pair.getValue1().getName(), resolvedType); +- } +- } +- return null; +- } +- +- private static boolean hasAnyAnnotation(Parameter[] parameters, List> annotationClasses) { +- return Stream.of(parameters) +- .anyMatch(parameter -> Utils.hasAnyAnnotation(parameter::getAnnotation, annotationClasses)); +- } +- +- private static Map, TsType> getStandardEntityClassesMapping() { +- // JAX-RS specification - 4.2.4 Standard Entity Providers +- if (standardEntityClassesMapping == null) { +- final Map, TsType> map = new LinkedHashMap<>(); +- // null value means that class is handled by DefaultTypeProcessor +- map.put(byte[].class, TsType.Any); +- map.put(java.lang.String.class, null); +- map.put(java.io.InputStream.class, TsType.Any); +- map.put(java.io.Reader.class, TsType.Any); +- map.put(java.io.File.class, TsType.Any); +- map.put(javax.activation.DataSource.class, TsType.Any); +- map.put(javax.xml.transform.Source.class, TsType.Any); +- map.put(jakarta.xml.bind.JAXBElement.class, null); +- map.put(javax.xml.bind.JAXBElement.class, null); +- map.put(MultivaluedMap.class, TsType.Any); +- map.put(javax(MultivaluedMap.class), TsType.Any); +- map.put(StreamingOutput.class, TsType.Any); +- map.put(javax(StreamingOutput.class), TsType.Any); +- map.put(java.lang.Boolean.class, null); +- map.put(java.lang.Character.class, null); +- map.put(java.lang.Number.class, null); +- map.put(long.class, null); +- map.put(int.class, null); +- map.put(short.class, null); +- map.put(byte.class, null); +- map.put(double.class, null); +- map.put(float.class, null); +- map.put(boolean.class, null); +- map.put(char.class, null); +- standardEntityClassesMapping = map; +- } +- return standardEntityClassesMapping; +- } +- +- private static Map, TsType> standardEntityClassesMapping; +- +- private static List getDefaultExcludedClassNames() { +- return Arrays.asList( +- "org.glassfish.jersey.media.multipart.FormDataBodyPart" +- ); +- } +- +- static A getRsAnnotation(AnnotatedElement annotatedElement, Class jakartaAnnotationClass) { +- final Class javaxAnnotationClass = javax(jakartaAnnotationClass); +- return Utils.getMigratedAnnotation(annotatedElement, jakartaAnnotationClass, javaxAnnotationClass); +- } +- +- private static Class javax(Class jakartaClass) { +- @SuppressWarnings("unchecked") +- final Class cls = (Class) javaxClasses.get().get(jakartaClass); +- if (cls == null) { +- throw new IllegalArgumentException(jakartaClass.getName()); +- } +- return cls; +- } +- +- private static final Supplier, Class>> javaxClasses = Utils.memoize(() -> { +- final Map, Class> map = new LinkedHashMap<>(); +- map.put(jakarta.ws.rs.ApplicationPath.class, javax.ws.rs.ApplicationPath.class); +- map.put(jakarta.ws.rs.BeanParam.class, javax.ws.rs.BeanParam.class); +- map.put(jakarta.ws.rs.CookieParam.class, javax.ws.rs.CookieParam.class); +- map.put(jakarta.ws.rs.FormParam.class, javax.ws.rs.FormParam.class); +- map.put(jakarta.ws.rs.HeaderParam.class, javax.ws.rs.HeaderParam.class); +- map.put(jakarta.ws.rs.HttpMethod.class, javax.ws.rs.HttpMethod.class); +- map.put(jakarta.ws.rs.MatrixParam.class, javax.ws.rs.MatrixParam.class); +- map.put(jakarta.ws.rs.Path.class, javax.ws.rs.Path.class); +- map.put(jakarta.ws.rs.PathParam.class, javax.ws.rs.PathParam.class); +- map.put(jakarta.ws.rs.QueryParam.class, javax.ws.rs.QueryParam.class); +- map.put(jakarta.ws.rs.container.Suspended.class, javax.ws.rs.container.Suspended.class); +- map.put(jakarta.ws.rs.core.Application.class, javax.ws.rs.core.Application.class); +- map.put(jakarta.ws.rs.core.Context.class, javax.ws.rs.core.Context.class); +- map.put(jakarta.ws.rs.core.GenericEntity.class, javax.ws.rs.core.GenericEntity.class); +- map.put(jakarta.ws.rs.core.MultivaluedMap.class, javax.ws.rs.core.MultivaluedMap.class); +- map.put(jakarta.ws.rs.core.Response.class, javax.ws.rs.core.Response.class); +- map.put(jakarta.ws.rs.core.StreamingOutput.class, javax.ws.rs.core.StreamingOutput.class); +- return map; +- }); +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/JsonbParser.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/JsonbParser.java +deleted file mode 100644 +index 476563e54..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/JsonbParser.java ++++ /dev/null +@@ -1,889 +0,0 @@ +-package cz.habarta.typescript.generator.parser; +- +-import cz.habarta.typescript.generator.ExcludingTypeProcessor; +-import cz.habarta.typescript.generator.OptionalProperties; +-import cz.habarta.typescript.generator.Settings; +-import cz.habarta.typescript.generator.TypeProcessor; +-import cz.habarta.typescript.generator.type.JParameterizedType; +-import cz.habarta.typescript.generator.util.Pair; +-import cz.habarta.typescript.generator.util.PropertyMember; +-import cz.habarta.typescript.generator.util.Utils; +-import jakarta.json.JsonArray; +-import jakarta.json.JsonNumber; +-import jakarta.json.JsonObject; +-import jakarta.json.JsonString; +-import jakarta.json.JsonValue; +-import jakarta.json.bind.annotation.JsonbCreator; +-import jakarta.json.bind.annotation.JsonbProperty; +-import jakarta.json.bind.annotation.JsonbTransient; +-import jakarta.json.bind.annotation.JsonbVisibility; +-import jakarta.json.bind.config.PropertyNamingStrategy; +-import jakarta.json.bind.config.PropertyVisibilityStrategy; +-import java.beans.IntrospectionException; +-import java.beans.Introspector; +-import java.beans.PropertyDescriptor; +-import java.lang.annotation.Annotation; +-import java.lang.reflect.AnnotatedElement; +-import java.lang.reflect.Constructor; +-import java.lang.reflect.Field; +-import java.lang.reflect.InvocationTargetException; +-import java.lang.reflect.Member; +-import java.lang.reflect.Method; +-import java.lang.reflect.Modifier; +-import java.lang.reflect.Parameter; +-import java.lang.reflect.ParameterizedType; +-import java.lang.reflect.Proxy; +-import java.lang.reflect.Type; +-import java.util.ArrayList; +-import java.util.Arrays; +-import java.util.Collections; +-import java.util.Comparator; +-import java.util.HashMap; +-import java.util.LinkedHashMap; +-import java.util.List; +-import java.util.Map; +-import java.util.Objects; +-import java.util.Optional; +-import java.util.OptionalDouble; +-import java.util.OptionalInt; +-import java.util.OptionalLong; +-import java.util.concurrent.ConcurrentHashMap; +-import java.util.concurrent.ConcurrentMap; +-import java.util.function.Function; +-import java.util.function.Supplier; +-import java.util.stream.Collectors; +-import java.util.stream.Stream; +- +-// simplified+dependency free version of apache johnzon JsonbAccessMode +-public class JsonbParser extends ModelParser { +- +- private final Class johnzonAny; +- +- public static class Factory extends ModelParser.Factory { +- +- @Override +- public TypeProcessor getSpecificTypeProcessor() { +- return new ExcludingTypeProcessor(Collections.emptyList()); +- } +- +- @Override +- public JsonbParser create(Settings settings, TypeProcessor commonTypeProcessor, +- List restApplicationParsers) { +- return new JsonbParser(settings, commonTypeProcessor, restApplicationParsers); +- } +- +- } +- +- public JsonbParser(Settings settings, TypeProcessor commonTypeProcessor) { +- this(settings, commonTypeProcessor, Collections.emptyList()); +- } +- +- public JsonbParser(Settings settings, TypeProcessor commonTypeProcessor, +- List restApplicationParsers) { +- super(settings, commonTypeProcessor, restApplicationParsers); +- johnzonAny = loadJohnzonAnyClass(); +- } +- +- @SuppressWarnings("unchecked") +- private Class loadJohnzonAnyClass() { +- try { +- return (Class) settings.classLoader +- .loadClass("org.apache.johnzon.mapper.JohnzonAny"); +- } catch (ClassNotFoundException e) { +- return null; +- } +- } +- +- @Override +- protected DeclarationModel parseClass(final SourceType> sourceClass) { +- if (sourceClass.type.isEnum()) { +- return ModelParser.parseEnum(sourceClass); +- } else { +- return parseBean(sourceClass); +- } +- } +- +- // simplistic impl handling @JsonbProperty and @JsonbTransient on fields +- private BeanModel parseBean(final SourceType> sourceClass) { +- final JsonbPropertyExtractor extractor = createExtractor(); +- final List properties = extractor.visit(sourceClass.type); +- +- final Type superclass = sourceClass.type.getGenericSuperclass() == Object.class ? null +- : sourceClass.type.getGenericSuperclass(); +- if (superclass != null) { +- addBeanToQueue(new SourceType<>(superclass, sourceClass.type, "")); +- } +- final List interfaces = Arrays.asList(sourceClass.type.getGenericInterfaces()); +- for (Type aInterface : interfaces) { +- addBeanToQueue(new SourceType<>(aInterface, sourceClass.type, "")); +- } +- return new BeanModel( +- sourceClass.type, superclass, null, null, null, +- interfaces, properties, null); +- } +- +- private JsonbPropertyExtractor createExtractor() { +- return new JsonbPropertyExtractor( +- johnzonAny, +- new PropertyNamingStrategyFactory(Optional.ofNullable(settings.jsonbConfiguration).map(c -> c.namingStrategy).orElse("IDENTITY")).create(), +- new DefaultPropertyVisibilityStrategy(settings.classLoader), +- new FieldAndMethodAccessMode(johnzonAny)); +- } +- +- private class JsonbPropertyExtractor { +- private final Class johnzonAny; +- private final PropertyNamingStrategy naming; +- private final PropertyVisibilityStrategy visibility; +- private final BaseAccessMode delegate; +- +- private JsonbPropertyExtractor( +- final Class johnzonAny, +- final PropertyNamingStrategy propertyNamingStrategy, +- final PropertyVisibilityStrategy visibilityStrategy, +- final BaseAccessMode delegate) { +- this.johnzonAny = johnzonAny; +- this.naming = propertyNamingStrategy; +- this.visibility = visibilityStrategy; +- this.delegate = delegate; +- } +- +- private List visit(final Class clazz) { +- return Stream.of(clazz.getConstructors()) +- .filter(it -> getJsonbAnnotation(it, JsonbCreator.class) != null) +- .findFirst() +- .map(it -> new ArrayList<>(Stream.concat(visitConstructor(it), visitClass(clazz).stream()) +- .collect(Collectors.toMap(PropertyModel::getName, Function.identity(), (a, b) -> a)) // merge models +- .values())) +- .orElseGet(() -> new ArrayList<>(visitClass(clazz))); +- } +- +- private Stream visitConstructor(final Constructor constructor) { +- // JSON-B 1.0 assumes all constructor params are required even if impls can diverge on that due +- // to user feedbacks so for our libraryDefinition let's assume it is true. +- // only exception is about optional wrappers which can be optional indeed +- final List parameterTypes = settings.getTypeParser().getConstructorParameterTypes(constructor); +- final List> parameters = Utils.zip(Arrays.asList(constructor.getParameters()), parameterTypes); +- return parameters.stream() +- .map(it -> { +- final Type type = it.getValue2(); +- final Parameter parameter = it.getValue1(); +- final Optional property = Optional.ofNullable( +- getJsonbAnnotation(parameter, JsonbProperty.class)); +- final PropertyMember propertyMember = new PropertyMember( +- parameter, it.getValue2(), parameter.getAnnotatedType(), parameter::getAnnotation); +- return JsonbParser.this.processTypeAndCreateProperty( +- property +- .map(JsonbProperty::value) +- .filter(p -> !p.isEmpty()) +- .orElseGet(parameter::getName), +- type, null, +- settings.optionalProperties != OptionalProperties.useLibraryDefinition ? +- isPropertyOptional(propertyMember) : +- (isOptional(type) || OptionalInt.class == type || +- OptionalLong.class == type || OptionalDouble.class == type || +- property.map(JsonbProperty::nillable).orElse(false)), +- null, constructor.getDeclaringClass(), new ParameterMember(parameter), +- null, null); +- }); +- } +- +- private List visitClass(final Class clazz) { +- return delegate.find(clazz).entrySet().stream() +- .filter(e -> !isTransient(e.getValue(), visibility)) +- .filter(e -> johnzonAny == null || e.getValue().getAnnotation(johnzonAny) == null) +- .map(e -> { +- final DecoratedType decoratedType = e.getValue(); +- final Member member = findMember(decoratedType); +- final PropertyMember propertyMember = wrapMember( +- settings.getTypeParser(), member, /*creatorIndex*/ null, decoratedType::getAnnotation, member.getName(), member.getDeclaringClass()); +- if (propertyMember == null) { +- return null; +- } +- +- final JsonbProperty property = decoratedType.getAnnotation(JsonbProperty.class); +- final String key = property == null || property.value().isEmpty() ? naming.translateName(e.getKey()) : property.value(); +- final Type type = Field.class.isInstance(member) ? +- settings.getTypeParser().getFieldType(Field.class.cast(member)) : +- settings.getTypeParser().getMethodReturnType(Method.class.cast(member)); +- return JsonbParser.this.processTypeAndCreateProperty( +- key, replaceType(type), +- null, settings.optionalProperties == OptionalProperties.useLibraryDefinition || +- JsonbParser.this.isPropertyOptional(propertyMember), +- null, clazz, member, null, null); +- }) +- .filter(Objects::nonNull) +- .sorted(Comparator.comparing(PropertyModel::getName)) +- .collect(Collectors.toList()); +- } +- +- private Type replaceType(final Type type) { +- if (type == JsonValue.class || type == javax.json.JsonValue.class) { +- return Object.class; +- } +- if (type == JsonObject.class || type == javax.json.JsonObject.class) { +- return new JParameterizedType(Map.class, new Type[]{String.class, Object.class}, null); +- } +- if (type == JsonArray.class || type == javax.json.JsonArray.class) { +- return new JParameterizedType(List.class, new Type[]{Object.class}, null); +- } +- if (type == JsonString.class || type == javax.json.JsonString.class) { +- return String.class; +- } +- if (type == JsonNumber.class || type == javax.json.JsonNumber.class) { +- return Double.class; +- } +- return type; +- } +- +- private Member findMember(final DecoratedType value) { +- if (FieldAndMethodAccessMode.CompositeDecoratedType.class.isInstance(value)) { // unwrap to use the right reader +- final FieldAndMethodAccessMode.CompositeDecoratedType decoratedType = FieldAndMethodAccessMode.CompositeDecoratedType.class.cast(value); +- final DecoratedType type1 = decoratedType.getType1(); +- final DecoratedType type2 = decoratedType.getType2(); +- if (FieldAccessMode.FieldDecoratedType.class.isInstance(type1)) { +- return findMember(type1); +- } +- return findMember(type2); +- } else if (JsonbParser.FieldAccessMode.FieldDecoratedType.class.isInstance(value)){ +- return JsonbParser.FieldAccessMode.FieldDecoratedType.class.cast(value).getField(); +- } else if (MethodAccessMode.MethodDecoratedType.class.isInstance(value)){ +- return MethodAccessMode.MethodDecoratedType.class.cast(value).getMethod(); +- } +- throw new IllegalArgumentException("Unsupported reader: " + value); +- } +- +- private boolean isOptional(final Type type) { +- return ParameterizedType.class.isInstance(type) && Optional.class == ParameterizedType.class.cast(type).getRawType(); +- } +- +- private boolean isTransient(final JsonbParser.DecoratedType dt, final PropertyVisibilityStrategy visibility) { +- if (!FieldAndMethodAccessMode.CompositeDecoratedType.class.isInstance(dt)) { +- return isTransient(dt) || shouldSkip(visibility, dt); +- } +- final FieldAndMethodAccessMode.CompositeDecoratedType cdt = FieldAndMethodAccessMode.CompositeDecoratedType.class.cast(dt); +- return isTransient(cdt.getType1()) || isTransient(cdt.getType2()) || +- (shouldSkip(visibility, cdt.getType1()) && shouldSkip(visibility, cdt.getType2())); +- } +- +- private boolean shouldSkip(final PropertyVisibilityStrategy visibility, final JsonbParser.DecoratedType t) { +- return isNotVisible(visibility, t); +- } +- +- private boolean isTransient(final JsonbParser.DecoratedType t) { +- if (t.getAnnotation(JsonbTransient.class) != null) { +- return true; +- } +- if (JsonbParser.FieldAccessMode.FieldDecoratedType.class.isInstance(t)) { +- final Field field = JsonbParser.FieldAccessMode.FieldDecoratedType.class.cast(t).getField(); +- return Modifier.isTransient(field.getModifiers()) || Modifier.isStatic(field.getModifiers()); +- } +- return false; +- } +- +- private boolean isNotVisible(final PropertyVisibilityStrategy visibility, final JsonbParser.DecoratedType t) { +- return !(JsonbParser.FieldAccessMode.FieldDecoratedType.class.isInstance(t) ? +- visibility.isVisible(JsonbParser.FieldAccessMode.FieldDecoratedType.class.cast(t).getField()) +- : (MethodAccessMode.MethodDecoratedType.class.isInstance(t) && +- visibility.isVisible(MethodAccessMode.MethodDecoratedType.class.cast(t).getMethod()))); +- } +- } +- +- private interface DecoratedType { +- Type getType(); +- T getAnnotation(Class clazz); +- T getClassOrPackageAnnotation(Class clazz); +- } +- +- private interface BaseAccessMode { +- Map find(Class clazz); +- } +- +- private static class FieldAccessMode implements BaseAccessMode { +- private final Class johnzonAny; +- +- public FieldAccessMode(final Class johnzonAny) { +- this.johnzonAny = johnzonAny; +- } +- +- @Override +- public Map find(final Class clazz) { +- final Map readers = new HashMap<>(); +- for (final Map.Entry f : fields(clazz, true).entrySet()) { +- final String key = f.getKey(); +- if (isIgnored(key) || (johnzonAny != null && Meta.getAnnotation(f.getValue(), johnzonAny) != null)) { +- continue; +- } +- +- final Field field = f.getValue(); +- readers.put(key, new FieldDecoratedType(field, field.getGenericType())); +- } +- return readers; +- } +- +- protected boolean isIgnored(final String key) { +- return key.contains("$"); +- } +- +- protected Map fields(final Class clazz, final boolean includeFinalFields) { +- final Map fields = new HashMap<>(); +- Class current = clazz; +- while (current != null && current != Object.class) { +- for (final Field f : current.getDeclaredFields()) { +- final String name = f.getName(); +- final int modifiers = f.getModifiers(); +- if (fields.containsKey(name) +- || Modifier.isStatic(modifiers) +- || Modifier.isTransient(modifiers) +- || (!includeFinalFields && Modifier.isFinal(modifiers))) { +- continue; +- } +- fields.put(name, f); +- } +- current = current.getSuperclass(); +- } +- return fields; +- } +- +- private static class FieldDecoratedType implements JsonbParser.DecoratedType { +- protected final Field field; +- protected final Type type; +- +- public FieldDecoratedType(final Field field, final Type type) { +- this.field = field; +- this.field.setAccessible(true); +- this.type = type; +- } +- +- @Override +- public T getClassOrPackageAnnotation(final Class clazz) { +- return Meta.getClassOrPackageAnnotation(field, clazz); +- } +- +- public Field getField() { +- return field; +- } +- +- @Override +- public Type getType() { +- return type; +- } +- +- @Override +- public T getAnnotation(final Class clazz) { +- return Meta.getAnnotation(field, clazz); +- } +- +- @Override +- public String toString() { +- return "FieldDecoratedType{" + +- "field=" + field + +- '}'; +- } +- } +- } +- +- private static class MethodAccessMode implements BaseAccessMode { +- private final Class johnzonAny; +- +- public MethodAccessMode(final Class johnzonAny) { +- this.johnzonAny = johnzonAny; +- } +- +- @Override +- public Map find(final Class clazz) { +- final Map readers = new HashMap<>(); +- if (Records.isRecord(clazz)) { +- readers.putAll(Stream.of(clazz.getMethods()) +- .filter(it -> it.getDeclaringClass() != Object.class && it.getParameterCount() == 0) +- .filter(it -> !"toString".equals(it.getName()) && !"hashCode".equals(it.getName())) +- .filter(it -> !isIgnored(it.getName()) && johnzonAny != null && Meta.getAnnotation(it, johnzonAny) == null) +- .collect(Collectors.toMap(Method::getName, it -> new MethodDecoratedType(it, it.getGenericReturnType()) { +- }))); +- } else { +- final PropertyDescriptor[] propertyDescriptors = getPropertyDescriptors(clazz); +- for (final PropertyDescriptor descriptor : propertyDescriptors) { +- final Method readMethod = descriptor.getReadMethod(); +- final String name = descriptor.getName(); +- if (readMethod != null && readMethod.getDeclaringClass() != Object.class) { +- if (isIgnored(name) || johnzonAny != null && Meta.getAnnotation(readMethod, johnzonAny) != null) { +- continue; +- } +- readers.put(name, new MethodDecoratedType(readMethod, readMethod.getGenericReturnType())); +- } else if (readMethod == null && descriptor.getWriteMethod() != null && // isXXX, not supported by javabeans +- (descriptor.getPropertyType() == Boolean.class || descriptor.getPropertyType() == boolean.class)) { +- try { +- final Method method = clazz.getMethod( +- "is" + Character.toUpperCase(name.charAt(0)) + (name.length() > 1 ? name.substring(1) : "")); +- readers.put(name, new MethodDecoratedType(method, method.getGenericReturnType())); +- } catch (final NoSuchMethodException e) { +- // no-op +- } +- } +- } +- } +- return readers; +- } +- +- protected boolean isIgnored(final String name) { +- return name.equals("metaClass") || name.contains("$"); +- } +- +- private PropertyDescriptor[] getPropertyDescriptors(final Class clazz) { +- final PropertyDescriptor[] propertyDescriptors; +- try { +- propertyDescriptors = Introspector.getBeanInfo(clazz).getPropertyDescriptors(); +- } catch (final IntrospectionException e) { +- throw new IllegalStateException(e); +- } +- return propertyDescriptors; +- } +- +- public static class MethodDecoratedType implements DecoratedType { +- protected final Method method; +- protected final Type type; +- +- public MethodDecoratedType(final Method method, final Type type) { +- this.method = method; +- method.setAccessible(true); +- this.type = type; +- } +- +- @Override +- public T getClassOrPackageAnnotation(final Class clazz) { +- return Meta.getClassOrPackageAnnotation(method, clazz); +- } +- +- public Method getMethod() { +- return method; +- } +- +- @Override +- public Type getType() { +- return type; +- } +- +- @Override +- public T getAnnotation(final Class clazz) { +- return Meta.getAnnotation(method, clazz); +- } +- +- @Override +- public String toString() { +- return "MethodDecoratedType{" + +- "method=" + method + +- '}'; +- } +- } +- } +- +- private static class FieldAndMethodAccessMode implements BaseAccessMode { +- private final FieldAccessMode fields; +- private final MethodAccessMode methods; +- +- private FieldAndMethodAccessMode(final Class johnzonAny) { +- this.fields = new FieldAccessMode(johnzonAny); +- this.methods = new MethodAccessMode(johnzonAny); +- } +- +- @Override +- public Map find(final Class clazz) { +- final Map methodReaders = this.methods.find(clazz); +- final boolean record = Records.isRecord(clazz); +- if (record) { +- return methodReaders; +- } +- +- final Map fieldsReaders = this.fields.find(clazz); +- final Map readers = new HashMap<>(fieldsReaders); +- +- for (final Map.Entry entry : methodReaders.entrySet()) { +- final Method mr = MethodAccessMode.MethodDecoratedType.class.cast(entry.getValue()).getMethod(); +- final String fieldName = record ? +- mr.getName() : +- Introspector.decapitalize(mr.getName().startsWith("is") ? +- mr.getName().substring(2) : mr.getName().substring(3)); +- final Field f = getField(fieldName, clazz); +- +- final JsonbParser.DecoratedType existing = readers.get(entry.getKey()); +- if (existing == null) { +- if (f != null) { // useful to hold the Field and transient state for example, just as fallback +- readers.put(entry.getKey(), new CompositeDecoratedType<>( +- entry.getValue(), new FieldAccessMode.FieldDecoratedType(f, f.getType()))); +- } else { +- readers.put(entry.getKey(), entry.getValue()); +- } +- } else { +- readers.put(entry.getKey(), new CompositeDecoratedType<>(entry.getValue(), existing)); +- } +- } +- +- return readers; +- } +- +- private Field getField(final String fieldName, final Class type) { +- Class t = type; +- while (t != Object.class && t != null) { +- try { +- return t.getDeclaredField(fieldName); +- } catch (final NoSuchFieldException e) { +- // no-op +- } +- t = t.getSuperclass(); +- } +- return null; +- } +- +- public static class CompositeDecoratedType implements DecoratedType { +- protected final T type1; +- protected final T type2; +- +- private CompositeDecoratedType(final T type1, final T type2) { +- this.type1 = type1; +- this.type2 = type2; +- } +- +- @Override +- public A getClassOrPackageAnnotation(final Class clazz) { +- final A found = type1.getClassOrPackageAnnotation(clazz); +- return found == null ? type2.getClassOrPackageAnnotation(clazz) : found; +- } +- +- @Override +- public A getAnnotation(final Class clazz) { +- final A found = type1.getAnnotation(clazz); +- return found == null ? type2.getAnnotation(clazz) : found; +- } +- +- @Override +- public Type getType() { +- return type1.getType(); +- } +- +- public DecoratedType getType1() { +- return type1; +- } +- +- public DecoratedType getType2() { +- return type2; +- } +- +- @Override +- public String toString() { +- return "CompositeDecoratedType{" + +- "type1=" + type1 + +- ", type2=" + type2 + +- '}'; +- } +- } +- } +- +- +- private static class DefaultPropertyVisibilityStrategy implements PropertyVisibilityStrategy { +- private final ClassLoader classLoader; +- private final ConcurrentMap, PropertyVisibilityStrategy> strategies = new ConcurrentHashMap<>(); +- +- public DefaultPropertyVisibilityStrategy(ClassLoader classLoader) { +- this.classLoader = classLoader; +- } +- +- @Override +- public boolean isVisible(final Field field) { +- if (getJsonbAnnotation(field, JsonbProperty.class) != null) { +- return true; +- } +- final PropertyVisibilityStrategy strategy = strategies.computeIfAbsent( +- field.getDeclaringClass(), this::visibilityStrategy); +- return strategy == this ? Modifier.isPublic(field.getModifiers()) : strategy.isVisible(field); +- } +- +- @Override +- public boolean isVisible(final Method method) { +- final PropertyVisibilityStrategy strategy = strategies.computeIfAbsent( +- method.getDeclaringClass(), this::visibilityStrategy); +- return strategy == this ? Modifier.isPublic(method.getModifiers()) : strategy.isVisible(method); +- } +- +- private PropertyVisibilityStrategy visibilityStrategy(final Class type) { +- JsonbVisibility visibility = getJsonbAnnotation(type, JsonbVisibility.class); +- if (visibility != null) { +- return newVisibilityStrategy(visibility); +- } +- Package p = type.getPackage(); +- while (p != null) { +- visibility = getJsonbAnnotation(p, JsonbVisibility.class); +- if (visibility != null) { +- return newVisibilityStrategy(visibility); +- } +- final String name = p.getName(); +- final int end = name.lastIndexOf('.'); +- if (end < 0) { +- break; +- } +- final String parentPack = name.substring(0, end); +- p = Package.getPackage(parentPack); +- if (p == null) { +- try { +- p = classLoader.loadClass(parentPack + ".package-info").getPackage(); +- } catch (final ClassNotFoundException e) { +- // no-op +- } +- } +- } +- return this; +- } +- +- private PropertyVisibilityStrategy newVisibilityStrategy(JsonbVisibility visibility) { +- try { +- return Utils.asMigrationProxy(visibility.value().getConstructor().newInstance(), PropertyVisibilityStrategy.class); +- } catch (final ReflectiveOperationException e) { +- throw new IllegalArgumentException(e); +- } +- } +- } +- +- private static class PropertyNamingStrategyFactory { +- private final Object value; +- +- public PropertyNamingStrategyFactory(final Object value) { +- this.value = value; +- } +- +- public PropertyNamingStrategy create() { +- if (String.class.isInstance(value)) { +- final String val = value.toString(); +- switch (val) { +- case PropertyNamingStrategy.IDENTITY: +- return propertyName -> propertyName; +- case PropertyNamingStrategy.LOWER_CASE_WITH_DASHES: +- return new ConfigurableNamingStrategy(Character::toLowerCase, '-'); +- case PropertyNamingStrategy.LOWER_CASE_WITH_UNDERSCORES: +- return new ConfigurableNamingStrategy(Character::toLowerCase, '_'); +- case PropertyNamingStrategy.UPPER_CAMEL_CASE: +- return camelCaseStrategy(); +- case PropertyNamingStrategy.UPPER_CAMEL_CASE_WITH_SPACES: +- final PropertyNamingStrategy camelCase = camelCaseStrategy(); +- final PropertyNamingStrategy space = new ConfigurableNamingStrategy(Function.identity(), ' '); +- return propertyName -> camelCase.translateName(space.translateName(propertyName)); +- case PropertyNamingStrategy.CASE_INSENSITIVE: +- return propertyName -> propertyName; +- default: +- throw new IllegalArgumentException(val + " unknown as PropertyNamingStrategy"); +- } +- } +- if (PropertyNamingStrategy.class.isInstance(value)) { +- return PropertyNamingStrategy.class.cast(value); +- } +- throw new IllegalArgumentException(value + " not supported as PropertyNamingStrategy"); +- } +- +- private PropertyNamingStrategy camelCaseStrategy() { +- return propertyName -> Character.toUpperCase(propertyName.charAt(0)) + (propertyName.length() > 1 ? propertyName.substring(1) : ""); +- } +- +- private static class ConfigurableNamingStrategy implements PropertyNamingStrategy { +- private final Function converter; +- private final char separator; +- +- public ConfigurableNamingStrategy(final Function wordConverter, final char sep) { +- this.converter = wordConverter; +- this.separator = sep; +- } +- +- @Override +- public String translateName(final String propertyName) { +- final StringBuilder global = new StringBuilder(); +- +- final StringBuilder current = new StringBuilder(); +- for (int i = 0; i < propertyName.length(); i++) { +- final char c = propertyName.charAt(i); +- if (Character.isUpperCase(c)) { +- final char transformed = converter.apply(c); +- if (current.length() > 0) { +- global.append(current).append(separator); +- current.setLength(0); +- } +- current.append(transformed); +- } else { +- current.append(c); +- } +- } +- if (current.length() > 0) { +- global.append(current); +- } else { +- global.setLength(global.length() - 1); // remove last sep +- } +- return global.toString(); +- } +- } +- } +- +- private static class Records { +- private static final Method IS_RECORD; +- +- static { +- Method isRecord = null; +- try { +- isRecord = Class.class.getMethod("isRecord"); +- } catch (final NoSuchMethodException e) { +- // no-op +- } +- IS_RECORD = isRecord; +- } +- +- private Records() { +- // no-op +- } +- +- public static boolean isRecord(final Class clazz) { +- try { +- return IS_RECORD != null && Boolean.class.cast(IS_RECORD.invoke(clazz)); +- } catch (final InvocationTargetException | IllegalAccessException e) { +- return false; +- } +- } +- } +- +- private static final class Meta { +- private Meta() { +- // no-op +- } +- +- private static T getAnnotation(final AnnotatedElement holder, final Class api) { +- return getDirectAnnotation(holder, api); +- } +- +- private static T getClassOrPackageAnnotation(final Method holder, final Class api) { +- return getIndirectAnnotation(api, holder::getDeclaringClass, () -> holder.getDeclaringClass().getPackage()); +- } +- +- private static T getClassOrPackageAnnotation(final Field holder, final Class api) { +- return getIndirectAnnotation(api, holder::getDeclaringClass, () -> holder.getDeclaringClass().getPackage()); +- } +- +- private static T getDirectAnnotation(final AnnotatedElement holder, final Class api) { +- final T annotation = getJsonbAnnotation(holder, api); +- if (annotation != null) { +- return annotation; +- } +- return findMeta(holder.getAnnotations(), api); +- } +- +- private static T getIndirectAnnotation(final Class api, +- final Supplier> ownerSupplier, +- final Supplier packageSupplier) { +- final T ownerAnnotation = getJsonbAnnotation(ownerSupplier.get(), api); +- if (ownerAnnotation != null) { +- return ownerAnnotation; +- } +- final Package pck = packageSupplier.get(); +- if (pck != null) { +- return getJsonbAnnotation(pck, api); +- } +- return null; +- } +- +- public static T findMeta(final Annotation[] annotations, final Class api) { +- for (final Annotation a : annotations) { +- final Class userType = a.annotationType(); +- final T aa = getJsonbAnnotation(userType, api); +- if (aa != null) { +- boolean overriden = false; +- final Map mapping = new HashMap(); +- for (final Class cm : Arrays.asList(api, userType)) { +- for (final Method m : cm.getMethods()) { +- overriden = mapping.put(m.getName(), m) != null || overriden; +- } +- } +- if (!overriden) { +- return aa; +- } +- return api.cast(newAnnotation(mapping, a, aa)); +- } +- } +- return null; +- } +- +- @SuppressWarnings("unchecked") +- private static T newAnnotation(final Map methodMapping, final Annotation user, final T johnzon) { +- return (T) Proxy.newProxyInstance(Thread.currentThread().getContextClassLoader(), new Class[]{johnzon.annotationType()}, +- (proxy, method, args) -> { +- final Method m = methodMapping.get(method.getName()); +- try { +- if (m.getDeclaringClass() == user.annotationType()) { +- return m.invoke(user, args); +- } +- return m.invoke(johnzon, args); +- } catch (final InvocationTargetException ite) { +- throw ite.getTargetException(); +- } +- }); +- } +- } +- +- private static class ParameterMember implements Member, AnnotatedElement { +- private final Parameter parameter; +- +- public ParameterMember(final Parameter parameter) { +- this.parameter = parameter; +- } +- +- @Override +- public Class getDeclaringClass() { +- return parameter.getDeclaringExecutable().getDeclaringClass(); +- } +- +- @Override +- public String getName() { +- return parameter.getName(); +- } +- +- @Override +- public int getModifiers() { +- return parameter.getModifiers(); +- } +- +- @Override +- public boolean isSynthetic() { +- return parameter.isSynthetic(); +- } +- +- +- @Override +- public T getAnnotation(final Class type) { +- return parameter.getAnnotation(type); +- } +- +- @Override +- public Annotation[] getAnnotations() { +- return parameter.getAnnotations(); +- } +- +- @Override +- public Annotation[] getDeclaredAnnotations() { +- return parameter.getDeclaredAnnotations(); +- } +- } +- +- static A getJsonbAnnotation(AnnotatedElement annotatedElement, Class jakartaAnnotationClass) { +- final Class javaxAnnotationClass = javax(jakartaAnnotationClass); +- return Utils.getMigratedAnnotation(annotatedElement, jakartaAnnotationClass, javaxAnnotationClass); +- } +- +- private static Class javax(Class jakartaClass) { +- @SuppressWarnings("unchecked") +- final Class cls = (Class) javaxClasses.get().get(jakartaClass); +- return cls; +- } +- +- private static final Supplier, Class>> javaxClasses = Utils.memoize(() -> { +- final Map, Class> map = new LinkedHashMap<>(); +- map.put(jakarta.json.bind.annotation.JsonbCreator.class, javax.json.bind.annotation.JsonbCreator.class); +- map.put(jakarta.json.bind.annotation.JsonbProperty.class, javax.json.bind.annotation.JsonbProperty.class); +- map.put(jakarta.json.bind.annotation.JsonbTransient.class, javax.json.bind.annotation.JsonbTransient.class); +- map.put(jakarta.json.bind.annotation.JsonbVisibility.class, javax.json.bind.annotation.JsonbVisibility.class); +- map.put(jakarta.json.bind.config.PropertyNamingStrategy.class, javax.json.bind.config.PropertyNamingStrategy.class); +- map.put(jakarta.json.bind.config.PropertyVisibilityStrategy.class, javax.json.bind.config.PropertyVisibilityStrategy.class); +- return map; +- }); +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/MethodModel.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/MethodModel.java +deleted file mode 100644 +index 4c5c5aa7c..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/MethodModel.java ++++ /dev/null +@@ -1,56 +0,0 @@ +- +-package cz.habarta.typescript.generator.parser; +- +-import java.lang.reflect.Method; +-import java.lang.reflect.Type; +-import java.util.Collections; +-import java.util.List; +- +- +-public class MethodModel { +- +- protected final Class originClass; +- protected final String name; +- protected final List parameters; +- protected final Type returnType; +- protected final Method originalMethod; +- protected final List comments; +- +- public MethodModel(Class originClass, String name, List parameters, Type returnType, Method originalMethod, List comments) { +- this.originClass = originClass; +- this.name = name; +- this.parameters = parameters != null ? parameters : Collections.emptyList(); +- this.returnType = returnType; +- this.originalMethod = originalMethod; +- this.comments = comments; +- } +- +- public Class getOriginClass() { +- return originClass; +- } +- +- public String getName() { +- return name; +- } +- +- public List getParameters() { +- return parameters; +- } +- +- public Type getReturnType() { +- return returnType; +- } +- +- public Method getOriginalMethod() { +- return originalMethod; +- } +- +- public List getComments() { +- return comments; +- } +- +- public MethodModel withComments(List comments) { +- return new MethodModel(originClass, name, parameters, returnType, originalMethod, comments); +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/MethodParameterModel.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/MethodParameterModel.java +deleted file mode 100644 +index dde597fc8..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/MethodParameterModel.java ++++ /dev/null +@@ -1,25 +0,0 @@ +- +-package cz.habarta.typescript.generator.parser; +- +-import java.lang.reflect.Type; +- +- +-public class MethodParameterModel { +- +- private final String name; +- private final Type type; +- +- public MethodParameterModel(String name, Type type) { +- this.name = name; +- this.type = type; +- } +- +- public String getName() { +- return name; +- } +- +- public Type getType() { +- return type; +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/Model.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/Model.java +index 32711cee3..8f00562b4 100644 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/Model.java ++++ b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/Model.java +@@ -1,20 +1,19 @@ + + package cz.habarta.typescript.generator.parser; + +-import java.util.List; +-import java.util.Objects; ++import java.util.*; + + + public class Model { + + private final List beans; +- private final List enums; +- private final List restApplications; ++ private final List> enums; + +- public Model(List beans, List enums, List restApplications) { +- this.beans = Objects.requireNonNull(beans); +- this.enums = Objects.requireNonNull(enums); +- this.restApplications = restApplications; ++ public Model(List beans, List> enums) { ++ if (beans == null) throw new NullPointerException(); ++ if (enums == null) throw new NullPointerException(); ++ this.beans = beans; ++ this.enums = enums; + } + + public List getBeans() { +@@ -30,14 +29,10 @@ public class Model { + return null; + } + +- public List getEnums() { ++ public List> getEnums() { + return enums; + } + +- public List getRestApplications() { +- return restApplications; +- } +- + @Override + public String toString() { + final StringBuilder sb = new StringBuilder(); +@@ -48,7 +43,7 @@ public class Model { + sb.append(bean); + sb.append(String.format("%n")); + } +- for (EnumModel enumModel : enums) { ++ for (EnumModel enumModel : enums) { + sb.append(" "); + sb.append(enumModel); + sb.append(String.format("%n")); +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/ModelParser.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/ModelParser.java +index 5e68c98b6..481553c0d 100644 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/ModelParser.java ++++ b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/ModelParser.java +@@ -1,61 +1,26 @@ + + package cz.habarta.typescript.generator.parser; + +-import cz.habarta.typescript.generator.OptionalProperties; +-import cz.habarta.typescript.generator.Settings; +-import cz.habarta.typescript.generator.TsType; +-import cz.habarta.typescript.generator.TypeProcessor; +-import cz.habarta.typescript.generator.TypeScriptGenerator; +-import cz.habarta.typescript.generator.compiler.EnumKind; + import cz.habarta.typescript.generator.compiler.EnumMemberModel; +-import cz.habarta.typescript.generator.util.AnnotationGetter; +-import cz.habarta.typescript.generator.util.GenericsResolver; +-import cz.habarta.typescript.generator.util.PropertyMember; +-import cz.habarta.typescript.generator.util.Utils; +-import java.lang.annotation.Annotation; +-import java.lang.reflect.Constructor; +-import java.lang.reflect.Field; ++import cz.habarta.typescript.generator.compiler.EnumKind; ++import cz.habarta.typescript.generator.compiler.SymbolTable; ++import cz.habarta.typescript.generator.*; + import java.lang.reflect.Member; +-import java.lang.reflect.Method; + import java.lang.reflect.Type; +-import java.util.ArrayList; +-import java.util.Arrays; +-import java.util.Collection; +-import java.util.LinkedList; +-import java.util.List; +-import java.util.Map; +-import java.util.Queue; +-import java.util.function.Function; +-import java.util.stream.Collectors; +-import java.util.stream.Stream; ++import java.util.*; + + + public abstract class ModelParser { + + protected final Settings settings; ++ protected final TypeProcessor typeProcessor; + private final Javadoc javadoc; +- private final DeprecationEnricher deprecationEnricher; +- private final Queue> typeQueue; +- private final TypeProcessor commonTypeProcessor; +- private final List restApplicationParsers; +- +- public static abstract class Factory { +- +- public TypeProcessor getSpecificTypeProcessor() { +- return null; +- } +- +- public abstract ModelParser create(Settings settings, TypeProcessor commonTypeProcessor, List restApplicationParsers); +- +- } ++ private final Queue> typeQueue = new LinkedList<>(); + +- public ModelParser(Settings settings, TypeProcessor commonTypeProcessor, List restApplicationParsers) { ++ public ModelParser(Settings settings, TypeProcessor typeProcessor) { + this.settings = settings; +- this.javadoc = new Javadoc(settings); +- this.deprecationEnricher = new DeprecationEnricher(); +- this.typeQueue = new LinkedList<>(); +- this.restApplicationParsers = restApplicationParsers; +- this.commonTypeProcessor = commonTypeProcessor; ++ this.typeProcessor = typeProcessor; ++ this.javadoc = new Javadoc(settings.javadocXmlFiles); + } + + public Model parseModel(Type type) { +@@ -64,55 +29,33 @@ public abstract class ModelParser { + + public Model parseModel(List> types) { + typeQueue.addAll(types); +- Model model = parseQueue(); +- if (!settings.ignoreSwaggerAnnotations) { +- model = Swagger.enrichModel(model); +- } +- model = javadoc.enrichModel(model); +- model = deprecationEnricher.enrichModel(model); +- return model; ++ final Model model = parseQueue(); ++ final Model modelWithJavadoc = javadoc.enrichModel(model); ++ return modelWithJavadoc; + } + + private Model parseQueue() { +- final Collection parsedTypes = new ArrayList<>(); // do not use hashcodes, we can only count on `equals` since we use custom `ParameterizedType`s ++ final Set parsedTypes = new LinkedHashSet<>(); + final List beans = new ArrayList<>(); +- final List enums = new ArrayList<>(); +- SourceType sourceType; ++ final List> enums = new ArrayList<>(); ++ SourceType sourceType; + while ((sourceType = typeQueue.poll()) != null) { + if (parsedTypes.contains(sourceType.type)) { + continue; + } + parsedTypes.add(sourceType.type); +- +- // REST resource +- boolean parsedByRestApplicationParser = false; +- for (RestApplicationParser restApplicationParser : restApplicationParsers) { +- final JaxrsApplicationParser.Result jaxrsResult = restApplicationParser.tryParse(sourceType); +- if (jaxrsResult != null) { +- typeQueue.addAll(jaxrsResult.discoveredTypes); +- parsedByRestApplicationParser = true; +- } +- } +- if (parsedByRestApplicationParser) { +- continue; +- } +- +- final TypeProcessor.Result result = commonTypeProcessor.processTypeInTemporaryContext(sourceType.type, null, settings); ++ final TypeProcessor.Result result = processType(sourceType.type); + if (result != null) { + if (sourceType.type instanceof Class && result.getTsType() instanceof TsType.ReferenceType) { + final Class cls = (Class) sourceType.type; +- final TsType.ReferenceType referenceType = (TsType.ReferenceType) result.getTsType(); +- if (!referenceType.symbol.isResolved()) { +- TypeScriptGenerator.getLogger().verbose("Parsing '" + cls.getName() + "'" + +- (sourceType.usedInClass != null ? " used in '" + sourceType.usedInClass.getSimpleName() + "." + sourceType.usedInMember + "'" : "")); +- final DeclarationModel model = parseClass(sourceType.asSourceClass()); +- if (model instanceof EnumModel) { +- enums.add((EnumModel) model); +- } else if (model instanceof BeanModel) { +- beans.add((BeanModel) model); +- } else { +- throw new RuntimeException(); +- } ++ System.out.println("Parsing '" + cls.getName() + "'" + ++ (sourceType.usedInClass != null ? " used in '" + sourceType.usedInClass.getSimpleName() + "." + sourceType.usedInMember + "'" : "")); ++ if (cls.isEnum()) { ++ final EnumModel enumModel = parseEnum(sourceType.asSourceClass()); ++ enums.add(enumModel); ++ } else { ++ final BeanModel bean = parseBean(sourceType.asSourceClass()); ++ beans.add(bean); + } + } + for (Class cls : result.getDiscoveredClasses()) { +@@ -120,104 +63,42 @@ public abstract class ModelParser { + } + } + } +- final List restModels = restApplicationParsers.stream() +- .map(RestApplicationParser::getModel) +- .collect(Collectors.toList()); +- return new Model(beans, enums, restModels); ++ return new Model(beans, enums); + } + +- protected abstract DeclarationModel parseClass(SourceType> sourceClass); ++ protected abstract BeanModel parseBean(SourceType> sourceClass); + +- protected static PropertyMember wrapMember(TypeParser typeParser, Member propertyMember, Integer creatorIndex, AnnotationGetter annotationGetter, +- String propertyName, Class sourceClass) { +- if (propertyMember instanceof Field) { +- final Field field = (Field) propertyMember; +- return new PropertyMember(field, typeParser.getFieldType(field), field.getAnnotatedType(), annotationGetter); +- } +- if (propertyMember instanceof Method) { +- final Method method = (Method) propertyMember; +- if (creatorIndex != null) { +- return new PropertyMember(method, typeParser.getMethodParameterTypes(method).get(creatorIndex), method.getAnnotatedParameterTypes()[creatorIndex], annotationGetter); +- } else { +- switch (method.getParameterCount()) { +- case 0: +- return new PropertyMember(method, typeParser.getMethodReturnType(method), method.getAnnotatedReturnType(), annotationGetter); +- case 1: +- return new PropertyMember(method, typeParser.getMethodParameterTypes(method).get(0), method.getAnnotatedParameterTypes()[0], annotationGetter); +- } +- } +- } +- if (propertyMember instanceof Constructor) { +- final Constructor constructor = (Constructor) propertyMember; +- if (creatorIndex != null) { +- return new PropertyMember(constructor, typeParser.getConstructorParameterTypes(constructor).get(creatorIndex), constructor.getAnnotatedParameterTypes()[creatorIndex], annotationGetter); +- } +- } +- TypeScriptGenerator.getLogger().verbose(String.format( +- "Unexpected member '%s' in property '%s' in class '%s'", +- propertyMember != null ? propertyMember.getClass().getName() : null, +- propertyName, +- sourceClass.getName())); +- return null; +- } +- +- protected boolean isAnnotatedPropertyIncluded(Function, Annotation> getAnnotationFunction, String propertyDescription) { +- boolean isIncluded = settings.includePropertyAnnotations.isEmpty() +- || Utils.hasAnyAnnotation(getAnnotationFunction, settings.includePropertyAnnotations); +- if (!isIncluded) { +- TypeScriptGenerator.getLogger().verbose("Skipping '" + propertyDescription + "' because it doesn't have any annotation from 'includePropertyAnnotations'"); +- return false; +- } +- boolean isExcluded = Utils.hasAnyAnnotation(getAnnotationFunction, settings.excludePropertyAnnotations); +- if (isExcluded) { +- TypeScriptGenerator.getLogger().verbose("Skipping '" + propertyDescription + "' because it has some annotation from 'excludePropertyAnnotations'"); +- return false; +- } +- return true; +- } +- +- protected boolean isPropertyOptional(PropertyMember propertyMember) { +- if (settings.optionalProperties == OptionalProperties.all) { +- return true; +- } +- if (settings.optionalProperties == null || settings.optionalProperties == OptionalProperties.useSpecifiedAnnotations) { +- if (!settings.optionalAnnotations.isEmpty()) { +- return Utils.hasAnyAnnotation(propertyMember::getAnnotation, settings.optionalAnnotations); +- } +- if (settings.primitivePropertiesRequired && Utils.isPrimitiveType(propertyMember.getType())) { +- return false; +- } +- if (!settings.requiredAnnotations.isEmpty()) { +- return !Utils.hasAnyAnnotation(propertyMember::getAnnotation, settings.requiredAnnotations); +- } +- } +- return false; +- } +- +- protected static DeclarationModel parseEnum(SourceType> sourceClass) { +- final List values = new ArrayList<>(); ++ protected EnumModel parseEnum(SourceType> sourceClass) { ++ final List> values = new ArrayList<>(); + if (sourceClass.type.isEnum()) { + @SuppressWarnings("unchecked") + final Class> enumClass = (Class>) sourceClass.type; +- final Map fields = Stream.of(enumClass.getDeclaredFields()).collect(Utils.toMap(field -> field.getName(), field -> field)); + for (Enum enumConstant : enumClass.getEnumConstants()) { +- values.add(new EnumMemberModel(enumConstant.name(), enumConstant.name(), fields.get(enumConstant.name()), null)); ++ values.add(new EnumMemberModel<>(enumConstant.name(), enumConstant.name(), null)); + } + } +- return new EnumModel(sourceClass.type, EnumKind.StringBased, values, null); ++ return new EnumModel<>(sourceClass.type, EnumKind.StringBased, values, null); + } + + protected void addBeanToQueue(SourceType sourceType) { + typeQueue.add(sourceType); + } + +- protected PropertyModel processTypeAndCreateProperty(String name, Type type, Object typeContext, boolean optional, PropertyAccess access, Class usedInClass, Member originalMember, PropertyModel.PullProperties pullProperties, List comments) { +- final Type resolvedType = GenericsResolver.resolveType(usedInClass, type, originalMember.getDeclaringClass()); +- final List> classes = commonTypeProcessor.discoverClassesUsedInType(resolvedType, typeContext, settings); ++ protected PropertyModel processTypeAndCreateProperty(String name, Type type, boolean optional, Class usedInClass, Member originalMember) { ++ List> classes = discoverClassesUsedInType(type); + for (Class cls : classes) { + typeQueue.add(new SourceType<>(cls, usedInClass, name)); + } +- return new PropertyModel(name, resolvedType, optional, access, originalMember, pullProperties, typeContext, comments); ++ return new PropertyModel(name, type, optional, originalMember, null); ++ } ++ ++ private List> discoverClassesUsedInType(Type type) { ++ final TypeProcessor.Result result = processType(type); ++ return result != null ? result.getDiscoveredClasses() : Collections.>emptyList(); ++ } ++ ++ private TypeProcessor.Result processType(Type type) { ++ return typeProcessor.processType(type, new TypeProcessor.Context(new SymbolTable(settings), typeProcessor)); + } + + public static boolean containsProperty(List properties, String propertyName) { +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/PathTemplate.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/PathTemplate.java +deleted file mode 100644 +index 20f7ad1d1..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/PathTemplate.java ++++ /dev/null +@@ -1,109 +0,0 @@ +- +-package cz.habarta.typescript.generator.parser; +- +-import cz.habarta.typescript.generator.compiler.ModelCompiler; +-import java.util.ArrayList; +-import java.util.List; +-import java.util.regex.Matcher; +-import java.util.regex.Pattern; +- +- +-// see org.glassfish.jersey.uri.internal.UriTemplateParser +-public class PathTemplate { +- +- private final List parts; +- +- private PathTemplate(List parts) { +- this.parts = parts; +- } +- +- public List getParts() { +- return parts; +- } +- +- public static PathTemplate parse(String path) { +- final List parts = new ArrayList<>(); +- final String pattern = "" +- + "\\{" +- + "\\s*" +- + "(?\\w[\\w\\.-]*)" +- + "\\s*" +- + "(:" +- + "\\s*" +- + "(?[^{}\\s]+(\\{[^{}]*\\}[^{}]*)*)" // this handles RegExp which may contain '{}' quantifiers +- + "\\s*)?" +- + "\\}"; +- final Matcher matcher = Pattern.compile(pattern).matcher(path); +- int index = 0; +- while (matcher.find()) { +- if (matcher.start() > index) { +- parts.add(new Literal(path.substring(index, matcher.start()))); +- } +- parts.add(new Parameter(matcher.group("ParamName"), matcher.group("ParamRegex"))); +- index = matcher.end(); +- } +- if (index < path.length()) { +- parts.add(new Literal(path.substring(index, path.length()))); +- } +- return new PathTemplate(parts); +- } +- +- public String format(String parameterLeftDelimiter, String parameterRightDelimiter, boolean includeParameterRegex) { +- final StringBuilder sb = new StringBuilder(); +- for (Part part : parts) { +- if (part instanceof Literal) { +- final Literal literal = (Literal) part; +- sb.append(literal.getLiteral()); +- } +- if (part instanceof Parameter) { +- final Parameter parameter = (Parameter) part; +- sb.append(parameterLeftDelimiter); +- sb.append(parameter.getValidName()); +- if (includeParameterRegex && parameter.getRegex() != null) { +- sb.append(":"); +- sb.append(parameter.getRegex()); +- } +- sb.append(parameterRightDelimiter); +- } +- } +- return sb.toString(); +- } +- +- public static abstract class Part { +- } +- +- public static class Literal extends Part { +- private final String literal; +- +- public Literal(String literal) { +- this.literal = literal; +- } +- +- public String getLiteral() { +- return literal; +- } +- } +- +- public static class Parameter extends Part { +- private final String name; +- private final String regex; +- +- public Parameter(String name, String regex) { +- this.name = name; +- this.regex = regex; +- } +- +- public String getValidName() { +- return ModelCompiler.getValidIdentifierName(name); +- } +- +- public String getOriginalName() { +- return name; +- } +- +- public String getRegex() { +- return regex; +- } +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/PropertyAccess.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/PropertyAccess.java +deleted file mode 100644 +index 6fbedf545..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/PropertyAccess.java ++++ /dev/null +@@ -1,11 +0,0 @@ +- +-package cz.habarta.typescript.generator.parser; +- +- +-public enum PropertyAccess { +- +- ReadOnly, +- WriteOnly, +- ReadWrite, +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/PropertyModel.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/PropertyModel.java +index f805b2861..dd6d2488a 100644 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/PropertyModel.java ++++ b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/PropertyModel.java +@@ -4,7 +4,6 @@ package cz.habarta.typescript.generator.parser; + import java.lang.reflect.Member; + import java.lang.reflect.Type; + import java.util.List; +-import java.util.Objects; + + + public class PropertyModel { +@@ -12,30 +11,14 @@ public class PropertyModel { + private final String name; + private final Type type; + private final boolean optional; +- private final PropertyAccess access; + private final Member originalMember; +- private final PullProperties pullProperties; +- private final Object context; + private final List comments; + +- public static class PullProperties { +- public final String prefix; +- public final String suffix; +- +- public PullProperties(String prefix, String suffix) { +- this.prefix = prefix; +- this.suffix = suffix; +- } +- } +- +- public PropertyModel(String name, Type type, boolean optional, PropertyAccess access, Member originalMember, PullProperties pullProperties, Object context, List comments) { +- this.name = Objects.requireNonNull(name); +- this.type = Objects.requireNonNull(type); ++ public PropertyModel(String name, Type type, boolean optional, Member originalMember, List comments) { ++ this.name = name; ++ this.type = type; + this.optional = optional; +- this.access = access; + this.originalMember = originalMember; +- this.pullProperties = pullProperties; +- this.context = context; + this.comments = comments; + } + +@@ -51,24 +34,12 @@ public class PropertyModel { + return optional; + } + +- public PropertyAccess getAccess() { +- return access; +- } +- + public Member getOriginalMember() { + return originalMember; + } + + public PropertyModel originalMember(Member originalMember) { +- return new PropertyModel(name, type, optional, access, originalMember, pullProperties, context, comments); +- } +- +- public PullProperties getPullProperties() { +- return pullProperties; +- } +- +- public Object getContext() { +- return context; ++ return new PropertyModel(name, type, optional, originalMember, comments); + } + + public List getComments() { +@@ -76,15 +47,7 @@ public class PropertyModel { + } + + public PropertyModel withComments(List comments) { +- return new PropertyModel(name, type, optional, access, originalMember, pullProperties, context, comments); +- } +- +- public PropertyModel withType(Type type) { +- return new PropertyModel(name, type, optional, access, originalMember, pullProperties, context, comments); +- } +- +- public PropertyModel withOptional(boolean optional) { +- return new PropertyModel(name, type, optional, access, originalMember, pullProperties, context, comments); ++ return new PropertyModel(name, type, optional, originalMember, comments); + } + + @Override +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/RestApplicationModel.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/RestApplicationModel.java +deleted file mode 100644 +index 485ea888e..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/RestApplicationModel.java ++++ /dev/null +@@ -1,56 +0,0 @@ +- +-package cz.habarta.typescript.generator.parser; +- +-import java.util.ArrayList; +-import java.util.List; +-import java.util.Objects; +- +- +-public class RestApplicationModel { +- +- private final RestApplicationType type; +- private String applicationPath; +- private String applicationName; +- private final List methods; +- +- public RestApplicationModel(RestApplicationType type) { +- this.type = type; +- this.methods = new ArrayList<>(); +- } +- +- public RestApplicationModel(RestApplicationType type, String applicationPath, String applicationName, List methods) { +- this.type = Objects.requireNonNull(type); +- this.applicationPath = applicationPath; +- this.applicationName = applicationName; +- this.methods = Objects.requireNonNull(methods); +- } +- +- public RestApplicationType getType() { +- return type; +- } +- +- public String getApplicationPath() { +- return applicationPath; +- } +- +- public void setApplicationPath(String applicationPath) { +- this.applicationPath = applicationPath; +- } +- +- public String getApplicationName() { +- return applicationName; +- } +- +- public void setApplicationName(String applicationName) { +- this.applicationName = applicationName; +- } +- +- public List getMethods() { +- return methods; +- } +- +- public RestApplicationModel withMethods(List methods) { +- return new RestApplicationModel(type, applicationPath, applicationName, methods); +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/RestApplicationParser.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/RestApplicationParser.java +deleted file mode 100644 +index 4dfceaea2..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/RestApplicationParser.java ++++ /dev/null +@@ -1,89 +0,0 @@ +- +-package cz.habarta.typescript.generator.parser; +- +-import cz.habarta.typescript.generator.Settings; +-import cz.habarta.typescript.generator.TypeProcessor; +-import cz.habarta.typescript.generator.util.Utils; +-import java.lang.reflect.Type; +-import java.util.ArrayList; +-import java.util.LinkedHashMap; +-import java.util.List; +-import java.util.Map; +-import java.util.function.Predicate; +- +-public abstract class RestApplicationParser { +- +- protected final Settings settings; +- protected final Predicate isClassNameExcluded; +- protected final TypeProcessor commonTypeProcessor; +- protected final RestApplicationModel model; +- +- public static abstract class Factory { +- +- public TypeProcessor getSpecificTypeProcessor() { +- return null; +- } +- +- public abstract RestApplicationParser create(Settings settings, TypeProcessor commonTypeProcessor); +- +- } +- +- public RestApplicationParser(Settings settings, TypeProcessor commonTypeProcessor, RestApplicationModel model) { +- this.settings = settings; +- this.isClassNameExcluded = settings.getExcludeFilter(); +- this.commonTypeProcessor = commonTypeProcessor; +- this.model = model; +- } +- +- public RestApplicationModel getModel() { +- return model; +- } +- +- protected abstract Result tryParse(SourceType sourceType); +- +- public static class Result { +- public List> discoveredTypes; +- public Result() { +- discoveredTypes = new ArrayList<>(); +- } +- public Result(List> discoveredTypes) { +- this.discoveredTypes = discoveredTypes; +- } +- } +- +- protected void foundType(Result result, Type type, Class usedInClass, String usedInMember) { +- if (!commonTypeProcessor.isTypeExcluded(type, null, settings)) { +- result.discoveredTypes.add(new SourceType<>(type, usedInClass, usedInMember)); +- } +- } +- +- protected static class ResourceContext { +- public final Class rootResource; +- public final String path; +- public final Map pathParamTypes; +- +- public ResourceContext(Class rootResource, String path) { +- this(rootResource, path, new LinkedHashMap()); +- } +- +- private ResourceContext(Class rootResource, String path, Map pathParamTypes) { +- this.rootResource = rootResource; +- this.path = path; +- this.pathParamTypes = pathParamTypes; +- } +- +- public ResourceContext subPath(String subPath) { +- return new ResourceContext(rootResource, Utils.joinPath(path, subPath), pathParamTypes); +- } +- +- public ResourceContext subPathParamTypes(Map subPathParamTypes) { +- final Map newPathParamTypes = new LinkedHashMap<>(); +- newPathParamTypes.putAll(pathParamTypes); +- if (subPathParamTypes != null) { +- newPathParamTypes.putAll(subPathParamTypes); +- } +- return new ResourceContext(rootResource, path, newPathParamTypes); +- } +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/RestApplicationType.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/RestApplicationType.java +deleted file mode 100644 +index 209538e18..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/RestApplicationType.java ++++ /dev/null +@@ -1,21 +0,0 @@ +- +-package cz.habarta.typescript.generator.parser; +- +-import cz.habarta.typescript.generator.Settings; +-import java.util.function.Function; +- +- +-public enum RestApplicationType { +- +- Jaxrs(settings -> settings.generateJaxrsApplicationInterface, settings -> settings.generateJaxrsApplicationClient), +- Spring(settings -> settings.generateSpringApplicationInterface, settings -> settings.generateSpringApplicationClient); +- +- private RestApplicationType(Function generateInterface, Function generateClient) { +- this.generateInterface = generateInterface; +- this.generateClient = generateClient; +- } +- +- public final Function generateInterface; +- public final Function generateClient; +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/RestMethodModel.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/RestMethodModel.java +deleted file mode 100644 +index b5b7716b7..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/RestMethodModel.java ++++ /dev/null +@@ -1,59 +0,0 @@ +- +-package cz.habarta.typescript.generator.parser; +- +-import java.lang.reflect.Method; +-import java.lang.reflect.Type; +-import java.util.List; +- +- +-public class RestMethodModel extends MethodModel { +- +- private final Class rootResource; +- private final String httpMethod; +- private final String path; +- private final List pathParams; +- private final List queryParams; +- private final MethodParameterModel entityParam; +- +- public RestMethodModel(Class originClass, String name, Type returnType, Method originalMethod, +- Class rootResource, String httpMethod, String path, List pathParams, List queryParams, MethodParameterModel entityParam, +- List comments) { +- super(originClass, name, null, returnType, originalMethod, comments); +- this.rootResource = rootResource; +- this.httpMethod = httpMethod; +- this.path = path; +- this.pathParams = pathParams; +- this.queryParams = queryParams; +- this.entityParam = entityParam; +- } +- +- public Class getRootResource() { +- return rootResource; +- } +- +- public String getHttpMethod() { +- return httpMethod; +- } +- +- public String getPath() { +- return path; +- } +- +- public List getPathParams() { +- return pathParams; +- } +- +- public List getQueryParams() { +- return queryParams; +- } +- +- public MethodParameterModel getEntityParam() { +- return entityParam; +- } +- +- @Override +- public RestMethodModel withComments(List comments) { +- return new RestMethodModel(originClass, name, returnType, originalMethod, rootResource, httpMethod, path, pathParams, queryParams, entityParam, comments); +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/RestQueryParam.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/RestQueryParam.java +deleted file mode 100644 +index 24146dcb9..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/RestQueryParam.java ++++ /dev/null +@@ -1,46 +0,0 @@ +- +-package cz.habarta.typescript.generator.parser; +- +- +-public abstract class RestQueryParam { +- +- public boolean required; +- +- RestQueryParam(boolean required) { +- this.required = required; +- } +- +- public static class Single extends RestQueryParam { +- private final MethodParameterModel queryParam; +- +- public Single(MethodParameterModel queryParam, boolean required) { +- super(required); +- this.queryParam = queryParam; +- } +- +- public MethodParameterModel getQueryParam() { +- return queryParam; +- } +- } +- +- public static class Bean extends RestQueryParam { +- private final BeanModel bean; +- +- // Only used in JAX-Rs, so optional +- public Bean(BeanModel bean) { +- super(false); +- this.bean = bean; +- } +- +- public BeanModel getBean() { +- return bean; +- } +- } +- +- public static class Map extends RestQueryParam { +- public Map(boolean required) { +- super(required); +- } +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/SourceType.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/SourceType.java +index 24bf2cf76..d8db9c527 100644 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/SourceType.java ++++ b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/SourceType.java +@@ -1,7 +1,7 @@ + + package cz.habarta.typescript.generator.parser; + +-import java.lang.reflect.Type; ++import java.lang.reflect.*; + + + public class SourceType { +@@ -26,9 +26,4 @@ public class SourceType { + return (SourceType>) this; + } + +- @Override +- public String toString() { +- return type.toString(); +- } +- + } +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/Swagger.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/Swagger.java +deleted file mode 100644 +index a6da2c0ca..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/Swagger.java ++++ /dev/null +@@ -1,226 +0,0 @@ +- +-package cz.habarta.typescript.generator.parser; +- +-import cz.habarta.typescript.generator.util.Utils; +-import java.lang.annotation.Annotation; +-import java.lang.reflect.AnnotatedElement; +-import java.lang.reflect.Method; +-import java.lang.reflect.Type; +-import java.util.ArrayList; +-import java.util.Arrays; +-import java.util.List; +-import java.util.Map; +-import java.util.Objects; +-import java.util.Set; +-import java.util.function.Supplier; +- +- +-public class Swagger { +- +- public static SwaggerOperation parseSwaggerAnnotations(Method method) { +- return firstResult( +- () -> parseSwaggerAnnotations3(method), +- () -> parseSwaggerAnnotations1(method), +- new SwaggerOperation()); +- } +- +- private static SwaggerOperation parseSwaggerAnnotations1(Method method) { +- final Annotation apiOperation = Utils.getAnnotation(method, "io.swagger.annotations.ApiOperation"); +- final Annotation[] apiResponses = Utils.getAnnotationElementValue(method, "io.swagger.annotations.ApiResponses", "value", Annotation[].class); +- if (apiOperation == null && apiResponses == null) { +- return null; +- } +- final SwaggerOperation swaggerOperation = new SwaggerOperation(); +- // @ApiOperation +- if (apiOperation != null) { +- final Class response = Utils.getAnnotationElementValue(apiOperation, "response", Class.class); +- final String responseContainer = Utils.getAnnotationElementValue(apiOperation, "responseContainer", String.class); +- if (responseContainer == null || responseContainer.isEmpty()) { +- swaggerOperation.responseType = response; +- } else { +- switch (responseContainer) { +- case "List": +- swaggerOperation.responseType = Utils.createParameterizedType(List.class, response); +- break; +- case "Set": +- swaggerOperation.responseType = Utils.createParameterizedType(Set.class, response); +- break; +- case "Map": +- swaggerOperation.responseType = Utils.createParameterizedType(Map.class, String.class, response); +- break; +- } +- } +- swaggerOperation.hidden = Utils.getAnnotationElementValue(apiOperation, "hidden", Boolean.class); +- swaggerOperation.comment = Utils.getAnnotationElementValue(apiOperation, "value", String.class); +- swaggerOperation.comment = swaggerOperation.comment.isEmpty() ? null : swaggerOperation.comment; +- } +- // @ApiResponses +- if (apiResponses != null) { +- swaggerOperation.possibleResponses = new ArrayList<>(); +- for (Annotation apiResponse : apiResponses) { +- final SwaggerResponse response = new SwaggerResponse(); +- response.code = String.valueOf(Utils.getAnnotationElementValue(apiResponse, "code", Integer.class)); +- response.comment = Utils.getAnnotationElementValue(apiResponse, "message", String.class); +- response.responseType = Utils.getAnnotationElementValue(apiResponse, "response", Class.class); +- swaggerOperation.possibleResponses.add(response); +- } +- } +- return swaggerOperation; +- } +- +- private static SwaggerOperation parseSwaggerAnnotations3(Method method) { +- final Annotation operationAnnotation = Utils.getAnnotation(method, "io.swagger.v3.oas.annotations.Operation"); +- final Annotation apiResponseAnnotation = Utils.getAnnotation(method, "io.swagger.v3.oas.annotations.responses.ApiResponse"); +- final Annotation apiResponsesAnnotation = Utils.getAnnotation(method, "io.swagger.v3.oas.annotations.responses.ApiResponses"); +- if (operationAnnotation == null && apiResponseAnnotation == null && apiResponsesAnnotation == null) { +- return null; +- } +- final SwaggerOperation swaggerOperation = new SwaggerOperation(); +- // @Operation +- if (operationAnnotation != null) { +- swaggerOperation.hidden = Utils.getAnnotationElementValue(operationAnnotation, "hidden", Boolean.class); +- swaggerOperation.comment = Utils.getAnnotationElementValue(operationAnnotation, "description", String.class); +- swaggerOperation.comment = swaggerOperation.comment.isEmpty() ? null : swaggerOperation.comment; +- } +- // @ApiResponses +- final List responses = firstResult( +- () -> emptyToNull(Utils.getRepeatableAnnotation(apiResponseAnnotation, apiResponsesAnnotation)), +- () -> emptyToNull(Arrays.asList(Utils.getAnnotationElementValue(operationAnnotation, "responses", Annotation[].class))) +- ); +- if (responses != null) { +- swaggerOperation.possibleResponses = new ArrayList<>(); +- for (Annotation apiResponse : responses) { +- final SwaggerResponse response = new SwaggerResponse(); +- final String code = Utils.getAnnotationElementValue(apiResponse, "responseCode", String.class); +- response.code = Objects.equals(code, "default") ? null : code; +- response.comment = Utils.getAnnotationElementValue(apiResponse, "description", String.class); +- final Annotation[] content = Utils.getAnnotationElementValue(apiResponse, "content", Annotation[].class); +- if (content.length > 0) { +- final Annotation schema = Utils.getAnnotationElementValue(content[0], "schema", Annotation.class); +- final Class implementation = Utils.getAnnotationElementValue(schema, "implementation", Class.class); +- if (!Objects.equals(implementation, Void.class)) { +- response.responseType = implementation; +- if (swaggerOperation.responseType == null) { +- if (response.code == null || isSuccessCode(response.code)) { +- swaggerOperation.responseType = implementation; +- } +- } +- } +- } +- if (response.code != null) { +- swaggerOperation.possibleResponses.add(response); +- } +- } +- } +- return swaggerOperation; +- } +- +- private static boolean isSuccessCode(String code) { +- return code.startsWith("2"); +- } +- +- static List getOperationComments(SwaggerOperation operation) { +- final List comments = new ArrayList<>(); +- if (operation.comment != null) { +- comments.add(operation.comment); +- } +- if (operation.possibleResponses != null) { +- for (SwaggerResponse response : operation.possibleResponses) { +- comments.add(String.format("Response code %s - %s", response.code, response.comment)); +- } +- } +- return comments.isEmpty() ? null : comments; +- } +- +- public static Model enrichModel(Model model) { +- final List dBeans = new ArrayList<>(); +- for (BeanModel bean : model.getBeans()) { +- final BeanModel dBean = enrichBean(bean); +- dBeans.add(dBean); +- } +- return new Model(dBeans, model.getEnums(), model.getRestApplications()); +- } +- +- private static BeanModel enrichBean(BeanModel bean) { +- final List enrichedProperties = new ArrayList<>(); +- for (PropertyModel property : bean.getProperties()) { +- final PropertyModel enrichedProperty = enrichProperty(property); +- enrichedProperties.add(enrichedProperty); +- } +- final String comment = firstResult( +- () -> Utils.getAnnotationElementValue(bean.getOrigin(), "io.swagger.v3.oas.annotations.media.Schema", "description", String.class), +- () -> Utils.getAnnotationElementValue(bean.getOrigin(), "io.swagger.annotations.ApiModel", "description", String.class)); +- final List comments = comment != null && !comment.isEmpty() ? Arrays.asList(comment) : null; +- return bean.withProperties(enrichedProperties).withComments(Utils.concat(comments, bean.getComments())); +- } +- +- private static PropertyModel enrichProperty(PropertyModel property) { +- if (property.getOriginalMember() instanceof AnnotatedElement) { +- final AnnotatedElement annotatedElement = (AnnotatedElement) property.getOriginalMember(); +- return firstResult( +- () -> enrichProperty3(property, annotatedElement), +- () -> enrichProperty1(property, annotatedElement), +- property); +- } else { +- return property; +- } +- } +- +- private static PropertyModel enrichProperty1(PropertyModel property, AnnotatedElement annotatedElement) { +- final Annotation apiModelProperty = Utils.getAnnotation(annotatedElement, "io.swagger.annotations.ApiModelProperty"); +- if (apiModelProperty == null) { +- return null; +- } +- final String comment = Utils.getAnnotationElementValue(apiModelProperty, "value", String.class); +- final List comments = comment != null && !comment.isEmpty() ? Arrays.asList(comment) : null; +- final PropertyModel propertyModel = property.withComments(Utils.concat(comments, property.getComments())); +- final String dataTypeString = Utils.getAnnotationElementValue(apiModelProperty, "dataType", String.class); +- if (dataTypeString == null || dataTypeString.isEmpty()) { +- return propertyModel; +- } +- try { +- final Type type = Class.forName(dataTypeString); +- final boolean required = Utils.getAnnotationElementValue(apiModelProperty, "required", Boolean.class); +- return propertyModel.withType(type).withOptional(!required); +- } catch (ClassNotFoundException | ClassCastException e) { +- return propertyModel; +- } +- } +- +- private static PropertyModel enrichProperty3(PropertyModel property, AnnotatedElement annotatedElement) { +- final Annotation schema = Utils.getAnnotation(annotatedElement, "io.swagger.v3.oas.annotations.media.Schema"); +- if (schema == null) { +- return null; +- } +- final String comment = Utils.getAnnotationElementValue(schema, "description", String.class); +- final List comments = comment != null && !comment.isEmpty() ? Arrays.asList(comment) : null; +- final PropertyModel propertyModel = property.withComments(Utils.concat(comments, property.getComments())); +- final Class implementation = Utils.getAnnotationElementValue(schema, "implementation", Class.class); +- if (implementation == null || Objects.equals(implementation, Void.class)) { +- return propertyModel; +- } +- final boolean required = Utils.getAnnotationElementValue(schema, "required", Boolean.class); +- return propertyModel.withType(implementation).withOptional(!required); +- } +- +- private static T firstResult(Supplier supplier1, Supplier supplier2) { +- return firstResult(supplier1, supplier2, null); +- } +- +- private static T firstResult(Supplier supplier1, Supplier supplier2, T defaultResult) { +- final T result1 = supplier1.get(); +- if (result1 != null) { +- return result1; +- } +- final T result2 = supplier2.get(); +- if (result2 != null) { +- return result2; +- } +- return defaultResult; +- } +- +- private static List emptyToNull(List list) { +- return list != null && !list.isEmpty() ? list : null; +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/SwaggerOperation.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/SwaggerOperation.java +deleted file mode 100644 +index 53c2736a2..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/SwaggerOperation.java ++++ /dev/null +@@ -1,13 +0,0 @@ +- +-package cz.habarta.typescript.generator.parser; +- +-import java.lang.reflect.Type; +-import java.util.List; +- +- +-public class SwaggerOperation { +- public Type responseType; +- public List possibleResponses; +- public boolean hidden; +- public String comment; +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/SwaggerResponse.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/SwaggerResponse.java +deleted file mode 100644 +index e2f59f961..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/SwaggerResponse.java ++++ /dev/null +@@ -1,11 +0,0 @@ +- +-package cz.habarta.typescript.generator.parser; +- +-import java.lang.reflect.Type; +- +- +-public class SwaggerResponse { +- public String code; +- public String comment; +- public Type responseType; +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/TypeParser.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/TypeParser.java +deleted file mode 100644 +index 613063581..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/TypeParser.java ++++ /dev/null +@@ -1,333 +0,0 @@ +- +-package cz.habarta.typescript.generator.parser; +- +-import cz.habarta.typescript.generator.type.JGenericArrayType; +-import cz.habarta.typescript.generator.type.JParameterizedType; +-import cz.habarta.typescript.generator.type.JTypeVariable; +-import cz.habarta.typescript.generator.type.JTypeWithNullability; +-import cz.habarta.typescript.generator.type.JWildcardType; +-import cz.habarta.typescript.generator.util.Utils; +-import java.lang.annotation.Annotation; +-import java.lang.reflect.AnnotatedArrayType; +-import java.lang.reflect.AnnotatedParameterizedType; +-import java.lang.reflect.AnnotatedType; +-import java.lang.reflect.Constructor; +-import java.lang.reflect.Executable; +-import java.lang.reflect.Field; +-import java.lang.reflect.GenericDeclaration; +-import java.lang.reflect.Method; +-import java.lang.reflect.ParameterizedType; +-import java.lang.reflect.Type; +-import java.lang.reflect.TypeVariable; +-import java.util.Arrays; +-import java.util.LinkedHashMap; +-import java.util.List; +-import java.util.Map; +-import java.util.Objects; +-import java.util.Optional; +-import java.util.stream.Collectors; +-import java.util.stream.Stream; +-import kotlin.Metadata; +-import kotlin.NotImplementedError; +-import kotlin.jvm.JvmClassMappingKt; +-import kotlin.reflect.KClass; +-import kotlin.reflect.KClassifier; +-import kotlin.reflect.KFunction; +-import kotlin.reflect.KParameter; +-import kotlin.reflect.KProperty; +-import kotlin.reflect.KProperty1; +-import kotlin.reflect.KType; +-import kotlin.reflect.KTypeParameter; +-import kotlin.reflect.KTypeProjection; +-import kotlin.reflect.full.KClasses; +-import kotlin.reflect.jvm.ReflectJvmMapping; +- +- +-public class TypeParser { +- +- private final JavaTypeParser javaTypeParser; +- private final KotlinTypeParser kotlinTypeParser; +- +- public TypeParser(List> optionalAnnotations) { +- this.javaTypeParser = new JavaTypeParser(optionalAnnotations); +- this.kotlinTypeParser = new KotlinTypeParser(javaTypeParser); +- } +- +- private interface LanguageTypeParser { +- public Type getFieldType(Field field); +- public Type getMethodReturnType(Method method); +- public List getMethodParameterTypes(Method method); +- public List getConstructorParameterTypes(Constructor constructor); +- } +- +- private LanguageTypeParser getTypeParser(Class declaringClass) { +- final boolean isKotlinClass = KotlinTypeParser.isKotlinClass(declaringClass); +- return isKotlinClass ? kotlinTypeParser : javaTypeParser; +- } +- +- public Type getFieldType(Field field) { +- return getTypeParser(field.getDeclaringClass()).getFieldType(field); +- } +- +- public Type getMethodReturnType(Method method) { +- return getTypeParser(method.getDeclaringClass()).getMethodReturnType(method); +- } +- +- public List getMethodParameterTypes(Method method) { +- return getTypeParser(method.getDeclaringClass()).getMethodParameterTypes(method); +- } +- +- public List getConstructorParameterTypes(Constructor constructor) { +- return getTypeParser(constructor.getDeclaringClass()).getConstructorParameterTypes(constructor); +- } +- +- // +- // Java +- // +- +- private static class JavaTypeParser implements LanguageTypeParser { +- +- private final List> optionalAnnotations; +- +- public JavaTypeParser(List> optionalAnnotations) { +- this.optionalAnnotations = optionalAnnotations; +- } +- +- @Override +- public Type getFieldType(Field field) { +- return getType(field.getAnnotatedType()); +- } +- +- @Override +- public Type getMethodReturnType(Method method) { +- return getType(method.getAnnotatedReturnType()); +- } +- +- @Override +- public List getMethodParameterTypes(Method method) { +- return getExecutableParameterTypes(method); +- } +- +- @Override +- public List getConstructorParameterTypes(Constructor constructor) { +- return getExecutableParameterTypes(constructor); +- } +- +- private List getExecutableParameterTypes(Executable executable) { +- return Arrays.stream(executable.getAnnotatedParameterTypes()) +- .map(annotatedType -> getType(annotatedType)) +- .collect(Collectors.toList()); +- } +- +- private Type getType(AnnotatedType annotatedType) { +- final Type type = getBareType(annotatedType); +- if (Utils.hasAnyAnnotation(annotatedType::getAnnotation, optionalAnnotations)) { +- return new JTypeWithNullability(type, true); +- } else { +- return type; +- } +- } +- +- private Type getBareType(AnnotatedType annotatedType) { +- final Type type = annotatedType.getType(); +- if (isArrayOfPrimitiveType(type)) { +- return type; +- } +- if (annotatedType instanceof AnnotatedParameterizedType) { +- final AnnotatedParameterizedType annotatedParameterizedType = (AnnotatedParameterizedType) annotatedType; +- final ParameterizedType parameterizedType = (ParameterizedType) type; +- return new JParameterizedType( +- parameterizedType.getRawType(), +- getTypes(annotatedParameterizedType.getAnnotatedActualTypeArguments()), +- parameterizedType.getOwnerType()); +- } +- if (annotatedType instanceof AnnotatedArrayType) { +- final AnnotatedArrayType annotatedArrayType = (AnnotatedArrayType) annotatedType; +- return new JGenericArrayType(getType(annotatedArrayType.getAnnotatedGenericComponentType())); +- } +- return type; +- } +- +- private Type[] getTypes(AnnotatedType[] annotatedTypes) { +- return Stream.of(annotatedTypes) +- .map(annotatedType -> getType(annotatedType)) +- .toArray(Type[]::new); +- } +- +- } +- +- // +- // Kotlin +- // +- +- private static class KotlinTypeParser implements LanguageTypeParser { +- +- private final JavaTypeParser javaTypeParser; +- +- public KotlinTypeParser(JavaTypeParser javaTypeParser) { +- this.javaTypeParser = javaTypeParser; +- } +- +- public static boolean isKotlinClass(Class cls) { +- return cls.isAnnotationPresent(Metadata.class); +- } +- +- @Override +- public Type getFieldType(Field field) { +- final KProperty kProperty = ReflectJvmMapping.getKotlinProperty(field); +- if (kProperty != null) { +- return getType(kProperty.getReturnType(), new LinkedHashMap<>()); +- } +- return javaTypeParser.getFieldType(field); +- } +- +- @Override +- public Type getMethodReturnType(Method method) { +- final KFunction kFunction = ReflectJvmMapping.getKotlinFunction(method); +- if (kFunction != null) { +- return getType(kFunction.getReturnType(), new LinkedHashMap<>()); +- } else { +- // `method` might be a getter so try to find a corresponding kotlin property and use its return type +- final KClass kClass = JvmClassMappingKt.getKotlinClass(method.getDeclaringClass()); +- final Optional kType = KClasses.getMemberProperties(kClass).stream() +- .filter(kProperty -> Objects.equals(ReflectJvmMapping.getJavaGetter(kProperty), method)) +- .map(KProperty1::getReturnType) +- .findFirst(); +- if (kType.isPresent()) { +- return getType(kType.get(), new LinkedHashMap<>()); +- } +- } +- return javaTypeParser.getMethodReturnType(method); +- } +- +- @Override +- public List getMethodParameterTypes(Method method) { +- final KFunction kFunction = ReflectJvmMapping.getKotlinFunction(method); +- return getKFunctionParameterTypes(method, kFunction); +- } +- +- @Override +- public List getConstructorParameterTypes(Constructor constructor) { +- final KFunction kFunction = ReflectJvmMapping.getKotlinFunction(constructor); +- return getKFunctionParameterTypes(constructor, kFunction); +- } +- +- private List getKFunctionParameterTypes(Executable executable, KFunction kFunction) { +- if (kFunction != null) { +- final List kParameters = kFunction.getParameters().stream() +- .filter(kParameter -> kParameter.getKind() == KParameter.Kind.VALUE) +- .collect(Collectors.toList()); +- return getTypes( +- kParameters.stream() +- .map(parameter -> parameter.getType()) +- .collect(Collectors.toList()), +- new LinkedHashMap<>() +- ); +- } +- return javaTypeParser.getExecutableParameterTypes(executable); +- } +- +- private Type getType(KType kType, Map> typeParameters) { +- if (kType == null) { +- return new JWildcardType(); +- } +- final Type type = getBareType(kType, typeParameters); +- return new JTypeWithNullability(type, kType.isMarkedNullable()); +- } +- +- private Type getBareType(KType kType, Map> typeParameters) { +- final KClassifier kClassifier = kType.getClassifier(); +- if (kClassifier instanceof KClass) { +- final KClass kClass = (KClass) kClassifier; +- final Class javaClass = JvmClassMappingKt.getJavaClass(kClass); +- if (isArrayOfPrimitiveType(javaClass)) { +- return javaClass; +- } +- final List arguments = kType.getArguments(); +- if (arguments.isEmpty()) { +- return javaClass; +- } else if (javaClass.isArray()) { +- return new JGenericArrayType(getType(arguments.get(0).getType(), typeParameters)); +- } else { +- final List javaArguments = arguments.stream() +- .map(argument -> getType(argument.getType(), typeParameters)) +- .collect(Collectors.toList()); +- return Utils.createParameterizedType(javaClass, javaArguments); +- } +- } +- if (kClassifier instanceof KTypeParameter) { +- final KTypeParameter kTypeParameter = (KTypeParameter) kClassifier; +- final JTypeVariable typeVariableFromMap = typeParameters.get(kTypeParameter.getName()); +- if (typeVariableFromMap != null) { +- return typeVariableFromMap; +- } else { +- final TypeVariable typeVariable = getJavaTypeVariable(kType); +- final JTypeVariable newTypeVariable = new JTypeVariable<>( +- typeVariable != null ? getTypeVariableGenericDeclaration(typeVariable) : null, +- kTypeParameter.getName(), +- /*bounds*/ null, +- typeVariable != null ? getTypeVariableAnnotatedBounds(typeVariable) : null, +- typeVariable != null ? typeVariable.getAnnotations() : null, +- typeVariable != null ? typeVariable.getDeclaredAnnotations() : null +- ); +- typeParameters.put(kTypeParameter.getName(), newTypeVariable); +- final Type[] bounds = getTypes(kTypeParameter.getUpperBounds(), typeParameters).toArray(new Type[0]); +- newTypeVariable.setBounds(bounds); +- return newTypeVariable; +- } +- } +- throw new RuntimeException("Unexpected type: " + kType.toString()); +- } +- +- private D getTypeVariableGenericDeclaration(TypeVariable typeVariable) { +- try { +- return typeVariable.getGenericDeclaration(); +- } catch (NotImplementedError e) { +- return null; +- } +- } +- +- private AnnotatedType[] getTypeVariableAnnotatedBounds(TypeVariable typeVariable) { +- try { +- return typeVariable.getAnnotatedBounds(); +- } catch (AbstractMethodError e) { +- return null; +- } +- } +- +- private List getTypes(List kTypes, Map> typeParameters) { +- return kTypes.stream() +- .map(kType -> getType(kType, typeParameters)) +- .collect(Collectors.toList()); +- } +- +- private TypeVariable getJavaTypeVariable(KType kType) { +- try { +- final Type javaType = ReflectJvmMapping.getJavaType(kType); +- if (javaType instanceof TypeVariable) { +- return (TypeVariable) javaType; +- } else { +- return null; +- } +- } catch (Throwable e) { +- return null; +- } +- } +- +- } +- +- // +- // common +- // +- +- private static boolean isArrayOfPrimitiveType(Type type) { +- if (type instanceof Class) { +- final Class cls = (Class) type; +- if (cls.isArray() && (cls.getComponentType().isPrimitive() || isArrayOfPrimitiveType(cls.getComponentType()))) { +- return true; +- } +- } +- return false; +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/type/JGenericArrayType.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/type/JGenericArrayType.java +deleted file mode 100644 +index 6d77185c4..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/type/JGenericArrayType.java ++++ /dev/null +@@ -1,53 +0,0 @@ +- +-package cz.habarta.typescript.generator.type; +- +-import java.lang.reflect.GenericArrayType; +-import java.lang.reflect.Type; +-import java.util.Objects; +- +- +-public class JGenericArrayType implements GenericArrayType { +- +- private final Type genericComponentType; +- +- public JGenericArrayType(Type genericComponentType) { +- this.genericComponentType = Objects.requireNonNull(genericComponentType, "genericComponentType"); +- } +- +- public static JGenericArrayType of(Class arrayClass) { +- Objects.requireNonNull(arrayClass); +- if (!arrayClass.isArray()) { +- throw new IllegalArgumentException("Class is not array: " + arrayClass); +- } +- return new JGenericArrayType(arrayClass.getComponentType()); +- } +- +- @Override +- public Type getGenericComponentType() { +- return genericComponentType; +- } +- +- @Override +- public int hashCode() { +- return Objects.hashCode(genericComponentType); +- } +- +- @Override +- public boolean equals(Object obj) { +- if (this == obj) { +- return true; +- } +- if (obj instanceof GenericArrayType) { +- final GenericArrayType that = (GenericArrayType) obj; +- return Objects.equals(genericComponentType, that.getGenericComponentType()); +- } else { +- return false; +- } +- } +- +- @Override +- public String toString() { +- return getGenericComponentType().getTypeName() + "[]"; +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/type/JParameterizedType.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/type/JParameterizedType.java +deleted file mode 100644 +index 0b17e344c..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/type/JParameterizedType.java ++++ /dev/null +@@ -1,69 +0,0 @@ +- +-package cz.habarta.typescript.generator.type; +- +-import java.lang.reflect.ParameterizedType; +-import java.lang.reflect.Type; +-import java.util.Arrays; +-import java.util.Objects; +-import java.util.stream.Collectors; +-import java.util.stream.Stream; +- +- +-public class JParameterizedType implements ParameterizedType { +- +- private final Type rawType; +- private final Type[] actualTypeArguments; +- private final Type ownerType; +- +- public JParameterizedType(Type rawType, Type[] actualTypeArguments, Type ownerType) { +- this.rawType = Objects.requireNonNull(rawType, "rawType"); +- this.actualTypeArguments = actualTypeArguments != null ? actualTypeArguments : new Type[0]; +- this.ownerType = ownerType; +- } +- +- @Override +- public Type[] getActualTypeArguments() { +- return actualTypeArguments; +- } +- +- @Override +- public Type getRawType() { +- return rawType; +- } +- +- @Override +- public Type getOwnerType() { +- return ownerType; +- } +- +- @Override +- public int hashCode() { +- return Objects.hash(ownerType, rawType, actualTypeArguments); +- } +- +- @Override +- public boolean equals(Object obj) { +- if (this == obj) { +- return true; +- } +- if (obj instanceof ParameterizedType) { +- final ParameterizedType that = (ParameterizedType) obj; +- return Objects.equals(ownerType, that.getOwnerType()) && +- Objects.equals(rawType, that.getRawType()) && +- Arrays.equals(actualTypeArguments, that.getActualTypeArguments()); +- } else { +- return false; +- } +- } +- +- @Override +- public String toString() { +- return (rawType instanceof Class ? ((Class)rawType).getName() : rawType.getTypeName()) +- + "<" +- + Stream.of(actualTypeArguments) +- .map(type -> type.getTypeName()) +- .collect(Collectors.joining(", ")) +- + ">"; +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/type/JTypeVariable.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/type/JTypeVariable.java +deleted file mode 100644 +index 47b5213ec..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/type/JTypeVariable.java ++++ /dev/null +@@ -1,103 +0,0 @@ +- +-package cz.habarta.typescript.generator.type; +- +-import java.lang.annotation.Annotation; +-import java.lang.reflect.AnnotatedType; +-import java.lang.reflect.GenericDeclaration; +-import java.lang.reflect.Type; +-import java.lang.reflect.TypeVariable; +-import java.util.Objects; +- +- +-public class JTypeVariable implements TypeVariable { +- +- private final D genericDeclaration; // should not be null but for Kotlin KTypeParameter we don't have it +- private final String name; +- private Type[] bounds; +- private final AnnotatedType[] annotatedBounds; +- private final Annotation[] annotations; +- private final Annotation[] declaredAnnotations; +- +- public JTypeVariable(D genericDeclaration, String name) { +- this(genericDeclaration, name, null, null, null, null); +- } +- +- public JTypeVariable(D genericDeclaration, String name, Type[] bounds, AnnotatedType[] annotatedBounds, Annotation[] annotations, Annotation[] declaredAnnotations) { +- this.genericDeclaration = genericDeclaration; +- this.name = Objects.requireNonNull(name, "name"); +- this.bounds = bounds != null ? bounds : new Type[0]; +- this.annotatedBounds = annotatedBounds != null ? annotatedBounds : new AnnotatedType[0]; +- this.annotations = annotations != null ? annotations : new Annotation[0]; +- this.declaredAnnotations = declaredAnnotations != null ? declaredAnnotations : this.annotations; +- } +- +- @Override +- public Type[] getBounds() { +- return bounds; +- } +- +- public void setBounds(Type[] bounds) { +- this.bounds = bounds; +- } +- +- @Override +- public D getGenericDeclaration() { +- return genericDeclaration; +- } +- +- @Override +- public String getName() { +- return name; +- } +- +- @Override +- public AnnotatedType[] getAnnotatedBounds() { +- return annotatedBounds; +- } +- +- @Override +- @SuppressWarnings("unchecked") +- public T getAnnotation(Class annotationClass) { +- for (Annotation annotation : getAnnotations()) { +- if (annotationClass.isInstance(annotation)) { +- return (T) annotation; +- } +- } +- return null; +- } +- +- @Override +- public Annotation[] getAnnotations() { +- return annotations; +- } +- +- @Override +- public Annotation[] getDeclaredAnnotations() { +- return declaredAnnotations; +- } +- +- @Override +- public int hashCode() { +- return Objects.hashCode(genericDeclaration) ^ Objects.hashCode(name); +- } +- +- @Override +- public boolean equals(Object obj) { +- if (this == obj) { +- return true; +- } +- if (obj instanceof TypeVariable) { +- final TypeVariable that = (TypeVariable) obj; +- return Objects.equals(genericDeclaration, that.getGenericDeclaration()) && +- Objects.equals(name, that.getName()); +- } else { +- return false; +- } +- } +- +- @Override +- public String toString() { +- return getName(); +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/type/JTypeWithNullability.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/type/JTypeWithNullability.java +deleted file mode 100644 +index e52099e37..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/type/JTypeWithNullability.java ++++ /dev/null +@@ -1,51 +0,0 @@ +- +-package cz.habarta.typescript.generator.type; +- +-import cz.habarta.typescript.generator.util.Utils; +-import java.lang.reflect.Type; +-import java.util.Objects; +- +- +-public class JTypeWithNullability implements Type { +- +- private final Type type; +- private final boolean isNullable; +- +- public JTypeWithNullability(Type type, boolean isNullable) { +- this.type = Objects.requireNonNull(type, "type"); +- this.isNullable = isNullable; +- } +- +- public Type getType() { +- return type; +- } +- +- public boolean isNullable() { +- return isNullable; +- } +- +- // shallow +- public static Type getPlainType(Type type) { +- if (type instanceof JTypeWithNullability) { +- final JTypeWithNullability typeWithNullability = (JTypeWithNullability) type; +- return typeWithNullability.getType(); +- } else { +- return type; +- } +- } +- +- // deep +- public static Type removeNullability(Type type) { +- if (type instanceof JTypeWithNullability) { +- final JTypeWithNullability typeWithNullability = (JTypeWithNullability) type; +- return removeNullability(typeWithNullability.getType()); +- } +- return Utils.transformContainedTypes(type, JTypeWithNullability::removeNullability); +- } +- +- @Override +- public String toString() { +- return type + (isNullable ? "?" : "!"); +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/type/JUnionType.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/type/JUnionType.java +deleted file mode 100644 +index 05cfdd085..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/type/JUnionType.java ++++ /dev/null +@@ -1,33 +0,0 @@ +- +-package cz.habarta.typescript.generator.type; +- +-import java.lang.reflect.Type; +-import java.util.Arrays; +-import java.util.List; +-import java.util.stream.Collectors; +- +- +-public class JUnionType implements Type { +- +- private final List types; +- +- public JUnionType(Type... types) { +- this(Arrays.asList(types)); +- } +- +- public JUnionType(List types) { +- this.types = types; +- } +- +- public List getTypes() { +- return types; +- } +- +- @Override +- public String toString() { +- return "(" + +- types.stream().map(Type::toString).collect(Collectors.joining(" | ")) +- + ")"; +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/type/JWildcardType.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/type/JWildcardType.java +deleted file mode 100644 +index 9a50e3c47..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/type/JWildcardType.java ++++ /dev/null +@@ -1,66 +0,0 @@ +- +-package cz.habarta.typescript.generator.type; +- +- +-import java.lang.reflect.Type; +-import java.lang.reflect.WildcardType; +-import java.util.Arrays; +-import java.util.Objects; +-import java.util.stream.Collectors; +-import java.util.stream.Stream; +- +-public class JWildcardType implements WildcardType { +- +- private final Type[] upperBounds; +- private final Type[] lowerBounds; +- +- public JWildcardType() { +- this(null, null); +- } +- +- public JWildcardType(Type[] upperBounds, Type[] lowerBounds) { +- this.upperBounds = upperBounds != null ? upperBounds : new Type[0]; +- this.lowerBounds = lowerBounds != null ? lowerBounds : new Type[0]; +- } +- +- @Override +- public Type[] getUpperBounds() { +- return upperBounds; +- } +- +- @Override +- public Type[] getLowerBounds() { +- return lowerBounds; +- } +- +- @Override +- public int hashCode() { +- return Arrays.hashCode(lowerBounds) ^ Arrays.hashCode(upperBounds); +- } +- +- @Override +- public boolean equals(Object obj) { +- if (this == obj) { +- return true; +- } +- if (obj instanceof WildcardType) { +- final WildcardType that = (WildcardType) obj; +- return Arrays.equals(lowerBounds, that.getLowerBounds()) && +- Arrays.equals(upperBounds, that.getUpperBounds()); +- } else { +- return false; +- } +- } +- +- @Override +- public String toString() { +- final String upper = upperBounds.length > 0 && !Objects.equals(upperBounds[0], Object.class) +- ? " extends " + Stream.of(upperBounds).map(Type::getTypeName).collect(Collectors.joining(" & ")) +- : ""; +- final String lower = lowerBounds.length > 0 +- ? " extends " + Stream.of(lowerBounds).map(Type::getTypeName).collect(Collectors.joining(" & ")) +- : ""; +- return "?" + upper + lower; +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/util/AnnotationGetter.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/util/AnnotationGetter.java +deleted file mode 100644 +index cb56cea9a..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/util/AnnotationGetter.java ++++ /dev/null +@@ -1,10 +0,0 @@ +- +-package cz.habarta.typescript.generator.util; +- +-import java.lang.annotation.Annotation; +- +- +-@FunctionalInterface +-public interface AnnotationGetter { +- public A getAnnotation(Class annotationClass); +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/util/DeprecationUtils.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/util/DeprecationUtils.java +deleted file mode 100644 +index e9f1f305b..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/util/DeprecationUtils.java ++++ /dev/null +@@ -1,24 +0,0 @@ +-package cz.habarta.typescript.generator.util; +- +-import java.util.ArrayList; +-import java.util.List; +- +-public final class DeprecationUtils { +- +- public static final String DEPRECATED = "@deprecated"; +- +- public static String convertToComment(Deprecated deprecated) { +- String since = deprecated.since(); +- Boolean forRemoval = deprecated.forRemoval(); +- +- List additional = new ArrayList<>(); +- if (since != null && !since.isEmpty()) { +- additional.add("since " + since); +- } +- if (forRemoval != null && forRemoval) { +- additional.add("for removal"); +- } +- return additional.isEmpty() ? DEPRECATED : (DEPRECATED + " " + String.join(", ", additional)); +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/util/GenericsResolver.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/util/GenericsResolver.java +deleted file mode 100644 +index 7a2380be5..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/util/GenericsResolver.java ++++ /dev/null +@@ -1,155 +0,0 @@ +- +-package cz.habarta.typescript.generator.util; +- +-import java.lang.reflect.Field; +-import java.lang.reflect.Type; +-import java.lang.reflect.TypeVariable; +-import java.util.ArrayList; +-import java.util.Arrays; +-import java.util.Collections; +-import java.util.LinkedHashMap; +-import java.util.List; +-import java.util.Map; +-import java.util.Objects; +-import java.util.Optional; +-import java.util.stream.Collectors; +- +- +-public class GenericsResolver { +- +- public static Type resolveField(Class cls, Field field) { +- final Type fieldType = field.getGenericType(); +- return resolveType(cls, fieldType, field.getDeclaringClass()); +- } +- +- public static Type resolveType(Class contextClass, Type type, Class declaringClass) { +- final List path = traverseSomeInheritancePath(contextClass, declaringClass); +- final ResolvedClass resolvedClass = path != null && !path.isEmpty() ? path.get(0) : null; +- return resolvedClass != null ? resolvedClass.resolveType(type) : type; +- } +- +- public static List mapGenericVariablesToBase(Class derivedClass, Class baseClass) { +- final List path = traverseSomeInheritancePath(derivedClass, baseClass); +- if (path == null) { +- return null; +- } +- Collections.reverse(path); +- List result = Arrays.stream(derivedClass.getTypeParameters()) +- .map(TypeVariable::getName) +- .collect(Collectors.toList()); +- for (ResolvedClass resolvedClass : path.subList(0, path.size())) { +- result = result.stream() +- .map(typeVariableName -> mapGenericVariableToParent(typeVariableName, resolvedClass)) +- .collect(Collectors.toList()); +- } +- return result; +- } +- +- public static List resolveBaseGenericVariables(Class baseClass, Type contextType) { +- final Pair, Optional>> rawClassAndTypeArguments = Utils.getRawClassAndTypeArguments(contextType); +- if (rawClassAndTypeArguments != null) { +- if (!rawClassAndTypeArguments.getValue2().isPresent()) { +- return Collections.nCopies(baseClass.getTypeParameters().length, Object.class); +- } +- final ResolvedClass resolvedContextType = new ResolvedClass(null, null, null).resolveAncestor(contextType); +- final List path = traverseSomeInheritancePath(resolvedContextType, baseClass); +- final ResolvedClass resolvedClass = path != null && !path.isEmpty() ? path.get(0) : resolvedContextType; +- return new ArrayList<>(resolvedClass.resolvedTypeParameters.values()); +- } +- return Arrays.asList(baseClass.getTypeParameters()); +- } +- +- private static String mapGenericVariableToParent(String typeVariableName, ResolvedClass resolvedParent) { +- if (typeVariableName == null) { +- return null; +- } +- for (int i = 0; i < resolvedParent.typeArguments.size(); i++) { +- final Type argument = resolvedParent.typeArguments.get(i); +- if (argument instanceof TypeVariable) { +- final TypeVariable variable = (TypeVariable) argument; +- if (Objects.equals(variable.getName(), typeVariableName)) { +- return resolvedParent.rawClass.getTypeParameters()[i].getName(); +- } +- } +- } +- return null; +- } +- +- private static List traverseSomeInheritancePath(Class descendant, Class ancestor) { +- return traverseSomeInheritancePath(new ResolvedClass(descendant, null, null), ancestor); +- } +- +- private static List traverseSomeInheritancePath(ResolvedClass descendant, Class ancestor) { +- if (descendant.rawClass == ancestor) { +- return new ArrayList<>(); +- } +- for (ResolvedClass directAncestor : descendant.getDirectAncestors()) { +- final List path = traverseSomeInheritancePath(directAncestor, ancestor); +- if (path != null) { +- path.add(directAncestor); +- return path; +- } +- } +- return null; +- } +- +- private static class ResolvedClass { +- public final Class rawClass; +- public final List typeArguments; +- public final Map resolvedTypeParameters; +- +- public ResolvedClass(Class rawClass, List typeArguments, Map resolvedTypeParameters) { +- this.rawClass = rawClass; +- this.typeArguments = Utils.listFromNullable(typeArguments); +- this.resolvedTypeParameters = Utils.mapFromNullable(resolvedTypeParameters); +- } +- +- public List getDirectAncestors() { +- final List ancestors = new ArrayList<>(); +- final Class cls = rawClass; +- if (cls.getSuperclass() != null) { +- ancestors.add(cls.getGenericSuperclass()); +- } +- ancestors.addAll(Arrays.asList(cls.getGenericInterfaces())); +- return ancestors.stream() +- .map(this::resolveAncestor) +- .filter(Objects::nonNull) +- .collect(Collectors.toList()); +- } +- +- public ResolvedClass resolveAncestor(Type ancestor) { +- final Pair, Optional>> rawClassAndTypeArguments = Utils.getRawClassAndTypeArguments(ancestor); +- if (rawClassAndTypeArguments == null || !rawClassAndTypeArguments.getValue2().isPresent()) { +- return null; +- } +- final Class cls = rawClassAndTypeArguments.getValue1(); +- final List> typeVariables = Arrays.asList(cls.getTypeParameters()); +- final List arguments = rawClassAndTypeArguments.getValue2().get(); +- final Map typeParameters = new LinkedHashMap<>(); +- final int count = Math.min(typeVariables.size(), arguments.size()); +- for (int i = 0; i < count; i++) { +- typeParameters.put(typeVariables.get(i).getName(), resolveType(arguments.get(i))); +- } +- return new ResolvedClass(cls, arguments, typeParameters); +- } +- +- private Type resolveType(Type type) { +- if (type instanceof TypeVariable) { +- final TypeVariable typeVariable = (TypeVariable) type; +- return resolvedTypeParameters.getOrDefault(typeVariable.getName(), typeVariable); +- } +- return Utils.transformContainedTypes(type, this::resolveType); +- } +- +- @Override +- public String toString() { +- return rawClass.getName() +- + "<" +- + resolvedTypeParameters.entrySet().stream() +- .map(entry -> entry.getKey() + "=" + entry.getValue().getTypeName()) +- .collect(Collectors.joining(", ")) +- + ">"; +- } +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/util/Predicate.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/util/Predicate.java +new file mode 100644 +index 000000000..7bbf35683 +--- /dev/null ++++ b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/util/Predicate.java +@@ -0,0 +1,9 @@ ++ ++package cz.habarta.typescript.generator.util; ++ ++ ++public interface Predicate { ++ ++ boolean test(T value); ++ ++} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/util/PropertyMember.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/util/PropertyMember.java +deleted file mode 100644 +index 749d21c93..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/util/PropertyMember.java ++++ /dev/null +@@ -1,38 +0,0 @@ +- +-package cz.habarta.typescript.generator.util; +- +-import java.lang.annotation.Annotation; +-import java.lang.reflect.AnnotatedElement; +-import java.lang.reflect.AnnotatedType; +-import java.lang.reflect.Type; +-import java.util.Objects; +- +- +-public class PropertyMember { +- +- private final AnnotatedElement annotatedElement; +- private final Type type; +- private final AnnotatedType annotatedType; +- private final AnnotationGetter annotationGetter; +- +- public PropertyMember(AnnotatedElement annotatedElement, Type type, AnnotatedType annotatedType, AnnotationGetter annotationGetter) { +- this.annotatedElement = Objects.requireNonNull(annotatedElement); +- this.type = Objects.requireNonNull(type); +- this.annotatedType = Objects.requireNonNull(annotatedType); +- this.annotationGetter = annotationGetter; +- } +- +- public Type getType() { +- return type; +- } +- +- public A getAnnotation(Class annotationClass) { +- final A annotation = annotationGetter != null +- ? annotationGetter.getAnnotation(annotationClass) +- : annotatedElement.getAnnotation(annotationClass); +- return annotation != null +- ? annotation +- : annotatedType.getAnnotation(annotationClass); +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/util/StandardJsonPrettyPrinter.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/util/StandardJsonPrettyPrinter.java +deleted file mode 100644 +index fe084f8ae..000000000 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/util/StandardJsonPrettyPrinter.java ++++ /dev/null +@@ -1,63 +0,0 @@ +- +-package cz.habarta.typescript.generator.util; +- +-import com.fasterxml.jackson.core.JsonGenerator; +-import com.fasterxml.jackson.core.util.DefaultIndenter; +-import com.fasterxml.jackson.core.util.DefaultPrettyPrinter; +-import java.io.IOException; +- +- +-/** +- * Jackson2 PrettyPrinter implementation that produces JSON format similar to JSON.stringify() output. +- */ +-public class StandardJsonPrettyPrinter extends DefaultPrettyPrinter { +- private static final long serialVersionUID = 1; +- +- private final String indent; +- private final String eol; +- +- public StandardJsonPrettyPrinter() { +- this(" ", String.format("%n")); +- } +- +- public StandardJsonPrettyPrinter(String indent, String eol) { +- this.indent = indent; +- this.eol = eol; +- final DefaultIndenter indenter = new DefaultIndenter(indent, eol); +- this._arrayIndenter = indenter; +- this._objectIndenter = indenter; +- } +- +- @Override +- public DefaultPrettyPrinter createInstance() { +- return new StandardJsonPrettyPrinter(indent, eol); +- } +- +- @Override +- public void writeObjectFieldValueSeparator(JsonGenerator jg) throws IOException { +- jg.writeRaw(": "); +- } +- +- @Override +- public void writeEndObject(JsonGenerator g, int nrOfEntries) throws IOException { +- if (!_objectIndenter.isInline()) { +- --_nesting; +- } +- if (nrOfEntries > 0) { +- _objectIndenter.writeIndentation(g, _nesting); +- } +- g.writeRaw('}'); +- } +- +- @Override +- public void writeEndArray(JsonGenerator g, int nrOfValues) throws IOException { +- if (!_arrayIndenter.isInline()) { +- --_nesting; +- } +- if (nrOfValues > 0) { +- _arrayIndenter.writeIndentation(g, _nesting); +- } +- g.writeRaw(']'); +- } +- +-} +diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/util/Utils.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/util/Utils.java +index 9eb5f07c7..49ff1717b 100644 +--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/util/Utils.java ++++ b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/util/Utils.java +@@ -1,489 +1,40 @@ + + package cz.habarta.typescript.generator.util; + +-import com.fasterxml.jackson.annotation.JsonInclude; +-import com.fasterxml.jackson.core.JsonProcessingException; +-import com.fasterxml.jackson.databind.DeserializationFeature; +-import com.fasterxml.jackson.databind.ObjectMapper; +-import com.fasterxml.jackson.databind.SerializationFeature; +-import cz.habarta.typescript.generator.type.JGenericArrayType; +-import cz.habarta.typescript.generator.type.JParameterizedType; +-import cz.habarta.typescript.generator.type.JTypeWithNullability; +-import cz.habarta.typescript.generator.type.JUnionType; +-import java.io.File; +-import java.io.IOException; +-import java.io.InputStream; +-import java.io.PrintWriter; +-import java.io.StringWriter; +-import java.lang.annotation.Annotation; +-import java.lang.reflect.AnnotatedElement; +-import java.lang.reflect.Array; +-import java.lang.reflect.Field; +-import java.lang.reflect.GenericArrayType; +-import java.lang.reflect.Method; + import java.lang.reflect.ParameterizedType; +-import java.lang.reflect.Proxy; + import java.lang.reflect.Type; +-import java.util.ArrayDeque; +-import java.util.ArrayList; +-import java.util.Arrays; +-import java.util.Collection; +-import java.util.Collections; +-import java.util.Comparator; +-import java.util.LinkedHashMap; +-import java.util.List; +-import java.util.Map; +-import java.util.Objects; +-import java.util.Optional; +-import java.util.Scanner; +-import java.util.concurrent.atomic.AtomicReference; +-import java.util.function.Function; +-import java.util.function.Supplier; +-import java.util.regex.Matcher; +-import java.util.regex.Pattern; +-import java.util.stream.Collector; +-import java.util.stream.Collectors; +-import java.util.stream.Stream; + + +-public final class Utils { ++public class Utils { + + private Utils() { + } +- +- public static String joinPath(String part1, String part2) { +- final String path = Stream.of(part1, part2) +- .filter(part -> part != null && !part.isEmpty()) // remove empty parts +- .reduce((a, b) -> trimRightSlash(a) + "/" + trimLeftSlash(b)) // join +- .orElse(""); // if all parts are empty +- return trimLeftSlash(path); // trim leading slash +- } +- +- private static String trimLeftSlash(String path) { +- return path.startsWith("/") ? path.substring(1) : path; +- } +- +- private static String trimRightSlash(String path) { +- return path.endsWith("/") ? path.substring(0, path.length() - 1) : path; +- } +- +- public static Class getRawClassOrNull(Type type) { +- final Pair, Optional>> rawClassAndTypeArguments = getRawClassAndTypeArguments(type); +- return rawClassAndTypeArguments != null ? rawClassAndTypeArguments.getValue1() : null; +- } + +- public static Pair, Optional>> getRawClassAndTypeArguments(Type type) { +- if (type instanceof Class) { +- final Class javaClass = (Class) type; +- return javaClass.getTypeParameters().length != 0 +- ? Pair.of(javaClass, Optional.empty()) // raw usage of generic class +- : Pair.of(javaClass, Optional.of(Collections.emptyList())); // non-generic class +- } +- if (type instanceof ParameterizedType) { +- final ParameterizedType parameterizedType = (ParameterizedType) type; +- if (parameterizedType.getRawType() instanceof Class) { +- final Class javaClass = (Class) parameterizedType.getRawType(); +- return Pair.of(javaClass, Optional.of(Arrays.asList(parameterizedType.getActualTypeArguments()))); +- } +- } +- return null; +- } +- +- public static Comparator methodComparator() { +- return (Method m1, Method m2) -> { +- final int nameDiff = m1.getName().compareToIgnoreCase(m2.getName()); +- if (nameDiff != 0) { +- return nameDiff; +- } +- final int parameterTypesDiff = Arrays.asList(m1.getParameterTypes()).toString().compareTo(Arrays.asList(m2.getParameterTypes()).toString()); +- if (parameterTypesDiff != 0) { +- return parameterTypesDiff; +- } +- return 0; +- }; +- } +- +- public static List getAllMethods(Class cls) { +- return getInheritanceChain(cls) +- .flatMap(c -> Stream.of(c.getDeclaredMethods())) +- .collect(Collectors.toList()); +- } +- +- public static List getAllFields(Class cls) { +- return getInheritanceChain(cls) +- .flatMap(c -> Stream.of(c.getDeclaredFields())) +- .collect(Collectors.toList()); +- } +- +- public static Stream> getInheritanceChain(Class cls) { +- return Stream.iterate(cls, c -> c != null, (Class c) -> c.getSuperclass()) +- .collect(toReversedCollection()) +- .stream(); +- } +- +- public static Collector> toReversedCollection() { +- return Collector., Collection>of( +- ArrayDeque::new, +- (deque, item) -> deque.addFirst(item), +- (deque1, deque2) -> { deque2.addAll(deque1); return deque2; }, +- deque -> deque); +- } +- +- public static Collector> toMap( +- Function keyMapper, +- Function valueMapper +- ) { +- return Collectors.toMap( +- keyMapper, +- valueMapper, +- (a, b) -> { +- throw new IllegalStateException("Duplicate key " + a); +- }, +- LinkedHashMap::new +- ); +- } +- +- public static boolean hasAnyAnnotation( +- Function, Annotation> getAnnotationFunction, +- List> annotations) { +- return annotations.stream() +- .map(getAnnotationFunction) +- .anyMatch(Objects::nonNull); +- } +- +- public static T getAnnotationElementValue(AnnotatedElement annotatedElement, String annotationClassName, String annotationElementName, Class annotationElementType) { +- final Annotation annotation = getAnnotation(annotatedElement, annotationClassName); +- return getAnnotationElementValue(annotation, annotationElementName, annotationElementType); +- } +- +- public static Annotation getAnnotation(AnnotatedElement annotatedElement, String annotationClassName) { +- if (annotatedElement != null) { +- for (Annotation annotation : annotatedElement.getAnnotations()) { +- if (annotation.annotationType().getName().equals(annotationClassName)) { +- return annotation; +- } +- } +- } +- return null; +- } +- +- @SuppressWarnings("unchecked") +- public static T getAnnotationElementValue(Annotation annotation, String annotationElementName, Class annotationElementType) { +- try { +- if (annotation != null) { +- for (Method method : annotation.getClass().getMethods()) { +- if (method.getName().equals(annotationElementName)) { +- final Object value = method.invoke(annotation); +- if (annotationElementType.isInstance(value)) { +- return (T) value; +- } +- } +- } +- } +- return null; +- } catch (ReflectiveOperationException e) { +- throw new RuntimeException(e); +- } +- } +- +- public static List getRepeatableAnnotation(Annotation directAnnotation, Annotation containerAnnotation) { +- final List repeatableAnnotations = new ArrayList<>(); +- if (directAnnotation != null) { +- repeatableAnnotations.add(directAnnotation); +- } +- if (containerAnnotation != null) { +- final Annotation[] annotations = Utils.getAnnotationElementValue(containerAnnotation, "value", Annotation[].class); +- Stream.of(annotations).forEach(repeatableAnnotations::add); +- } +- return repeatableAnnotations; +- } +- +- @SuppressWarnings("unchecked") +- public static A getMigratedAnnotation(AnnotatedElement annotatedElement, Class annotationClass, Class fallbackAnnotationClass) { +- final A annotation = annotatedElement.getAnnotation(annotationClass); +- if (annotation != null) { +- return annotation; +- } +- if (fallbackAnnotationClass != null) { +- final Object fallbackAnnotation = annotatedElement.getAnnotation((Class)fallbackAnnotationClass); +- if (fallbackAnnotation != null) { +- return asMigrationProxy(fallbackAnnotation, annotationClass); ++ public static String join(Iterable values, String delimiter) { ++ final StringBuilder sb = new StringBuilder(); ++ boolean first = true; ++ for (Object value : values) { ++ if (first) { ++ first = false; ++ } else { ++ sb.append(delimiter); + } ++ sb.append(value); + } +- return null; ++ return sb.toString(); + } + +- @SuppressWarnings("unchecked") +- public static T asMigrationProxy(Object object, Class clazz) { +- return (T) Proxy.newProxyInstance( +- clazz.getClassLoader(), +- new Class[]{clazz}, +- (proxy, method, args) -> { +- try { +- final Method fallbackMethod = object.getClass().getMethod(method.getName(), method.getParameterTypes()); +- return fallbackMethod.invoke(object, args); +- } catch (ReflectiveOperationException e) { +- return null; +- } +- } +- ); +- } +- +- +- public static Type replaceRawClassInType(Type type, Class newClass) { +- if (type instanceof ParameterizedType) { +- final ParameterizedType parameterizedType = (ParameterizedType) type; +- return createParameterizedType(newClass, parameterizedType.getActualTypeArguments()); +- } +- return newClass; +- } +- +- public static ParameterizedType createParameterizedType(final Type rawType, final List actualTypeArguments) { +- return createParameterizedType(rawType, actualTypeArguments.toArray(new Type[0])); +- } +- +- public static ParameterizedType createParameterizedType(final Type rawType, final Type... actualTypeArguments) { +- return new JParameterizedType(rawType, actualTypeArguments, null); +- } +- +- public static Type transformContainedTypes(Type type, Function transformer) { +- if (type instanceof ParameterizedType) { +- final ParameterizedType parameterizedType = (ParameterizedType) type; +- return new JParameterizedType( +- parameterizedType.getRawType(), +- transformTypes(parameterizedType.getActualTypeArguments(), transformer), +- parameterizedType.getOwnerType() +- ); +- } +- if (type instanceof GenericArrayType) { +- final GenericArrayType genericArrayType = (GenericArrayType) type; +- return new JGenericArrayType( +- transformer.apply(genericArrayType.getGenericComponentType()) +- ); +- } +- if (type instanceof JUnionType) { +- final JUnionType unionType = (JUnionType) type; +- return new JUnionType( +- transformTypes(unionType.getTypes(), transformer) +- ); +- } +- if (type instanceof JTypeWithNullability) { +- final JTypeWithNullability typeWithNullability = (JTypeWithNullability) type; +- return new JTypeWithNullability( +- transformer.apply(typeWithNullability.getType()), +- typeWithNullability.isNullable() +- ); +- } +- return type; +- } +- +- private static List transformTypes(List types, Function transformer) { +- return types.stream() +- .map(transformer) +- .collect(Collectors.toList()); +- } +- +- private static Type[] transformTypes(Type[] types, Function transformer) { +- return Stream.of(types) +- .map(transformer) +- .toArray(Type[]::new); +- } +- +- public static boolean isPrimitiveType(Type type) { ++ public static Class getRawClassOrNull(Type type) { + if (type instanceof Class) { +- final Class cls = (Class) type; +- return cls.isPrimitive(); +- } +- return false; +- } +- +- private static final Map> primitiveTypes = Stream +- .of(byte.class, short.class, int.class, long.class, float.class, double.class, boolean.class, char.class, void.class) +- .collect(Utils.toMap(cls -> cls.getName(), cls -> cls)); +- +- public static Class getPrimitiveType(String typeName) { +- return primitiveTypes.get(typeName); +- } +- +- public static Class getArrayClass(Class componentType, int dimensions) { +- return Array.newInstance(componentType, new int[dimensions]).getClass(); +- } +- +- public static List concat(List list1, List list2) { +- if (list1 == null && list2 == null) { +- return null; +- } +- final List result = new ArrayList<>(); +- if (list1 != null) result.addAll(list1); +- if (list2 != null) result.addAll(list2); +- return result; +- } +- +- public static List listFromNullable(T item) { +- return item != null ? Arrays.asList(item) : Collections.emptyList(); +- } +- +- public static List listFromNullable(List list) { +- return list != null ? list : Collections.emptyList(); +- } +- +- public static Map mapFromNullable(Map map) { +- return map != null ? map : Collections.emptyMap(); +- } +- +- public static List removeNulls(List list) { +- final ArrayList result = new ArrayList<>(list); +- result.removeAll(Collections.singleton(null)); +- return result; +- } +- +- public static List removeAll(List list, List toBeRemoved) { +- final ArrayList result = new ArrayList<>(list); +- result.removeAll(toBeRemoved); +- return result; +- } +- +- public static Collector> toSortedList(Comparator comparator) { +- return Collectors.collectingAndThen( +- Collectors.toCollection(ArrayList::new), +- list -> { +- list.sort(comparator); +- return list; +- } +- ); +- } +- +- public static List> zip(List list1, List list2) { +- final List> result = new ArrayList<>(); +- final int size = Math.min(list1.size(), list2.size()); +- for (int i = 0; i < size; i++) { +- result.add(Pair.of(list1.get(i), list2.get(i))); +- } +- return result; +- } +- +- public static List readLines(InputStream stream) { +- return splitMultiline(readString(stream), false); +- } +- +- public static String readString(InputStream stream) { +- try (Scanner scanner = new Scanner(stream, "UTF-8")) { +- scanner.useDelimiter("\\A"); +- return scanner.hasNext() ? scanner.next() : ""; +- } +- } +- +- public static String readString(InputStream stream, String lineEndings) { +- return normalizeLineEndings(readString(stream), lineEndings); +- } +- +- public static String normalizeLineEndings(String text, String lineEndings) { +- return text.replaceAll("\\r\\n|\\n|\\r", lineEndings); +- } +- +- public static List splitMultiline(String text, boolean trimOneLeadingSpaceOnLines) { +- if (text == null) { +- return null; +- } +- final List result = new ArrayList<>(); +- final String[] lines = text.split("\\r\\n|\\n|\\r"); +- for (String line : lines) { +- result.add(trimOneLeadingSpaceOnLines ? trimOneLeadingSpaceOnly(line) : line); +- } +- return result; +- } +- +- private static String trimOneLeadingSpaceOnly(String line) { +- if (line.startsWith(" ")) { +- return line.substring(1); +- } +- return line; +- } +- +- public static File replaceExtension(File file, String newExtension) { +- final String name = file.getName(); +- final int dotIndex = name.lastIndexOf("."); +- final int index = dotIndex != -1 ? dotIndex : name.length(); +- return new File(file.getParent(), name.substring(0, index) + newExtension); +- } +- +- public static boolean classNameMatches(String className, List regexps) { +- for (Pattern regexp : regexps) { +- if (regexp.matcher(className).matches()) { +- return true; +- } +- } +- return false; +- } +- +- public static List globsToRegexps(List globs) { +- if (globs == null) { +- return null; +- } +- final List regexps = new ArrayList<>(); +- for (String glob : globs) { +- regexps.add(globToRegexp(glob)); +- } +- return regexps; +- } +- +- /** +- * Creates regexp for glob pattern. +- * Replaces "*" with "[^.\$]*" and "**" with ".*". +- */ +- private static Pattern globToRegexp(String glob) { +- final Pattern globToRegexpPattern = Pattern.compile("(\\*\\*)|(\\*)"); +- final Matcher matcher = globToRegexpPattern.matcher(glob); +- final StringBuffer sb = new StringBuffer(); +- int lastEnd = 0; +- while (matcher.find()) { +- sb.append(Pattern.quote(glob.substring(lastEnd, matcher.start()))); +- if (matcher.group(1) != null) { +- sb.append(Matcher.quoteReplacement(".*")); +- } +- if (matcher.group(2) != null) { +- sb.append(Matcher.quoteReplacement("[^.$]*")); ++ return (Class) type; ++ } else if (type instanceof ParameterizedType) { ++ final ParameterizedType parameterizedType = (ParameterizedType) type; ++ final Type rawType = parameterizedType.getRawType(); ++ if (rawType instanceof Class) { ++ return (Class) rawType; + } +- lastEnd = matcher.end(); +- } +- sb.append(Pattern.quote(glob.substring(lastEnd, glob.length()))); +- return Pattern.compile(sb.toString()); +- } +- +- public static ObjectMapper getObjectMapper() { +- final ObjectMapper objectMapper = new ObjectMapper(); +- objectMapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); +- objectMapper.enable(SerializationFeature.INDENT_OUTPUT); +- objectMapper.setDefaultPrettyPrinter(new StandardJsonPrettyPrinter(" ", "\n")); +- objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); +- return objectMapper; +- } +- +- public static T loadJson(ObjectMapper objectMapper, InputStream inputStream, Class type) { +- try { +- return objectMapper.readValue(inputStream, type); +- } catch (IOException e) { +- throw new RuntimeException(e); + } +- } +- +- public static String objectToString(Object object) { +- try { +- return new ObjectMapper().writeValueAsString(object); +- } catch (JsonProcessingException e) { +- throw new RuntimeException(e); +- } +- } +- +- public static String exceptionToString(Throwable e) { +- final StringWriter writer = new StringWriter(); +- e.printStackTrace(new PrintWriter(writer)); +- return writer.toString(); +- } +- +- public static Supplier memoize(Supplier supplier) { +- final AtomicReference value = new AtomicReference<>(); +- return () -> value.updateAndGet(current -> current != null ? current : Objects.requireNonNull(supplier.get())); ++ return null; + } + + } +diff --git a/typescript-generator-core/src/main/resources/cz/habarta/typescript/generator/ext/AxiosClientExtension-client.template.ts b/typescript-generator-core/src/main/resources/cz/habarta/typescript/generator/ext/AxiosClientExtension-client.template.ts +deleted file mode 100644 +index d2a35d3e1..000000000 +--- a/typescript-generator-core/src/main/resources/cz/habarta/typescript/generator/ext/AxiosClientExtension-client.template.ts ++++ /dev/null +@@ -1,8 +0,0 @@ +- +-/*export*/ class $$AxiosRestApplicationClient$$ extends $$RestApplicationClientFullName$$ { +- +- constructor(baseURL: string, axiosInstance: Axios.AxiosInstance = axios.create()) { +- axiosInstance.defaults.baseURL = baseURL; +- super(new AxiosHttpClient(axiosInstance)); +- } +-} +diff --git a/typescript-generator-core/src/main/resources/cz/habarta/typescript/generator/ext/AxiosClientExtension-shared.template.ts b/typescript-generator-core/src/main/resources/cz/habarta/typescript/generator/ext/AxiosClientExtension-shared.template.ts +deleted file mode 100644 +index 4b7cad192..000000000 +--- a/typescript-generator-core/src/main/resources/cz/habarta/typescript/generator/ext/AxiosClientExtension-shared.template.ts ++++ /dev/null +@@ -1,45 +0,0 @@ +- +-import axios from "axios"; +-import * as Axios from "axios"; +- +-declare module "axios" { +- export interface GenericAxiosResponse extends Axios.AxiosResponse { +- data: R; +- } +-} +- +-class AxiosHttpClient implements HttpClient { +- +- constructor(private axios: Axios.AxiosInstance) { +- } +- +- request(requestConfig: { method: string; url: string; queryParams?: any; data?: any; copyFn?: (data: R) => R; options?: Axios.AxiosRequestConfig; }): RestResponse { +- function assign(target: any, source?: any) { +- if (source != undefined) { +- for (const key in source) { +- if (source.hasOwnProperty(key)) { +- target[key] = source[key]; +- } +- } +- } +- return target; +- } +- +- const config: Axios.AxiosRequestConfig = {}; +- config.method = requestConfig.method as typeof config.method; // `string` in axios 0.16.0, `Method` in axios 0.19.0 +- config.url = requestConfig.url; +- config.params = requestConfig.queryParams; +- config.data = requestConfig.data; +- assign(config, requestConfig.options); +- const copyFn = requestConfig.copyFn; +- +- const axiosResponse = this.axios.request(config); +- return axiosResponse.then(axiosResponse => { +- if (copyFn && axiosResponse.data) { +- (axiosResponse as any).originalData = axiosResponse.data; +- axiosResponse.data = copyFn(axiosResponse.data); +- } +- return axiosResponse; +- }); +- } +-} +diff --git a/typescript-generator-core/src/main/resources/datalibrary/_schema.json b/typescript-generator-core/src/main/resources/datalibrary/_schema.json +deleted file mode 100644 +index a51f85893..000000000 +--- a/typescript-generator-core/src/main/resources/datalibrary/_schema.json ++++ /dev/null +@@ -1,109 +0,0 @@ +-{ +- "$schema": "http://json-schema.org/schema", +- "type": "object", +- "definitions": { +- "mapping": { +- "type": "object", +- "properties": { +- "className": { +- "markdownDescription": "Specifies class (including its subclasses). When mapping generic class to `customType` mapped class name must include generic parameters for example like this: `com.google.common.collect.Range`.", +- "type": "string" +- } +- }, +- "required": [ +- "className" +- ] +- } +- }, +- "properties": { +- "$schema": { +- "type": "string" +- }, +- "info": { +- "type": "object", +- "properties": { +- "source": { +- "type": "string" +- }, +- "jacksonModule": { +- "type": "string" +- } +- }, +- "additionalProperties": false +- }, +- "classMappings": { +- "type": "array", +- "items": { +- "type": "object", +- "oneOf": [ +- { +- "allOf": [ +- { +- "$ref": "#/definitions/mapping" +- }, +- { +- "properties": { +- "semanticType": { +- "type": "string", +- "enum": [ +- "string", +- "number", +- "boolean", +- "date", +- "any", +- "void", +- "list", +- "map", +- "optional", +- "wrapper" +- ] +- } +- }, +- "required": [ +- "semanticType" +- ] +- } +- ] +- }, +- { +- "allOf": [ +- { +- "$ref": "#/definitions/mapping" +- }, +- { +- "properties": { +- "customType": { +- "type": "string" +- } +- }, +- "required": [ +- "customType" +- ] +- } +- ] +- } +- ] +- } +- }, +- "typeAliases": { +- "type": "array", +- "items": { +- "type": "object", +- "properties": { +- "name": { +- "type": "string" +- }, +- "definition": { +- "type": "string" +- } +- }, +- "required": [ +- "name", +- "definition" +- ], +- "additionalProperties": false +- } +- } +- }, +- "additionalProperties": false +-} +\ No newline at end of file +diff --git a/typescript-generator-core/src/main/resources/datalibrary/guava.json b/typescript-generator-core/src/main/resources/datalibrary/guava.json +deleted file mode 100644 +index 8dd254597..000000000 +--- a/typescript-generator-core/src/main/resources/datalibrary/guava.json ++++ /dev/null +@@ -1,71 +0,0 @@ +-{ +- "$schema": "./_schema.json", +- "info": { +- "source": "https://github.com/google/guava", +- "jacksonModule": "https://github.com/FasterXML/jackson-datatypes-collections/blob/master/guava/src/main/java/com/fasterxml/jackson/datatype/guava/GuavaModule.java" +- }, +- "classMappings": [ +- { +- "className": "com.google.common.base.Optional", +- "semanticType": "optional" +- }, +- { +- "className": "com.google.common.collect.RangeSet", +- "customType": "GuavaRangeSet" +- }, +- { +- "className": "com.google.common.collect.Range", +- "customType": "GuavaRange" +- }, +- { +- "className": "com.google.common.collect.Table", +- "customType": "GuavaTable" +- }, +- { +- "className": "com.google.common.net.HostAndPort", +- "semanticType": "string" +- }, +- { +- "className": "com.google.common.net.InternetDomainName", +- "semanticType": "string" +- }, +- { +- "className": "com.google.common.cache.CacheBuilderSpec", +- "semanticType": "string" +- }, +- { +- "className": "com.google.common.cache.CacheBuilder", +- "customType": "string" +- }, +- { +- "className": "com.google.common.hash.HashCode", +- "semanticType": "string" +- }, +- { +- "className": "com.google.common.collect.FluentIterable", +- "semanticType": "list" +- }, +- { +- "className": "com.google.common.collect.Multimap", +- "customType": "GuavaMultimap" +- } +- ], +- "typeAliases": [ +- { +- "name": "GuavaRangeSet", +- "definition": "GuavaRange[]" +- }, +- { +- "name": "GuavaRange", +- "definition": "{ lowerEndpoint: C, lowerBoundType: 'OPEN' | 'CLOSED', upperEndpoint: C, upperBoundType: 'OPEN' | 'CLOSED' }" +- }, +- { +- "name": "GuavaTable", +- "definition": "{ [index: string]: { [index: string]: V } }" +- }, +- { +- "name": "GuavaMultimap", +- "definition": "{ [index: string]: V[] }" +- } +- ] +-} +\ No newline at end of file +diff --git a/typescript-generator-core/src/main/resources/datalibrary/joda.json b/typescript-generator-core/src/main/resources/datalibrary/joda.json +deleted file mode 100644 +index f4f7a8402..000000000 +--- a/typescript-generator-core/src/main/resources/datalibrary/joda.json ++++ /dev/null +@@ -1,57 +0,0 @@ +-{ +- "$schema": "./_schema.json", +- "info": { +- "source": "https://github.com/JodaOrg/joda-time", +- "jacksonModule": "https://github.com/FasterXML/jackson-datatype-joda/blob/master/src/main/java/com/fasterxml/jackson/datatype/joda/JodaModule.java" +- }, +- "classMappings": [ +- { +- "className": "org.joda.time.DateTime", +- "semanticType": "date" +- }, +- { +- "className": "org.joda.time.DateTimeZone", +- "semanticType": "string" +- }, +- { +- "className": "org.joda.time.Duration", +- "semanticType": "number" +- }, +- { +- "className": "org.joda.time.Instant", +- "semanticType": "date" +- }, +- { +- "className": "org.joda.time.LocalDateTime", +- "semanticType": "date" +- }, +- { +- "className": "org.joda.time.LocalDate", +- "semanticType": "date" +- }, +- { +- "className": "org.joda.time.LocalTime", +- "semanticType": "date" +- }, +- { +- "className": "org.joda.time.Period", +- "semanticType": "string" +- }, +- { +- "className": "org.joda.time.Interval", +- "semanticType": "string" +- }, +- { +- "className": "org.joda.time.MonthDay", +- "semanticType": "string" +- }, +- { +- "className": "org.joda.time.YearMonth", +- "semanticType": "string" +- }, +- { +- "className": "org.joda.time.DateMidnight", +- "semanticType": "date" +- } +- ] +-} +\ No newline at end of file +diff --git a/typescript-generator-core/src/main/resources/datalibrary/vavr.json b/typescript-generator-core/src/main/resources/datalibrary/vavr.json +deleted file mode 100644 +index 83c034a1f..000000000 +--- a/typescript-generator-core/src/main/resources/datalibrary/vavr.json ++++ /dev/null +@@ -1,47 +0,0 @@ +-{ +- "$schema": "./_schema.json", +- "info": { +- "source": "https://github.com/vavr-io/vavr", +- "jacksonModule": "https://github.com/vavr-io/vavr-jackson/blob/master/src/main/java/io/vavr/jackson/datatype/VavrModule.java" +- }, +- "classMappings": [ +- { +- "className": "io.vavr.Lazy", +- "semanticType": "wrapper" +- }, +- { +- "className": "io.vavr.control.Option", +- "semanticType": "optional" +- }, +- { +- "className": "io.vavr.collection.CharSeq", +- "semanticType": "string" +- }, +- { +- "className": "io.vavr.collection.Seq", +- "semanticType": "list" +- }, +- { +- "className": "io.vavr.collection.Set", +- "semanticType": "list" +- }, +- { +- "className": "io.vavr.collection.PriorityQueue", +- "semanticType": "list" +- }, +- { +- "className": "io.vavr.collection.Map", +- "semanticType": "map" +- }, +- { +- "className": "io.vavr.collection.Multimap", +- "customType": "VavrMultimap" +- } +- ], +- "typeAliases": [ +- { +- "name": "VavrMultimap", +- "definition": "{ [index: string]: V[] }" +- } +- ] +-} +\ No newline at end of file +diff --git a/typescript-generator-core/src/main/resources/helpers/jsonDeserialization.ts b/typescript-generator-core/src/main/resources/helpers/jsonDeserialization.ts +deleted file mode 100644 +index 72f2ee774..000000000 +--- a/typescript-generator-core/src/main/resources/helpers/jsonDeserialization.ts ++++ /dev/null +@@ -1,29 +0,0 @@ +-function __getCopyArrayFn(itemCopyFn: (item: T) => T): (array: T[]) => T[] { +- return (array: T[]) => __copyArray(array, itemCopyFn); +-} +- +-function __copyArray(array: T[], itemCopyFn: (item: T) => T): T[] { +- return array && array.map(item => item && itemCopyFn(item)); +-} +- +-function __getCopyObjectFn(itemCopyFn: (item: T) => T): (object: { [index: string]: T }) => { [index: string]: T } { +- return (object: { [index: string]: T }) => __copyObject(object, itemCopyFn); +-} +- +-function __copyObject(object: { [index: string]: T }, itemCopyFn: (item: T) => T): { [index: string]: T } { +- if (!object) { +- return object; +- } +- const result: any = {}; +- for (const key in object) { +- if (object.hasOwnProperty(key)) { +- const value = object[key]; +- result[key] = value && itemCopyFn(value); +- } +- } +- return result; +-} +- +-function __identity(): (value: T) => T { +- return value => value; +-} +diff --git a/typescript-generator-core/src/main/resources/helpers/uriEncoding.ts b/typescript-generator-core/src/main/resources/helpers/uriEncoding.ts +deleted file mode 100644 +index 34e9fa59e..000000000 +--- a/typescript-generator-core/src/main/resources/helpers/uriEncoding.ts ++++ /dev/null +@@ -1,9 +0,0 @@ +-function uriEncoding(template: TemplateStringsArray, ...substitutions: any[]): string { +- let result = ""; +- for (let i = 0; i < substitutions.length; i++) { +- result += template[i]; +- result += encodeURIComponent(substitutions[i]); +- } +- result += template[template.length - 1]; +- return result; +-} +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/ClassesTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/ClassesTest.java +deleted file mode 100644 +index 45c3a1cbc..000000000 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/ClassesTest.java ++++ /dev/null +@@ -1,349 +0,0 @@ +- +-package cz.habarta.typescript.generator; +- +-import java.util.Arrays; +-import java.util.List; +-import javax.annotation.Nullable; +-import org.junit.jupiter.api.Assertions; +-import org.junit.jupiter.api.Test; +- +- +-@SuppressWarnings("unused") +-public class ClassesTest { +- +- @Test +- public void testInvalidSettings() { +- final Settings settings = TestUtils.settings(); +- settings.mapClasses = ClassMapping.asClasses; +- Assertions.assertThrows(Exception.class, () -> new TypeScriptGenerator(settings).generateTypeScript(Input.from())); +- } +- +- @Test +- public void testClass() { +- testOutput(A.class, +- "class A {\n" + +- " a: string;\n" + +- "}" +- ); +- } +- +- @Test +- public void testInheritedClass() { +- // A and B order is important +- testOutput(B.class, +- "class A {\n" + +- " a: string;\n" + +- "}\n" + +- "\n" + +- "class B extends A {\n" + +- " b: string;\n" + +- "}" +- ); +- } +- +- @Test +- public void testClassImplementsInterface() { +- testOutput(E.class, +- "class E implements D {\n" + +- " c: string;\n" + +- " d: string;\n" + +- " e: string;\n" + +- "}\n" + +- "\n" + +- "interface D extends C {\n" + +- " d: string;\n" + +- "}\n" + +- "\n" + +- "interface C {\n" + +- " c: string;\n" + +- "}" +- ); +- } +- +- @Test +- public void testComplexHierarchy() { +- // Q3 and Q5 order is important +- testOutput(Q5.class, +- "class Q3 implements Q2 {\n" + +- " q1: string;\n" + +- " q2: string;\n" + +- " q3: string;\n" + +- "}\n" + +- "\n" + +- "class Q5 extends Q3 implements Q2, Q4 {\n" + +- " q4: string;\n" + +- " q5: string;\n" + +- "}\n" + +- "\n" + +- "interface Q2 extends Q1 {\n" + +- " q2: string;\n" + +- "}\n" + +- "\n" + +- "interface Q4 {\n" + +- " q4: string;\n" + +- "}\n" + +- "\n" + +- "interface Q1 {\n" + +- " q1: string;\n" + +- "}" +- ); +- } +- +- private static void testOutput(Class inputClass, String expected) { +- final Settings settings = TestUtils.settings(); +- settings.outputFileType = TypeScriptFileType.implementationFile; +- settings.mapClasses = ClassMapping.asClasses; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(inputClass)); +- Assertions.assertEquals(expected.replace('\'', '"'), output.trim()); +- } +- +- private static abstract class A { +- public abstract String getA(); +- } +- +- private static abstract class B extends A { +- public abstract String getB(); +- } +- +- private static abstract interface C { +- public abstract String getC(); +- } +- +- private static interface D extends C { +- public abstract String getD(); +- } +- +- private static abstract class E implements D { +- public abstract String getE(); +- } +- +- +- private static interface Q1 { +- public abstract String getQ1(); +- } +- +- private static interface Q2 extends Q1 { +- public abstract String getQ2(); +- } +- +- private static abstract class Q3 implements Q2 { +- public abstract String getQ3(); +- } +- +- private static interface Q4 { +- public abstract String getQ4(); +- } +- +- private static abstract class Q5 extends Q3 implements Q2, Q4 { +- public abstract String getQ5(); +- } +- +- +- @Test +- public void testClassPatterns1() { +- testClassPatterns( +- Arrays.asList( +- "**Bc", +- "**Bi", +- "**Derived1", +- "**Derived2" +- ), +- "" +- + "class Bc {\n" +- + " x: string;\n" +- + "}\n" +- + "\n" +- + "interface Bi {\n" +- + " y: string;\n" +- + "}\n" +- + "\n" +- + "class Derived1 extends Bc implements Bi {\n" +- + " y: string;\n" +- + "}\n" +- + "\n" +- + "class Derived2 extends Derived1 {\n" +- + "}" +- ); +- } +- +- @Test +- public void testClassPatterns2() { +- testClassPatterns( +- Arrays.asList( +- "**Derived1", +- "**Derived2" +- ), +- "" +- + "interface Bc {\n" +- + " x: string;\n" +- + "}\n" +- + "\n" +- + "interface Bi {\n" +- + " y: string;\n" +- + "}\n" +- + "\n" +- + "class Derived1 implements Bc, Bi {\n" +- + " x: string;\n" +- + " y: string;\n" +- + "}\n" +- + "\n" +- + "class Derived2 extends Derived1 {\n" +- + "}" +- ); +- } +- +- @Test +- public void testClassPatterns3() { +- testClassPatterns( +- Arrays.asList( +- "**Bc", +- "**Derived2" +- ), +- "" +- + "class Bc {\n" +- + " x: string;\n" +- + "}\n" +- + "\n" +- + "interface Bi {\n" +- + " y: string;\n" +- + "}\n" +- + "\n" +- + "interface Derived1 extends Bc, Bi {\n" +- + "}\n" +- + "\n" +- + "class Derived2 implements Derived1 {\n" +- + " x: string;\n" +- + " y: string;\n" +- + "}" +- ); +- } +- +- @Test +- public void testClassPatterns4() { +- testClassPatterns( +- Arrays.asList( +- "**Bc", +- "**Derived1" +- ), +- "" +- + "class Bc {\n" +- + " x: string;\n" +- + "}\n" +- + "\n" +- + "interface Bi {\n" +- + " y: string;\n" +- + "}\n" +- + "\n" +- + "class Derived1 extends Bc implements Bi {\n" +- + " y: string;\n" +- + "}\n" +- + "\n" +- + "interface Derived2 extends Derived1 {\n" +- + "}" +- ); +- } +- +- private static void testClassPatterns(List mapClassesAsClassesPatterns, String expected) { +- final Settings settings = TestUtils.settings(); +- settings.outputFileType = TypeScriptFileType.implementationFile; +- settings.mapClasses = ClassMapping.asClasses; +- settings.mapClassesAsClassesPatterns = mapClassesAsClassesPatterns; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(Bc.class, Bi.class, Derived1.class, Derived2.class)); +- Assertions.assertEquals(expected.replace('\'', '"').trim(), output.trim()); +- } +- +- private static abstract class Bc { +- public abstract String getX(); +- } +- +- private static abstract interface Bi { +- public abstract String getY(); +- } +- +- private static abstract class Derived1 extends Bc implements Bi { +- } +- +- private static abstract class Derived2 extends Derived1 { +- } +- +- @Test +- public void testConstructor() { +- final Settings settings = TestUtils.settings(); +- settings.optionalAnnotations = Arrays.asList(Nullable.class); +- settings.outputFileType = TypeScriptFileType.implementationFile; +- settings.mapClasses = ClassMapping.asClasses; +- settings.generateConstructors = true; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(FooBar.class)); +- Assertions.assertTrue(output.contains("constructor(data: FooBar)")); +- } +- +- @Test +- public void testSortedConstructor() { +- final Settings settings = TestUtils.settings(); +- settings.optionalAnnotations = Arrays.asList(Nullable.class); +- settings.outputFileType = TypeScriptFileType.implementationFile; +- settings.mapClasses = ClassMapping.asClasses; +- settings.generateConstructors = true; +- settings.sortDeclarations = true; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(FooBar.class)); +- String sortedPropertyAssignments = "" + +- " this.bar = data.bar;" + settings.newline + +- " this.foo = data.foo;"; +- Assertions.assertTrue(output.contains(sortedPropertyAssignments)); +- } +- +- @Test +- public void testUnsortedConstructor() { +- final Settings settings = TestUtils.settings(); +- settings.optionalAnnotations = Arrays.asList(Nullable.class); +- settings.outputFileType = TypeScriptFileType.implementationFile; +- settings.mapClasses = ClassMapping.asClasses; +- settings.generateConstructors = true; +- settings.sortDeclarations = false; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(FooBar.class)); +- String unsortedPropertyAssignments = "" + +- " this.foo = data.foo;" + settings.newline + +- " this.bar = data.bar;"; +- Assertions.assertTrue(output.contains(unsortedPropertyAssignments)); +- } +- +- private static class FooBar { +- @Nullable +- public String foo; +- public int bar; +- } +- +- @Test +- public void testConstructorOnInterface() { +- final Settings settings = TestUtils.settings(); +- settings.outputFileType = TypeScriptFileType.implementationFile; +- settings.mapClasses = ClassMapping.asClasses; +- settings.generateConstructors = true; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(FooBarInterface.class)); +- Assertions.assertFalse(output.contains("constructor")); +- } +- +- private interface FooBarInterface { +- } +- +- @Test +- public void testConstructorWithGenericsAndInheritance() { +- final Settings settings = TestUtils.settings(); +- settings.outputFileType = TypeScriptFileType.implementationFile; +- settings.mapClasses = ClassMapping.asClasses; +- settings.generateConstructors = true; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(ClassB.class)); +- Assertions.assertTrue(output.contains("constructor(data: ClassA)")); +- Assertions.assertTrue(output.contains("constructor(data: ClassB)")); +- Assertions.assertTrue(output.contains("super(data);")); +- } +- +- private static class ClassA { +- public String a; +- } +- +- private static class ClassB extends ClassA { +- public String b; +- } +- +-} +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/CovariantPropertiesTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/CovariantPropertiesTest.java +deleted file mode 100644 +index 1cbb808aa..000000000 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/CovariantPropertiesTest.java ++++ /dev/null +@@ -1,53 +0,0 @@ +- +-package cz.habarta.typescript.generator; +- +-import java.util.List; +-import org.junit.jupiter.api.Assertions; +-import org.junit.jupiter.api.Test; +- +- +-public class CovariantPropertiesTest { +- +- @Test +- public void test() { +- final Settings settings = TestUtils.settings(); +- settings.sortDeclarations = true; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(Dog.class)); +- final String expected = +- "interface Animal {\n" + +- " allFood: Food[];\n" + +- " todaysFood: Food;\n" + +- "}\n" + +- "\n" + +- "interface Dog extends Animal {\n" + +- " allFood: DogFood[];\n" + +- " todaysFood: DogFood;\n" + +- "}\n" + +- "\n" + +- "interface DogFood extends Food {\n" + +- "}\n" + +- "\n" + +- "interface Food {\n" + +- "}"; +- Assertions.assertEquals(expected.replace('\'', '"'), output.trim()); +- } +- +- private static abstract class Animal { +- public abstract Food getTodaysFood(); +- public abstract List getAllFood(); +- } +- +- private static abstract class Dog extends Animal { +- @Override +- public abstract DogFood getTodaysFood(); +- @Override +- public abstract List getAllFood(); +- } +- +- private static abstract class Food { +- } +- +- private static abstract class DogFood extends Food { +- } +- +-} +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/CustomTypeAliasesTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/CustomTypeAliasesTest.java +deleted file mode 100644 +index ebe1fcc42..000000000 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/CustomTypeAliasesTest.java ++++ /dev/null +@@ -1,39 +0,0 @@ +- +-package cz.habarta.typescript.generator; +- +-import java.util.Collections; +-import org.junit.jupiter.api.Assertions; +-import org.junit.jupiter.api.Test; +- +- +-@SuppressWarnings("unused") +-public class CustomTypeAliasesTest { +- +- @Test +- public void testGeneric() { +- final Settings settings = TestUtils.settings(); +- settings.outputKind = TypeScriptOutputKind.module; +- settings.customTypeAliases = Collections.singletonMap("Id", "string"); +- settings.customTypeMappings = Collections.singletonMap("cz.habarta.typescript.generator.CustomTypeAliasesTest$IdRepresentation", "Id"); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(MyEntityRepresentation.class)); +- Assertions.assertTrue(output.contains("id: Id")); +- Assertions.assertTrue(output.contains("export type Id = string")); +- } +- +- private static class MyEntityRepresentation { +- public IdRepresentation id; +- } +- +- private static class IdRepresentation { +- public String id; +- } +- +- @Test +- public void testNonGeneric() { +- final Settings settings = TestUtils.settings(); +- settings.customTypeAliases = Collections.singletonMap("Id", "string"); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from()); +- Assertions.assertTrue(output.contains("type Id = string")); +- } +- +-} +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/CustomTypeConversionTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/CustomTypeConversionTest.java +index 3bd7562dd..f9b969e12 100644 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/CustomTypeConversionTest.java ++++ b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/CustomTypeConversionTest.java +@@ -1,13 +1,12 @@ + package cz.habarta.typescript.generator; + +-import java.io.ByteArrayOutputStream; +-import java.lang.reflect.ParameterizedType; +-import java.lang.reflect.Type; ++import java.io.*; ++import java.lang.reflect.*; + import java.util.Arrays; + import java.util.Date; +-import static org.junit.jupiter.api.Assertions.assertEquals; +-import static org.junit.jupiter.api.Assertions.assertTrue; +-import org.junit.jupiter.api.Test; ++import static org.junit.Assert.assertEquals; ++import static org.junit.Assert.assertTrue; ++import org.junit.Test; + + public class CustomTypeConversionTest { + +@@ -58,7 +57,7 @@ public class CustomTypeConversionTest { + return null; + } + }; +- final TypeProcessor typeProcessor = new TypeScriptGenerator(settings).getCommonTypeProcessor(); ++ final TypeProcessor typeProcessor = new TypeScriptGenerator(settings).getTypeProcessor(); + final TypeProcessor.Context context = DefaultTypeProcessorTest.getTestContext(typeProcessor); + { + final Type maybeObjectFieldType = CustomOptionalUsage.class.getField("maybeObject").getGenericType(); +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/CustomTypeMappingTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/CustomTypeMappingTest.java +index 4a6ccf026..0ba472b6f 100644 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/CustomTypeMappingTest.java ++++ b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/CustomTypeMappingTest.java +@@ -1,19 +1,11 @@ + + package cz.habarta.typescript.generator; + +-import com.fasterxml.jackson.core.JsonGenerator; +-import com.fasterxml.jackson.databind.SerializerProvider; +-import com.fasterxml.jackson.databind.annotation.JsonSerialize; +-import com.fasterxml.jackson.databind.ser.std.StdSerializer; +-import java.io.IOException; +-import java.util.Calendar; +-import java.util.Collections; +-import java.util.Date; +-import org.junit.jupiter.api.Assertions; +-import static org.junit.jupiter.api.Assertions.assertTrue; +-import org.junit.jupiter.api.Test; ++import java.util.*; ++import static org.junit.Assert.*; ++import org.junit.Test; ++ + +-@SuppressWarnings("unused") + public class CustomTypeMappingTest { + + @Test +@@ -37,113 +29,4 @@ public class CustomTypeMappingTest { + public Calendar calendar1; + } + +- @Test +- public void testEnumAsMap() throws Exception { +-// final ObjectMapper objectMapper = new ObjectMapper(); +-// final String json = objectMapper.writeValueAsString(MyEnum.MY_FIRST_VALUE); +-// System.out.println(json); +- +- final Settings settings = TestUtils.settings(); +- settings.customTypeMappings = Collections.singletonMap("cz.habarta.typescript.generator.CustomTypeMappingTest$MyEnum", "{ code: string, definition: string }"); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(MyInterfUsingEnum.class)); +- assertTrue(output.contains("someValue: { code: string, definition: string }")); +- } +- +- /** +- * Tests that custom mapping a superclass to a primitive doesn't cause errors. +- */ +- @Test +- public void testSuperTypeString() throws Exception { +- final Settings settings = TestUtils.settings(); +- settings.customTypeMappings = Collections.singletonMap("cz.habarta.typescript.generator.CustomTypeMappingTest$BaseCustomMapping", "string"); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(InterfaceUsingSubCustomMapping.class)); +- assertTrue(output.contains("sub: SubCustomMapping;")); +- } +- +- +- @JsonSerialize(using = CodedValueSerializer.class) +- public interface CodedValue { +- String getCode(); +- String getDefinition(); +- } +- +- public enum MyEnum implements CodedValue { +- +- MY_FIRST_VALUE("A0", "Some description"); +- +- private final String code; +- private final String definition; +- +- private MyEnum(String code, String definition) { +- this.code = code; +- this.definition = definition; +- } +- +- @Override +- public String getCode() { +- return code; +- } +- +- @Override +- public String getDefinition() { +- return definition; +- } +- } +- +- public interface MyInterfUsingEnum { +- public MyEnum getSomeValue(); +- } +- +- public static class CodedValueSerializer extends StdSerializer { +- +- private static final long serialVersionUID = 1L; +- +- public CodedValueSerializer() { +- super(CodedValue.class); +- } +- +- public CodedValueSerializer(Class t) { +- super(t); +- } +- +- @Override +- public void serialize(CodedValue value, JsonGenerator gen, SerializerProvider provider) throws IOException { +- gen.writeStartObject(); +- gen.writeStringField("code", value.getCode()); +- gen.writeStringField("definition", value.getDefinition()); +- gen.writeEndObject(); +- } +- } +- +- +- class BaseCustomMapping {} +- class SubCustomMapping extends BaseCustomMapping {} +- interface InterfaceUsingSubCustomMapping { +- SubCustomMapping getSub(); +- } +- +- @Test +- public void testGenericClassWithCustomMapping() { +- final Settings settings = TestUtils.settings(); +- settings.customTypeMappings = Collections.singletonMap("cz.habarta.typescript.generator.CustomTypeMappingTest$GenericClass", "CustomGenericClass"); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(GenericClass.class)); +- Assertions.assertEquals("", output); +- } +- +- static class GenericClass { +- public D type; +- } +- +- @Test +- public void testBigInt() throws Exception { +- final Settings settings = TestUtils.settings(); +- settings.customTypeMappings = Collections.singletonMap("long", "BigInt"); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(BigIntClass.class)); +- Assertions.assertTrue(output.contains("bigNumber: BigInt;")); +- } +- +- private static class BigIntClass { +- public long bigNumber = Long.MAX_VALUE; +- } +- + } +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/DateTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/DateTest.java +index f2e28733f..2f2896d8e 100644 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/DateTest.java ++++ b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/DateTest.java +@@ -1,106 +1,47 @@ + + package cz.habarta.typescript.generator; + +-import com.fasterxml.jackson.core.JsonProcessingException; +-import com.fasterxml.jackson.databind.ObjectMapper; +-import com.fasterxml.jackson.databind.SerializationFeature; +-import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; +-import java.time.Clock; +-import java.time.Instant; +-import java.time.LocalDate; +-import java.time.LocalDateTime; +-import java.time.LocalTime; +-import java.time.OffsetDateTime; +-import java.time.OffsetTime; +-import java.time.Year; +-import java.time.YearMonth; +-import java.time.ZoneId; +-import java.time.ZonedDateTime; +-import java.util.Calendar; +-import java.util.Collections; +-import java.util.Date; +-import java.util.List; +-import java.util.Map; +-import org.junit.jupiter.api.Assertions; +-import org.junit.jupiter.api.Test; ++import java.io.*; ++import java.util.*; ++import org.junit.*; + + + public class DateTest { + + @Test +- public void testDate_forJavaUtilDate() { +- final Settings settings = TestUtils.settings(); +- settings.mapDate = DateMapping.asDate; +- final String dts = new TypeScriptGenerator(settings).generateTypeScript(Input.from(Dates.class)); +- Assertions.assertTrue(dts.contains("date: Date;")); +- Assertions.assertTrue(dts.contains("dateList: Date[];")); +- Assertions.assertTrue(dts.contains("datesMap: { [index: string]: Date[] };")); +- Assertions.assertTrue(dts.contains("dates: Date[];")); +- Assertions.assertTrue(dts.contains("calendar: Date;")); ++ public void testDate() { ++ final String dts = new TypeScriptGenerator(settings(DateMapping.asDate, "AsDate")).generateTypeScript(Input.from(Dates.class)); ++ Assert.assertTrue(dts.contains("date: Date;")); ++ Assert.assertTrue(dts.contains("dateList: Date[];")); ++ Assert.assertTrue(dts.contains("datesMap: { [index: string]: Date[] };")); ++ Assert.assertTrue(dts.contains("dates: Date[];")); + } + + @Test +- public void testDateAsNumber_forJavaUtilDate() { +- final Settings settings = TestUtils.settings(); +- settings.mapDate = DateMapping.asNumber; +- final String dts = new TypeScriptGenerator(settings).generateTypeScript(Input.from(Dates.class)); +- Assertions.assertTrue(dts.contains("date: DateAsNumber;")); +- Assertions.assertTrue(dts.contains("dateList: DateAsNumber[];")); +- Assertions.assertTrue(dts.contains("datesMap: { [index: string]: DateAsNumber[] };")); +- Assertions.assertTrue(dts.contains("dates: DateAsNumber[];")); +- Assertions.assertTrue(dts.contains("calendar: DateAsNumber;")); +- Assertions.assertTrue(dts.contains("type DateAsNumber = number;")); ++ public void testDateAsNumber() { ++ final String dts = new TypeScriptGenerator(settings(DateMapping.asNumber, "AsNumber")).generateTypeScript(Input.from(Dates.class)); ++ Assert.assertTrue(dts.contains("date: DateAsNumber;")); ++ Assert.assertTrue(dts.contains("dateList: DateAsNumber[];")); ++ Assert.assertTrue(dts.contains("datesMap: { [index: string]: DateAsNumber[] };")); ++ Assert.assertTrue(dts.contains("dates: DateAsNumber[];")); ++ Assert.assertTrue(dts.contains("type DateAsNumber = number;")); + } + + @Test +- public void testDateAsString_forJavaUtilDate() { +- final Settings settings = TestUtils.settings(); +- settings.mapDate = DateMapping.asString; +- final String dts = new TypeScriptGenerator(settings).generateTypeScript(Input.from(Dates.class)); +- Assertions.assertTrue(dts.contains("date: DateAsString;")); +- Assertions.assertTrue(dts.contains("dateList: DateAsString[];")); +- Assertions.assertTrue(dts.contains("datesMap: { [index: string]: DateAsString[] };")); +- Assertions.assertTrue(dts.contains("dates: DateAsString[];")); +- Assertions.assertTrue(dts.contains("calendar: DateAsString;")); +- Assertions.assertTrue(dts.contains("type DateAsString = string;")); +- } +- +- @Test +- public void testDateAsString_forJava8DateTime() { +- final Settings settings = TestUtils.settings(); +- settings.mapDate = DateMapping.asString; +- final String dts = new TypeScriptGenerator(settings).generateTypeScript(Input.from(Java8Dates.class)); +- Assertions.assertTrue(dts.contains("date: DateAsString;")); +- Assertions.assertTrue(dts.contains("dateList: DateAsString[];")); +- Assertions.assertTrue(dts.contains("datesMap: { [index: string]: DateAsString[] };")); +- Assertions.assertTrue(dts.contains("dates: DateAsString[];")); +- Assertions.assertTrue(dts.contains("type DateAsString = string;")); ++ public void testDateAsString() { ++ final String dts = new TypeScriptGenerator(settings(DateMapping.asString, "AsString")).generateTypeScript(Input.from(Dates.class)); ++ Assert.assertTrue(dts.contains("date: DateAsString;")); ++ Assert.assertTrue(dts.contains("dateList: DateAsString[];")); ++ Assert.assertTrue(dts.contains("datesMap: { [index: string]: DateAsString[] };")); ++ Assert.assertTrue(dts.contains("dates: DateAsString[];")); ++ Assert.assertTrue(dts.contains("type DateAsString = string;")); + } + +- @Test +- public void testJava8DateWithJackson2CustomSerialization() { ++ private static Settings settings(DateMapping mapDate, String namespace) { + final Settings settings = TestUtils.settings(); +- settings.customTypeMappings = Collections.singletonMap("java.time.LocalDate", "[number, number, number]"); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(Java8Jackson2Dates.class)); +- Assertions.assertTrue(output.contains("date: [number, number, number];")); +- } +- +- public static void main(String[] args) throws JsonProcessingException { +- final ObjectMapper objectMapper = new ObjectMapper() +- .registerModule(new JavaTimeModule()) +- .configure(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false); +- final Clock clock = Clock.fixed(Instant.parse("2017-09-02T19:11:00Z"), ZoneId.systemDefault()); +- System.out.println(objectMapper.writeValueAsString(new Date())); +- System.out.println(objectMapper.writeValueAsString(Calendar.getInstance())); +- System.out.println(objectMapper.writeValueAsString(Instant.now(clock))); +- System.out.println(objectMapper.writeValueAsString(LocalDate.now(clock))); +- System.out.println(objectMapper.writeValueAsString(LocalDateTime.now(clock))); +- System.out.println(objectMapper.writeValueAsString(LocalTime.now(clock))); +- System.out.println(objectMapper.writeValueAsString(OffsetDateTime.now(clock))); +- System.out.println(objectMapper.writeValueAsString(OffsetTime.now(clock))); +- System.out.println(objectMapper.writeValueAsString(Year.now(clock))); +- System.out.println(objectMapper.writeValueAsString(YearMonth.now(clock))); +- System.out.println(objectMapper.writeValueAsString(ZonedDateTime.now(clock))); ++ settings.namespace = namespace; ++ settings.mapDate = mapDate; ++ return settings; + } + + } +@@ -110,16 +51,4 @@ class Dates { + public List dateList; + public Map> datesMap; + public Date[] dates; +- public Calendar calendar; +-} +- +-class Java8Dates { +- public LocalDateTime date; +- public List dateList; +- public Map> datesMap; +- public LocalDateTime[] dates; +-} +- +-class Java8Jackson2Dates { +- public LocalDate date; + } +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/DecoratorsTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/DecoratorsTest.java +deleted file mode 100644 +index f5ff243fb..000000000 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/DecoratorsTest.java ++++ /dev/null +@@ -1,136 +0,0 @@ +- +-package cz.habarta.typescript.generator; +- +-import cz.habarta.typescript.generator.compiler.ModelCompiler; +-import cz.habarta.typescript.generator.compiler.TsModelTransformer; +-import cz.habarta.typescript.generator.emitter.Emitter; +-import cz.habarta.typescript.generator.emitter.EmitterExtensionFeatures; +-import cz.habarta.typescript.generator.emitter.TsBeanModel; +-import cz.habarta.typescript.generator.emitter.TsBooleanLiteral; +-import cz.habarta.typescript.generator.emitter.TsDecorator; +-import cz.habarta.typescript.generator.emitter.TsIdentifierReference; +-import cz.habarta.typescript.generator.emitter.TsMethodModel; +-import cz.habarta.typescript.generator.emitter.TsModel; +-import cz.habarta.typescript.generator.emitter.TsPropertyModel; +-import cz.habarta.typescript.generator.emitter.TsStringLiteral; +-import cz.habarta.typescript.generator.parser.Model; +-import java.io.StringWriter; +-import java.util.Arrays; +-import java.util.Collections; +-import java.util.List; +-import java.util.stream.Collectors; +-import org.junit.jupiter.api.Assertions; +-import org.junit.jupiter.api.Test; +- +- +-public class DecoratorsTest { +- +- @Test +- public void testDecoratorOnClassAndProperty() { +- final Settings settings = TestUtils.settings(); +- settings.outputFileType = TypeScriptFileType.implementationFile; +- settings.outputKind = TypeScriptOutputKind.module; +- settings.mapClasses = ClassMapping.asClasses; +- settings.importDeclarations.add("import { JsonObject, JsonProperty } from \"json2typescript\""); +- settings.extensions.add(new ClassNameDecoratorExtension()); +- settings.optionalProperties = OptionalProperties.useLibraryDefinition; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(City.class)); +- Assertions.assertTrue(output.contains("@JsonObject(\"City\")")); +- Assertions.assertTrue(output.contains("@JsonProperty(\"name\", String)")); +- } +- +- private static class ClassNameDecoratorExtension extends Extension { +- +- @Override +- public EmitterExtensionFeatures getFeatures() { +- final EmitterExtensionFeatures features = new EmitterExtensionFeatures(); +- features.generatesRuntimeCode = true; +- return features; +- } +- +- @Override +- public List getTransformers() { +- return Arrays.asList( +- new TransformerDefinition(ModelCompiler.TransformationPhase.BeforeEnums, new TsModelTransformer() { +- @Override +- public TsModel transformModel(Context context, TsModel model) { +- return model.withBeans(model.getBeans().stream() +- .map(ClassNameDecoratorExtension.this::decorateClass) +- .collect(Collectors.toList()) +- ); +- } +- }) +- ); +- } +- +- private TsBeanModel decorateClass(TsBeanModel bean) { +- if (!bean.isClass()) { +- return bean; +- } +- return bean +- .withDecorators(Arrays.asList(new TsDecorator( +- new TsIdentifierReference("JsonObject"), +- Arrays.asList(new TsStringLiteral(bean.getOrigin().getSimpleName())) +- ))) +- .withProperties(bean.getProperties().stream() +- .map(ClassNameDecoratorExtension.this::decorateProperty) +- .collect(Collectors.toList()) +- ); +- } +- +- private TsPropertyModel decorateProperty(TsPropertyModel property) { +- return property +- .withDecorators(Arrays.asList(new TsDecorator( +- new TsIdentifierReference("JsonProperty"), +- Arrays.asList( +- new TsStringLiteral(property.getName()), +- new TsIdentifierReference("String") +- ) +- ))); +- } +- +- } +- +- public static class City { +- public String name; +- } +- +- @Test +- public void testDecoratorsOnParameterAndMethod() { +- final Settings settings = TestUtils.settings(); +- settings.outputFileType = TypeScriptFileType.implementationFile; +- settings.outputKind = TypeScriptOutputKind.module; +- settings.mapClasses = ClassMapping.asClasses; +- settings.generateConstructors = true; +- final TypeScriptGenerator typeScriptGenerator = new TypeScriptGenerator(settings); +- final Model model = typeScriptGenerator.getModelParser().parseModel(City.class); +- final TsModel tsModel = typeScriptGenerator.getModelCompiler().javaToTypeScript(model); +- final TsBeanModel bean = tsModel.getBean(City.class); +- final TsBeanModel bean2 = bean +- .withConstructor(bean.getConstructor() +- .withParameters(Arrays.asList(bean.getConstructor().getParameters().get(0) +- .withDecorators(Arrays.asList(new TsDecorator( +- new TsIdentifierReference("Inject"), +- Arrays.asList(new TsStringLiteral("token")) +- ))) +- )) +- ) +- .withMethods(Arrays.asList(new TsMethodModel("greet", null, null, Collections.emptyList(), TsType.Void, Collections.emptyList(), null) +- .withDecorators(Arrays.asList(new TsDecorator( +- new TsIdentifierReference("enumerable"), +- Arrays.asList(new TsBooleanLiteral(false)) +- ))) +- )); +- final TsModel tsModel2 = tsModel.withBeans(Arrays.asList(bean2)); +- final String output = emit(typeScriptGenerator.getEmitter(), tsModel2); +- Assertions.assertTrue(output.contains("@Inject(\"token\")")); +- Assertions.assertTrue(output.contains("@enumerable(false)")); +- } +- +- private static String emit(Emitter emitter, TsModel model) { +- final StringWriter writer = new StringWriter(); +- emitter.emit(model, writer, "test", true); +- return writer.toString(); +- } +- +-} +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/DefaultTypeProcessorTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/DefaultTypeProcessorTest.java +index 355658b8b..313c6706e 100644 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/DefaultTypeProcessorTest.java ++++ b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/DefaultTypeProcessorTest.java +@@ -3,29 +3,21 @@ package cz.habarta.typescript.generator; + import cz.habarta.typescript.generator.compiler.SymbolTable; + import java.math.BigDecimal; + import java.util.List; +-import java.util.OptionalDouble; +-import java.util.OptionalInt; +-import java.util.OptionalLong; + import java.util.UUID; +-import org.junit.jupiter.api.Assertions; +-import static org.junit.jupiter.api.Assertions.assertEquals; +-import org.junit.jupiter.api.Test; ++import static org.junit.Assert.assertEquals; ++import org.junit.Test; + +-@SuppressWarnings("unused") + public class DefaultTypeProcessorTest { + + @Test + public void testTypeConversion() { + TypeProcessor converter = new DefaultTypeProcessor(); + final TypeProcessor.Context context = getTestContext(converter); +- assertEquals(context.getSymbol(A.class).getFullName(), converter.processType(A.class, context).getTsType().toString()); +- assertEquals(context.getSymbol(B.class).getFullName(), converter.processType(B.class, context).getTsType().toString()); ++ assertEquals(context.getSymbol(A.class).toString(), converter.processType(A.class, context).getTsType().toString()); ++ assertEquals(context.getSymbol(B.class).toString(), converter.processType(B.class, context).getTsType().toString()); + assertEquals(TsType.Void, converter.processType(void.class, context).getTsType()); + assertEquals(TsType.Number, converter.processType(BigDecimal.class, context).getTsType()); + assertEquals(TsType.String, converter.processType(UUID.class, context).getTsType()); +- assertEquals(TsType.Number.optional(), converter.processType(OptionalInt.class, context).getTsType()); +- assertEquals(TsType.Number.optional(), converter.processType(OptionalLong.class, context).getTsType()); +- assertEquals(TsType.Number.optional(), converter.processType(OptionalDouble.class, context).getTsType()); + } + + @Test +@@ -52,14 +44,7 @@ public class DefaultTypeProcessorTest { + } + + public static TypeProcessor.Context getTestContext(final TypeProcessor typeProcessor) { +- return new TypeProcessor.Context(new SymbolTable(TestUtils.settings()), typeProcessor, null); +- } +- +- @Test +- public void testRawTypes() { +- final String output = new TypeScriptGenerator(TestUtils.settings()).generateTypeScript(Input.from(DummyBean.class)); +- Assertions.assertTrue(output.contains("rawListProperty: any[]")); +- Assertions.assertTrue(output.contains("rawMapProperty: { [index: string]: any }")); ++ return new TypeProcessor.Context(new SymbolTable(TestUtils.settings()), typeProcessor); + } + + } +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/DeprecationUtilsTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/DeprecationUtilsTest.java +deleted file mode 100644 +index 20f9f1999..000000000 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/DeprecationUtilsTest.java ++++ /dev/null +@@ -1,40 +0,0 @@ +- +-package cz.habarta.typescript.generator; +- +-import cz.habarta.typescript.generator.util.DeprecationUtils; +-import org.junit.jupiter.api.Assertions; +-import org.junit.jupiter.api.Test; +- +- +-public class DeprecationUtilsTest { +- +- @Deprecated +- private String a; +- +- @Deprecated(since = "2.28") +- private String b; +- +- @Deprecated(forRemoval = true) +- private String c; +- +- @Deprecated(since = "2.28", forRemoval = true) +- private String d; +- +- @Test +- public void test() { +- Assertions.assertEquals("@deprecated", getDeprecationText("a")); +- Assertions.assertEquals("@deprecated since 2.28", getDeprecationText("b")); +- Assertions.assertEquals("@deprecated for removal", getDeprecationText("c")); +- Assertions.assertEquals("@deprecated since 2.28, for removal", getDeprecationText("d")); +- } +- +- private static String getDeprecationText(String fieldName) { +- try { +- final Deprecated deprecated = DeprecationUtilsTest.class.getDeclaredField(fieldName).getAnnotation(Deprecated.class); +- return DeprecationUtils.convertToComment(deprecated); +- } catch (ReflectiveOperationException e) { +- throw new RuntimeException(e); +- } +- } +- +-} +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/DummyBean.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/DummyBean.java +index 5842b95db..d31861774 100644 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/DummyBean.java ++++ b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/DummyBean.java +@@ -1,10 +1,7 @@ + + package cz.habarta.typescript.generator; + +-import java.util.ArrayList; +-import java.util.Date; +-import java.util.List; +-import java.util.Map; ++import java.util.*; + + + @SuppressWarnings("rawtypes") +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/DummyClassEnum.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/DummyClassEnum.java +deleted file mode 100644 +index 12e88a1ac..000000000 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/DummyClassEnum.java ++++ /dev/null +@@ -1,26 +0,0 @@ +-package cz.habarta.typescript.generator; +- +-import com.fasterxml.jackson.annotation.JsonCreator; +-import com.fasterxml.jackson.annotation.JsonValue; +-import java.util.Objects; +- +-public class DummyClassEnum { +- +- public static final DummyClassEnum ATYPE = new DummyClassEnum("ATYPE"); +- public static final DummyClassEnum BTYPE = new DummyClassEnum("BTYPE"); +- public static final DummyClassEnum CTYPE = new DummyClassEnum("CTYPE"); +- +- private final String value; +- +- @JsonCreator +- public DummyClassEnum(String value) { +- this.value = Objects.requireNonNull(value); +- } +- +- @JsonValue +- public String getValue() { return value; } +- +- @Override +- public String toString() { return value; } +- +-} +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/DummyEnum.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/DummyEnum.java +index c23f122b6..220f43503 100644 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/DummyEnum.java ++++ b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/DummyEnum.java +@@ -6,20 +6,5 @@ package cz.habarta.typescript.generator; + * Documentation for DummyEnum. + */ + public enum DummyEnum { +- +- /** +- * ff0000 +- */ +- Red, +- +- /** +- * 00ff00 +- */ +- Green, +- +- /** +- * 0000ff +- */ +- Blue; +- ++ Red, Green, Blue + } +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/DummyMixedCaseEnum.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/DummyMixedCaseEnum.java +deleted file mode 100644 +index 6e45d7ce9..000000000 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/DummyMixedCaseEnum.java ++++ /dev/null +@@ -1,7 +0,0 @@ +-package cz.habarta.typescript.generator; +- +-public enum DummyMixedCaseEnum { +- camelCaseType, +- PascalCaseType, +- UPPER_CASE_TYPE +-} +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/DuplicatePropertyTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/DuplicatePropertyTest.java +deleted file mode 100644 +index ef7ca3ce2..000000000 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/DuplicatePropertyTest.java ++++ /dev/null +@@ -1,54 +0,0 @@ +- +-package cz.habarta.typescript.generator; +- +-import com.fasterxml.jackson.annotation.JsonSubTypes; +-import com.fasterxml.jackson.annotation.JsonTypeInfo; +-import com.fasterxml.jackson.core.JsonProcessingException; +-import com.fasterxml.jackson.databind.ObjectMapper; +-import org.junit.jupiter.api.Assertions; +-import org.junit.jupiter.api.Test; +- +- +-public class DuplicatePropertyTest { +- +- public static class DuplicateKindUsage { +- public DuplicateKind duplicateKind; +- } +- +- @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "kind", include = JsonTypeInfo.As.PROPERTY) +- @JsonSubTypes({ +- @JsonSubTypes.Type(value = DuplicateKind1.class, name = "kind_1"), +- @JsonSubTypes.Type(value = DuplicateKind2.class, name = "kind_2"), +- }) +- public static abstract class DuplicateKind { +-// public String kind; +- } +- +- public static class DuplicateKind1 extends DuplicateKind { +- public String kind; +- } +- +- public static class DuplicateKind2 extends DuplicateKind { +- } +- +- @Test +- public void testJacksonDuplicateProperty() throws JsonProcessingException { +- final DuplicateKind1 object = new DuplicateKind1(); +- object.kind = "kind_invalid"; +- final String json = new ObjectMapper().writeValueAsString(object); +- // {"kind":"kind_1","kind":"kind_invalid"} +- Assertions.assertTrue(json.contains("\"kind\":\"kind_1\"")); +- Assertions.assertTrue(json.contains("\"kind\":\"kind_invalid\"")); +- } +- +- @Test +- public void testDuplicateProperty() throws JsonProcessingException { +- final Settings settings = TestUtils.settings(); +- settings.outputKind = TypeScriptOutputKind.module; +- settings.outputFileType = TypeScriptFileType.implementationFile; +- settings.mapClasses = ClassMapping.asClasses; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(DuplicateKindUsage.class)); +- Assertions.assertTrue(!output.contains("DuplicateKindUnion")); +- } +- +-} +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/EnumConstantsExtensionTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/EnumConstantsExtensionTest.java +new file mode 100644 +index 000000000..6b0519533 +--- /dev/null ++++ b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/EnumConstantsExtensionTest.java +@@ -0,0 +1,77 @@ ++ ++package cz.habarta.typescript.generator; ++ ++import cz.habarta.typescript.generator.EnumTest.Direction; ++import cz.habarta.typescript.generator.compiler.ModelCompiler; ++import cz.habarta.typescript.generator.emitter.EmitterExtension; ++import cz.habarta.typescript.generator.emitter.TsModel; ++import cz.habarta.typescript.generator.ext.EnumConstantsExtension; ++import cz.habarta.typescript.generator.parser.Jackson2Parser; ++import cz.habarta.typescript.generator.parser.Model; ++import java.util.ArrayList; ++import java.util.List; ++import org.junit.Assert; ++import org.junit.Test; ++ ++ ++public class EnumConstantsExtensionTest { ++ ++ @Test ++ public void basicTest() { ++ final List lines = new ArrayList<>(); ++ final EmitterExtension.Writer writer = new EmitterExtension.Writer() { ++ @Override ++ public void writeIndentedLine(String line) { ++ lines.add(line); ++ } ++ }; ++ final Settings settings = new Settings(); ++ settings.sortDeclarations = true; ++ final TypeProcessor typeProcessor = new DefaultTypeProcessor(); ++ final Model model = new Jackson2Parser(settings, typeProcessor).parseModel(Direction.class); ++ final TsModel tsModel = new ModelCompiler(settings, typeProcessor).javaToTypeScript(model); ++ new EnumConstantsExtension().emitElements(writer, settings, false, tsModel); ++ String indent = settings.indentString; ++ Assert.assertEquals(7, lines.size()); ++ Assert.assertEquals("", lines.get(0)); ++ Assert.assertEquals("const Direction = {", lines.get(1)); ++ Assert.assertEquals(indent + "North: \"North\",", lines.get(2)); ++ Assert.assertEquals(indent + "East: \"East\",", lines.get(3)); ++ Assert.assertEquals(indent + "South: \"South\",", lines.get(4)); ++ Assert.assertEquals(indent + "West: \"West\",", lines.get(5)); ++ Assert.assertEquals("}", lines.get(6)); ++ } ++ ++ @Test ++ public void testInTypeScriptGenerator() { ++ final Settings settings = new Settings(); ++ settings.newline = "\n"; ++ settings.outputFileType = TypeScriptFileType.implementationFile; ++ settings.outputKind = TypeScriptOutputKind.global; ++ settings.jsonLibrary = JsonLibrary.jackson2; ++ settings.extensions.add(new EnumConstantsExtension()); ++ final String actual = new TypeScriptGenerator(settings).generateTypeScript(Input.from(Direction.class)); ++ Assert.assertTrue(actual.contains("const Direction")); ++ Assert.assertTrue(actual.contains("North")); ++ } ++ ++ @Test ++ public void testSorting() { ++ final Settings settings = new Settings(); ++ settings.sortDeclarations = false; ++ settings.newline = "\n"; ++ settings.outputFileType = TypeScriptFileType.implementationFile; ++ settings.outputKind = TypeScriptOutputKind.global; ++ settings.jsonLibrary = JsonLibrary.jackson2; ++ settings.extensions.add(new EnumConstantsExtension()); ++ Assert.assertNotEquals(new TypeScriptGenerator(settings).generateTypeScript(Input.from(Emotions.class, Direction.class)), ++ new TypeScriptGenerator(settings).generateTypeScript(Input.from(Direction.class, Emotions.class))); ++ settings.sortDeclarations = true; ++ Assert.assertEquals(new TypeScriptGenerator(settings).generateTypeScript(Input.from(Emotions.class, Direction.class)), ++ new TypeScriptGenerator(settings).generateTypeScript(Input.from(Direction.class, Emotions.class))); ++ } ++ ++ public enum Emotions { ++ Happy ++ } ++} +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/EnumTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/EnumTest.java +index e6204e199..e2710962e 100644 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/EnumTest.java ++++ b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/EnumTest.java +@@ -1,20 +1,12 @@ + + package cz.habarta.typescript.generator; + +-import com.fasterxml.jackson.annotation.JsonFormat; + import com.fasterxml.jackson.annotation.JsonProperty; + import com.fasterxml.jackson.annotation.JsonValue; +-import com.fasterxml.jackson.databind.ObjectMapper; +-import cz.habarta.typescript.generator.ext.ClassEnumExtension; +-import java.util.Arrays; +-import java.util.Collections; +-import java.util.List; +-import java.util.Map; +-import static org.junit.jupiter.api.Assertions.assertEquals; +-import static org.junit.jupiter.api.Assertions.assertTrue; +-import org.junit.jupiter.api.Test; ++import static org.junit.Assert.*; ++import org.junit.Test; ++ + +-@SuppressWarnings("unused") + public class EnumTest { + + @Test +@@ -79,91 +71,6 @@ public class EnumTest { + assertEquals(expected, output); + } + +- @Test +- public void testEnumAsEnum() { +- final Settings settings = TestUtils.settings(); +- settings.mapEnum = EnumMapping.asEnum; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(AClass.class)); +- final String expected = ( +- "interface AClass {\n" + +- " direction: Direction;\n" + +- "}\n" + +- "\n" + +- "declare const enum Direction {\n" + +- " North = 'North',\n" + +- " East = 'East',\n" + +- " South = 'South',\n" + +- " West = 'West',\n" + +- "}" +- ).replace("'", "\""); +- assertEquals(expected.trim(), output.trim()); +- } +- +- @Test +- public void testEnumsWithClassEnumPattern() { +- final Settings settings = TestUtils.settings(); +- settings.mapEnum = EnumMapping.asEnum; +- settings.jsonLibrary = JsonLibrary.jackson2; +- final ClassEnumExtension classEnumExtension = new ClassEnumExtension(); +- classEnumExtension.setConfiguration(Collections.singletonMap("classEnumPattern", "Enum")); +- settings.extensions.add(classEnumExtension); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(DummyEnum.class, DummyClassEnum.class)); +- final String expected = ( +- "\ndeclare const enum DummyClassEnum {\n" + +- " ATYPE = 'ATYPE',\n" + +- " BTYPE = 'BTYPE',\n" + +- " CTYPE = 'CTYPE',\n" + +- "}\n" + +- "\ndeclare const enum DummyEnum {\n" + +- " Red = 'Red',\n" + +- " Green = 'Green',\n" + +- " Blue = 'Blue',\n" + +- "}\n" +- ).replace("'", "\""); +- assertEquals(expected.trim(), output.trim()); +- } +- +- @Test +- public void testEnumsAsPascalCaseWithClassEnumPattern() { +- final Settings settings = TestUtils.settings(); +- settings.mapEnum = EnumMapping.asEnum; +- settings.enumMemberCasing = IdentifierCasing.PascalCase; +- settings.jsonLibrary = JsonLibrary.jackson2; +- final ClassEnumExtension classEnumExtension = new ClassEnumExtension(); +- classEnumExtension.setConfiguration(Collections.singletonMap("classEnumPattern", "Enum")); +- settings.extensions.add(classEnumExtension); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(DummyEnum.class, DummyClassEnum.class, DummyMixedCaseEnum.class)); +- final String expected = ( +- "\ndeclare const enum DummyClassEnum {\n" + +- " Atype = 'ATYPE',\n" + +- " Btype = 'BTYPE',\n" + +- " Ctype = 'CTYPE',\n" + +- "}\n" + +- "\ndeclare const enum DummyEnum {\n" + +- " Red = 'Red',\n" + +- " Green = 'Green',\n" + +- " Blue = 'Blue',\n" + +- "}\n" + +- "\ndeclare const enum DummyMixedCaseEnum {\n" + +- " CamelCaseType = 'camelCaseType',\n" + +- " PascalCaseType = 'PascalCaseType',\n" + +- " UpperCaseType = 'UPPER_CASE_TYPE',\n" + +- "}\n" +- ).replace("'", "\""); +- assertEquals(expected.trim(), output.trim()); +- } +- +- @Test +- public void testEnumsAsCamelCase() { +- final Settings settings = TestUtils.settings(); +- settings.mapEnum = EnumMapping.asNumberBasedEnum; +- settings.enumMemberCasing = IdentifierCasing.camelCase; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(DummyMixedCaseEnum.class)); +- assertTrue(output.contains("camelCaseType")); +- assertTrue(output.contains("pascalCaseType")); +- assertTrue(output.contains("upperCaseType")); +- } +- + @Test + public void testEnumWithJsonPropertyAnnotations() { + final Settings settings = TestUtils.settings(); +@@ -176,36 +83,12 @@ public class EnumTest { + } + + @Test +- public void testEnumWithJsonValueMethodAnnotation() { ++ public void testEnumWithJsonValueAnnotation() { + final Settings settings = TestUtils.settings(); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(SideWithJsonValueMethodAnnotation.class)); ++ final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(SideWithJsonValueAnnotations.class)); + final String expected = ( + "\n" + +- "type SideWithJsonValueMethodAnnotation = 'left-side' | 'right-side';\n" +- ).replace("'", "\""); +- assertEquals(expected, output); +- } +- +- @Test +- public void testEnumWithJsonValueFieldAnnotation() { +- final Settings settings = TestUtils.settings(); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(SideWithJsonValueFieldAnnotation.class)); +- final String expected = ( +- "\n" + +- "type SideWithJsonValueFieldAnnotation = 'left-side' | 'right-side';\n" +- ).replace("'", "\""); +- assertEquals(expected, output); +- } +- +- @Test +- public void testEnumUsingToString() { +- final Settings settings = TestUtils.settings(); +- settings.jackson2Configuration = new Jackson2ConfigurationResolved(); +- settings.jackson2Configuration.enumsUsingToString = true; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(SideUsingToString.class)); +- final String expected = ( +- "\n" + +- "type SideUsingToString = 'toString:left-side' | 'toString:right-side';\n" ++ "type SideWithJsonValueAnnotations = 'left-side' | 'right-side';\n" + ).replace("'", "\""); + assertEquals(expected, output); + } +@@ -221,53 +104,6 @@ public class EnumTest { + assertEquals(expected, output); + } + +- @Test +- public void testExcludeObjectEnum() { +- final Settings settings = TestUtils.settings(); +- settings.setExcludeFilter(Arrays.asList(StatusType.class.getName()), Arrays.asList()); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(ClassWithObjectEnum.class, StatusType.class)); +- assertTrue(!output.contains("StatusType")); +- } +- +- @Test +- public void testObjectEnum() { +- final Settings settings = TestUtils.settings(); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(StatusType.class)); +- final String expected = "" + +- "interface StatusType {\n" + +- " code: number;\n" + +- " label: string;\n" + +- "}"; +- assertEquals(expected.trim(), output.trim()); +- } +- +- @Test +- public void testJavaLangEnum1() { +- final Settings settings = TestUtils.settings(); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(Child.NoEnumFactory.class)); +- assertTrue(output.contains("interface Enum")); +- } +- +- private static @interface Child { +- public static class NoEnumFactory implements IBaseEnumFactory> { +- } +- } +- +- private static interface IBaseEnumFactory { +- } +- +- @Test +- public void testJavaLangEnum2() { +- final Settings settings = TestUtils.settings(); +- settings.setExcludeFilter(Arrays.asList(Enum.class.getName()), null); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(ClassWithEnum.class)); +- assertTrue(output.contains("enumA: any")); +- } +- +- private static class ClassWithEnum { +- public Enum enumA; +- } +- + private static class AClass { + public Direction direction; + } +@@ -286,7 +122,7 @@ public class EnumTest { + Right + } + +- enum SideWithJsonValueMethodAnnotation { ++ enum SideWithJsonValueAnnotations { + @JsonProperty("@JsonProperty ignored since @JsonValue has higher precedence") + Left("left-side"), + @JsonProperty("@JsonProperty ignored since @JsonValue has higher precedence") +@@ -294,7 +130,7 @@ public class EnumTest { + + private final String jsonValue; + +- private SideWithJsonValueMethodAnnotation(String jsonValue) { ++ private SideWithJsonValueAnnotations(String jsonValue) { + this.jsonValue = jsonValue; + } + +@@ -304,173 +140,7 @@ public class EnumTest { + } + } + +- enum SideWithJsonValueFieldAnnotation { +- @JsonProperty("@JsonProperty ignored since @JsonValue has higher precedence") +- Left("left-side"), +- @JsonProperty("@JsonProperty ignored since @JsonValue has higher precedence") +- Right("right-side"); +- +- @JsonValue +- private final String jsonValue; +- +- private SideWithJsonValueFieldAnnotation(String jsonValue) { +- this.jsonValue = jsonValue; +- } +- +- @Override +- public String toString() { +- return "AAA " + name(); +- } +- } +- +- enum SideUsingToString { +- @JsonProperty("@JsonProperty ignored since toString() has higher precedence") +- Left("left-side"), +- @JsonProperty("@JsonProperty ignored since toString() has higher precedence") +- Right("right-side"); +- +- private final String jsonValue; +- +- private SideUsingToString(String jsonValue) { +- this.jsonValue = jsonValue; +- } +- +- @Override +- public String toString() { +- return "toString:" + jsonValue; +- } +- } +- + enum EmptyEnum { + } + +- static class ClassWithObjectEnum { +- public StatusType status; +- public List> statuses; +- } +- +- @JsonFormat(shape = JsonFormat.Shape.OBJECT) +- public enum StatusType { +- GOOD(0, "Good"), +- FULL(1, "Full"); +- +- private final int code; +- private final String label; +- +- private StatusType(int code, String label) { +- this.label = label; +- this.code = code; +- } +- +- public int getCode() { +- return code; +- } +- +- public String getLabel() { +- return label; +- } +- } +- +- @Test +- public void testEnumMapKeys_asUnion() { +- final Settings settings = TestUtils.settings(); +- settings.mapEnum = EnumMapping.asUnion; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(ClassWithMapWithEnumKeys.class)); +- assertTrue(output.contains("labels: { [P in Direction]?: string }")); +- assertTrue(output.contains("type Direction =")); +- } +- +- @Test +- public void testEnumMapKeys_asInlineUnion() { +- final Settings settings = TestUtils.settings(); +- settings.mapEnum = EnumMapping.asInlineUnion; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(ClassWithMapWithEnumKeys.class)); +- assertTrue(output.contains("labels: { [P in 'North' | 'East' | 'South' | 'West']?: string }".replace('\'', '"'))); +- assertTrue(!output.contains("Direction")); +- } +- +- @Test +- public void testEnumMapKeys_asEnum() { +- final Settings settings = TestUtils.settings(); +- settings.mapEnum = EnumMapping.asEnum; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(ClassWithMapWithEnumKeys.class)); +- assertTrue(output.contains("labels: { [P in Direction]?: string }")); +- assertTrue(output.contains("enum Direction {")); +- } +- +- @Test +- public void testEnumMapKeys_asNumberBasedEnum() { +- final Settings settings = TestUtils.settings(); +- settings.mapEnum = EnumMapping.asNumberBasedEnum; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(ClassWithMapWithEnumKeys.class)); +- assertTrue(output.contains("labels: { [index: string]: string }")); +- } +- +- static class ClassWithMapWithEnumKeys { +- public Map labels; +- } +- +- @Test +- public void testEnumMapKeys_MixedEnum() { +- final Settings settings = TestUtils.settings(); +- settings.mapEnum = EnumMapping.asUnion; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(ClassWithMixedEnum.class)); +- assertTrue(output.contains("mixedEnumMap: { [P in MixedEnum]?: string }")); +- assertTrue(output.contains("MixedEnum")); +- } +- +- public static enum MixedEnum { +- +- NUMBER(42), +- STRING("foo"); +- +- private final Object jsonValue; +- +- private MixedEnum(Object jsonValue) { +- this.jsonValue = jsonValue; +- } +- +- @JsonValue +- public Object getJsonValue() { +- return this.jsonValue; +- } +- } +- +- static class ClassWithMixedEnum { +- public MixedEnum mixedEnum; +- public Map mixedEnumMap; +- } +- +- @Test +- public void testEnumMapKeys_NumberEnum() { +- final Settings settings = TestUtils.settings(); +- settings.mapEnum = EnumMapping.asNumberBasedEnum; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(ClassWithNumberEnum.class)); +- assertTrue(output.contains("numberEnumMap: { [index: string]: string }")); +- assertTrue(output.contains("NumberEnum")); +- } +- +- @JsonFormat(shape = JsonFormat.Shape.NUMBER_INT) +- public static enum NumberEnum { +- VALUE0, +- VALUE1; +- } +- +- static class ClassWithNumberEnum { +- public NumberEnum numberEnum; +- public Map numberEnumMap; +- } +- +- public static void main(String[] args) throws Exception { +- final ClassWithMixedEnum classWithMixedEnum = new ClassWithMixedEnum(); +- classWithMixedEnum.mixedEnum = MixedEnum.NUMBER; +- classWithMixedEnum.mixedEnumMap = Collections.singletonMap(MixedEnum.NUMBER, "bar"); +- System.out.println(new ObjectMapper().writeValueAsString(classWithMixedEnum)); +- +- final ClassWithNumberEnum classWithNumberEnum = new ClassWithNumberEnum(); +- classWithNumberEnum.numberEnum = NumberEnum.VALUE0; +- classWithNumberEnum.numberEnumMap = Collections.singletonMap(NumberEnum.VALUE0, "bar"); +- System.out.println(new ObjectMapper().writeValueAsString(classWithNumberEnum)); +- } +- + } +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/ExtensionTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/ExtensionTest.java +deleted file mode 100644 +index fbf4af8ef..000000000 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/ExtensionTest.java ++++ /dev/null +@@ -1,62 +0,0 @@ +-package cz.habarta.typescript.generator; +- +-import cz.habarta.typescript.generator.compiler.ModelCompiler; +-import cz.habarta.typescript.generator.compiler.ModelCompiler.TransformationPhase; +-import cz.habarta.typescript.generator.compiler.ModelTransformer; +-import cz.habarta.typescript.generator.compiler.SymbolTable; +-import cz.habarta.typescript.generator.emitter.EmitterExtensionFeatures; +-import cz.habarta.typescript.generator.emitter.TsModel; +-import cz.habarta.typescript.generator.parser.BeanModel; +-import cz.habarta.typescript.generator.parser.Jackson2Parser; +-import cz.habarta.typescript.generator.parser.Model; +-import java.util.ArrayList; +-import java.util.Collections; +-import java.util.List; +-import org.junit.jupiter.api.Assertions; +-import org.junit.jupiter.api.Test; +- +-public class ExtensionTest { +- +- @Test +- public void testBeforeTsExtension() throws Exception { +- final Settings settings = TestUtils.settings(); +- +- settings.extensions.add(new Extension() { +- +- @Override +- public EmitterExtensionFeatures getFeatures() { +- return new EmitterExtensionFeatures(); +- } +- +- @Override +- public List getTransformers() { +- return Collections.singletonList(new TransformerDefinition(TransformationPhase.BeforeTsModel, new ModelTransformer() { +- @Override +- public Model transformModel(SymbolTable symbolTable, Model model) { +- List beans = new ArrayList<>(model.getBeans()); +- +- BeanModel implementationBean = model.getBean(Implementation.class); +- BeanModel beanWithComments = implementationBean.withComments(Collections.singletonList("My new comment")); +- +- beans.remove(implementationBean); +- beans.add(beanWithComments); +- +- return new Model(beans, model.getEnums(), model.getRestApplications()); +- } +- })); +- } +- }); +- +- final Jackson2Parser jacksonParser = new Jackson2Parser(settings, new DefaultTypeProcessor()); +- final Model model = jacksonParser.parseModel(Implementation.class); +- final ModelCompiler modelCompiler = new TypeScriptGenerator(settings).getModelCompiler(); +- +- final TsModel result = modelCompiler.javaToTypeScript(model); +- +- Assertions.assertEquals(1, result.getBean(Implementation.class).getComments().size()); +- Assertions.assertTrue(result.getBean(Implementation.class).getComments().get(0).contains("My new comment")); +- } +- +- private static class Implementation { } +- +-} +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/FullyQualifiedNamesTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/FullyQualifiedNamesTest.java +deleted file mode 100644 +index ba7677dbe..000000000 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/FullyQualifiedNamesTest.java ++++ /dev/null +@@ -1,97 +0,0 @@ +- +-package cz.habarta.typescript.generator; +- +-import cz.habarta.typescript.generator.p2.D; +-import org.junit.jupiter.api.Assertions; +-import org.junit.jupiter.api.Test; +- +- +-@SuppressWarnings("unused") +-public class FullyQualifiedNamesTest { +- +- @Test +- public void test() { +- final Settings settings = TestUtils.settings(); +- settings.outputFileType = TypeScriptFileType.implementationFile; +- settings.mapClasses = ClassMapping.asClasses; +- settings.mapPackagesToNamespaces = true; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(D.class)); +- final String expected = "" +- + "namespace cz.habarta.typescript.generator.p2 {\n" +- + "\n" +- + " export class D {\n" +- + " a: cz.habarta.typescript.generator.p1.A;\n" +- + " b: cz.habarta.typescript.generator.p2.B;\n" +- + " c: cz.habarta.typescript.generator.p1.C;\n" +- + " e: cz.habarta.typescript.generator.p1.E;\n" +- + " }\n" +- + "\n" +- + "}\n" +- + "\n" +- + "namespace cz.habarta.typescript.generator.p1 {\n" +- + "\n" +- + " export class A {\n" +- + " sa: string;\n" +- + " }\n" +- + "\n" +- + "}\n" +- + "\n" +- + "namespace cz.habarta.typescript.generator.p2 {\n" +- + "\n" +- + " export class B extends cz.habarta.typescript.generator.p1.A {\n" +- + " sb: string;\n" +- + " }\n" +- + "\n" +- + "}\n" +- + "\n" +- + "namespace cz.habarta.typescript.generator.p1 {\n" +- + "\n" +- + " export class C extends cz.habarta.typescript.generator.p2.B {\n" +- + " sc: string;\n" +- + " }\n" +- + "\n" +- + "}\n" +- + "\n" +- + "namespace cz.habarta.typescript.generator.p1 {\n" +- + "\n" +- + " export type E = \"Left\" | \"Right\";\n" +- + "\n" +- + "}"; +- Assertions.assertEquals(expected.trim(), output.trim()); +- } +- +- @Test +- public void testNested() { +- final Settings settings = TestUtils.settings(); +- settings.outputFileType = TypeScriptFileType.implementationFile; +- settings.mapClasses = ClassMapping.asClasses; +- settings.mapPackagesToNamespaces = true; +- settings.sortTypeDeclarations = true; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(Outer.Inner.class, Outer.class)); +- final String expected = "" +- + "namespace cz.habarta.typescript.generator.FullyQualifiedNamesTest {\n" +- + "\n" +- + " export class Outer {\n" +- + " outer: string;\n" +- + " }\n" +- + "\n" +- + "}\n" +- + "\n" +- + "namespace cz.habarta.typescript.generator.FullyQualifiedNamesTest.Outer {\n" +- + "\n" +- + " export class Inner {\n" +- + " inner: string;\n" +- + " }\n" +- + "\n" +- + "}\n"; +- Assertions.assertEquals(expected.trim(), output.trim()); +- } +- +- private static class Outer { +- public String outer; +- private static class Inner { +- public String inner; +- } +- } +- +-} +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/GenericCustomTypeMappingsTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/GenericCustomTypeMappingsTest.java +deleted file mode 100644 +index b0e566a61..000000000 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/GenericCustomTypeMappingsTest.java ++++ /dev/null +@@ -1,180 +0,0 @@ +- +-package cz.habarta.typescript.generator; +- +-import java.util.Collections; +-import java.util.Date; +-import java.util.List; +-import java.util.Map; +-import org.junit.jupiter.api.Assertions; +-import org.junit.jupiter.api.Test; +- +-@SuppressWarnings("unused") +-public class GenericCustomTypeMappingsTest { +- +- @Test +- public void testListWrapper() { +- final Settings settings = TestUtils.settings(); +- settings.customTypeNaming = Collections.singletonMap(ListWrapper1.class.getName(), "ListWrapper"); +- settings.customTypeMappings = Collections.singletonMap(ListWrapper2.class.getName() + "", "ListWrapper"); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(Class1.class)); +- Assertions.assertTrue(output.contains("list1: ListWrapper")); +- Assertions.assertTrue(output.contains("list2: ListWrapper")); +- } +- +- private static class Class1 { +- public ListWrapper1 list1; +- public ListWrapper2 list2; +- } +- +- private static class ListWrapper1 { +- public List values; +- } +- +- private static class ListWrapper2 { +- public List values; +- } +- +- @Test +- public void testMap() { +- final Settings settings = TestUtils.settings(); +- settings.customTypeMappings = Collections.singletonMap("java.util.Map", "Map"); +- settings.mapDate = DateMapping.asString; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(Class2.class)); +- Assertions.assertTrue(output.contains("someMap: Map")); +- Assertions.assertTrue(output.contains("dateMap: Map")); +- } +- +- private static class Class2 { +- public Map someMap; +- public Map dateMap; +- } +- +- @Test +- public void testGenericMappingToString() { +- final Settings settings = TestUtils.settings(); +- settings.customTypeMappings = Collections.singletonMap("cz.habarta.typescript.generator.GenericCustomTypeMappingsTest$IdRepresentation", "string"); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(MyEntityRepresentation.class)); +- Assertions.assertTrue(output.contains("id: string;")); +- Assertions.assertTrue(!output.contains("IdRepresentation")); +- } +- +- private static class MyEntityRepresentation { +- public IdRepresentation id; +- } +- +- private static class IdRepresentation { +- public String id; +- } +- +- @Test +- public void testInvalidGenerics() { +- testInvalid("NonExisting", "string"); +- testInvalid(NonGeneric.class.getName() + "", "string"); +- testInvalid(Generic2.class.getName(), "string"); +- testInvalid(Generic2.class.getName() + "", "string"); +- } +- +- private static void testInvalid(String javaName, String tsName) { +- try { +- final Settings settings = TestUtils.settings(); +- settings.customTypeMappings = Collections.singletonMap(javaName, tsName); +- new TypeScriptGenerator(settings).generateTypeScript(Input.from()); +- Assertions.fail(); +- } catch (RuntimeException e) { +- // expected +- } +- } +- +- @Test +- public void testGenerics() { +- final Settings settings = TestUtils.settings(); +- settings.customTypeMappings = Collections.singletonMap("cz.habarta.typescript.generator.GenericCustomTypeMappingsTest$Generic2", "Test"); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(Usage.class)); +- Assertions.assertTrue(output.contains("generic: Test")); +- } +- +- @Test +- public void testUnwrap() { +- final Settings settings = TestUtils.settings(); +- settings.customTypeMappings = Collections.singletonMap("cz.habarta.typescript.generator.GenericCustomTypeMappingsTest$Generic2", "T2"); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(Usage.class)); +- Assertions.assertTrue(output.contains("generic: number")); +- } +- +- @Test +- public void testMapStringString() { +- final Settings settings = TestUtils.settings(); +- settings.customTypeMappings = Collections.singletonMap("cz.habarta.typescript.generator.GenericCustomTypeMappingsTest$NonGeneric", "Map"); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(NonGenericUsage.class)); +- Assertions.assertTrue(output.contains("nonGeneric: Map")); +- } +- +- private static class NonGeneric {} +- private static class NonGenericUsage { +- public NonGeneric nonGeneric; +- } +- private static class Generic2 {} +- private static class Usage { +- public Generic2 generic; +- } +- +- @Test +- public void testAlternativeSyntax() { +- final Settings settings = TestUtils.settings(); +- settings.customTypeMappings = Collections.singletonMap("cz.habarta.typescript.generator.GenericCustomTypeMappingsTest$Generic2[T1, T2]", "Test[T2, T1]"); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(Usage.class)); +- Assertions.assertTrue(output.contains("generic: Test")); +- } +- +- @Test +- public void testAlternativeSyntaxWithArray() { +- final Settings settings = TestUtils.settings(); +- settings.customTypeMappings = Collections.singletonMap("cz.habarta.typescript.generator.GenericCustomTypeMappingsTest$Generic2[T1, T2]", "string[]"); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(Usage.class)); +- Assertions.assertTrue(output.contains("generic: string[]")); +- } +- +- private static class BinaryData { +- public byte[] data; +- public byte[][] dataArray; +- public List dataList; +- public long[] specialData; +- } +- +- @Test +- public void byteArrayAsString() { +- final Settings settings = TestUtils.settings(); +- settings.customTypeMappings.put("byte[]", "string"); +- settings.customTypeMappings.put("byte[][]", "DifferentString[]"); +- settings.customTypeMappings.put("long[]", "SpecialString"); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(BinaryData.class)); +- Assertions.assertTrue(output.contains("data: string"), output); +- Assertions.assertTrue(output.contains("dataArray: DifferentString[]"), output); +- Assertions.assertTrue(output.contains("dataList: string[]"), output); +- Assertions.assertTrue(output.contains("specialData: SpecialString"), output); +- } +- +- @Test +- public void testGenericSuperType() { +- final Settings settings = TestUtils.settings(); +- settings.mapDate = DateMapping.asString; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(Class3.class)); +- Assertions.assertTrue(output.contains("Interface")); +- Assertions.assertTrue(output.contains("interfaceValue: DateAsString;")); +- Assertions.assertTrue(output.contains("AbstractClass")); +- Assertions.assertTrue(output.contains("abstractValue: DateAsString;")); +- } +- +- private interface Interface { +- T getInterfaceValue(); +- } +- +- private static abstract class AbstractClass { +- public abstract T getAbstractValue(); +- } +- +- private static abstract class Class3 extends AbstractClass implements Interface{ +- } +- +- +-} +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/GenericsResolverTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/GenericsResolverTest.java +deleted file mode 100644 +index 6bf4bd6ab..000000000 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/GenericsResolverTest.java ++++ /dev/null +@@ -1,181 +0,0 @@ +- +-package cz.habarta.typescript.generator; +- +-import cz.habarta.typescript.generator.type.JTypeVariable; +-import cz.habarta.typescript.generator.util.GenericsResolver; +-import cz.habarta.typescript.generator.util.Utils; +-import java.lang.reflect.Type; +-import java.util.Arrays; +-import java.util.List; +-import java.util.Map; +-import java.util.stream.Collectors; +-import org.junit.jupiter.api.Assertions; +-import org.junit.jupiter.api.Test; +- +- +-public class GenericsResolverTest { +- +- @Test +- public void testStringField() throws Exception { +- final Class cls = F1String.class; +- final Type type = GenericsResolver.resolveField(cls, cls.getField("field")); +- Assertions.assertEquals(String.class, type); +- } +- +- static class F1 { +- public T field; +- } +- static class F1String extends F1 { +- } +- +- @Test +- public void testListOfStringField() throws Exception { +- final Class cls = F2String.class; +- final Type type = GenericsResolver.resolveField(cls, cls.getField("list")); +- Assertions.assertEquals(Utils.createParameterizedType(List.class, String.class), type); +- } +- +- static class F2 { +- public List list; +- } +- static class F2String extends F2 { +- } +- +- @Test +- public void testMapOfStringAndListOfLongField() throws Exception { +- final Class cls = F3StringLong.class; +- final Type type = GenericsResolver.resolveField(cls, cls.getField("map")); +- Assertions.assertEquals(Utils.createParameterizedType(Map.class, String.class, Utils.createParameterizedType(List.class, Long.class)), type); +- } +- +- static class F3 { +- public Map> map; +- } +- static class F3StringLong extends F3 { +- } +- +- @Test +- public void testInheritancePath() throws Exception { +- final Class cls = P123Number.class; +- final Type type = GenericsResolver.resolveField(cls, cls.getField("field")); +- Assertions.assertEquals(Utils.createParameterizedType(List.class, Number.class), type); +- } +- +- @Test +- public void testInheritancePathWithUnresolvedVariable1() throws Exception { +- final Class cls = P123.class; +- final Type type = GenericsResolver.resolveField(cls, cls.getField("field")); +- Assertions.assertEquals(Utils.createParameterizedType(List.class, new JTypeVariable<>(P123.class, "B")), type); +- } +- +- @Test +- public void testInheritancePathWithUnresolvedVariable2() throws Exception { +- final Class cls = P12.class; +- final Type type = GenericsResolver.resolveField(cls, cls.getField("field")); +- Assertions.assertEquals(new JTypeVariable<>(P12.class, "V"), type); +- } +- +- static class P1 { +- public T field; +- } +- static class P12 extends P1 { +- } +- static class P123 extends P12> { +- } +- static class P123Number extends P123 { +- } +- +- @Test +- public void testGenericVariableMappingToBase1() { +- final List mappedTypeParameters = GenericsResolver.mapGenericVariablesToBase(R123.class, R1.class); +- Assertions.assertEquals(Arrays.asList(null, null, "T"), mappedTypeParameters); +- } +- +- @Test +- public void testGenericVariableMappingToBase2() { +- final List mappedTypeParameters = GenericsResolver.mapGenericVariablesToBase(R12.class, R1.class); +- Assertions.assertEquals(Arrays.asList("T", "S"), mappedTypeParameters); +- } +- +- static class R1 { +- } +- static class R12 extends R1 { +- } +- static class R123 extends R12> { +- } +- +- @Test +- public void testResolvingGenericVariablesInContextType1() throws NoSuchFieldException { +- final Type contextType = MyClass.class.getField("property1").getGenericType(); +- final List resolvedTypeParameters = GenericsResolver.resolveBaseGenericVariables(BaseClass.class, contextType); +- Assertions.assertEquals(Arrays.asList("java.lang.String", "java.lang.Integer"), getTypeNames(resolvedTypeParameters)); +- } +- +- @Test +- public void testResolvingGenericVariablesInContextType3() throws NoSuchFieldException { +- final Type contextType = MyClass.class.getField("property3").getGenericType(); +- final List resolvedTypeParameters = GenericsResolver.resolveBaseGenericVariables(BaseClass.class, contextType); +- Assertions.assertEquals(Arrays.asList("java.lang.Integer", "java.lang.Boolean"), getTypeNames(resolvedTypeParameters)); +- } +- +- @Test +- public void testResolvingGenericVariablesInContextTypeBase() throws NoSuchFieldException { +- final Type contextType = MyClass.class.getField("propertyBase").getGenericType(); +- final List resolvedTypeParameters = GenericsResolver.resolveBaseGenericVariables(BaseClass.class, contextType); +- Assertions.assertEquals(Arrays.asList("java.lang.Integer", "java.lang.String"), getTypeNames(resolvedTypeParameters)); +- } +- +- static class BaseClass {} +- +- static class SubClass1 extends BaseClass {} +- +- static class SubClass3 extends BaseClass {} +- +- static class MyClass { +- public SubClass1 property1; +- public SubClass3 property3; +- public BaseClass propertyBase; +- } +- +- @Test +- public void testResolvingRawUsage1() throws NoSuchFieldException { +- final Type contextType = RawUsage.class.getField("rawMap").getGenericType(); +- final List resolvedTypeParameters = GenericsResolver.resolveBaseGenericVariables(Map.class, contextType); +- Assertions.assertEquals(Arrays.asList("java.lang.Object", "java.lang.Object"), getTypeNames(resolvedTypeParameters)); +- } +- +- @Test +- public void testResolvingRawUsage2() throws NoSuchFieldException { +- final Type contextType = RawUsage.class.getField("rawStringKeyMap").getGenericType(); +- final List resolvedTypeParameters = GenericsResolver.resolveBaseGenericVariables(Map.class, contextType); +- Assertions.assertEquals(Arrays.asList("java.lang.Object", "java.lang.Object"), getTypeNames(resolvedTypeParameters)); +- } +- +- static class RawUsage { +- public Map rawMap; +- public StringKeyMap rawStringKeyMap; +- } +- +- static interface StringKeyMap extends Map {} +- +- +- @Test +- public void testResolvingFixedDescendant() throws NoSuchFieldException { +- final Type contextType = StringMapDescendantUsage.class.getField("stringMapDescendant").getGenericType(); +- final List resolvedTypeParameters = GenericsResolver.resolveBaseGenericVariables(Map.class, contextType); +- Assertions.assertEquals(Arrays.asList("java.lang.String", "java.lang.String"), getTypeNames(resolvedTypeParameters)); +- } +- +- static class StringMapDescendantUsage { +- public StringMapDescendant stringMapDescendant; +- } +- +- static interface StringMapDescendant extends StringMap {} +- +- static interface StringMap extends Map {} +- +- private static List getTypeNames(List types) { +- return types.stream().map(Type::getTypeName).collect(Collectors.toList()); +- } +- +-} +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/GenericsTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/GenericsTest.java +index 0bf64c47e..10fb68ce9 100644 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/GenericsTest.java ++++ b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/GenericsTest.java +@@ -2,27 +2,39 @@ package cz.habarta.typescript.generator; + + import com.fasterxml.jackson.annotation.JsonTypeInfo; + import com.fasterxml.jackson.annotation.JsonTypeInfo.As; +-import java.io.Serializable; + import java.io.StringWriter; +-import java.util.Arrays; +-import java.util.List; +-import java.util.Map; +-import java.util.Set; +-import org.junit.jupiter.api.Assertions; +-import static org.junit.jupiter.api.Assertions.assertEquals; +-import org.junit.jupiter.api.Test; ++import java.util.*; ++import org.junit.Test; ++import static org.junit.Assert.assertEquals; + + + public class GenericsTest { + ++ @Test ++ public void testDefaultGenerics() throws Exception { ++ final Settings settings = TestUtils.settings(); ++ settings.customTypeProcessor = new DefaultTypeProcessor(); ++ ++ final StringWriter stringWriter = new StringWriter(); ++ new TypeScriptGenerator(settings).generateTypeScript(Input.from(A.class), Output.to(stringWriter)); ++ final String actual = stringWriter.toString().trim(); ++ final String nl = settings.newline; ++ final String expected = ++ "interface A {" + nl + ++ " x: A;" + nl + ++ " y: A;" + nl + ++ " z: A;" + nl + ++ "}"; ++ assertEquals(expected, actual); ++ } ++ + @Test + public void testAdvancedGenerics() throws Exception { + final Settings settings = TestUtils.settings(); +- settings.outputKind = TypeScriptOutputKind.module; + settings.addTypeNamePrefix = "I"; + + final StringWriter stringWriter = new StringWriter(); +- new TypeScriptGenerator(settings).generateTypeScript(Input.from(A.class), Output.to(stringWriter)); ++ new TypeScriptGenerator(settings).generateEmbeddableTypeScript(Input.from(A.class), Output.to(stringWriter), true, 0); + final String actual = stringWriter.toString().trim(); + final String nl = settings.newline; + final String expected = +@@ -43,11 +55,11 @@ public class GenericsTest { + @Test + public void testWildcardGeneric() { + final Settings settings = TestUtils.settings(); +- settings.outputKind = TypeScriptOutputKind.module; + settings.addTypeNamePrefix = "I"; ++ settings.customTypeProcessor = new GenericsTypeProcessor(); + + final StringWriter stringWriter = new StringWriter(); +- new TypeScriptGenerator(settings).generateTypeScript(Input.from(C.class), Output.to(stringWriter)); ++ new TypeScriptGenerator(settings).generateEmbeddableTypeScript(Input.from(C.class), Output.to(stringWriter), true, 0); + final String actual = stringWriter.toString().trim(); + final String nl = settings.newline; + final String expected = +@@ -60,11 +72,11 @@ public class GenericsTest { + @Test + public void testNonGenericExtends() { + final Settings settings = TestUtils.settings(); +- settings.outputKind = TypeScriptOutputKind.module; ++ settings.customTypeProcessor = new GenericsTypeProcessor(); + settings.sortDeclarations = true; + + final StringWriter stringWriter = new StringWriter(); +- new TypeScriptGenerator(settings).generateTypeScript(Input.from(E.class), Output.to(stringWriter)); ++ new TypeScriptGenerator(settings).generateEmbeddableTypeScript(Input.from(E.class), Output.to(stringWriter), true, 0); + final String actual = stringWriter.toString().trim(); + final String nl = settings.newline; + final String expected = +@@ -72,11 +84,7 @@ public class GenericsTest { + " x: T;" + nl + + "}" + nl + + "" + nl + +- "export interface E extends D {" + nl + +- " x: F;" + nl + +- "}" + nl + +- "" + nl + +- "export interface F {" + nl + ++ "export interface E extends D {" + nl + + "}"; + assertEquals(expected, actual); + } +@@ -84,69 +92,26 @@ public class GenericsTest { + @Test + public void testImplements() { + final Settings settings = TestUtils.settings(); +- settings.outputKind = TypeScriptOutputKind.module; ++ settings.customTypeProcessor = new GenericsTypeProcessor(); + settings.sortDeclarations = true; + settings.setExcludeFilter(Arrays.asList(Comparable.class.getName()), null); + + final StringWriter stringWriter = new StringWriter(); +- new TypeScriptGenerator(settings).generateTypeScript(Input.from(IA.class), Output.to(stringWriter)); ++ new TypeScriptGenerator(settings).generateEmbeddableTypeScript(Input.from(IA.class), Output.to(stringWriter), true, 0); + final String actual = stringWriter.toString().trim(); + final String nl = settings.newline; + final String expected = + "export interface IA extends IB {" + nl + +- " type: string;" + nl + +- " x: string;" + nl + ++ " type: \"GenericsTest$IA\";" + nl + + "}" + nl + + "" + nl + + "export interface IB {" + nl + + " type: string;" + nl + + " x: T;" + nl + + "}"; +- + assertEquals(expected, actual); + } + +- @Test +- public void testGenericsWithoutTypeArgument() { +- final Settings settings = TestUtils.settings(); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(Table.class, Page1.class, Page2.class)); +- final String expected = +- "interface Table {\n" + +- " rows: T[];\n" + +- "}\n" + +- "\n" + +- "interface Page1 {\n" + +- " stringTable: Table;\n" + +- "}\n" + +- "\n" + +- "interface Page2 {\n" + +- " someTable: Table;\n" + +- "}"; +- assertEquals(expected, output.trim()); +- } +- +- @Test +- public void testGenericArray() { +- final Settings settings = TestUtils.settings(); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(TableGA.class)); +- final String expected = +- "interface TableGA {\n" + +- " rows: T[];\n" + +- "}"; +- assertEquals(expected, output.trim()); +- } +- +- @Test +- public void testArbitraryGenericParameter() { +- final Settings settings = TestUtils.settings(); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(ExecutionResult.class)); +- final String expected = +- "interface ExecutionResult {\n" + +- " data: number;\n" + +- "}"; +- assertEquals(expected, output.trim()); +- } +- + class A { + public A x; + public A, List> y; +@@ -164,10 +129,7 @@ public class GenericsTest { + public T x; + } + +- class E extends D { +- } +- +- class F { ++ class E extends D { + } + + abstract class IA implements IB, Comparable { +@@ -177,56 +139,4 @@ public class GenericsTest { + interface IB { + public T getX(); + } +- +- class Table { +- public List rows; +- } +- +- class Page1 { +- public Table stringTable; +- } +- +- class Page2 { +- @SuppressWarnings("rawtypes") +- public Table someTable; +- } +- +- class TableGA { +- public T[] rows; +- } +- +- interface ExecutionResult { +- public T getData(); +- } +- +- @Test +- public void testSpecificTypeInGeneratedClass() { +- final Settings settings = TestUtils.settings(); +- settings.outputFileType = TypeScriptFileType.implementationFile; +- settings.outputKind = TypeScriptOutputKind.module; +- settings.mapClasses = ClassMapping.asClasses; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(Entity1View.class)); +- Assertions.assertTrue(output.contains("" +- + "export class Entity1View implements Entity1IdView {\n" +- + " id: MyId;\n" +- + " name: string;\n" +- + "}")); +- Assertions.assertTrue(output.contains("export class MyId")); +- } +- +- public static class MyId implements Serializable { +- private static final long serialVersionUID = 1L; +- } +- +- public interface IdView { +- T getId(); +- } +- +- public interface Entity1IdView extends IdView { +- } +- +- public static abstract class Entity1View implements Entity1IdView { +- public String name; +- } +- + } +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/ImmutablesTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/ImmutablesTest.java +deleted file mode 100644 +index 44bcb6576..000000000 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/ImmutablesTest.java ++++ /dev/null +@@ -1,85 +0,0 @@ +- +-package cz.habarta.typescript.generator; +- +-import com.fasterxml.jackson.annotation.JsonPropertyOrder; +-import com.fasterxml.jackson.annotation.JsonSubTypes; +-import com.fasterxml.jackson.annotation.JsonTypeInfo; +-import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +-import com.fasterxml.jackson.databind.annotation.JsonSerialize; +-import org.immutables.value.Value; +-import org.junit.jupiter.api.Assertions; +-import org.junit.jupiter.api.Test; +- +-public class ImmutablesTest { +- +- @Test +- public void testImmutables() { +- final Settings settings = TestUtils.settings(); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(Shape.class)); +- final String expected = ( +- "\n" + +- "interface Shape {\n" + +- " kind: 'square' | 'rectangle' | 'circle';\n" + +- "}\n" + +- "\n" + +- "interface Square extends Shape {\n" + +- " kind: 'square';\n" + +- " size: number;\n" + +- "}\n" + +- "\n" + +- "interface Rectangle extends Shape {\n" + +- " kind: 'rectangle';\n" + +- " width: number;\n" + +- " height: number;\n" + +- "}\n" + +- "\n" + +- "interface Circle extends Shape {\n" + +- " kind: 'circle';\n" + +- " radius: number;\n" + +- "}\n" + +- "\n" + +- "type ShapeUnion = Square | Rectangle | Circle;\n" + +- "" +- ).replace('\'', '"'); +- Assertions.assertEquals(expected, output); +- } +- +- +- @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "kind") +- @JsonSubTypes({ +- @JsonSubTypes.Type(value = Square.class, name = "square"), +- @JsonSubTypes.Type(value = Rectangle.class, name = "rectangle"), +- @JsonSubTypes.Type(value = Circle.class, name = "circle"), +- }) +- public static interface Shape { +- } +- +- public static class Square implements Shape { +- public double size; +- } +- +- @Value.Immutable +- @JsonSerialize(as = ImmutableRectangle.class) +- @JsonPropertyOrder({"width", "height"}) +- @JsonDeserialize(as = ImmutableRectangle.class) +- public static abstract class Rectangle implements Shape { +- public abstract double width(); +- public abstract double height(); +- +- public static Rectangle.Builder builder() { +- return new Rectangle.Builder(); +- } +- +- public static final class Builder extends ImmutableRectangle.Builder {} +- } +- +- @Value.Immutable +- @JsonSerialize(as = ImmutableCircle.class) +- @JsonDeserialize(as = ImmutableCircle.class) +- public static interface Circle extends Shape { +- double radius(); +- +- final class Builder extends ImmutableCircle.Builder {} +- } +- +-} +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/IncludeExcludePropertyTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/IncludeExcludePropertyTest.java +deleted file mode 100644 +index bafe3782b..000000000 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/IncludeExcludePropertyTest.java ++++ /dev/null +@@ -1,86 +0,0 @@ +- +-package cz.habarta.typescript.generator; +- +-import java.lang.annotation.Retention; +-import java.lang.annotation.RetentionPolicy; +-import java.util.Arrays; +-import java.util.stream.Stream; +-import org.junit.jupiter.api.Assertions; +-import org.junit.jupiter.params.ParameterizedTest; +-import org.junit.jupiter.params.provider.MethodSource; +- +- +-@SuppressWarnings("unused") +-public class IncludeExcludePropertyTest { +- +- public static Stream data() { +- return Arrays.stream(JsonLibrary.values()) +- .filter(library -> library != JsonLibrary.jsonb); +- } +- +- @ParameterizedTest(name = "{index} - {0}") +- @MethodSource("data") +- public void testInclude(JsonLibrary library) { +- final Settings settings = TestUtils.settings(); +- settings.jsonLibrary = library; +- settings.includePropertyAnnotations = Arrays.asList(MyInclude.class); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(ClassWithAnnotatedProperties.class)); +- Assertions.assertTrue(!output.contains("property1")); +- Assertions.assertTrue(output.contains("property2")); +- Assertions.assertTrue(!output.contains("property3")); +- Assertions.assertTrue(output.contains("property4")); +- } +- +- @ParameterizedTest(name = "{index} - {0}") +- @MethodSource("data") +- public void testExclude(JsonLibrary library) { +- final Settings settings = TestUtils.settings(); +- settings.jsonLibrary = library; +- settings.excludePropertyAnnotations = Arrays.asList(MyExclude.class); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(ClassWithAnnotatedProperties.class)); +- Assertions.assertTrue(output.contains("property1")); +- Assertions.assertTrue(output.contains("property2")); +- Assertions.assertTrue(!output.contains("property3")); +- Assertions.assertTrue(!output.contains("property4")); +- } +- +- @ParameterizedTest(name = "{index} - {0}") +- @MethodSource("data") +- public void testBoth(JsonLibrary library) { +- final Settings settings = TestUtils.settings(); +- settings.jsonLibrary = library; +- +- settings.includePropertyAnnotations = Arrays.asList(MyInclude.class); +- settings.excludePropertyAnnotations = Arrays.asList(MyExclude.class); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(ClassWithAnnotatedProperties.class)); +- Assertions.assertTrue(!output.contains("property1")); +- Assertions.assertTrue(output.contains("property2")); +- Assertions.assertTrue(!output.contains("property3")); +- Assertions.assertTrue(!output.contains("property4")); +- } +- +- @Retention(RetentionPolicy.RUNTIME) +- private static @interface MyInclude { +- } +- +- @Retention(RetentionPolicy.RUNTIME) +- private static @interface MyExclude { +- } +- +- private static class ClassWithAnnotatedProperties { +- +- public String property1; +- +- @MyInclude +- public String property2; +- +- @MyExclude +- public String property3; +- +- @MyInclude +- @MyExclude +- public String property4; +- +- } +- +-} +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/InputTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/InputTest.java +index fc2f40ab6..38014a996 100644 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/InputTest.java ++++ b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/InputTest.java +@@ -1,25 +1,20 @@ + + package cz.habarta.typescript.generator; + +-import io.github.classgraph.ClassGraph; +-import io.github.classgraph.ScanResult; +-import java.lang.annotation.Retention; +-import java.lang.annotation.RetentionPolicy; +-import java.util.Arrays; +-import java.util.List; +-import org.junit.jupiter.api.Assertions; +-import org.junit.jupiter.api.Test; ++import io.github.lukehutch.fastclasspathscanner.FastClasspathScanner; ++import java.util.*; ++import org.junit.Assert; ++import org.junit.Test; + + +-@SuppressWarnings("unused") + public class InputTest { + + @Test + public void testScanner() { +- final ScanResult scanResult = new ClassGraph().enableAllInfo().acceptPackages("cz.habarta").scan(); +- final List allClassNames = scanResult.getAllClasses().getNames(); ++ final FastClasspathScanner scanner = new FastClasspathScanner().scan(); ++ final List allClassNames = scanner.getNamesOfAllClasses(); + final List testClassNames = Input.filterClassNames(allClassNames, Arrays.asList("cz.habarta.typescript.generator.**Test")); +- Assertions.assertTrue(testClassNames.size() > 20, "Typescript-generator must have at least 20 tests :-)"); ++ Assert.assertTrue("Typescript-generator must have at least 20 tests :-)", testClassNames.size() > 20); + } + + @Test +@@ -33,10 +28,10 @@ public class InputTest { + ), + Arrays.asList("**Json") + ); +- Assertions.assertTrue(result1.contains("com.example.Json")); +- Assertions.assertTrue(result1.contains("com.example.AAAJson")); +- Assertions.assertTrue(!result1.contains("com.example.AAA")); +- Assertions.assertTrue(result1.contains("com.example.aaa$Json")); ++ Assert.assertTrue(result1.contains("com.example.Json")); ++ Assert.assertTrue(result1.contains("com.example.AAAJson")); ++ Assert.assertTrue(!result1.contains("com.example.AAA")); ++ Assert.assertTrue(result1.contains("com.example.aaa$Json")); + + final List result2 = Input.filterClassNames( + Arrays.asList( +@@ -48,11 +43,11 @@ public class InputTest { + ), + Arrays.asList("cz.habarta.test.*") + ); +- Assertions.assertTrue(!result2.contains("com.example.Json")); +- Assertions.assertTrue(result2.contains("cz.habarta.test.Json")); +- Assertions.assertTrue(result2.contains("cz.habarta.test.BBBJson")); +- Assertions.assertTrue(!result2.contains("cz.habarta.test.aaa.BBBJson")); +- Assertions.assertTrue(!result2.contains("cz.habarta.test.CCC$Json")); ++ Assert.assertTrue(!result2.contains("com.example.Json")); ++ Assert.assertTrue(result2.contains("cz.habarta.test.Json")); ++ Assert.assertTrue(result2.contains("cz.habarta.test.BBBJson")); ++ Assert.assertTrue(!result2.contains("cz.habarta.test.aaa.BBBJson")); ++ Assert.assertTrue(!result2.contains("cz.habarta.test.CCC$Json")); + + final List result3 = Input.filterClassNames( + Arrays.asList( +@@ -62,55 +57,15 @@ public class InputTest { + ), + Arrays.asList("cz.habarta.*.*$*") + ); +- Assertions.assertTrue(!result3.contains("cz.habarta.test.BBBJson")); +- Assertions.assertTrue(result3.contains("cz.habarta.ddd.CCC$Json")); +- Assertions.assertTrue(!result3.contains("cz.habarta.CCC$Json")); ++ Assert.assertTrue(!result3.contains("cz.habarta.test.BBBJson")); ++ Assert.assertTrue(result3.contains("cz.habarta.ddd.CCC$Json")); ++ Assert.assertTrue(!result3.contains("cz.habarta.CCC$Json")); + } + + @Test +- public void testClassesWithAnnotations() { +- final Input.Parameters parameters = new Input.Parameters(); +- parameters.classesWithAnnotations = Arrays.asList(MyJsonClass.class.getName()); +- parameters.scanningAcceptedPackages = Arrays.asList("cz.habarta"); +- final String output = new TypeScriptGenerator(TestUtils.settings()).generateTypeScript(Input.from(parameters)); +- Assertions.assertTrue(output.contains("name: string;")); +- } +- +- @Test +- public void testClassesImplementingInterfaces() { +- final Input.Parameters parameters = new Input.Parameters(); +- parameters.classesImplementingInterfaces = Arrays.asList(MyJsonInterface.class.getName()); +- final String output = new TypeScriptGenerator(TestUtils.settings()).generateTypeScript(Input.from(parameters)); +- Assertions.assertTrue(output.contains("firstName: string;")); +- Assertions.assertTrue(output.contains("lastName: string;")); +- } +- +- @Test +- public void testClassesExtendingClasses() { +- final Input.Parameters parameters = new Input.Parameters(); +- parameters.classesExtendingClasses = Arrays.asList(MyJsonInterfaceImpl.class.getName()); +- final String output = new TypeScriptGenerator(TestUtils.settings()).generateTypeScript(Input.from(parameters)); +- Assertions.assertTrue(output.contains("lastName: string;")); +- } +- +- @Retention(RetentionPolicy.RUNTIME) +- private static @interface MyJsonClass { +- } +- +- private interface MyJsonInterface { +- } +- +- private static class MyJsonInterfaceImpl implements MyJsonInterface { +- public String firstName; +- } +- +- private static class MyJsonInterfaceSubclass extends MyJsonInterfaceImpl { +- public String lastName; +- } +- +- @MyJsonClass +- private static class MyData { +- public String name; ++ public void testGlobToRegexp() { ++ Assert.assertEquals("\\Q\\E.*\\QJson\\E", Input.globToRegexp("**Json").toString()); ++ Assert.assertEquals("\\Qcz.habarta.test.\\E[^.\\$]*\\Q\\E", Input.globToRegexp("cz.habarta.test.*").toString()); + } + + } +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/InterfaceTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/InterfaceTest.java +index 7c0430920..6772c5191 100644 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/InterfaceTest.java ++++ b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/InterfaceTest.java +@@ -1,8 +1,8 @@ + + package cz.habarta.typescript.generator; + +-import org.junit.jupiter.api.Assertions; +-import org.junit.jupiter.api.Test; ++import org.junit.Assert; ++import org.junit.Test; + + + public class InterfaceTest { +@@ -11,19 +11,9 @@ public class InterfaceTest { + public void test() { + final Settings settings = TestUtils.settings(); + final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(Book.class)); +- Assertions.assertTrue(output.contains("interface Book")); +- Assertions.assertTrue(output.contains("title: string;")); +- Assertions.assertTrue(output.contains("interface Author")); +- } +- +- @Test +- public void testReadOnlyProperties() { +- final Settings settings = TestUtils.settings(); +- settings.declarePropertiesAsReadOnly = true; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(Book.class)); +- Assertions.assertTrue(output.contains("readonly author: Author;")); +- Assertions.assertTrue(output.contains("readonly title: string;")); +- Assertions.assertTrue(output.contains("readonly name: string;")); ++ Assert.assertTrue(output.contains("interface Book")); ++ Assert.assertTrue(output.contains("title: string;")); ++ Assert.assertTrue(output.contains("interface Author")); + } + + static interface Book { +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/Jackson1ParserTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/Jackson1ParserTest.java +new file mode 100644 +index 000000000..fa9c91125 +--- /dev/null ++++ b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/Jackson1ParserTest.java +@@ -0,0 +1,29 @@ ++ ++package cz.habarta.typescript.generator; ++ ++import cz.habarta.typescript.generator.parser.*; ++import org.junit.Assert; ++import org.junit.Test; ++ ++ ++public class Jackson1ParserTest { ++ ++ @Test ++ public void test() { ++ final Jackson1Parser jacksonParser = getJackson1Parser(); ++ final Class bean = DummyBean.class; ++ final Model model = jacksonParser.parseModel(bean); ++ Assert.assertTrue(model.getBeans().size() > 0); ++ final BeanModel beanModel = model.getBeans().get(0); ++ System.out.println("beanModel: " + beanModel); ++ Assert.assertEquals("DummyBean", beanModel.getOrigin().getSimpleName()); ++ Assert.assertTrue(beanModel.getProperties().size() > 0); ++ Assert.assertEquals("firstProperty", beanModel.getProperties().get(0).getName()); ++ } ++ ++ private static Jackson1Parser getJackson1Parser() { ++ final Settings settings = new Settings(); ++ return new Jackson1Parser(settings, new DefaultTypeProcessor()); ++ } ++ ++} +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/Jackson2ConfigurationResolvedTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/Jackson2ConfigurationResolvedTest.java +deleted file mode 100644 +index bfe5eab5c..000000000 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/Jackson2ConfigurationResolvedTest.java ++++ /dev/null +@@ -1,17 +0,0 @@ +-package cz.habarta.typescript.generator; +- +-import java.util.Arrays; +-import org.junit.jupiter.api.Assertions; +-import org.junit.jupiter.api.Test; +- +-public class Jackson2ConfigurationResolvedTest { +- +- @Test +- public void test() { +- final Jackson2Configuration configuration = new Jackson2Configuration(); +- configuration.serializerTypeMappings = Arrays.asList(Jackson2ParserTest.IdSerializer.class.getName() + ":" + "string"); +- final Jackson2ConfigurationResolved resolved = Jackson2ConfigurationResolved.from(configuration, Thread.currentThread().getContextClassLoader()); +- Assertions.assertEquals("string", resolved.serializerTypeMappings.get(Jackson2ParserTest.IdSerializer.class)); +- } +- +-} +\ No newline at end of file +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/Jackson2DeserializableRootType.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/Jackson2DeserializableRootType.java +deleted file mode 100644 +index 10cd2e196..000000000 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/Jackson2DeserializableRootType.java ++++ /dev/null +@@ -1,62 +0,0 @@ +- +-package cz.habarta.typescript.generator; +- +-import com.fasterxml.jackson.annotation.JsonSubTypes; +-import com.fasterxml.jackson.annotation.JsonTypeInfo; +-import com.fasterxml.jackson.annotation.JsonTypeName; +-import com.fasterxml.jackson.core.JsonProcessingException; +-import com.fasterxml.jackson.databind.ObjectMapper; +-import org.junit.jupiter.api.Assertions; +-import org.junit.jupiter.api.Test; +- +-/** +- * Test that root type name in a hirarchy is included iff root type itself is not abstract +- */ +-public class Jackson2DeserializableRootType { +- +- @Test +- public void testHowJacksonDeserializes() throws JsonProcessingException { +- NonAbstractRoot nar = new ObjectMapper() +- .readValue("{\"type\": \"rootType\"}", +- NonAbstractRoot.class); +- NonAbstractRoot nars = new ObjectMapper() +- .readValue("{\"type\": \"subType\"}", +- NonAbstractRoot.class); +- +- Assertions.assertSame(NonAbstractRoot.class, nar.getClass()); +- Assertions.assertSame(NonAbstractRootSub.class, nars.getClass()); +- } +- +- @Test +- public void testRootTypeIncludedIfNotAbstract() { +- final String output = new TypeScriptGenerator(TestUtils.settings()).generateTypeScript(Input.from(NonAbstractRoot.class)); +- Assertions.assertTrue(output.contains("\"rootType\"")); +- } +- +- @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +- @JsonSubTypes(@JsonSubTypes.Type(NonAbstractRootSub.class)) +- @JsonTypeName("rootType") +- public static class NonAbstractRoot { +- } +- +- @JsonTypeName("subType") +- public static class NonAbstractRootSub extends NonAbstractRoot { +- } +- +- @Test +- public void testRootTypeNotIncludedIfAbstract() { +- final String output = new TypeScriptGenerator(TestUtils.settings()).generateTypeScript(Input.from(AbstractRoot.class)); +- // Root type is abstract and therefore ignored in the type list +- Assertions.assertFalse(output.contains("\"rootType\"")); +- } +- +- @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +- @JsonSubTypes(@JsonSubTypes.Type(AbstractRootSub.class)) +- @JsonTypeName("rootType") +- public static abstract class AbstractRoot { +- } +- +- @JsonTypeName("subType") +- public static class AbstractRootSub extends AbstractRoot { +- } +-} +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/Jackson2ParserTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/Jackson2ParserTest.java +index 0f5f984b6..00fe338a7 100644 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/Jackson2ParserTest.java ++++ b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/Jackson2ParserTest.java +@@ -1,52 +1,12 @@ + + package cz.habarta.typescript.generator; + +-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.ANY; +-import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE; +-import com.fasterxml.jackson.annotation.JsonClassDescription; +-import com.fasterxml.jackson.annotation.JsonCreator; +-import com.fasterxml.jackson.annotation.JsonIgnore; +-import com.fasterxml.jackson.annotation.JsonProperty; +-import com.fasterxml.jackson.annotation.JsonPropertyDescription; +-import com.fasterxml.jackson.annotation.JsonSubTypes; +-import com.fasterxml.jackson.annotation.JsonTypeInfo; +-import com.fasterxml.jackson.annotation.JsonTypeName; +-import com.fasterxml.jackson.core.JsonGenerator; +-import com.fasterxml.jackson.core.JsonParser; +-import com.fasterxml.jackson.core.JsonProcessingException; +-import com.fasterxml.jackson.databind.DeserializationContext; +-import com.fasterxml.jackson.databind.JsonNode; +-import com.fasterxml.jackson.databind.JsonSerializer; +-import com.fasterxml.jackson.databind.ObjectMapper; +-import com.fasterxml.jackson.databind.SerializerProvider; +-import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +-import com.fasterxml.jackson.databind.annotation.JsonSerialize; +-import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +-import com.fasterxml.jackson.databind.jsontype.NamedType; +-import com.fasterxml.jackson.databind.module.SimpleModule; +-import cz.habarta.typescript.generator.parser.BeanModel; +-import cz.habarta.typescript.generator.parser.EnumModel; +-import cz.habarta.typescript.generator.parser.Jackson2Parser; +-import cz.habarta.typescript.generator.parser.Model; +-import java.io.IOException; +-import java.lang.annotation.Retention; +-import java.lang.annotation.RetentionPolicy; +-import java.time.LocalDate; +-import java.time.LocalDateTime; +-import java.time.LocalTime; +-import java.util.Arrays; +-import java.util.Collections; +-import java.util.List; +-import java.util.Map; +-import java.util.Objects; +-import java.util.Optional; +-import java.util.UUID; +-import javax.xml.bind.annotation.XmlElement; +-import org.junit.jupiter.api.Assertions; +-import org.junit.jupiter.api.Test; ++import cz.habarta.typescript.generator.parser.*; ++import com.fasterxml.jackson.annotation.*; ++import org.junit.Assert; ++import org.junit.Test; + + +-@SuppressWarnings("unused") + public class Jackson2ParserTest { + + @Test +@@ -54,67 +14,54 @@ public class Jackson2ParserTest { + final Jackson2Parser jacksonParser = getJackson2Parser(); + final Class bean = DummyBean.class; + final Model model = jacksonParser.parseModel(bean); +- Assertions.assertTrue(model.getBeans().size() > 0); ++ Assert.assertTrue(model.getBeans().size() > 0); + final BeanModel beanModel = model.getBeans().get(0); +- Assertions.assertEquals("DummyBean", beanModel.getOrigin().getSimpleName()); +- Assertions.assertTrue(beanModel.getProperties().size() > 0); +- Assertions.assertEquals("firstProperty", beanModel.getProperties().get(0).getName()); ++ Assert.assertEquals("DummyBean", beanModel.getOrigin().getSimpleName()); ++ Assert.assertTrue(beanModel.getProperties().size() > 0); ++ Assert.assertEquals("firstProperty", beanModel.getProperties().get(0).getName()); + } + + @Test + public void testChangedNameProperty() { + final Jackson2Parser jacksonParser = getJackson2Parser(); + final Model model = jacksonParser.parseModel(DummyBeanJackson2.class); +- Assertions.assertTrue(model.getBeans().size() > 0); ++ Assert.assertTrue(model.getBeans().size() > 0); + final BeanModel beanModel = model.getBeans().get(0); +- Assertions.assertEquals("DummyBeanJackson2", beanModel.getOrigin().getSimpleName()); +- Assertions.assertTrue(beanModel.getProperties().size() > 0); +- Assertions.assertEquals("changedNameProperty", beanModel.getProperties().get(0).getName()); ++ Assert.assertEquals("DummyBeanJackson2", beanModel.getOrigin().getSimpleName()); ++ Assert.assertTrue(beanModel.getProperties().size() > 0); ++ Assert.assertEquals("changedNameProperty", beanModel.getProperties().get(0).getName()); + } + + @Test + public void testConflictingJsonTypeInfoProperty() { + final Jackson2Parser jacksonParser = getJackson2Parser(); + final Model model = jacksonParser.parseModel(InheritedClass.class); +- Assertions.assertTrue(model.getBeans().size() > 0); ++ Assert.assertTrue(model.getBeans().size() > 0); + final BeanModel beanModel = model.getBeans().get(0); +- Assertions.assertEquals(1, beanModel.getProperties().size()); ++ Assert.assertEquals(1, beanModel.getProperties().size()); + } + + @Test + public void testTaggedUnion() { + final Jackson2Parser jacksonParser = getJackson2Parser(); + final Model model = jacksonParser.parseModel(SubTypeDiscriminatedByName1.class); +- Assertions.assertEquals(5, model.getBeans().size()); ++ Assert.assertEquals(4, model.getBeans().size()); + final BeanModel bean0 = model.getBean(ParentWithNameDiscriminant.class); + final BeanModel bean1 = model.getBean(SubTypeDiscriminatedByName1.class); + final BeanModel bean2 = model.getBean(SubTypeDiscriminatedByName2.class); + final BeanModel bean3 = model.getBean(SubTypeDiscriminatedByName3.class); +- final BeanModel bean4 = model.getBean(SubTypeDiscriminatedByName4.class); +- final BeanModel bean5 = model.getBean(SubTypeDiscriminatedByName5.class); +- Assertions.assertEquals(4, bean0.getTaggedUnionClasses().size()); +- Assertions.assertNull(bean1.getTaggedUnionClasses()); +- Assertions.assertNull(bean2.getTaggedUnionClasses()); +- Assertions.assertNull(bean3.getTaggedUnionClasses()); +- Assertions.assertEquals("kind", bean0.getDiscriminantProperty()); +- Assertions.assertEquals("explicit-name1", bean1.getDiscriminantLiteral()); +- Assertions.assertEquals("SubType2", bean2.getDiscriminantLiteral()); +- Assertions.assertEquals("Jackson2ParserTest$SubTypeDiscriminatedByName3", bean3.getDiscriminantLiteral()); +- Assertions.assertEquals("Jackson2ParserTest$SubTypeDiscriminatedByName4", bean4.getDiscriminantLiteral()); +- } +- +- @Test +- public void testRegisteredSubtypeName() { +- final Jackson2Parser jacksonParser = getJackson2Parser(); +- final Model model = jacksonParser.parseModel(SubTypeDiscriminatedByName5.class); +- final BeanModel bean5 = model.getBean(SubTypeDiscriminatedByName5.class); +- Assertions.assertEquals("NamedByModule", bean5.getDiscriminantLiteral()); ++ Assert.assertEquals(3, bean0.getTaggedUnionClasses().size()); ++ Assert.assertNull(bean1.getTaggedUnionClasses()); ++ Assert.assertNull(bean2.getTaggedUnionClasses()); ++ Assert.assertNull(bean3.getTaggedUnionClasses()); ++ Assert.assertEquals("kind", bean0.getDiscriminantProperty()); ++ Assert.assertEquals("explicit-name1", bean1.getDiscriminantLiteral()); ++ Assert.assertEquals("SubType2", bean2.getDiscriminantLiteral()); ++ Assert.assertEquals("Jackson2ParserTest$SubTypeDiscriminatedByName3", bean3.getDiscriminantLiteral()); + } + + static Jackson2Parser getJackson2Parser() { + final Settings settings = new Settings(); +- settings.jackson2Modules.add(NamedSubtypeModule.class); +- + return new Jackson2Parser(settings, new DefaultTypeProcessor()); + } + +@@ -132,10 +79,9 @@ public class Jackson2ParserTest { + + @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "kind") + @JsonSubTypes({ +- @JsonSubTypes.Type(value = SubTypeDiscriminatedByName1.class, name = "SubType1"), // value from @JsonTypeName is used ++ @JsonSubTypes.Type(value = SubTypeDiscriminatedByName1.class), + @JsonSubTypes.Type(value = SubTypeDiscriminatedByName2.class, name = "SubType2"), + @JsonSubTypes.Type(value = SubTypeDiscriminatedByName3.class), +- @JsonSubTypes.Type(value = SubTypeDiscriminatedByName4.class), + }) + private static interface ParentWithNameDiscriminant { + } +@@ -145,392 +91,7 @@ public class Jackson2ParserTest { + } + private static class SubTypeDiscriminatedByName2 implements ParentWithNameDiscriminant { + } +- @JsonTypeName(/* Default should be the simplename of the class */) + private static class SubTypeDiscriminatedByName3 implements ParentWithNameDiscriminant { + } +- private static class SubTypeDiscriminatedByName4 implements ParentWithNameDiscriminant { +- } +- +- /** +- * Custom name registered with registerSubtypes +- */ +- static class SubTypeDiscriminatedByName5 implements ParentWithNameDiscriminant { +- } +- +- public static void main(String[] args) throws JsonProcessingException { +- System.out.println(new ObjectMapper().writeValueAsString(new SubTypeDiscriminatedByName1())); +- System.out.println(new ObjectMapper().writeValueAsString(new SubTypeDiscriminatedByName2())); +- System.out.println(new ObjectMapper().writeValueAsString(new SubTypeDiscriminatedByName3())); +- System.out.println(new ObjectMapper().writeValueAsString(new SubTypeDiscriminatedByName4())); +- } +- +- @Test +- public void testOptionalJsonProperty() { +- final Settings settings = TestUtils.settings(); +- settings.optionalProperties = OptionalProperties.useLibraryDefinition; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(ClassWithOptionals.class)); +- Assertions.assertTrue(output.contains("oname1?: string")); +- Assertions.assertTrue(output.contains("oname2?: string")); +- Assertions.assertTrue(output.contains("jname1?: string")); +- Assertions.assertTrue(output.contains("jname2?: string")); +- Assertions.assertTrue(output.contains("jname3: string")); +- Assertions.assertTrue(output.contains("jname4: string")); +- Assertions.assertTrue(output.contains("xname1?: string")); +- Assertions.assertTrue(output.contains("xname2?: string")); +- Assertions.assertTrue(output.contains("xname3?: string")); +- Assertions.assertTrue(output.contains("xname4?: string")); +- } +- +- @Test +- public void testOptionalXmlElement() { +- final Settings settings = TestUtils.settings(); +- settings.jsonLibrary = JsonLibrary.jaxb; +- settings.optionalProperties = OptionalProperties.useLibraryDefinition; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(ClassWithOptionals.class)); +- Assertions.assertTrue(output.contains("oname1?: string")); +- Assertions.assertTrue(output.contains("oname2?: string")); +- Assertions.assertTrue(output.contains("jname1?: string")); +- Assertions.assertTrue(output.contains("jname2?: string")); +- Assertions.assertTrue(output.contains("jname3: string")); +- Assertions.assertTrue(output.contains("jname4: string")); +- Assertions.assertTrue(output.contains("xname1?: string")); +- Assertions.assertTrue(output.contains("xname2?: string")); +- Assertions.assertTrue(output.contains("xname3: string")); +- Assertions.assertTrue(output.contains("xname4: string")); +- } +- +- public static class ClassWithOptionals { +- public String oname1; +- public Optional oname2; +- +- @JsonProperty +- public String jname1; +- @JsonProperty(required = false) +- public String jname2; +- @JsonProperty(required = true) +- public String jname3; +- private String jname4; +- @JsonProperty(required = true) +- public String getJname4() { +- return jname4; +- } +- +- @XmlElement +- public String xname1; +- @XmlElement(required = false) +- public String xname2; +- @XmlElement(required = true) +- public String xname3; +- private String xname4; +- @XmlElement(required = true) +- public String getXname4() { +- return xname4; +- } +- } +- +- @Test +- public void testStandardEnumValue() { +- testEnumByType(TestEnums.StandardEnum.class, "A", "B", "C"); +- } +- +- @Test +- public void testStringPropertyEnumValue() { +- testEnumByType(TestEnums.StringPropertyValuedEnum.class, "_A", "_B", "_C"); +- } +- +- @Test +- public void testNumberPropertyEnumValue() { +- testEnumByType(TestEnums.NumberPropertyValuedEnum.class, 0, 1, 2); +- } +- +- @Test +- public void testJsonNumberFieldValuedEnum() { +- testEnumByType(TestEnums.NumberFieldValuedEnum.class, 1, 2, 3); +- } +- +- @Test +- public void testJsonNumberMethodValuedEnum() { +- testEnumByType(TestEnums.NumberMethodValuedEnum.class, 1, 2, 3); +- } +- +- @Test +- public void testMethodEnumValue() { +- testEnumByType(TestEnums.GeneralMethodValuedEnum.class, "_A", "_B", "_C"); +- } +- +- @Test +- public void testToStringEnumValue() { +- testEnumByType(TestEnums.ToStringValuedEnum.class, "_A", "_B", "_C"); +- } +- +- @Test +- public void testJsonPropertyEnumValue() { +- testEnumByType(TestEnums.JsonPropertyValuedEnum.class, "_A", "_B", "_C"); +- } +- +- private void testEnumByType(Class> type, Object... expectedValues) { +- final Jackson2Parser jacksonParser = getJackson2Parser(); +- final Model model = jacksonParser.parseModel(type); +- Assertions.assertEquals(1, model.getEnums().size()); +- final EnumModel enumModel = model.getEnums().get(0); +- Assertions.assertEquals(expectedValues.length, enumModel.getMembers().size()); +- for (int i = 0; i < expectedValues.length; i++) { +- Assertions.assertEquals(expectedValues[i], enumModel.getMembers().get(i).getEnumValue()); +- } +- } +- +- @Test +- public void testIgnoredProperty() { +- final Settings settings = TestUtils.settings(); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(ClassWithIgnoredProperty.class)); +- Assertions.assertTrue(output.contains("name1: string")); +- Assertions.assertTrue(!output.contains("name2: string")); +- } +- +- private static class ClassWithIgnoredProperty { +- public String name1; +- @JsonIgnore +- public String name2; +- } +- +-// public static void main(String[] args) throws JsonProcessingException { +-// final ObjectMapper objectMapper = new ObjectMapper(); +-// final ClassWithIgnoredProperty instance = new ClassWithIgnoredProperty(); +-// instance.name1 = "xxx"; +-// instance.name2 = "xxx"; +-// System.out.println(objectMapper.writeValueAsString(instance)); +-// } +- +- @Test +- public void testVisibilityConfiguration() { +- { +- final Settings settings = TestUtils.settings(); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(ClassWithDifferentMemberVisibilities.class)); +- Assertions.assertTrue(!output.contains("property1: string")); +- Assertions.assertTrue(output.contains("property2: string")); +- } +- { +- final Settings settings = TestUtils.settings(); +- settings.jackson2Configuration = new Jackson2ConfigurationResolved(); +- settings.jackson2Configuration.setVisibility(ANY, NONE, NONE, NONE, NONE); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(ClassWithDifferentMemberVisibilities.class)); +- Assertions.assertTrue(output.contains("property1: string")); +- Assertions.assertTrue(!output.contains("property2: string")); +- } +- } +- +- private static class ClassWithDifferentMemberVisibilities { +- private String property1; +- public String getProperty2() { +- return null; +- } +- } +- +- @Test +- public void testJsonNode() { +- final Settings settings = TestUtils.settings(); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(ClassWithJsonNode.class)); +- Assertions.assertTrue(output.contains("node: any")); +- Assertions.assertTrue(output.contains("nodes: any[]")); +- } +- +- private static class ClassWithJsonNode { +- public JsonNode node; +- public List nodes; +- } +- +- @Test +- public void testDescriptions() { +- final Settings settings = TestUtils.settings(); +- settings.mapEnum = EnumMapping.asEnum; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(ClassWithDescriptions.class, EnumWithDescriptions.class)); +- Assertions.assertTrue(output.contains("Class description")); +- Assertions.assertTrue(output.contains("Property description")); +- Assertions.assertTrue(output.contains("second line")); +- Assertions.assertTrue(output.contains("Enum description")); +- Assertions.assertTrue(output.contains("Enum constant description")); +- } +- +- @JsonClassDescription("Class description\nsecond line") +- private static class ClassWithDescriptions { +- @JsonPropertyDescription("Property description\nsecond line") +- public String value; +- } +- +- @JsonClassDescription("Enum description") +- private static enum EnumWithDescriptions { +- @JsonPropertyDescription("Enum constant description") +- Empty +- } +- +- public static class NamedSubtypeModule extends SimpleModule { +- private static final long serialVersionUID = 1L; +- +- @Override +- public void setupModule(SetupContext context) { +- registerSubtypes(new NamedType(SubTypeDiscriminatedByName5.class, "NamedByModule")); +- super.setupModule(context); +- } +- } +- +- public interface Identifyable { +- public String getId(); +- } +- +- public static class Project implements Identifyable { +- @Override +- public String getId() { +- return UUID.randomUUID().toString(); +- } +- public String getName() { +- return "myProject"; +- } +- } +- +- public static class Contract { +- +- @JsonSerialize(using = IdSerializer.class) +- public Project project; +- +- @JsonSerialize(contentUsing = IdSerializer.class) +- public List projects; +- +- @JsonSerialize(contentUsing = IdSerializer.class) +- public Map projectMap; +- +- @JsonDeserialize(using = LocalDateTimeJsonDeserializer.class) +- public LocalDateTime localDateTime; +- +- } +- +- public static class IdSerializer extends JsonSerializer { +- @Override +- public void serialize(Identifyable value, JsonGenerator gen, SerializerProvider serializers) throws IOException { +- gen.writeStartObject(); +- gen.writeStringField("id", value.getId()); +- gen.writeEndObject(); +- } +- } +- +- public static class LocalDateTimeJsonDeserializer extends StdDeserializer { +- private static final long serialVersionUID = 1L; +- +- public LocalDateTimeJsonDeserializer() { +- super(LocalDateTime.class); +- } +- +- @Override +- public LocalDateTime deserialize(JsonParser p, DeserializationContext ctxt) +- throws IOException, JsonProcessingException { +- final String text = p.getText(); +- return Objects.equals("TODAY", text) +- ? LocalDateTime.of(LocalDate.parse("2020-07-17"), LocalTime.MIN) +- : LocalDateTime.parse(text); +- } +- } +- +- @Test +- public void testJacksonIdSerializer() throws JsonProcessingException { +- final Contract contract = new Contract(); +- contract.project = new Project(); +- contract.projects = Collections.singletonList(new Project()); +- contract.projectMap = Collections.singletonMap("p1", new Project()); +- final String output = new ObjectMapper().writeValueAsString(contract); +- Assertions.assertTrue(output.contains(q("'project':{'id':"))); +- Assertions.assertTrue(output.contains(q("'projects':[{'id':"))); +- Assertions.assertTrue(output.contains(q("'projectMap':{'p1':{'id'"))); +- Assertions.assertFalse(output.contains("name")); +- } +- +- @Test +- public void testJacksonLocalDateTimeDeserializer() throws JsonProcessingException { +- final String json = q("{ 'localDateTime': 'TODAY' }"); +- final Contract contract = new ObjectMapper().readValue(json, Contract.class); +- Assertions.assertEquals(LocalDate.parse("2020-07-17"), contract.localDateTime.toLocalDate()); +- } +- +- private static String q(String json) { +- return json.replace('\'', '"'); +- } +- +- @Test +- public void testSerializerAndDeserializer() { +- final Settings settings = TestUtils.settings(); +- settings.jackson2Configuration = new Jackson2ConfigurationResolved(); +- settings.jackson2Configuration.serializerTypeMappings = Collections.singletonMap(IdSerializer.class, "{ id: string }"); +- settings.jackson2Configuration.deserializerTypeMappings = Collections.singletonMap(LocalDateTimeJsonDeserializer.class, "\"TODAY\" | string"); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(Contract.class)); +- Assertions.assertTrue(output.contains("project: { id: string }")); +- Assertions.assertTrue(output.contains("projects: { id: string }[]")); +- Assertions.assertTrue(output.contains("projectMap: { [index: string]: { id: string } }")); +- Assertions.assertTrue(output.contains("localDateTime: \"TODAY\" | string")); +- } +- +- @Test +- public void testConstructor() throws JsonProcessingException { +-// System.out.println(new ObjectMapper().readValue("{\"a\":\"a\", \"b\":\"b\"}", ClassWithJsonCreatorConstructor.class)); +- +- final Settings settings = TestUtils.settings(); +- settings.generateReadonlyAndWriteonlyJSDocTags = true; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(ClassWithJsonCreatorConstructor.class)); +- Assertions.assertTrue(output.contains("a: string;")); +- Assertions.assertTrue(output.contains("b: string;")); +- Assertions.assertTrue(output.contains("@writeonly")); +- } +- +- public static class ClassWithJsonCreatorConstructor { +- protected final String a; +- protected final String b; +- +- @JsonCreator +- private ClassWithJsonCreatorConstructor(@JsonProperty("a") String a, @MyOptional @JsonProperty("b") String b) { +- this.a = a; +- this.b = b; +- } +- +- @Override +- public String toString() { +- return "{" + "a=" + a + ", b=" + b + '}'; +- } +- +- } +- @Test +- public void testFactoryMethod() throws JsonProcessingException { +-// System.out.println(new ObjectMapper().readValue("{\"a\":\"a\", \"b\":\"b\"}", ClassWithJsonCreatorFactoryMethod.class)); +- +- final Settings settings = TestUtils.settings(); +- settings.generateReadonlyAndWriteonlyJSDocTags = true; +- settings.optionalProperties = OptionalProperties.useSpecifiedAnnotations; +- settings.optionalAnnotations = Arrays.asList(MyOptional.class); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(ClassWithJsonCreatorFactoryMethod.class)); +- Assertions.assertTrue(output.contains("a: string;")); +- Assertions.assertTrue(output.contains("b?: string;")); +- Assertions.assertTrue(output.contains("@writeonly")); +- } +- +- public static class ClassWithJsonCreatorFactoryMethod { +- protected final String a; +- protected final String b; +- +- private ClassWithJsonCreatorFactoryMethod(String a, String b) { +- this.a = a; +- this.b = b; +- } +- +- @JsonCreator +- public static ClassWithJsonCreatorFactoryMethod create(@JsonProperty("a") String a, @MyOptional @JsonProperty("b") String b) { +- return new ClassWithJsonCreatorFactoryMethod(a, b); +- } +- +- @Override +- public String toString() { +- return "{" + "a=" + a + ", b=" + b + '}'; +- } +- +- } +- +- @Retention(RetentionPolicy.RUNTIME) +- public @interface MyOptional { +- } + + } +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/Jackson2PolymorphismTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/Jackson2PolymorphismTest.java +index 5479dc409..88197def4 100644 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/Jackson2PolymorphismTest.java ++++ b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/Jackson2PolymorphismTest.java +@@ -3,8 +3,8 @@ package cz.habarta.typescript.generator; + + import com.fasterxml.jackson.annotation.JsonSubTypes; + import com.fasterxml.jackson.annotation.JsonTypeInfo; +-import org.junit.jupiter.api.Assertions; +-import org.junit.jupiter.api.Test; ++import org.junit.Assert; ++import org.junit.Test; + + + public class Jackson2PolymorphismTest { +@@ -12,7 +12,7 @@ public class Jackson2PolymorphismTest { + @Test + public void testPropertyNameQuoting() { + final String output = new TypeScriptGenerator(TestUtils.settings()).generateTypeScript(Input.from(BadFieldClass.class)); +- Assertions.assertTrue(output.contains("\"@class\"")); ++ Assert.assertTrue(output.contains("\"@class\"")); + } + + @JsonTypeInfo(use = JsonTypeInfo.Id.CLASS, include = JsonTypeInfo.As.PROPERTY, property = "@class") +@@ -25,8 +25,8 @@ public class Jackson2PolymorphismTest { + final int x = output.indexOf("interface X"); + final int y = output.indexOf("interface Y"); + final int z = output.indexOf("interface Z"); +- Assertions.assertTrue(z < x); +- Assertions.assertTrue(z < y); ++ Assert.assertTrue(z < x); ++ Assert.assertTrue(z < y); + } + + @JsonSubTypes({ +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/JavadocTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/JavadocTest.java +index e7795ecba..1ab93cf78 100644 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/JavadocTest.java ++++ b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/JavadocTest.java +@@ -8,9 +8,9 @@ import cz.habarta.typescript.generator.parser.Jackson2Parser; + import cz.habarta.typescript.generator.parser.Model; + import cz.habarta.typescript.generator.parser.PropertyModel; + import java.io.File; +-import java.util.Arrays; +-import org.junit.jupiter.api.Assertions; +-import org.junit.jupiter.api.Test; ++import java.util.*; ++import org.junit.Assert; ++import org.junit.Test; + + + public class JavadocTest { +@@ -18,92 +18,40 @@ public class JavadocTest { + @Test + public void testJavadoc() { + final Settings settings = TestUtils.settings(); +- settings.javadocXmlFiles = Arrays.asList(new File("src/test/javadoc/test-javadoc.xml")); ++ settings.javadocXmlFiles = Arrays.asList(new File("target/test-javadoc.xml")); + final TypeProcessor typeProcessor = new DefaultTypeProcessor(); + { + final Model model = new Jackson2Parser(settings, typeProcessor).parseModel(ClassWithJavadoc.class); + final BeanModel bean = model.getBeans().get(0); +- Assertions.assertEquals("Documentation for ClassWithJavadoc. First line.", bean.getComments().get(0)); +- Assertions.assertEquals("Second line.", bean.getComments().get(1)); ++ Assert.assertEquals("Documentation for ClassWithJavadoc. First line.", bean.getComments().get(0)); ++ Assert.assertEquals("Second line.", bean.getComments().get(1)); + final PropertyModel property1 = bean.getProperties().get(0); +- Assertions.assertEquals("Documentation for documentedField.", property1.getComments().get(0)); ++ Assert.assertEquals("Documentation for documentedField.", property1.getComments().get(0)); + final PropertyModel property2 = bean.getProperties().get(1); +- Assertions.assertEquals("Documentation for documentedEnumField.", property2.getComments().get(0)); +- final EnumModel enumModel = model.getEnums().get(0); +- Assertions.assertEquals("Documentation for DummyEnum.", enumModel.getComments().get(0)); ++ Assert.assertEquals("Documentation for documentedEnumField.", property2.getComments().get(0)); ++ final EnumModel enumModel = model.getEnums().get(0); ++ Assert.assertEquals("Documentation for DummyEnum.", enumModel.getComments().get(0)); + } + { + final Model model = new Jackson2Parser(settings, typeProcessor).parseModel(ClassWithoutJavadoc.class); + final BeanModel bean = model.getBeans().get(0); +- Assertions.assertNull(bean.getComments()); ++ Assert.assertNull(bean.getComments()); + final PropertyModel property = bean.getProperties().get(0); +- Assertions.assertNull(property.getComments()); ++ Assert.assertNull(property.getComments()); + } + { +- final String generated = new TypeScriptGenerator(settings).generateTypeScript( +- Input.from(ClassWithJavadoc.class, InterfaceWithJavadoc.class, ClassWithEmbeddedExample.class)); +- +- Assertions.assertTrue(generated.contains("Documentation for ClassWithJavadoc. First line.")); +- Assertions.assertTrue(generated.contains("Second line.")); +- Assertions.assertTrue(generated.contains("Documentation for documentedField.")); +- Assertions.assertTrue(generated.contains("Documentation for documentedEnumField.")); +- Assertions.assertTrue(generated.contains("Documentation for DummyEnum.")); +- Assertions.assertTrue(generated.contains("Documentation for getter property.")); +- Assertions.assertTrue(generated.contains("Documentation for renamed field.")); +- Assertions.assertTrue(generated.contains("Documentation for InterfaceWithJavadoc.")); +- Assertions.assertTrue(generated.contains("Documentation for interface getter property.")); +- Assertions.assertTrue(generated.contains("@return value of getterPropery")); +- Assertions.assertTrue(generated.contains("@deprecated replaced by something else\n")); +- Assertions.assertTrue(!generated.contains("@deprecated\n")); +- Assertions.assertTrue(generated.contains(" * // indentation and line breaks are kept\n * \n * {@literal @}")); +- Assertions.assertTrue(generated.contains(" * public List generics() {\n")); +- Assertions.assertTrue(generated.contains("ff0000")); +- Assertions.assertTrue(generated.contains("00ff00")); +- Assertions.assertTrue(generated.contains("0000ff")); +- } +- { +- final String generated = new TypeScriptGenerator(settings).generateTypeScript(Input.from(DeprecatedClassWithoutJavadoc.class)); +- final String expected = "" +- + "/**\n" +- + " * @deprecated\n" +- + " */\n" +- + "interface DeprecatedClassWithoutJavadoc {\n" +- + " /**\n" +- + " * @deprecated\n" +- + " */\n" +- + " deprecatedField: string;\n" +- + "}"; +- Assertions.assertEquals(expected.trim(), generated.trim()); +- } +- { +- final String generated = new TypeScriptGenerator(settings).generateTypeScript(Input.from(DeprecatedEnumWithoutJavadoc.class)); +- final String expected = "" +- + "/**\n" +- + " * @deprecated\n" +- + " * \n" +- + " * Values:\n" +- + " * - `North`\n" +- + " * - `East` - @deprecated\n" +- + " * - `South`\n" +- + " * - `West`\n" +- + " */\n" +- + "type DeprecatedEnumWithoutJavadoc = \"North\" | \"East\" | \"South\" | \"West\";\n" +- + ""; +- Assertions.assertEquals(expected.trim(), generated.trim()); +- } +- { +- final String generated = new TypeScriptGenerator(settings).generateTypeScript(Input.from(ClassWithBrElements.class)); +- Assertions.assertTrue(!generated.contains("
")); +- Assertions.assertTrue(!generated.contains("
")); +- Assertions.assertTrue(!generated.contains("
")); +- Assertions.assertTrue(generated.contains("Class documentation\n * \n")); +- Assertions.assertTrue(generated.contains("Some documentation\n * \n * for this class.")); +- } +- { +- final String generated = new TypeScriptGenerator(settings).generateTypeScript(Input.from(ClassWithPElements.class)); +- Assertions.assertTrue(!generated.contains("

")); +- Assertions.assertTrue(!generated.contains("

")); +- Assertions.assertTrue(generated.contains("Long\n * paragraph\n * \n * Second\n * paragraph")); ++ final String generated = new TypeScriptGenerator(settings).generateTypeScript(Input.from(ClassWithJavadoc.class, InterfaceWithJavadoc.class)); ++ Assert.assertTrue(generated.contains("Documentation for ClassWithJavadoc. First line.")); ++ Assert.assertTrue(generated.contains("Second line.")); ++ Assert.assertTrue(generated.contains("Documentation for documentedField.")); ++ Assert.assertTrue(generated.contains("Documentation for documentedEnumField.")); ++ Assert.assertTrue(generated.contains("Documentation for DummyEnum.")); ++ Assert.assertTrue(generated.contains("Documentation for getter property.")); ++ Assert.assertTrue(generated.contains("Documentation for renamed field.")); ++ Assert.assertTrue(generated.contains("Documentation for InterfaceWithJavadoc.")); ++ Assert.assertTrue(generated.contains("Documentation for interface getter property.")); ++ Assert.assertTrue(generated.contains("@return value of getterPropery")); ++ Assert.assertTrue(generated.contains("@deprecated replaced by something else")); + } + } + +@@ -159,62 +107,4 @@ public class JavadocTest { + + } + +- @Deprecated +- public static class DeprecatedClassWithoutJavadoc { +- +- @Deprecated +- public String deprecatedField; +- +- } +- +- @Deprecated +- public static enum DeprecatedEnumWithoutJavadoc { +- +- North, +- @Deprecated East, +- South, +- West; +- +- } +- +- /** +- * This class comes with an embedded example! +- * +- *
{@code
+-     * public class Example {
+-     *     // indentation and line breaks are kept
+-     *
+-     *     {@literal @}SuppressWarnings
+-     *     public List generics() {
+-     *         return null;
+-     *     }
+-     * }
+-     * }
+- */ +- public static class ClassWithEmbeddedExample { +- +- public String field; +- +- } +- +- /** +- * Class documentation
+- * -------------------
+- * Some documentation
for this class.
+- */ +- public static class ClassWithBrElements { +- } +- +- /** +- * First sentence. +- * +- *

Long +- * paragraph

+- * +- *

Second +- * paragraph

+- */ +- public static class ClassWithPElements { +- } +- + } +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/JaxbTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/JaxbTest.java +index 13c2668f6..42fe9ec7a 100644 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/JaxbTest.java ++++ b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/JaxbTest.java +@@ -1,13 +1,9 @@ + + package cz.habarta.typescript.generator; + +-import javax.xml.bind.JAXBElement; +-import javax.xml.bind.annotation.XmlElement; +-import javax.xml.bind.annotation.XmlElementRef; +-import javax.xml.bind.annotation.XmlRootElement; +-import javax.xml.bind.annotation.XmlTransient; +-import org.junit.jupiter.api.Assertions; +-import org.junit.jupiter.api.Test; ++import javax.xml.bind.annotation.*; ++import org.junit.Assert; ++import org.junit.Test; + + + public class JaxbTest { +@@ -17,8 +13,8 @@ public class JaxbTest { + final Settings settings = TestUtils.settings(); + settings.jsonLibrary = JsonLibrary.jaxb; + final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(MyJaxbBean.class)); +- Assertions.assertTrue(output.contains("king")); +- Assertions.assertFalse(output.contains("age")); ++ Assert.assertTrue(output.contains("king")); ++ Assert.assertFalse(output.contains("age")); + } + + @XmlRootElement +@@ -32,36 +28,4 @@ public class JaxbTest { + + } + +- @Test +- public void testJAXBElement() { +- final Settings settings = TestUtils.settings(); +- settings.jsonLibrary = JsonLibrary.jaxb; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(ClassWithJAXBElements.class)); +- Assertions.assertTrue(output.contains("ExternalReference: string")); +- Assertions.assertTrue(output.contains("UserInformation: UserType")); +- Assertions.assertTrue(output.contains("Source: EndPointType")); +- Assertions.assertTrue(output.contains("AdditionalContextInfo: AdditionalContextType")); +- } +- +- @XmlRootElement +- private static class ClassWithJAXBElements { +- @XmlElement(name = "ExternalReference") +- protected String externalReference; +- @XmlElementRef(name = "UserInformation", type = JAXBElement.class, required = false) +- protected JAXBElement userInformation; +- @XmlElementRef(name = "Source", type = JAXBElement.class, required = false) +- protected JAXBElement source; +- @XmlElementRef(name = "AdditionalContextInfo", type = JAXBElement.class, required = false) +- protected JAXBElement additionalContextInfo; +- } +- +- private static class UserType { +- } +- +- private static class EndPointType { +- } +- +- private static class AdditionalContextType { +- } +- + } +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/JaxbV3Test.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/JaxbV3Test.java +deleted file mode 100644 +index 39ccab0a2..000000000 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/JaxbV3Test.java ++++ /dev/null +@@ -1,67 +0,0 @@ +- +-package cz.habarta.typescript.generator; +- +-import jakarta.xml.bind.JAXBElement; +-import jakarta.xml.bind.annotation.XmlElement; +-import jakarta.xml.bind.annotation.XmlElementRef; +-import jakarta.xml.bind.annotation.XmlRootElement; +-import jakarta.xml.bind.annotation.XmlTransient; +-import org.junit.jupiter.api.Assertions; +-import org.junit.jupiter.api.Test; +- +- +-public class JaxbV3Test { +- +- @Test +- public void test() { +- final Settings settings = TestUtils.settings(); +- settings.jsonLibrary = JsonLibrary.jaxb; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(MyJaxbBean.class)); +- Assertions.assertTrue(output.contains("king")); +- Assertions.assertFalse(output.contains("age")); +- } +- +- @XmlRootElement +- private static class MyJaxbBean { +- +- @XmlElement(name = "king") +- public String name; +- +- @XmlTransient +- public int age; +- +- } +- +- @Test +- public void testJAXBElement() { +- final Settings settings = TestUtils.settings(); +- settings.jsonLibrary = JsonLibrary.jaxb; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(ClassWithJAXBElements.class)); +- Assertions.assertTrue(output.contains("ExternalReference: string")); +- Assertions.assertTrue(output.contains("UserInformation: UserType")); +- Assertions.assertTrue(output.contains("Source: EndPointType")); +- Assertions.assertTrue(output.contains("AdditionalContextInfo: AdditionalContextType")); +- } +- +- @XmlRootElement +- private static class ClassWithJAXBElements { +- @XmlElement(name = "ExternalReference") +- protected String externalReference; +- @XmlElementRef(name = "UserInformation", type = JAXBElement.class, required = false) +- protected JAXBElement userInformation; +- @XmlElementRef(name = "Source", type = JAXBElement.class, required = false) +- protected JAXBElement source; +- @XmlElementRef(name = "AdditionalContextInfo", type = JAXBElement.class, required = false) +- protected JAXBElement additionalContextInfo; +- } +- +- private static class UserType { +- } +- +- private static class EndPointType { +- } +- +- private static class AdditionalContextType { +- } +- +-} +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/JaxrsApplicationScannerTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/JaxrsApplicationScannerTest.java +new file mode 100644 +index 000000000..e3a9b9d5d +--- /dev/null ++++ b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/JaxrsApplicationScannerTest.java +@@ -0,0 +1,230 @@ ++ ++package cz.habarta.typescript.generator; ++ ++import com.fasterxml.jackson.core.type.*; ++import cz.habarta.typescript.generator.parser.*; ++import cz.habarta.typescript.generator.util.Predicate; ++import java.io.*; ++import java.lang.reflect.*; ++import java.util.*; ++import javax.activation.*; ++import javax.ws.rs.*; ++import javax.ws.rs.core.*; ++import javax.xml.bind.*; ++import javax.xml.transform.*; ++import javax.xml.transform.dom.*; ++import org.junit.*; ++ ++ ++public class JaxrsApplicationScannerTest { ++ ++ @Test ++ public void testReturnedTypes() { ++ final List> sourceTypes = new JaxrsApplicationScanner().scanJaxrsApplication(TestApplication.class.getName(), null); ++ List types = getTypes(sourceTypes); ++ final List expectedTypes = Arrays.asList( ++ A.class, ++ new TypeReference>(){}.getType(), ++ C.class, ++ new TypeReference>(){}.getType(), ++ List.class, ++ E.class, ++ new TypeReference>(){}.getType(), ++ G.class, ++ new TypeReference>(){}.getType(), ++ I.class, ++ J[].class ++ ); ++ assertHasSameItems(expectedTypes, types); ++ } ++ ++ @Test ++ public void testWithParsingWithExplicitApplication() { ++ testWithParsing(TestApplication.class.getName()); ++ } ++ ++ @Test ++ public void testWithParsingWithDefaultApplication() { ++ testWithParsing(null); ++ } ++ ++ private void testWithParsing(String applicationClass) { ++ final List> types = new JaxrsApplicationScanner().scanJaxrsApplication(applicationClass, null); ++ final Model model = new TypeScriptGenerator(TestUtils.settings()).getModelParser().parseModel(types); ++ final ArrayList> classes = new ArrayList<>(); ++ for (BeanModel beanModel : model.getBeans()) { ++ classes.add(beanModel.getOrigin()); ++ } ++ final List> expectedClasses = Arrays.asList( ++ A.class, ++ B.class, ++ C.class, ++ D.class, ++ E.class, ++ F.class, ++ G.class, ++ H.class, ++ I.class, ++ J.class ++ ); ++ assertHasSameItems(expectedClasses, classes); ++ } ++ ++ @Test ++ public void testExcludedResource() { ++ final Predicate excludeFilter = Settings.createExcludeFilter(Arrays.asList( ++ TestResource1.class.getName() ++ ), null); ++ final List> sourceTypes = new JaxrsApplicationScanner().scanJaxrsApplication(TestApplication.class.getName(), excludeFilter); ++ Assert.assertEquals(0, sourceTypes.size()); ++ } ++ ++ @Test ++ public void testExcludedType() { ++ final Predicate excludeFilter = Settings.createExcludeFilter(Arrays.asList( ++ A.class.getName(), ++ J.class.getName() ++ ), null); ++ final List> sourceTypes = new JaxrsApplicationScanner().scanJaxrsApplication(TestApplication.class.getName(), excludeFilter); ++ Assert.assertTrue(!getTypes(sourceTypes).contains(A.class)); ++ Assert.assertTrue(getTypes(sourceTypes).contains(J[].class)); ++ } ++ ++ private List getTypes(final List> sourceTypes) { ++ final List types = new ArrayList<>(); ++ for (SourceType sourceType : sourceTypes) { ++ types.add(sourceType.type); ++ } ++ return types; ++ } ++ ++ private static void assertHasSameItems(Collection expected, Collection actual) { ++ for (T value : expected) { ++ Assert.assertTrue("Value '" + value + "' is missing in " + actual, actual.contains(value)); ++ } ++ for (T value : actual) { ++ Assert.assertTrue("Value '" + value + "' not expected.", expected.contains(value)); ++ } ++ } ++ ++ private static class TestApplication extends Application { ++ @Override ++ public Set> getClasses() { ++ return new LinkedHashSet>(Arrays.asList( ++ TestResource1.class ++ )); ++ } ++ } ++ ++ @Path("test") ++ private static class TestResource1 { ++ @GET ++ public void getVoid() { ++ } ++ @GET ++ public Response getResponse() { ++ return null; ++ } ++ @GET ++ public GenericEntity
getA() { ++ return null; ++ } ++ @GET ++ public GenericEntity> getB() { ++ return null; ++ } ++ @GET ++ public C getC() { ++ return null; ++ } ++ @GET ++ public List getD() { ++ return null; ++ } ++ @SuppressWarnings("rawtypes") ++ @GET ++ public List getRawList() { ++ return null; ++ } ++ @GET ++ @Path("e") ++ public E getE() { ++ return null; ++ } ++ @Path("f") ++ public SubResource1 getSubResource1() { ++ return null; ++ } ++ @POST ++ public void setG(G g) { ++ } ++ @POST ++ public void setHs(Map hs) { ++ } ++ @POST ++ public void setI( ++ @MatrixParam("") String matrixParam, ++ @QueryParam("") String queryParam, ++ @PathParam("") String pathParam, ++ @CookieParam("") String cookieParam, ++ @HeaderParam("") String headerParam, ++ @Context String context, ++ @FormParam("") String formParam, ++ I entityI) { ++ } ++ @POST ++ public void setJs(J[] js) { ++ } ++ @POST ++ public void setStandardEntity(byte[] value) {} ++ @POST ++ public void setStandardEntity(String value) {} ++ @POST ++ public void setStandardEntity(InputStream value) {} ++ @POST ++ public void setStandardEntity(Reader value) {} ++ @POST ++ public void setStandardEntity(File value) {} ++ @POST ++ public void setStandardEntity(DataSource value) {} ++ @POST ++ public void setStandardEntity(Source value) {} ++ @POST ++ public void setStandardEntity(DOMSource value) {} ++ @POST ++ public void setStandardEntity(JAXBElement value) {} ++ @POST ++ public void setStandardEntity(MultivaluedMap value) {} ++ @POST ++ public void setStandardEntity(StreamingOutput value) {} ++ @POST ++ public void setStandardEntity(Boolean value) {} ++ @POST ++ public void setStandardEntity(Character value) {} ++ @POST ++ public void setStandardEntity(Number value) {} ++ @POST ++ public void setStandardEntity(Integer value) {} ++ @POST ++ public void setStandardEntity(int value) {} ++ } ++ ++ private static class SubResource1 { ++ @GET ++ public List getFs() { ++ return null; ++ } ++ } ++ ++ private static class A {} ++ private static class B {} ++ private static class C {} ++ private static class D {} ++ private static class E {} ++ private static class F {} ++ private static class G {} ++ private static class H {} ++ private static class I {} ++ private static class J {} ++ ++} +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/JaxrsApplicationTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/JaxrsApplicationTest.java +deleted file mode 100644 +index 9709b1580..000000000 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/JaxrsApplicationTest.java ++++ /dev/null +@@ -1,731 +0,0 @@ +- +-package cz.habarta.typescript.generator; +- +-import com.fasterxml.jackson.core.type.TypeReference; +-import cz.habarta.typescript.generator.compiler.ModelCompiler; +-import cz.habarta.typescript.generator.parser.BeanModel; +-import cz.habarta.typescript.generator.parser.JaxrsApplicationParser; +-import cz.habarta.typescript.generator.parser.Model; +-import cz.habarta.typescript.generator.parser.SourceType; +-import cz.habarta.typescript.generator.type.JGenericArrayType; +-import cz.habarta.typescript.generator.type.JTypeWithNullability; +-import io.github.classgraph.ClassGraph; +-import io.swagger.annotations.Api; +-import io.swagger.annotations.ApiOperation; +-import io.swagger.annotations.ApiResponse; +-import io.swagger.annotations.ApiResponses; +-import jakarta.ws.rs.ApplicationPath; +-import jakarta.ws.rs.BeanParam; +-import jakarta.ws.rs.Consumes; +-import jakarta.ws.rs.CookieParam; +-import jakarta.ws.rs.FormParam; +-import jakarta.ws.rs.GET; +-import jakarta.ws.rs.HeaderParam; +-import jakarta.ws.rs.MatrixParam; +-import jakarta.ws.rs.POST; +-import jakarta.ws.rs.PUT; +-import jakarta.ws.rs.Path; +-import jakarta.ws.rs.PathParam; +-import jakarta.ws.rs.Produces; +-import jakarta.ws.rs.QueryParam; +-import jakarta.ws.rs.container.AsyncResponse; +-import jakarta.ws.rs.container.Suspended; +-import jakarta.ws.rs.core.Application; +-import jakarta.ws.rs.core.Context; +-import jakarta.ws.rs.core.GenericEntity; +-import jakarta.ws.rs.core.MediaType; +-import jakarta.ws.rs.core.MultivaluedMap; +-import jakarta.ws.rs.core.Response; +-import jakarta.ws.rs.core.StreamingOutput; +-import java.io.File; +-import java.io.InputStream; +-import java.io.Reader; +-import java.lang.reflect.Type; +-import java.net.URI; +-import java.util.ArrayList; +-import java.util.Arrays; +-import java.util.Collection; +-import java.util.Collections; +-import java.util.LinkedHashSet; +-import java.util.List; +-import java.util.Map; +-import java.util.Set; +-import java.util.function.Predicate; +-import javax.activation.DataSource; +-import javax.xml.bind.JAXBElement; +-import javax.xml.transform.Source; +-import javax.xml.transform.dom.DOMSource; +-import org.glassfish.jersey.jackson.JacksonFeature; +-import org.glassfish.jersey.jdkhttp.JdkHttpServerFactory; +-import org.glassfish.jersey.server.ResourceConfig; +-import org.junit.jupiter.api.Assertions; +-import org.junit.jupiter.api.Test; +- +- +-@SuppressWarnings("unused") +-public class JaxrsApplicationTest { +- +- @Test +- public void testReturnedTypesFromApplication() { +- final List> sourceTypes = JaxrsApplicationScanner.scanJaxrsApplication(TestApplication.class, null); +- List types = getTypes(sourceTypes); +- final List expectedTypes = Arrays.asList( +- TestApplication.class, +- TestResource1.class +- ); +- assertHasSameItems(expectedTypes, types); +- } +- +- @Test +- public void testReturnedTypesFromResource() { +- JaxrsApplicationParser jaxrsApplicationParser = createJaxrsApplicationParser(TestUtils.settings()); +- final JaxrsApplicationParser.Result result = jaxrsApplicationParser.tryParse(new SourceType<>(TestResource1.class)); +- Assertions.assertNotNull(result); +- List types = getTypes(result.discoveredTypes); +- final List expectedTypes = Arrays.asList( +- A.class, +- new TypeReference>(){}.getType(), +- C.class, +- new TypeReference>(){}.getType(), +- List.class, +- E.class, +- new TypeReference>(){}.getType(), +- G.class, +- new TypeReference>(){}.getType(), +- I.class, +- JGenericArrayType.of(J[].class), +- // types handled by DefaultTypeProcessor +- String.class, Boolean.class, Character.class, Number.class, Integer.class, int.class, void.class +- ); +- assertHasSameItems(expectedTypes, types); +- } +- +- @Test +- public void testWithParsingWithExplicitApplication() { +- final List> sourceTypes = JaxrsApplicationScanner.scanJaxrsApplication(TestApplication.class, null); +- testWithParsing(sourceTypes, true); +- } +- +- @Test +- public void testWithParsingWithDefaultApplication() { +- final List> sourceTypes = JaxrsApplicationScanner.scanAutomaticJaxrsApplication(new ClassGraph().enableAllInfo().scan(), null); +- testWithParsing(sourceTypes, false); +- } +- +- private void testWithParsing(List> types, boolean exactMatch) { +- final Model model = new TypeScriptGenerator(TestUtils.settings()).getModelParser().parseModel(types); +- final ArrayList> classes = new ArrayList<>(); +- for (BeanModel beanModel : model.getBeans()) { +- classes.add(beanModel.getOrigin()); +- } +- final List> expectedClasses = Arrays.asList( +- A.class, +- B.class, +- C.class, +- D.class, +- E.class, +- F.class, +- G.class, +- H.class, +- I.class, +- J.class +- ); +- if (exactMatch) { +- assertHasSameItems(expectedClasses, classes); +- } else { +- Assertions.assertTrue(classes.containsAll(expectedClasses)); +- } +- } +- +- @Test +- public void testExcludedResource() { +- final Predicate excludeFilter = Settings.createExcludeFilter(Arrays.asList( +- TestResource1.class.getName() +- ), null); +- final List> sourceTypes = JaxrsApplicationScanner.scanJaxrsApplication(TestApplication.class, excludeFilter); +- final List types = getTypes(sourceTypes); +- Assertions.assertEquals(1, types.size()); +- Assertions.assertTrue(getTypes(sourceTypes).contains(TestApplication.class)); +- } +- +- @Test +- public void testExcludedType() { +- final Settings settings = TestUtils.settings(); +- settings.setExcludeFilter(Arrays.asList( +- A.class.getName(), +- J.class.getName() +- ), null); +- final JaxrsApplicationParser jaxrsApplicationParser = createJaxrsApplicationParser(settings); +- final JaxrsApplicationParser.Result result = jaxrsApplicationParser.tryParse(new SourceType<>(TestResource1.class)); +- Assertions.assertNotNull(result); +- Assertions.assertTrue(!getTypes(result.discoveredTypes).contains(A.class)); +- Assertions.assertTrue(getTypes(result.discoveredTypes).contains(JGenericArrayType.of(J[].class))); +- } +- +- private static JaxrsApplicationParser createJaxrsApplicationParser(Settings settings) { +- final TypeProcessor typeProcessor = new TypeScriptGenerator(settings).getCommonTypeProcessor(); +- final JaxrsApplicationParser jaxrsApplicationParser = new JaxrsApplicationParser(settings, typeProcessor); +- return jaxrsApplicationParser; +- } +- +- private List getTypes(final List> sourceTypes) { +- final List types = new ArrayList<>(); +- for (SourceType sourceType : sourceTypes) { +- types.add(JTypeWithNullability.removeNullability(sourceType.type)); +- } +- return types; +- } +- +- private static void assertHasSameItems(Collection expected, Collection actual) { +- for (T value : expected) { +- Assertions.assertTrue(actual.contains(value), "Value '" + value + "' is missing in " + actual); +- } +- for (T value : actual) { +- Assertions.assertTrue(expected.contains(value), "Value '" + value + "' not expected."); +- } +- } +- +- private static class TestApplication extends Application { +- @Override +- public Set> getClasses() { +- return new LinkedHashSet<>(Arrays.asList( +- TestResource1.class +- )); +- } +- } +- +- @Path("test") +- static class TestResource1 { +- @GET +- public void getVoid() { +- } +- @GET +- public Response getResponse() { +- return null; +- } +- @GET +- @Path("a") +- public GenericEntity getA() { +- return null; +- } +- @GET +- public GenericEntity> getB() { +- return null; +- } +- @GET +- public C getC() { +- return null; +- } +- @GET +- public List getD() { +- return null; +- } +- @SuppressWarnings("rawtypes") +- @GET +- public List getRawList() { +- return null; +- } +- @GET +- @Path("e") +- public E getE() { +- return null; +- } +- @Path("f") +- public SubResource1 getSubResource1() { +- return null; +- } +- @POST +- public void setG(G g) { +- } +- @POST +- public void setHs(Map hs) { +- } +- @POST +- public void setI( +- @MatrixParam("") String matrixParam, +- @QueryParam("") String queryParam, +- @PathParam("") String pathParam, +- @CookieParam("") String cookieParam, +- @Suspended AsyncResponse suspendedParam, +- @HeaderParam("") String headerParam, +- @Context String context, +- @FormParam("") String formParam, +- I entityI) { +- } +- @POST +- @ApiOperation(value = "async", response = String.class) +- public void setAsync( +- @Suspended AsyncResponse suspendedParam +- ) { +- } +- @POST +- public void setJs(J[] js) { +- } +- @POST +- public void setStandardEntity(byte[] value) {} +- @POST +- public void setStandardEntity(String value) {} +- @POST +- public void setStandardEntity(InputStream value) {} +- @POST +- public void setStandardEntity(Reader value) {} +- @POST +- public void setStandardEntity(File value) {} +- @POST +- public void setStandardEntity(DataSource value) {} +- @POST +- public void setStandardEntity(Source value) {} +- @POST +- public void setStandardEntity(DOMSource value) {} +- @POST +- public void setStandardEntity(JAXBElement value) {} +- @POST +- public void setStandardEntity(MultivaluedMap value) {} +- @POST +- public void setStandardEntity(StreamingOutput value) {} +- @POST +- public void setStandardEntity(Boolean value) {} +- @POST +- public void setStandardEntity(Character value) {} +- @POST +- public void setStandardEntity(Number value) {} +- @POST +- public void setStandardEntity(Integer value) {} +- @POST +- public void setStandardEntity(int value) {} +- } +- +- private static class SubResource1 { +- @GET +- public List getFs() { +- return null; +- } +- } +- +- private static class A {} +- private static class B {} +- private static class C {} +- private static class D {} +- private static class E {} +- private static class F {} +- private static class G {} +- private static class H {} +- private static class I {} +- private static class J {} +- +- @Test +- public void basicInterfaceTest() { +- final Settings settings = TestUtils.settings(); +- settings.generateJaxrsApplicationInterface = true; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(TestResource1.class)); +- final String errorMessage = "Unexpected output: " + output; +- Assertions.assertTrue(output.contains("interface RestApplication"), errorMessage); +- Assertions.assertTrue(output.contains("getA(): RestResponse;"), errorMessage); +- Assertions.assertTrue(output.contains("type RestResponse = Promise;"), errorMessage); +- Assertions.assertTrue(!output.contains("function uriEncoding"), errorMessage); +- Assertions.assertTrue(output.contains("setAsync(): RestResponse"), errorMessage); +- } +- +- @Test +- public void complexInterfaceTest() { +- final Settings settings = TestUtils.settings(); +- settings.generateJaxrsApplicationInterface = true; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(OrganizationApplication.class)); +- final String errorMessage = "Unexpected output: " + output; +- Assertions.assertTrue(output.contains("type RestResponse = Promise;"), errorMessage); +- Assertions.assertTrue(output.contains("interface Organization"), errorMessage); +- Assertions.assertTrue(output.contains("interface OrganizationApplication"), errorMessage); +- Assertions.assertTrue(output.contains("HTTP GET /api/organizations/{ organizationCode : [a-z]+ }/{organizationId}"), errorMessage); +- Assertions.assertTrue(output.contains("getOrganization(organizationCode: string, organizationId: number): RestResponse;"), errorMessage); +- Assertions.assertTrue(output.contains("searchOrganizations(queryParams?: { name?: string; \"search-limit\"?: number; }): RestResponse;"), errorMessage); +- Assertions.assertTrue(output.replace("arg1", "organization").contains("setOrganization(organizationCode: string, organizationId: number, organization: Organization): RestResponse;"), errorMessage); +- Assertions.assertTrue(output.contains("HTTP GET /api/people/{personId}/address/{address-id}"), errorMessage); +- Assertions.assertTrue(output.contains("getAddress(personId: number, addressId: number): RestResponse
;"), errorMessage); +- Assertions.assertTrue(output.contains("HTTP GET /api/people/{personId}"), errorMessage); +- Assertions.assertTrue(output.contains("getPerson(personId: number): RestResponse;"), errorMessage); +- } +- +- @Test +- public void methodNameConflictTest() { +- final Settings settings = TestUtils.settings(); +- settings.generateJaxrsApplicationInterface = true; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(NameConflictResource.class)); +- final String errorMessage = "Unexpected output: " + output; +- Assertions.assertTrue(output.contains("interface RestApplication"), errorMessage); +- Assertions.assertTrue(output.replace("arg0", "person").contains("person$POST$conflict(person: Person): RestResponse;"), errorMessage); +- Assertions.assertTrue(output.contains("person$GET$conflict(): RestResponse;"), errorMessage); +- Assertions.assertTrue(output.contains("person$GET$conflict_search(queryParams?: { search?: string; }): RestResponse;"), errorMessage); +- Assertions.assertTrue(output.contains("person$GET$conflict_personId(personId: number): RestResponse;"), errorMessage); +- } +- +- @Test +- public void customizationTest() { +- final Settings settings = TestUtils.settings(); +- settings.generateJaxrsApplicationInterface = true; +- settings.restResponseType = "AxiosPromise"; +- settings.restOptionsType = "AxiosRequestConfig"; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(OrganizationApplication.class)); +- final String errorMessage = "Unexpected output: " + output; +- Assertions.assertTrue(output.contains("type RestResponse = AxiosPromise;"), errorMessage); +- Assertions.assertTrue(output.contains("searchOrganizations(queryParams?: { name?: string; \"search-limit\"?: number; }, options?: AxiosRequestConfig): RestResponse;"), errorMessage); +- } +- +- @Test +- public void basicClientTest() { +- final Settings settings = TestUtils.settings(); +- settings.outputFileType = TypeScriptFileType.implementationFile; +- settings.generateJaxrsApplicationClient = true; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(OrganizationApplication.class)); +- final String errorMessage = "Unexpected output: " + output; +- // HttpClient +- Assertions.assertTrue(output.contains("interface HttpClient"), errorMessage); +- Assertions.assertTrue(output.contains("request(requestConfig: { method: string; url: string; queryParams?: any; data?: any; copyFn?: (data: R) => R; }): RestResponse;"), errorMessage); +- // application client +- Assertions.assertTrue(output.contains("class OrganizationApplicationClient"), errorMessage); +- Assertions.assertTrue(output.contains("getPerson(personId: number): RestResponse"), errorMessage); +- Assertions.assertTrue(output.contains("return this.httpClient.request({ method: \"GET\", url: uriEncoding`api/people/${personId}` });"), errorMessage); +- Assertions.assertTrue(output.contains("getAddress(personId: number, addressId: number): RestResponse
"), errorMessage); +- Assertions.assertTrue(output.contains("return this.httpClient.request({ method: \"GET\", url: uriEncoding`api/people/${personId}/address/${addressId}` });"), errorMessage); +- Assertions.assertTrue(output.contains("type RestResponse = Promise;"), errorMessage); +- // helper +- Assertions.assertTrue(output.contains("function uriEncoding"), errorMessage); +- } +- +- @Test +- public void clientCustomizationTest() { +- final Settings settings = TestUtils.settings(); +- settings.outputFileType = TypeScriptFileType.implementationFile; +- settings.generateJaxrsApplicationClient = true; +- settings.restResponseType = "AxiosPromise"; +- settings.restOptionsType = "AxiosRequestConfig"; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(OrganizationApplication.class)); +- final String errorMessage = "Unexpected output: " + output; +- // HttpClient +- Assertions.assertTrue(output.contains("request(requestConfig: { method: string; url: string; queryParams?: any; data?: any; copyFn?: (data: R) => R; options?: AxiosRequestConfig; }): RestResponse;"), errorMessage); +- // application client +- Assertions.assertTrue(output.contains("class OrganizationApplicationClient"), errorMessage); +- Assertions.assertTrue(output.contains("getPerson(personId: number, options?: AxiosRequestConfig): RestResponse"), errorMessage); +- Assertions.assertTrue(output.contains("return this.httpClient.request({ method: \"GET\", url: uriEncoding`api/people/${personId}`, options: options });"), errorMessage); +- Assertions.assertTrue(output.contains("type RestResponse = AxiosPromise;"), errorMessage); +- } +- +- @Test +- public void testNamespacingPerResource() { +- final Settings settings = TestUtils.settings(); +- settings.outputFileType = TypeScriptFileType.implementationFile; +- settings.generateJaxrsApplicationInterface = true; +- settings.generateJaxrsApplicationClient = true; +- settings.restNamespacing = RestNamespacing.perResource; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(OrganizationApplication.class)); +- final String errorMessage = "Unexpected output: " + output; +- Assertions.assertTrue(!output.contains("class OrganizationApplicationClient"), errorMessage); +- Assertions.assertTrue(output.contains("class OrganizationsResourceClient implements OrganizationsResource "), errorMessage); +- Assertions.assertTrue(!output.contains("class OrganizationResourceClient"), errorMessage); +- Assertions.assertTrue(output.contains("class PersonResourceClient implements PersonResource "), errorMessage); +- } +- +- @Test +- public void testNamespacingByAnnotation() { +- final Settings settings = TestUtils.settings(); +- settings.outputFileType = TypeScriptFileType.implementationFile; +- settings.generateJaxrsApplicationInterface = true; +- settings.generateJaxrsApplicationClient = true; +- settings.restNamespacing = RestNamespacing.byAnnotation; +- settings.restNamespacingAnnotation = Api.class; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(OrganizationApplication.class)); +- final String errorMessage = "Unexpected output: " + output; +- Assertions.assertTrue(output.contains("class OrgApiClient implements OrgApi "), errorMessage); +- Assertions.assertTrue(output.contains("class OrganizationApplicationClient implements OrganizationApplication "), errorMessage); +- Assertions.assertTrue(!output.contains("class OrganizationsResourceClient"), errorMessage); +- Assertions.assertTrue(!output.contains("class OrganizationResourceClient"), errorMessage); +- Assertions.assertTrue(!output.contains("class PersonResourceClient"), errorMessage); +- } +- +- @Test +- public void testJavadoc() { +- final Settings settings = TestUtils.settings(); +- settings.outputFileType = TypeScriptFileType.implementationFile; +- settings.generateJaxrsApplicationInterface = true; +- settings.javadocXmlFiles = Arrays.asList(new File("src/test/javadoc/test-javadoc.xml")); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(OrganizationApplication.class)); +- Assertions.assertTrue(output.contains("Returns person with specified ID.")); +- } +- +- @Test +- public void testSwaggerComments() { +- final Settings settings = TestUtils.settings(); +- settings.outputFileType = TypeScriptFileType.implementationFile; +- settings.generateJaxrsApplicationInterface = true; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(OrganizationApplication.class)); +- Assertions.assertTrue(output.contains("Comment in swagger annotation")); +- Assertions.assertTrue(output.contains("Response code 200 - ok")); +- Assertions.assertTrue(output.contains("Response code 400 - not ok")); +- } +- +- @Test +- public void testDeprecatedAnnotationComment() { +- final Settings settings = TestUtils.settings(); +- settings.outputFileType = TypeScriptFileType.implementationFile; +- settings.generateJaxrsApplicationInterface = true; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(OrganizationApplication.class)); +- Assertions.assertTrue(output.contains("@deprecated")); +- } +- +- @ApplicationPath("api") +- public static class OrganizationApplication extends Application { +- @Override +- public Set> getClasses() { +- return new LinkedHashSet<>(Arrays.asList( +- OrganizationsResource.class, +- PersonResource.class +- )); +- } +- } +- +- @Api("OrgApi") +- @Path("organizations") +- public static class OrganizationsResource { +- @PathParam("organizationId") +- protected long organizationId; +- @GET +- public List searchOrganizations(@QueryParam("name") String oranizationName, @QueryParam("search-limit") int searchLimit) { +- return null; +- } +- @Path("{ organizationCode : [a-z]+ }/{organizationId}") +- public OrganizationResource getOrganizationResource() { +- return null; +- } +- } +- +- public static class OrganizationResource { +- @GET +- public Organization getOrganization() { +- return null; +- } +- @PUT +- public void setOrganization(@PathParam("organizationCode") String organizationCode, Organization organization) { +- } +- } +- +- public static class Organization { +- public String name; +- } +- +- @Path("people/{personId}") +- public static class PersonResource { +- +- @PathParam("personId") +- protected long personId; +- +- /** +- * Returns person with specified ID. +- */ +- @ApiOperation(value = "Comment in swagger annotation") +- @ApiResponses({ +- @ApiResponse(code = 200, message = "ok"), +- @ApiResponse(code = 400, message = "not ok"), +- }) +- @GET +- public Person getPerson() { +- return null; +- } +- +- @GET +- @Path("address/{address-id}") +- @Deprecated +- public Address getAddress(@PathParam("address-id") long addressId) { +- return null; +- } +- } +- +- public static class Person { +- public String name; +- +- public Person(String name) { +- this.name = name; +- } +- } +- +- public static class Address { +- public String name; +- } +- +- @Path("conflict") +- @Consumes(MediaType.APPLICATION_JSON) +- @Produces(MediaType.APPLICATION_JSON) +- public static class NameConflictResource { +- @POST +- public Person person(Person person) { +- return new Person("POST"); +- } +- @GET +- public Person person() { +- return new Person("A"); +- } +- @GET +- @Path("search") +- public Person person(@QueryParam("search") String search) { +- return new Person("B"); +- } +- @GET +- @Path("{person-id:.+}") +- public Person person(@PathParam("person-id") long personId) { +- return new Person("C"); +- } +- } +- +- @Test +- public void testGettingValidIdentifierName() { +- Assertions.assertEquals("foo", ModelCompiler.getValidIdentifierName("foo")); +- Assertions.assertEquals("personId", ModelCompiler.getValidIdentifierName("person-id")); +- Assertions.assertEquals("veryLongParameterName", ModelCompiler.getValidIdentifierName("very-long-parameter-name")); +- Assertions.assertEquals("$nameWithDollar", ModelCompiler.getValidIdentifierName("$nameWithDollar")); +- Assertions.assertEquals("NameWithManyDashes", ModelCompiler.getValidIdentifierName("-name--with-many---dashes-")); +- Assertions.assertEquals("a2b3c4", ModelCompiler.getValidIdentifierName("1a2b3c4")); +- Assertions.assertEquals("a2b3c4", ModelCompiler.getValidIdentifierName("111a2b3c4")); +- } +- +- @Test +- public void testEnumQueryParam() { +- final Settings settings = TestUtils.settings(); +- settings.generateJaxrsApplicationInterface = true; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(EnumQueryParamResource.class)); +- Assertions.assertTrue(output.contains("queryParams?: { target?: TargetEnum; }")); +- Assertions.assertTrue(output.contains("type TargetEnum = \"Target1\" | \"Target2\"")); +- } +- +- @Path("enum-query-param") +- public static class EnumQueryParamResource { +- @GET +- @Path("somePath") +- public List getFoo(@QueryParam("target") TargetEnum target) { +- return Collections.emptyList(); +- } +- } +- +- public enum TargetEnum { +- Target1, Target2 +- } +- +- @Test +- public void testBeanParam() { +- final Settings settings = TestUtils.settings(); +- settings.generateJaxrsApplicationInterface = true; +- settings.generateJaxrsApplicationClient = true; +- settings.outputFileType = TypeScriptFileType.implementationFile; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(BeanParamResource.class)); +- Assertions.assertTrue(output.contains("interface SearchParams1QueryParams")); +- Assertions.assertTrue(output.contains("interface SearchParams2QueryParams")); +- Assertions.assertTrue(output.contains("queryParams?: SearchParams1QueryParams & SearchParams2QueryParams & { message?: string; }")); +- } +- +- public static class SearchParams1 { +- @QueryParam("id") +- private Integer id; +- +- @QueryParam("name") +- private String name; +- } +- +- public static class SearchParams2 { +- private String description; +- @QueryParam("description") +- public void setDescription(String description) { +- this.description = description; +- } +- } +- +- @Test +- public void testPathParameterWithReservedWord() { +- final Settings settings = TestUtils.settings(); +- settings.generateJaxrsApplicationInterface = true; +- settings.generateJaxrsApplicationClient = true; +- settings.outputFileType = TypeScriptFileType.implementationFile; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(ResourceWithReservedWord.class)); +- Assertions.assertTrue(output.contains("getLogs(_class: string): RestResponse;")); +- Assertions.assertTrue(output.contains("getLogs(_class: string): RestResponse {")); +- Assertions.assertTrue(output.contains("uriEncoding`logs/${_class}`")); +- } +- +- @Path("") +- public static class ResourceWithReservedWord { +- +- @GET +- @Path("/logs/{class}") +- public Collection getLogs(@PathParam("class") String clazz) { +- return null; +- } +- } +- +-// http://localhost:9998/bean-param?id=1&name=vh&description=desc&message=hello +- +- @Path("bean-param") +- @Produces(MediaType.APPLICATION_JSON) +- public static class BeanParamResource { +- +- @GET +- public List getItems( +- @BeanParam SearchParams1 params1, +- @BeanParam SearchParams2 params2, +- @QueryParam("message") String message +- ) { +- return Collections.emptyList(); +- } +- } +- +- @Test +- public void testRegExpInPath() { +- final Settings settings = TestUtils.settings(); +- settings.generateJaxrsApplicationClient = true; +- settings.outputFileType = TypeScriptFileType.implementationFile; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(RegExpResource.class)); +- Assertions.assertTrue(output.contains("getWithId(id: number)")); +- Assertions.assertTrue(output.contains("url: uriEncoding`objects/${id}`")); +- } +- +- @Path("objects") +- public static class RegExpResource { +- @GET +- @Path("{id: [0-9]{1,99}}") +-// @Path("{id: [0-9]+}") +- public String getWithId(@PathParam("id") long id) { +- return null; +- } +- } +- +- @Test +- public void testGenericResources() { +- final Settings settings = TestUtils.settings(); +- settings.generateJaxrsApplicationClient = true; +- settings.outputFileType = TypeScriptFileType.implementationFile; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(AccountResource.class)); +- Assertions.assertTrue(!output.contains("get(id: ID): RestResponse")); +- Assertions.assertTrue(output.contains("get(id: number): RestResponse")); +- Assertions.assertTrue(output.contains("interface AccountDto")); +- } +- +- public static class AccountDto { +- public Integer id; +- public String name; +- } +- +- public static interface AbstractCrudResource { +- @GET +- @Path("{id}") +- public ENTITY get(@PathParam("id") ID id); +- } +- +- @Path("/account") +- public static interface AccountResource extends AbstractCrudResource { +- @GET +- @Path("/test") +- void test(); +- } +- +- public static void main(String[] args) { +- final ResourceConfig config = new ResourceConfig(BeanParamResource.class, JacksonFeature.class); +- JdkHttpServerFactory.createHttpServer(URI.create("http://localhost:9998/"), config); +- System.out.println("Jersey started."); +- } +- +-} +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/JsonDeserializationTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/JsonDeserializationTest.java +deleted file mode 100644 +index 37167121a..000000000 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/JsonDeserializationTest.java ++++ /dev/null +@@ -1,194 +0,0 @@ +- +-package cz.habarta.typescript.generator; +- +-import com.fasterxml.jackson.annotation.JsonSubTypes; +-import com.fasterxml.jackson.annotation.JsonTypeInfo; +-import com.fasterxml.jackson.annotation.JsonTypeName; +-import com.fasterxml.jackson.databind.ObjectMapper; +-import cz.habarta.typescript.generator.ext.AxiosClientExtension; +-import cz.habarta.typescript.generator.ext.JsonDeserializationExtension; +-import cz.habarta.typescript.generator.util.Utils; +-import java.io.File; +-import java.io.IOException; +-import java.nio.charset.StandardCharsets; +-import java.nio.file.Files; +-import java.util.ArrayList; +-import java.util.List; +-import java.util.Map; +-import org.junit.jupiter.api.Assertions; +-import org.junit.jupiter.api.Tag; +-import org.junit.jupiter.api.Test; +- +- +-@SuppressWarnings("unused") +-public class JsonDeserializationTest { +- +- @Test +- public void test() throws IOException { +- final Settings settings = TestUtils.settings(); +- settings.outputKind = TypeScriptOutputKind.module; +- settings.outputFileType = TypeScriptFileType.implementationFile; +- settings.mapClasses = ClassMapping.asClasses; +- settings.extensions.add(new JsonDeserializationExtension()); +- final File actualFile = new File("target/JsonDeserializationTest-actual.ts"); +- new TypeScriptGenerator(settings).generateTypeScript(Input.from(User.class), Output.to(actualFile)); +- final List actualLines = Files.readAllLines(actualFile.toPath(), StandardCharsets.UTF_8); +- final List expectedLines = Utils.readLines(getClass().getResourceAsStream("JsonDeserializationTest-expected.ts")); +- +- int contentLines = 0; +- int foundLines = 0; +- final List notFoundLines = new ArrayList<>(); +- for (String expectedLine : expectedLines) { +- if (!expectedLine.isEmpty() || !expectedLine.trim().equals("}")) { +- contentLines++; +- if (actualLines.contains(expectedLine)) { +- foundLines++; +- } else { +- notFoundLines.add(expectedLine); +- } +- } +- } +- System.out.println(String.format("Number of correctly generated content lines: %d/%d (%d%%).", foundLines, contentLines, 100 * foundLines / contentLines)); +- System.out.println("Following lines were not generated:"); +- for (String notFoundLine : notFoundLines) { +- System.out.println(notFoundLine); +- } +- Assertions.assertEquals(0, notFoundLines.size()); +- } +- +- @Test +- public void testWithConstructors() throws IOException { +- final Settings settings = TestUtils.settings(); +- settings.outputKind = TypeScriptOutputKind.module; +- settings.outputFileType = TypeScriptFileType.implementationFile; +- settings.mapClasses = ClassMapping.asClasses; +- settings.generateConstructors = true; +- settings.extensions.add(new JsonDeserializationExtension()); +- final File actualFile = new File("target/JsonDeserializationTestWithConstructors-actual.ts"); +- new TypeScriptGenerator(settings).generateTypeScript(Input.from(User.class), Output.to(actualFile)); +- final List actualLines = Files.readAllLines(actualFile.toPath(), StandardCharsets.UTF_8); +- final List expectedLines = Utils.readLines(getClass().getResourceAsStream("JsonDeserializationTestWithConstructors-expected.ts")); +- +- int contentLines = 0; +- int foundLines = 0; +- final List notFoundLines = new ArrayList<>(); +- for (String expectedLine : expectedLines) { +- if (!expectedLine.isEmpty() || !expectedLine.trim().equals("}")) { +- contentLines++; +- if (actualLines.contains(expectedLine)) { +- foundLines++; +- } else { +- notFoundLines.add(expectedLine); +- } +- } +- } +- System.out.println(String.format("Number of correctly generated content lines: %d/%d (%d%%).", foundLines, contentLines, 100 * foundLines / contentLines)); +- System.out.println("Following lines were not generated:"); +- for (String notFoundLine : notFoundLines) { +- System.out.println(notFoundLine); +- } +- Assertions.assertEquals(0, notFoundLines.size()); +- } +- +- @Test +- public void jaxrsApplicationClientTest() { +- final Settings settings = TestUtils.settings(); +- settings.outputFileType = TypeScriptFileType.implementationFile; +- settings.outputKind = TypeScriptOutputKind.module; +- settings.mapClasses = ClassMapping.asClasses; +- settings.extensions.add(new JsonDeserializationExtension(/*useJsonDeserializationInJaxrsApplicationClient*/true)); +- settings.extensions.add(new AxiosClientExtension()); +-// final File actualFile = new File("target/JaxrsWithJsonDeserialization-actual.ts"); +-// new TypeScriptGenerator(settings).generateTypeScript(Input.from(JaxrsApplicationTest.OrganizationApplication.class), Output.to(actualFile)); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(JaxrsApplicationTest.OrganizationApplication.class)); +- Assertions.assertTrue(output.contains("copyFn: Organization.fromData")); +- Assertions.assertTrue(output.contains("copyFn: undefined")); +- Assertions.assertTrue(output.contains("copyFn: __getCopyArrayFn(Organization.fromData)")); +- } +- +- @Test +- public void serializationJavaToTypescript() throws IOException { +- User data = new User(); +- data.name = "user1"; +- data.authentication = Authentication.Password; +- +- new ObjectMapper().writeValue(new File("target/JsonDeserializationTest-actual-test-data.json"), data); +- } +- +- @Test +- @Tag("typescript2java") +- public void deserializationTypescriptToJava() throws IOException { +- User data = new ObjectMapper().readValue(new File("target/JsonDeserializationTest-actual-test-data-2.json"), User.class); +- Assertions.assertEquals("name2", data.name); +- Assertions.assertEquals(Authentication.Password, data.authentication); +- } +- +- private static class User { +- public String name; +- public Authentication authentication; +- public boolean childAccount; +- public int age; +- public Address address; +- public List
addresses; +- public Map taggedAddresses; +- public Map> groupedAddresses; +- public List> listOfTaggedAddresses; +- public List tags; +- public Map mapping; +- public List> listOfListOfString; +- public PagedList orders; +- public List> allOrders; +- public Shape shape; +- public List shapes; +- } +- +- public enum Authentication { +- Password, Token, Fingerprint, Voice +- } +- +- public static class Address { +- public String street; +- public String city; +- } +- +- public static class PagedList { +- public int page; +- public List items; +- public A additionalInfo; +- } +- +- public static class Order { +- public String id; +- } +- +- @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "kind") +- @JsonSubTypes({ +- @JsonSubTypes.Type(Square.class), +- @JsonSubTypes.Type(Rectangle.class), +- @JsonSubTypes.Type(Circle.class), +- }) +- private abstract static class Shape { +- public ShapeMetadata metadata; +- } +- +- @JsonTypeName("square") +- private static class Square extends Shape { +- public double size; +- } +- +- @JsonTypeName("rectangle") +- private static class Rectangle extends Shape { +- public double width; +- public double height; +- } +- +- @JsonTypeName("circle") +- private static class Circle extends Shape { +- public double radius; +- } +- +- private static class ShapeMetadata { +- public String group; +- } +- +-} +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/JsonUnwrappedTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/JsonUnwrappedTest.java +deleted file mode 100644 +index 6e88784e1..000000000 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/JsonUnwrappedTest.java ++++ /dev/null +@@ -1,123 +0,0 @@ +- +-package cz.habarta.typescript.generator; +- +-import com.fasterxml.jackson.annotation.JsonUnwrapped; +-import com.fasterxml.jackson.databind.ObjectMapper; +-import com.fasterxml.jackson.databind.SerializationFeature; +-import cz.habarta.typescript.generator.util.StandardJsonPrettyPrinter; +-import org.junit.jupiter.api.Assertions; +-import org.junit.jupiter.api.Test; +- +- +-public class JsonUnwrappedTest { +- +- @Test +- public void test() { +- final Settings settings = TestUtils.settings(); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(Person.class)); +- final String expected = "\n" +- + "interface Person {\n" +- + " AageA: number;\n" +- + " AfirstA: string;\n" +- + " AlastA: string;\n" +- + " A_first2A: string;\n" +- + " A_last2A: string;\n" +- + " Aname3A: Name;\n" +- + " BageB: number;\n" +- + " BfirstB: string;\n" +- + " BlastB: string;\n" +- + " B_first2B: string;\n" +- + " B_last2B: string;\n" +- + " Bname3B: Name;\n" +- + "}\n" +- + "\n" +- + "interface Parent {\n" +- + " age: number;\n" +- + " first: string;\n" +- + " last: string;\n" +- + " _first2: string;\n" +- + " _last2: string;\n" +- + " name3: Name;\n" +- + "}\n" +- + "\n" +- + "interface Name {\n" +- + " first: string;\n" +- + " last: string;\n" +- + "}\n" +- + ""; +- Assertions.assertEquals(expected.trim(), output.trim()); +- } +- +- @Test +- public void testPrivateField() { +- final Settings settings = TestUtils.settings(); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(Person2.class)); +- final String expected = "\n" +- + "interface Person2 {\n" +- + " first: string;\n" +- + " last: string;\n" +- + "}\n" +- + "\n" +- + "interface Name {\n" +- + " first: string;\n" +- + " last: string;\n" +- + "}\n" +- + ""; +- Assertions.assertEquals(expected.trim(), output.trim()); +- } +- +- public static class Person { +- @JsonUnwrapped(prefix = "A", suffix = "A") +- public Parent parentA; +- @JsonUnwrapped(prefix = "B", suffix = "B") +- public Parent parentB; +- } +- +- public static class Parent { +- public int age; +- @JsonUnwrapped +- public Name name; +- @JsonUnwrapped(prefix = "_", suffix = "2") +- public Name name2; +- @JsonUnwrapped(enabled = false) +- public Name name3; +- } +- +- public static class Name { +- public String first, last; +- } +- +- public static class Person2 { +- @JsonUnwrapped +- private Name name; +- +- public Name getName() { +- return name; +- } +- } +- +- public static void main(String[] args) throws Exception { +- final Parent parent = new Parent(); +- parent.age = 18; +- parent.name = new Name(); +- parent.name.first = "Joey"; +- parent.name.last = "Sixpack"; +- parent.name2 = new Name(); +- parent.name2.first = "Joey"; +- parent.name2.last = "Sixpack"; +- parent.name3 = new Name(); +- parent.name3.first = "Joey"; +- parent.name3.last = "Sixpack"; +- final Person person = new Person(); +- person.parentA = parent; +- person.parentB = parent; +- final Person2 person2 = new Person2(); +- person2.name = parent.name; +- final ObjectMapper objectMapper = new ObjectMapper(); +- objectMapper.enable(SerializationFeature.INDENT_OUTPUT); +- objectMapper.setDefaultPrettyPrinter(new StandardJsonPrettyPrinter()); +- System.out.println(objectMapper.writeValueAsString(person)); +- System.out.println(objectMapper.writeValueAsString(person2)); +- } +- +-} +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/JsonViewTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/JsonViewTest.java +deleted file mode 100644 +index d35ebf1ed..000000000 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/JsonViewTest.java ++++ /dev/null +@@ -1,127 +0,0 @@ +- +-package cz.habarta.typescript.generator; +- +-import com.fasterxml.jackson.annotation.JsonView; +-import com.fasterxml.jackson.databind.ObjectMapper; +-import org.junit.jupiter.api.Assertions; +-import org.junit.jupiter.api.Test; +- +- +-public class JsonViewTest { +- +- public static void main(String[] args) throws Exception { +- final SomeClass parent1 = new SomeClass(); +- parent1.id = 22; +- final SomeClass some1 = new SomeClass(); +- some1.id = 13; +- some1.parentID = 22; +- some1.parent = parent1; +- some1.someProperty = "f"; +- some1.anotherProperty = 10L; +- +- final ObjectMapper objectMapper1 = new ObjectMapper(); +- objectMapper1.setConfig(objectMapper1.getSerializationConfig().withView(Views.REST.class)); +- final String json1 = objectMapper1.writeValueAsString(some1); +- System.out.println(json1); +- +- final ObjectMapper objectMapper2 = new ObjectMapper(); +- objectMapper2.setConfig(objectMapper2.getDeserializationConfig().withView(Views.REST.class)); +- final String json2 = "{\"id\":13,\"parentID\":22,\"parent\":{\"id\":22,\"parentID\":null,\"parent\":null,\"someProperty\":null,\"anotherProperty\":null},\"someProperty\":\"f\",\"anotherProperty\":10}"; +- final SomeClass some2 = objectMapper2.readValue(json2, SomeClass.class); +- System.out.println(some2.anotherProperty); +- } +- +- @Test +- public void test1() { +- final Settings settings = TestUtils.settings(); +- settings.jackson2Configuration = new Jackson2ConfigurationResolved(); +- settings.jackson2Configuration.view = Views.REST.class; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(SomeClass.class)); +- assertOutput(output); +- } +- +- @Test +- public void test2() { +- final Settings settings = TestUtils.settings(); +- settings.jackson2Configuration = new Jackson2ConfigurationResolved(); +- settings.jackson2Configuration.view = Views.REST.class; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(SomeClassGetters.class)); +- assertOutput(output); +- } +- +- private static void assertOutput(String output) { +- Assertions.assertTrue(output.contains("id:")); +- Assertions.assertTrue(output.contains("parentID:")); +- Assertions.assertTrue(!output.contains("parent:")); +- Assertions.assertTrue(output.contains("someProperty:")); +- Assertions.assertTrue(!output.contains("anotherProperty:")); +- } +- +- public static class Views { +- +- public static class BaseConfig { +- } +- +- public static class REST { +- } +- +- public static class Exclude { +- } +- +- } +- +- public static class SomeClass { +- +- @JsonView({Views.BaseConfig.class, Views.REST.class}) +- public Integer id; +- +- @JsonView({Views.BaseConfig.class, Views.REST.class}) +- public Integer parentID; +- +- @JsonView(Views.Exclude.class) +- public SomeClass parent; +- +- @JsonView(Views.REST.class) +- public String someProperty; +- +- @JsonView(Views.BaseConfig.class) +- public Long anotherProperty; +- +- } +- +- public static class SomeClassGetters { +- +- private Integer id; +- private Integer parentID; +- private SomeClass parent; +- private String someProperty; +- private Long anotherProperty; +- +- @JsonView({Views.BaseConfig.class, Views.REST.class}) +- public Integer getId() { +- return id; +- } +- +- @JsonView({Views.BaseConfig.class, Views.REST.class}) +- public Integer getParentID() { +- return parentID; +- } +- +- @JsonView(Views.Exclude.class) +- public SomeClass getParent() { +- return parent; +- } +- +- @JsonView(Views.REST.class) +- public String getSomeProperty() { +- return someProperty; +- } +- +- @JsonView(Views.BaseConfig.class) +- public Long getAnotherProperty() { +- return anotherProperty; +- } +- +- } +- +-} +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/KotlinTest.kt b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/KotlinTest.kt +deleted file mode 100644 +index b8bac4659..000000000 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/KotlinTest.kt ++++ /dev/null +@@ -1,198 +0,0 @@ +-package cz.habarta.typescript.generator +- +-import org.junit.jupiter.api.Assertions +-import org.junit.jupiter.api.Test +-import javax.ws.rs.POST +-import javax.ws.rs.Path +- +-@Suppress("UNUSED_PARAMETER") +-class KotlinTest { +- +- @Test +- fun testJaxRS() { +- val settings = TestUtils.settings() +- settings.generateJaxrsApplicationInterface = true +- settings.nullabilityDefinition = NullabilityDefinition.undefinedInlineUnion +- val output = TypeScriptGenerator(settings).generateTypeScript(Input.from(B::class.java)) +- val errorMessage = "Unexpected output: $output" +- Assertions.assertTrue(output.contains("doSomething(arg0?: (A | undefined)[]): RestResponse<(string | undefined)[] | undefined>;"), errorMessage) +- } +- +- @Test +- fun testClassBody() { +- testOutput(A::class.java, +- """ +- class Abstract { +- dataFromAbstract?: T; +- nonNullableBooleanFromAbstract: boolean; +- nonNullableFlagFromAbstract: boolean; +- nonNullableStringFromAbstract: string; +- nullableArrayFromAbstract?: (string | undefined)[]; +- nullableBooleanFromAbstract?: boolean; +- nullableFlagFromAbstract?: boolean; +- nullableGenericArrayFromAbstract?: (T | undefined)[]; +- nullableGenericTypeFromAbstract?: T; +- nullableListFromAbstract?: (string | undefined)[]; +- nullableStringFromAbstract?: string; +- testFromAbstract: string; +- testNullableFromAbstract?: string; +- } +- +- class A extends Abstract implements Interface { +- data?: T; +- dataFromInterface?: T; +- nonNullableBoolean: boolean; +- nonNullableBooleanFromInterface: boolean; +- nonNullableFlag: boolean; +- nonNullableFlagFromInterface: boolean; +- nonNullableString: string; +- nonNullableStringFromInterface: string; +- nullableArray?: (string | undefined)[]; +- nullableArrayFromInterface?: (string | undefined)[]; +- nullableBoolean?: boolean; +- nullableBooleanFromInterface?: boolean; +- nullableFlag?: boolean; +- nullableFlagFromInterface?: boolean; +- nullableGenericArray?: (T | undefined)[]; +- nullableGenericArrayFromInterface?: (T | undefined)[]; +- nullableGenericType?: T; +- nullableGenericTypeFromInterface?: T; +- nullableList?: (string | undefined)[]; +- nullableListFromInterface?: (string | undefined)[]; +- nullableString?: string; +- nullableStringFromInterface?: string; +- test: string; +- testFromInterface: string; +- testNullable?: string; +- testNullableFromInterface?: string; +- } +- +- interface Interface { +- dataFromInterface?: T; +- nonNullableBooleanFromInterface: boolean; +- nonNullableFlagFromInterface: boolean; +- nonNullableStringFromInterface: string; +- nullableArrayFromInterface?: (string | undefined)[]; +- nullableBooleanFromInterface?: boolean; +- nullableFlagFromInterface?: boolean; +- nullableGenericArrayFromInterface?: (T | undefined)[]; +- nullableGenericTypeFromInterface?: T; +- nullableListFromInterface?: (string | undefined)[]; +- nullableStringFromInterface?: string; +- testFromInterface: string; +- testNullableFromInterface?: string; +- }""".trimIndent() +- ) +- } +- +- private interface Interface { +- val nullableStringFromInterface: String? +- val nonNullableStringFromInterface: String +- val nullableListFromInterface: List? +- val nullableArrayFromInterface: Array? +- val nullableGenericArrayFromInterface: Array? +- val nullableGenericTypeFromInterface: T? +- val nullableBooleanFromInterface: Boolean? +- val nonNullableBooleanFromInterface: Boolean +- val isNullableFlagFromInterface: Boolean? +- val isNonNullableFlagFromInterface: Boolean +- fun getDataFromInterface(): B? +- fun getTestFromInterface(): String +- fun getTestNullableFromInterface(): String? +- } +- +- private abstract class Abstract { +- abstract val nullableStringFromAbstract: String? +- abstract val nonNullableStringFromAbstract: String +- abstract val nullableListFromAbstract: List? +- abstract val nullableArrayFromAbstract: Array? +- abstract val nullableGenericArrayFromAbstract: Array? +- abstract val nullableGenericTypeFromAbstract: T? +- abstract val nullableBooleanFromAbstract: Boolean? +- abstract val nonNullableBooleanFromAbstract: Boolean +- abstract val isNullableFlagFromAbstract: Boolean? +- abstract val isNonNullableFlagFromAbstract: Boolean +- abstract fun getDataFromAbstract(): B? +- abstract fun getTestFromAbstract(): String +- abstract fun getTestNullableFromAbstract(): String? +- } +- +- private class A : Abstract(), Interface { +- val nullableString: String? = null +- val nonNullableString: String = "" +- val nullableList: List? = null +- val nullableArray: Array? = null +- val nullableGenericArray: Array? = null +- val nullableGenericType: T? = null +- val nullableBoolean: Boolean? = null +- val nonNullableBoolean: Boolean = false +- val isNullableFlag: Boolean? = false +- val isNonNullableFlag: Boolean = false +- fun getData(): B? = null +- fun getTest(): String = "" +- fun getTestNullable(): String? = "" +- +- override val nullableStringFromAbstract: String? = null +- override val nonNullableStringFromAbstract: String = "" +- override val nullableListFromAbstract: List? = null +- override val nullableArrayFromAbstract: Array? = null +- override val nullableGenericArrayFromAbstract: Array? = null +- override val nullableGenericTypeFromAbstract: T? = null +- override val nullableBooleanFromAbstract: Boolean? = null +- override val nonNullableBooleanFromAbstract: Boolean = false +- override val isNullableFlagFromAbstract: Boolean? = false +- override val isNonNullableFlagFromAbstract: Boolean = false +- override fun getDataFromAbstract(): B? = null +- override fun getTestFromAbstract(): String = "" +- override fun getTestNullableFromAbstract(): String? = "" +- +- override val nullableStringFromInterface: String? = null +- override val nonNullableStringFromInterface: String = "" +- override val nullableListFromInterface: List? = null +- override val nullableArrayFromInterface: Array? = null +- override val nullableGenericArrayFromInterface: Array? = null +- override val nullableGenericTypeFromInterface: T? = null +- override val nullableBooleanFromInterface: Boolean? = null +- override val nonNullableBooleanFromInterface: Boolean = false +- override val isNullableFlagFromInterface: Boolean? = false +- override val isNonNullableFlagFromInterface: Boolean = false +- override fun getDataFromInterface(): B? = null +- override fun getTestFromInterface(): String = "" +- override fun getTestNullableFromInterface(): String? = "" +- } +- +- @Path("") +- private class B { +- +- @POST +- fun doSomething(body: List?>?): List? { +- return null +- } +- } +- +- private fun testOutput(inputClass: Class<*>, expected: String) { +- val settings = TestUtils.settings() +- settings.jackson2Configuration = Jackson2ConfigurationResolved() +- settings.outputFileType = TypeScriptFileType.implementationFile +- settings.mapClasses = ClassMapping.asClasses +- settings.nullabilityDefinition = NullabilityDefinition.undefinedInlineUnion +- settings.sortDeclarations = true +- val output = TypeScriptGenerator(settings).generateTypeScript(Input.from(inputClass)) +- Assertions.assertEquals(expected.replace('\'', '"'), output.trim { it <= ' ' }) +- } +- +- @Test +- fun testEnumTypeVariableBound() { +- val settings = TestUtils.settings() +- val output = TypeScriptGenerator(settings).generateTypeScript(Input.from(A2::class.java)) +- val errorMessage = "Unexpected output: $output" +- Assertions.assertTrue(output.contains("interface A2"), errorMessage) +- } +- +- private class A2 where S : Enum { +- fun getData2(): S? { +- return null +- } +- } +- +-} +\ No newline at end of file +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/MapEntryTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/MapEntryTest.java +deleted file mode 100644 +index 43d126436..000000000 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/MapEntryTest.java ++++ /dev/null +@@ -1,185 +0,0 @@ +- +-package cz.habarta.typescript.generator; +- +-import com.fasterxml.jackson.annotation.JsonFormat; +-import com.fasterxml.jackson.databind.ObjectMapper; +-import cz.habarta.typescript.generator.util.Utils; +-import java.io.Serializable; +-import java.util.AbstractMap; +-import java.util.Arrays; +-import java.util.LinkedHashMap; +-import java.util.List; +-import java.util.Map; +-import org.junit.jupiter.api.Assertions; +-import org.junit.jupiter.api.Test; +- +-public class MapEntryTest { +- +- public static class ClassWithEntries { +- public String name = "ClassWithEntries"; +- public Entry1 entry1 = new Entry1<>(new MyBean("nnn"), "NNN"); +- public Entry2 entry2 = new Entry2<>(new MyBean("ooo"), "OOO"); +- public Map.Entry entry3 = new AbstractMap.SimpleEntry<>(new MyBean("eee"), "EEE"); +- } +- +- @JsonFormat(shape = JsonFormat.Shape.NATURAL) +- public static class Entry1 extends AbstractMap.SimpleEntry { +- private static final long serialVersionUID = 1L; +- public Entry1(K key, V value) { +- super(key, value); +- } +- } +- +- @JsonFormat(shape = JsonFormat.Shape.OBJECT) +- public static class Entry2 extends AbstractMap.SimpleEntry { +- private static final long serialVersionUID = 1L; +- public Entry2(K key, V value) { +- super(key, value); +- } +- } +- +- public static class MyBean { +- public String f0; +- public boolean f1 = true; +- +- public MyBean(String f0) { +- this.f0 = f0; +- } +- +- @Override +- public String toString() { +- return "MyBean instance"; +- } +- } +- +- @Test +- public void testDefaultShapes() throws Exception { +- final ObjectMapper objectMapper = Utils.getObjectMapper(); +- final ClassWithEntries classWithEntries = new ClassWithEntries(); +- final String json = objectMapper.writeValueAsString(classWithEntries); +- final String expectedJson = ("" +- + "{\n" +- + " 'name': 'ClassWithEntries',\n" +- + " 'entry1': {\n" +- + " 'MyBean instance': 'NNN'\n" +- + " },\n" +- + " 'entry2': {\n" +- + " 'key': {\n" +- + " 'f0': 'ooo',\n" +- + " 'f1': true\n" +- + " },\n" +- + " 'value': 'OOO'\n" +- + " },\n" +- + " 'entry3': {\n" +- + " 'MyBean instance': 'EEE'\n" +- + " }\n" +- + "}") +- .replace("'", "\""); +- Assertions.assertEquals(expectedJson, json); +- +- final Settings settings = TestUtils.settings(); +- settings.setExcludeFilter( +- Arrays.asList(Serializable.class.getName(), AbstractMap.SimpleEntry.class.getName()), +- null); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(ClassWithEntries.class)); +- Assertions.assertTrue(output.contains("entry1: { [index: string]: string }")); +- Assertions.assertTrue(output.contains("entry2: Entry2")); +- Assertions.assertTrue(output.contains("" +- + "interface Entry2 {\n" +- + " key: K;\n" +- + " value: V;\n" +- + "}")); +- Assertions.assertTrue(output.contains("entry3: { [index: string]: string }")); +- } +- +- @Test +- public void testOverriddenShapes() throws Exception { +- final ObjectMapper objectMapper = Utils.getObjectMapper(); +- objectMapper.configOverride(Entry1.class).setFormat(JsonFormat.Value.forShape(JsonFormat.Shape.OBJECT)); +- objectMapper.configOverride(Entry2.class).setFormat(JsonFormat.Value.forShape(JsonFormat.Shape.NATURAL)); +- final ClassWithEntries classWithEntries = new ClassWithEntries(); +- final String json = objectMapper.writeValueAsString(classWithEntries); +- final String expectedJson = ("" +- + "{\n" +- + " 'name': 'ClassWithEntries',\n" +- + " 'entry1': {\n" +- + " 'key': {\n" +- + " 'f0': 'nnn',\n" +- + " 'f1': true\n" +- + " },\n" +- + " 'value': 'NNN'\n" +- + " },\n" +- + " 'entry2': {\n" +- + " 'MyBean instance': 'OOO'\n" +- + " },\n" +- + " 'entry3': {\n" +- + " 'MyBean instance': 'EEE'\n" +- + " }\n" +- + "}") +- .replace("'", "\""); +- Assertions.assertEquals(expectedJson, json); +- +- final Settings settings = TestUtils.settings(); +- settings.jackson2Configuration = new Jackson2ConfigurationResolved(); +- settings.jackson2Configuration.shapeConfigOverrides = new LinkedHashMap<>(); +- settings.jackson2Configuration.shapeConfigOverrides.put(Entry1.class, JsonFormat.Shape.OBJECT); +- settings.jackson2Configuration.shapeConfigOverrides.put(Entry2.class, JsonFormat.Shape.NATURAL); +- settings.setExcludeFilter( +- Arrays.asList(Serializable.class.getName(), AbstractMap.SimpleEntry.class.getName()), +- null); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(ClassWithEntries.class)); +- Assertions.assertTrue(output.contains("entry1: Entry1")); +- Assertions.assertTrue(output.contains("entry2: { [index: string]: string }")); +- Assertions.assertTrue(output.contains("" +- + "interface Entry1 {\n" +- + " key: K;\n" +- + " value: V;\n" +- + "}")); +- Assertions.assertTrue(output.contains("entry3: { [index: string]: string }")); +- } +- +- public static class ClassWithListOfEntries { +- public List> entries1 = Arrays.asList( +- new Entry1<>("key1", "value1"), +- new Entry1<>("key2", "value2")); +- public List> entries2 = Arrays.asList( +- new Entry2<>("key1", "value1"), +- new Entry2<>("key2", "value2")); +- } +- +- @Test +- public void testListOfMapEntry() throws Exception { +- final ObjectMapper objectMapper = Utils.getObjectMapper(); +- final ClassWithListOfEntries classWithListOfEntries = new ClassWithListOfEntries(); +- final String json = objectMapper.writeValueAsString(classWithListOfEntries); +- final String expectedJson = ("" +- + "{\n" +- + " 'entries1': [\n" +- + " {\n" +- + " 'key1': 'value1'\n" +- + " },\n" +- + " {\n" +- + " 'key2': 'value2'\n" +- + " }\n" +- + " ],\n" +- + " 'entries2': [\n" +- + " {\n" +- + " 'key': 'key1',\n" +- + " 'value': 'value1'\n" +- + " },\n" +- + " {\n" +- + " 'key': 'key2',\n" +- + " 'value': 'value2'\n" +- + " }\n" +- + " ]\n" +- + "}") +- .replace("'", "\""); +- Assertions.assertEquals(expectedJson, json); +- +- final Settings settings = TestUtils.settings(); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(ClassWithListOfEntries.class)); +- Assertions.assertTrue(output.contains("entries1: { [index: string]: string }[]")); +- Assertions.assertTrue(output.contains("entries2: Entry2[]")); +- } +- +-} +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/MapExtensionTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/MapExtensionTest.java +deleted file mode 100644 +index 06b549679..000000000 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/MapExtensionTest.java ++++ /dev/null +@@ -1,81 +0,0 @@ +-package cz.habarta.typescript.generator; +- +-import java.util.HashMap; +-import java.util.List; +-import java.util.Map; +-import org.junit.jupiter.api.Assertions; +-import static org.junit.jupiter.api.Assertions.assertEquals; +-import org.junit.jupiter.api.Test; +- +-public class MapExtensionTest { +- +- @Test +- public void testOrder1() { +- final Settings settings = TestUtils.settings(); +- settings.sortDeclarations = true; +- String expectedA = "" + +- "\n" + +- "interface A {\n" + +- " mapExt: { [index: string]: any };\n" + +- "}\n"; +- String expectedB = "" + +- "\n" + +- "interface B {\n" + +- " mapExt: { [index: string]: number };\n" + +- "}\n"; +- final String actualA = new TypeScriptGenerator(settings).generateTypeScript(Input.from(A.class)); +- final String actualB = new TypeScriptGenerator(settings).generateTypeScript(Input.from(B.class)); +- +- assertEquals(expectedA, actualA); +- assertEquals(expectedB, actualB); +- } +- +- public static class A { +- public MapExtension mapExt; +- } +- +- public static class B { +- public MapExtension mapExt; +- } +- +- public static class MapExtension extends HashMap {} +- +- +- @Test +- public void testStringList() { +- final Settings settings = TestUtils.settings(); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(C.class)); +- Assertions.assertTrue(output.contains("stringList: string[];")); +- } +- +- public static interface StringList extends List {} +- +- public static class C { +- public StringList stringList; +- } +- +- @Test +- public void testStringKeyMapNumberValue() { +- final Settings settings = TestUtils.settings(); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(D.class)); +- Assertions.assertTrue(output.contains("stringKeyMap: { [index: string]: number };")); +- } +- +- public static class D { +- public StringKeyMap stringKeyMap; +- } +- +- @Test +- public void testStringKeyMapGenericValue() { +- final Settings settings = TestUtils.settings(); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(E.class)); +- Assertions.assertTrue(output.contains("stringKeyMap: { [index: string]: T };")); +- } +- +- public static class E { +- public StringKeyMap stringKeyMap; +- } +- +- public static interface StringKeyMap extends Map {} +- +-} +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/MapTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/MapTest.java +deleted file mode 100644 +index c2c2c4955..000000000 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/MapTest.java ++++ /dev/null +@@ -1,38 +0,0 @@ +- +-package cz.habarta.typescript.generator; +- +-import java.util.Map; +-import org.junit.jupiter.api.Assertions; +-import org.junit.jupiter.api.Test; +- +- +-public class MapTest { +- +- public static class ClassWithMap { +- public Map people; +- } +- +- @Test +- public void testDefault() { +- final Settings settings = TestUtils.settings(); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(ClassWithMap.class)); +- Assertions.assertTrue(output.contains("people: { [index: string]: Person }")); +- } +- +- @Test +- public void testIndexedArray() { +- final Settings settings = TestUtils.settings(); +- settings.mapMap = MapMapping.asIndexedArray; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(ClassWithMap.class)); +- Assertions.assertTrue(output.contains("people: { [index: string]: Person }")); +- } +- +- @Test +- public void testRecord() { +- final Settings settings = TestUtils.settings(); +- settings.mapMap = MapMapping.asRecord; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(ClassWithMap.class)); +- Assertions.assertTrue(output.contains("people: Record")); +- } +- +-} +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/ModelCompilerTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/ModelCompilerTest.java +index db029a4b4..59519a26a 100644 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/ModelCompilerTest.java ++++ b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/ModelCompilerTest.java +@@ -1,42 +1,32 @@ + + package cz.habarta.typescript.generator; + +-import com.fasterxml.jackson.annotation.JsonTypeInfo; +-import cz.habarta.typescript.generator.compiler.ModelCompiler; +-import cz.habarta.typescript.generator.emitter.TsModel; +-import cz.habarta.typescript.generator.parser.Jackson2Parser; +-import cz.habarta.typescript.generator.parser.Model; +-import java.lang.reflect.Type; +-import java.util.Arrays; +-import java.util.Date; +-import java.util.List; +-import java.util.Map; +-import org.junit.jupiter.api.Assertions; +-import org.junit.jupiter.api.Test; ++import java.lang.reflect.*; ++import java.util.*; ++import org.junit.*; + + +-@SuppressWarnings("unused") + public class ModelCompilerTest { + + @Test + public void testEnum() throws Exception { + final Settings settings = getTestSettings(); + final Type javaType = A.class.getField("directions").getGenericType(); +- Assertions.assertEquals("{ [index: string]: Direction }[]", TestUtils.compileType(settings, javaType).toString()); ++ Assert.assertEquals("{ [index: string]: Direction }[]", TestUtils.compileType(settings, javaType).toString()); + } + + @Test + public void testDate() throws Exception { + final Settings settings = getTestSettings(); + final Type javaType = A.class.getField("timestamp").getGenericType(); +- Assertions.assertEquals("DateAsString", TestUtils.compileType(settings, javaType).toString()); ++ Assert.assertEquals("DateAsString", TestUtils.compileType(settings, javaType).toString()); + } + + @Test + public void testExclusion() throws Exception { + final Settings settings = getTestSettings(Direction.class.getName()); + final Type javaType = A.class.getField("directions").getGenericType(); +- Assertions.assertEquals("{ [index: string]: any }[]", TestUtils.compileType(settings, javaType).toString()); ++ Assert.assertEquals("{ [index: string]: any }[]", TestUtils.compileType(settings, javaType).toString()); + } + + @Test +@@ -44,49 +34,9 @@ public class ModelCompilerTest { + final Settings settings = TestUtils.settings(); + settings.setExcludeFilter(null, Arrays.asList("**Direction")); + final Type javaType = A.class.getField("directions").getGenericType(); +- Assertions.assertEquals("{ [index: string]: any }[]", TestUtils.compileType(settings, javaType).toString()); ++ Assert.assertEquals("{ [index: string]: any }[]", TestUtils.compileType(settings, javaType).toString()); + } + +- @Test +- public void testIntermediateInterfacesWithoutTypeParams() throws Exception { +- final Settings settings = TestUtils.settings(); +- +- final Jackson2Parser jacksonParser = new Jackson2Parser(settings, new DefaultTypeProcessor()); +- final Model model = jacksonParser.parseModel(Implementation.class); +- final ModelCompiler modelCompiler = new TypeScriptGenerator(settings).getModelCompiler(); +- +- final TsModel result = modelCompiler.javaToTypeScript(model); +- +- Assertions.assertInstanceOf( +- TsType.UnionType.class, +- result.getBean(WithoutTypeParam.class).getProperties().get(0).tsType +- ); +- } +- +- @Test +- public void testIntermediateInterfacesWithTypeParams() throws Exception { +- final Settings settings = TestUtils.settings(); +- +- final Jackson2Parser jacksonParser = new Jackson2Parser(settings, new DefaultTypeProcessor()); +- final Model model = jacksonParser.parseModel(Implementation.class); +- final ModelCompiler modelCompiler = new TypeScriptGenerator(settings).getModelCompiler(); +- +- final TsModel result = modelCompiler.javaToTypeScript(model); +- +- Assertions.assertInstanceOf( +- TsType.UnionType.class, +- result.getBean(WithTypeParam.class).getProperties().get(0).tsType +- ); +- } +- +- @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY) +- private static interface WithoutTypeParam {} +- +- @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY) +- private static interface WithTypeParam {} +- +- private static class Implementation implements WithTypeParam, WithoutTypeParam {} +- + private static Settings getTestSettings(String... excludedClassNames) { + final Settings settings = TestUtils.settings(); + settings.mapDate = DateMapping.asString; +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/ModelParserTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/ModelParserTest.java +index 353916396..7bbedc4b5 100644 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/ModelParserTest.java ++++ b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/ModelParserTest.java +@@ -2,15 +2,10 @@ + package cz.habarta.typescript.generator; + + import com.fasterxml.jackson.core.type.TypeReference; +-import cz.habarta.typescript.generator.parser.Jackson2Parser; +-import cz.habarta.typescript.generator.parser.Model; +-import cz.habarta.typescript.generator.parser.ModelParser; ++import cz.habarta.typescript.generator.parser.*; + import java.lang.reflect.Type; +-import java.util.Arrays; +-import java.util.List; +-import java.util.Map; +-import org.junit.jupiter.api.Assertions; +-import org.junit.jupiter.api.Test; ++import java.util.*; ++import org.junit.*; + + + public class ModelParserTest { +@@ -18,50 +13,50 @@ public class ModelParserTest { + @Test + public void testClassDiscovery1() { + final Model model = parseModel(RootClass1.class); +- Assertions.assertEquals(2, model.getBeans().size()); ++ Assert.assertEquals(2, model.getBeans().size()); + + } + + @Test + public void testClassDiscovery2() { + final Model model = parseModel(RootClass2.class); +- Assertions.assertEquals(2, model.getBeans().size()); ++ Assert.assertEquals(2, model.getBeans().size()); + } + + @Test + public void testClassDiscovery3() { + final Model model = parseModel(RootClass3.class); +- Assertions.assertEquals(3, model.getBeans().size()); ++ Assert.assertEquals(3, model.getBeans().size()); + } + + @Test + public void testClassDiscoveryExcludeNodeClassA() { + final Model model = parseModel(RootClass1.class, NodeClassA.class.getName()); +- Assertions.assertEquals(1, model.getBeans().size()); ++ Assert.assertEquals(1, model.getBeans().size()); + } + + @Test + public void testClassDiscoveryExcludeTag() { + final Model model = parseModel(RootClass3.class, Tag.class.getName()); +- Assertions.assertEquals(2, model.getBeans().size()); ++ Assert.assertEquals(2, model.getBeans().size()); + } + + @Test + public void testClassDiscoveryExcludeNodeClassB() { + final Model model = parseModel(RootClass3.class, NodeClassB.class.getName()); +- Assertions.assertEquals(1, model.getBeans().size()); ++ Assert.assertEquals(1, model.getBeans().size()); + } + + @Test + public void testExcludedInputDirectly() { + final Model model = parseModel(RootClass3.class, RootClass3.class.getName()); +- Assertions.assertEquals(0, model.getBeans().size()); ++ Assert.assertEquals(0, model.getBeans().size()); + } + + @Test + public void testExcludedInputInList() { + final Model model = parseModel(new TypeReference>() {}.getType(), RootClass3.class.getName()); +- Assertions.assertEquals(0, model.getBeans().size()); ++ Assert.assertEquals(0, model.getBeans().size()); + } + + private Model parseModel(Type type, String... excludedClassNames) { +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/ModuleDependenciesTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/ModuleDependenciesTest.java +deleted file mode 100644 +index 8971a3e0f..000000000 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/ModuleDependenciesTest.java ++++ /dev/null +@@ -1,186 +0,0 @@ +- +-package cz.habarta.typescript.generator; +- +-import com.fasterxml.jackson.annotation.JsonSubTypes; +-import com.fasterxml.jackson.annotation.JsonTypeInfo; +-import java.io.File; +-import java.util.Arrays; +-import java.util.Collections; +-import java.util.List; +-import java.util.stream.Collectors; +-import java.util.stream.Stream; +-import org.junit.jupiter.api.Assertions; +-import org.junit.jupiter.api.Test; +- +- +-@SuppressWarnings("unused") +-public class ModuleDependenciesTest { +- +- @Test +- public void test() { +- generateModuleA(); +- generateModuleB(); +- } +- +- private void generateModuleA() { +- final Settings settings = TestUtils.settings(); +- settings.outputKind = TypeScriptOutputKind.module; +- settings.customTypeNaming = Collections.singletonMap("cz.habarta.typescript.generator.ModuleDependenciesTest$A2", "NS.A2"); +- settings.generateNpmPackageJson = true; +- settings.npmName = "a"; +- settings.npmVersion = "1.0.0"; +- settings.generateInfoJson = true; +- new TypeScriptGenerator(settings).generateTypeScript( +- Input.from(A1.class, A2.class, Enum1.class, ABase.class), +- Output.to(new File("target/test-module-dependencies/a/a.d.ts"))); +- final String output = TestUtils.readFile("target/test-module-dependencies/a/a.d.ts"); +- Assertions.assertTrue(output.contains("interface A1 {")); +- Assertions.assertTrue(output.contains("namespace NS {")); +- Assertions.assertTrue(output.contains("interface A2 {")); +- Assertions.assertTrue(output.contains("type Enum1 =")); +- } +- +- private void generateModuleB() { +- final Settings settings = TestUtils.settings(); +- settings.outputKind = TypeScriptOutputKind.module; +- settings.generateNpmPackageJson = true; +- settings.npmName = "b"; +- settings.npmVersion = "1.0.0"; +- settings.moduleDependencies = Arrays.asList( +- ModuleDependency.module("../a", "a", new File("target/test-module-dependencies/a/typescript-generator-info.json"), "a", "1.0.0") +- ); +- new TypeScriptGenerator(settings).generateTypeScript( +- Input.from(B1.class, B2.class, C.class, D1.class, D2.class), +- Output.to(new File("target/test-module-dependencies/b/b.d.ts"))); +- final String output = TestUtils.readFile("target/test-module-dependencies/b/b.d.ts"); +- Assertions.assertTrue(output.contains("import * as a from \"../a\"")); +- Assertions.assertTrue(output.contains("interface B1 extends a.A1 {")); +- Assertions.assertTrue(output.contains("objectA: a.A1;")); +- Assertions.assertTrue(output.contains("enum1: a.Enum1;")); +- Assertions.assertTrue(output.contains("aBase: a.ABaseUnion;")); +- Assertions.assertTrue(output.contains("aBases: a.ABaseUnion[];")); +- Assertions.assertTrue(output.contains("interface B2 extends a.NS.A2 {")); +- Assertions.assertTrue(output.contains("objectA: a.NS.A2;")); +- Assertions.assertTrue(output.contains("interface D1 extends C {")); +- Assertions.assertTrue(output.contains("interface D2 extends C {")); +- Assertions.assertTrue(!output.contains("interface A1 {")); +- Assertions.assertTrue(!output.contains("namespace NS {")); +- Assertions.assertTrue(!output.contains("interface A2 {")); +- Assertions.assertTrue(!output.contains("type Enum1 =")); +- } +- +- @Test +- public void testGlobal() { +- generateGlobalA("global-a"); +- generateGlobalB("global-b", "global-a"); +- } +- +- @Test +- public void testGlobalWithConflict() { +- generateGlobalA("global-a1"); +- generateGlobalA("global-a2"); +- +- RuntimeException e = Assertions.assertThrows(RuntimeException.class, () -> generateGlobalB("global-b-conflict", "global-a1", "global-a2")); +- System.out.println("Exception (expected): " + e.getMessage()); +- } +- +- private void generateGlobalA(String directory) { +- final Settings settings = TestUtils.settings(); +- settings.outputKind = TypeScriptOutputKind.global; +- settings.customTypeNaming = Collections.singletonMap("cz.habarta.typescript.generator.ModuleDependenciesTest$A2", "NS.A2"); +- settings.generateInfoJson = true; +- new TypeScriptGenerator(settings).generateTypeScript( +- Input.from(A1.class, A2.class, Enum1.class, ABase.class), +- Output.to(new File("target/test-module-dependencies/" + directory + "/global.d.ts"))); +- final String output = TestUtils.readFile("target/test-module-dependencies/" + directory + "/global.d.ts"); +- Assertions.assertTrue(output.contains("interface A1 {")); +- Assertions.assertTrue(output.contains("namespace NS {")); +- Assertions.assertTrue(output.contains("interface A2 {")); +- Assertions.assertTrue(output.contains("type Enum1 =")); +- } +- +- private void generateGlobalB(String directory, String... dependencyDirectories) { +- final Settings settings = TestUtils.settings(); +- settings.outputKind = TypeScriptOutputKind.global; +- settings.referencedFiles = Stream.of(dependencyDirectories) +- .map(depDir -> "../" + depDir + "/global.d.ts") +- .collect(Collectors.toList()); +- settings.moduleDependencies = Stream.of(dependencyDirectories) +- .map(depDir -> ModuleDependency.global(new File("target/test-module-dependencies/" + depDir + "/typescript-generator-info.json"))) +- .collect(Collectors.toList()); +- new TypeScriptGenerator(settings).generateTypeScript( +- Input.from(B1.class, B2.class, C.class, D1.class, D2.class), +- Output.to(new File("target/test-module-dependencies/" + directory + "/global.d.ts"))); +- final String output = TestUtils.readFile("target/test-module-dependencies/" + directory + "/global.d.ts"); +- Assertions.assertTrue(!output.contains("import")); +- Assertions.assertTrue(output.contains("interface B1 extends A1 {")); +- Assertions.assertTrue(output.contains("objectA: A1;")); +- Assertions.assertTrue(output.contains("enum1: Enum1;")); +- Assertions.assertTrue(output.contains("aBase: ABaseUnion;")); +- Assertions.assertTrue(output.contains("aBases: ABaseUnion[];")); +- Assertions.assertTrue(output.contains("interface B2 extends NS.A2 {")); +- Assertions.assertTrue(output.contains("objectA: NS.A2;")); +- Assertions.assertTrue(output.contains("interface D1 extends C {")); +- Assertions.assertTrue(output.contains("interface D2 extends C {")); +- Assertions.assertTrue(!output.contains("interface A1 {")); +- Assertions.assertTrue(!output.contains("namespace NS {")); +- Assertions.assertTrue(!output.contains("interface A2 {")); +- Assertions.assertTrue(!output.contains("type Enum1 =")); +- } +- +- /// module "a" +- +- private static class A1 { +- public String a; +- } +- +- private static class A2 { +- public String a; +- } +- +- private static enum Enum1 { +- c1, c2 +- } +- +- @JsonTypeInfo(use = JsonTypeInfo.Id.NAME) +- @JsonSubTypes({ +- @JsonSubTypes.Type(name = "ADerived1", value = ADerived1.class), +- @JsonSubTypes.Type(name = "ADerived2", value = ADerived2.class), +- }) +- private static abstract class ABase { +- } +- +- private static class ADerived1 extends ABase { +- } +- +- private static class ADerived2 extends ABase { +- } +- +- /// module "b" +- +- private static class B1 extends A1 { +- public String b; +- public A1 objectA; +- public Enum1 enum1; +- public ABase aBase; +- public List> aBases; +- } +- +- private static class B2 extends A2 { +- public String b; +- public A2 objectA; +- } +- +- private static class C { +- public T c; +- } +- +- private static class D1 extends C { +- public String d; +- } +- +- private static class D2 extends C { +- public String d; +- } +- +-} +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/ModulesAndNamespacesTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/ModulesAndNamespacesTest.java +index c6de81cf7..b7a17e7c0 100644 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/ModulesAndNamespacesTest.java ++++ b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/ModulesAndNamespacesTest.java +@@ -6,49 +6,39 @@ import cz.habarta.typescript.generator.emitter.EmitterExtension; + import cz.habarta.typescript.generator.emitter.EmitterExtensionFeatures; + import cz.habarta.typescript.generator.emitter.TsModel; + import java.io.File; +-import org.junit.jupiter.api.Test; ++import org.junit.Test; + + // run `tsc` compiler from `src/test/ts` directory after this test + public class ModulesAndNamespacesTest { + + @Test + public void testNamespacesAndModules() { +- files(new File("target/test-ts-modules"), false); +- files(new File("target/test-ts-modules-pkg"), true); +- } +- +- public void files(File outputDir, boolean mapPackages) { ++ final File outputDir = new File("target/test-ts-modules"); + outputDir.mkdirs(); + +- file("Test1", null, null, mapPackages, TypeScriptOutputKind.global, TypeScriptFileType.declarationFile, new File(outputDir, "test-mn1.d.ts")); +- file("Test2", null, "NS2", mapPackages, TypeScriptOutputKind.global, TypeScriptFileType.declarationFile, new File(outputDir, "test-mn2.d.ts")); +- file("Test3a", "mod3a", null, mapPackages, TypeScriptOutputKind.ambientModule, TypeScriptFileType.declarationFile, new File(outputDir, "test-mn3a.d.ts")); +- file("Test3b", null, null, mapPackages, TypeScriptOutputKind.module, TypeScriptFileType.declarationFile, new File(outputDir, "test-mn3b.d.ts")); +- file("Test4a", "mod4a", "NS4a", mapPackages, TypeScriptOutputKind.ambientModule, TypeScriptFileType.declarationFile, new File(outputDir, "test-mn4a.d.ts")); +- file("Test4b", null, "NS4b", mapPackages, TypeScriptOutputKind.module, TypeScriptFileType.declarationFile, new File(outputDir, "test-mn4b.d.ts")); +- +- file("Test5", null, null, mapPackages, TypeScriptOutputKind.global, TypeScriptFileType.implementationFile, new File(outputDir, "test-mn5.ts")); +- file("Test6", null, "NS6", mapPackages, TypeScriptOutputKind.global, TypeScriptFileType.implementationFile, new File(outputDir, "test-mn6.ts")); +- file("Test7", null, null, mapPackages, TypeScriptOutputKind.module, TypeScriptFileType.implementationFile, new File(outputDir, "test-mn7.ts")); +- file("Test8", null, "NS8", mapPackages, TypeScriptOutputKind.module, TypeScriptFileType.implementationFile, new File(outputDir, "test-mn8.ts")); ++ file("Test1", null, null, TypeScriptOutputKind.global, TypeScriptFileType.declarationFile, new File(outputDir, "test-mn1.d.ts")); ++ file("Test2", null, "NS2", TypeScriptOutputKind.global, TypeScriptFileType.declarationFile, new File(outputDir, "test-mn2.d.ts")); ++ file("Test3a", "mod3a", null, TypeScriptOutputKind.ambientModule, TypeScriptFileType.declarationFile, new File(outputDir, "test-mn3a.d.ts")); ++ file("Test3b", null, null, TypeScriptOutputKind.module, TypeScriptFileType.declarationFile, new File(outputDir, "test-mn3b.d.ts")); ++ file("Test4a", "mod4a", "NS4a", TypeScriptOutputKind.ambientModule, TypeScriptFileType.declarationFile, new File(outputDir, "test-mn4a.d.ts")); ++ file("Test4b", null, "NS4b", TypeScriptOutputKind.module, TypeScriptFileType.declarationFile, new File(outputDir, "test-mn4b.d.ts")); ++ ++ file("Test5", null, null, TypeScriptOutputKind.global, TypeScriptFileType.implementationFile, new File(outputDir, "test-mn5.ts")); ++ file("Test6", null, "NS6", TypeScriptOutputKind.global, TypeScriptFileType.implementationFile, new File(outputDir, "test-mn6.ts")); ++ file("Test7", null, null, TypeScriptOutputKind.module, TypeScriptFileType.implementationFile, new File(outputDir, "test-mn7.ts")); ++ file("Test8", null, "NS8", TypeScriptOutputKind.module, TypeScriptFileType.implementationFile, new File(outputDir, "test-mn8.ts")); + } + +- private static void file(String prefix, String module, String namespace, boolean mapPackagesToNamespaces, TypeScriptOutputKind outputKind, TypeScriptFileType outputFileType, File output) { ++ private static void file(String prefix, String module, String namespace, TypeScriptOutputKind outputKind, TypeScriptFileType outputFileType, File output) { + final Settings settings = new Settings(); + settings.jsonLibrary = JsonLibrary.jackson2; +- settings.mapEnum = EnumMapping.asEnum; + settings.addTypeNamePrefix = prefix; + settings.module = module; + settings.namespace = namespace; +- settings.mapPackagesToNamespaces = mapPackagesToNamespaces; + settings.outputKind = outputKind; + settings.outputFileType = outputFileType; + if (outputFileType == TypeScriptFileType.implementationFile) { +- settings.nonConstEnums = true; +- settings.mapClasses = ClassMapping.asClasses; +- } +- if (outputFileType == TypeScriptFileType.implementationFile && !mapPackagesToNamespaces) { +- settings.extensions.add(new TestFunctionExtension()); ++ settings.extensions.add(new TestFunctionExtention()); + } + new TypeScriptGenerator(settings).generateTypeScript(Input.from(Data.class, Direction.class, Align.class), Output.to(output)); + } +@@ -69,13 +59,12 @@ public class ModulesAndNamespacesTest { + Right + } + +- private static class TestFunctionExtension extends EmitterExtension { ++ private static class TestFunctionExtention extends EmitterExtension { + + @Override + public EmitterExtensionFeatures getFeatures() { + final EmitterExtensionFeatures features = new EmitterExtensionFeatures(); + features.generatesRuntimeCode = true; +- features.worksWithPackagesMappedToNamespaces = true; + return features; + } + +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/NamingTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/NamingTest.java +index ea0f162ff..b0805748d 100644 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/NamingTest.java ++++ b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/NamingTest.java +@@ -2,20 +2,17 @@ + package cz.habarta.typescript.generator; + + import cz.habarta.typescript.generator.compiler.SymbolTable; +-import cz.habarta.typescript.generator.yield.KeywordInPackage; +-import java.util.Collections; + import java.util.LinkedHashMap; +-import org.junit.jupiter.api.Assertions; +-import org.junit.jupiter.api.Test; ++import org.junit.Assert; ++import org.junit.Test; + + +-@SuppressWarnings("unused") + public class NamingTest { + +- @Test ++ @Test(expected = SymbolTable.NameConflictException.class) + public void testConflictReport() { + final Settings settings = TestUtils.settings(); +- Assertions.assertThrows(SymbolTable.NameConflictException.class, () -> new TypeScriptGenerator(settings).generateTypeScript(Input.from(A.ConflictingClass.class, B.ConflictingClass.class))); ++ new TypeScriptGenerator(settings).generateTypeScript(Input.from(A.ConflictingClass.class, B.ConflictingClass.class)); + } + + @Test +@@ -25,17 +22,8 @@ public class NamingTest { + settings.customTypeNaming.put("cz.habarta.typescript.generator.NamingTest$A$ConflictingClass", "A$ConflictingClass"); + settings.customTypeNaming.put("cz.habarta.typescript.generator.NamingTest$B$ConflictingClass", "B$ConflictingClass"); + final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(A.ConflictingClass.class, B.ConflictingClass.class)); +- Assertions.assertTrue(output.contains("A$ConflictingClass")); +- Assertions.assertTrue(output.contains("B$ConflictingClass")); +- } +- +- @Test +- public void testConflictPrevented() { +- final Settings settings = TestUtils.settings(); +- settings.mapPackagesToNamespaces = true; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(A.ConflictingClass.class, B.ConflictingClass.class)); +- Assertions.assertTrue(output.contains("namespace cz.habarta.typescript.generator.NamingTest.A {")); +- Assertions.assertTrue(output.contains("namespace cz.habarta.typescript.generator.NamingTest.B {")); ++ Assert.assertTrue(output.contains("A$ConflictingClass")); ++ Assert.assertTrue(output.contains("B$ConflictingClass")); + } + + private static class A { +@@ -50,62 +38,4 @@ public class NamingTest { + } + } + +- @Test +- public void testTypeNamingFunction() { +- final Settings settings = TestUtils.settings(); +- settings.customTypeNamingFunction = "function(name, simpleName) { if (name.indexOf('cz.') === 0) return 'Test' + simpleName; }"; +- final SymbolTable symbolTable = new SymbolTable(settings); +- final String name = symbolTable.getMappedNamespacedName(A.class); +- Assertions.assertEquals("TestA", name); +- } +- +- @Test +- public void testTypeNamingFunctionReturnsUndefined() { +- final Settings settings = TestUtils.settings(); +- settings.customTypeNamingFunction = "function() {}"; +- final SymbolTable symbolTable = new SymbolTable(settings); +- final String name = symbolTable.getMappedNamespacedName(A.class); +- Assertions.assertEquals("A", name); +- } +- +- @Test +- public void testCombinations() { +- final Settings settings = TestUtils.settings(); +- settings.customTypeNamingFunction = "function(name, simpleName) { if (name.indexOf('cz.') === 0) return 'Func' + simpleName; }"; +- settings.addTypeNamePrefix = "Conf"; +- settings.mapPackagesToNamespaces = true; +- final SymbolTable symbolTable = new SymbolTable(settings); +- Assertions.assertEquals("FuncA", symbolTable.getMappedNamespacedName(A.class)); +- Assertions.assertEquals("java.lang.ConfObject", symbolTable.getMappedNamespacedName(Object.class)); +- } +- +- @Test +- public void testTypeScriptKeywords() { +- final Settings settings = TestUtils.settings(); +- settings.mapPackagesToNamespaces = true; +- final SymbolTable symbolTable = new SymbolTable(settings); +- final String name = symbolTable.getMappedNamespacedName(KeywordInPackage.class); +- Assertions.assertEquals("cz.habarta.typescript.generator._yield.KeywordInPackage", name); +- } +- +- @Test +- public void testNamespaced() { +- final Settings settings = TestUtils.settings(); +- settings.customTypeNaming = Collections.singletonMap("cz.habarta.typescript.generator.NamingTest$C", "NS.C"); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(C.class, D.class)); +- Assertions.assertTrue(output.contains("namespace NS")); +- Assertions.assertTrue(output.contains("interface C")); +- Assertions.assertTrue(output.contains("interface D extends NS.C")); +- Assertions.assertTrue(output.contains("objectC: NS.C")); +- } +- +- private static class C { +- public String c; +- } +- +- private static class D extends C { +- public String d; +- public C objectC; +- } +- + } +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/NullabilityTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/NullabilityTest.java +deleted file mode 100644 +index 09a1a2d09..000000000 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/NullabilityTest.java ++++ /dev/null +@@ -1,146 +0,0 @@ +- +-package cz.habarta.typescript.generator; +- +-import java.util.Date; +-import java.util.List; +-import org.checkerframework.checker.nullness.qual.Nullable; +-import org.junit.jupiter.api.Assertions; +-import org.junit.jupiter.api.Test; +- +- +-@SuppressWarnings("unused") +-public class NullabilityTest { +- +- @Test +- public void test() { +- final Settings settings = TestUtils.settings(); +- settings.nullableAnnotations.add(Nullable.class); +- settings.nullabilityDefinition = NullabilityDefinition.undefinedInlineUnion; +- settings.sortDeclarations = true; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(A.class)); +- final String expected = "" + +- "interface A {\n" + +- " data?: T;\n" + +- " isNonNullableFlag: boolean;\n" + +- " isNullableFlag?: boolean;\n" + +- " nonNullableBoolean: boolean;\n" + +- " nonNullableString: string;\n" + +- " nullableArray?: (string | undefined)[];\n" + +- " nullableBoolean?: boolean;\n" + +- " nullableGenericArray?: (T | undefined)[];\n" + +- " nullableGenericType?: T;\n" + +- " nullableList?: (string | undefined)[];\n" + +- " nullableString?: string;\n" + +- " test: string;\n" + +- " testNullable?: string;\n" + +- "}"; +- Assertions.assertEquals(expected.trim(), output.trim()); +- } +- +- private static class A { +- +- public @Nullable String nullableString; +- public String nonNullableString; +- public @Nullable List<@Nullable String> nullableList; +- public @Nullable String @Nullable [] nullableArray; +- public @Nullable T @Nullable [] nullableGenericArray; +- public @Nullable T nullableGenericType; +- public @Nullable Boolean nullableBoolean; +- public Boolean nonNullableBoolean; +- public @Nullable Boolean isNullableFlag; +- public Boolean isNonNullableFlag; +- +- public @Nullable D getData() { +- return null; +- } +- +- public String getTest() { +- return ""; +- } +- +- public @Nullable String getTestNullable() { +- return null; +- } +- +- } +- +- @Test +- public void testVariants() { +- testVariant(NullabilityDefinition.nullAndUndefinedUnion, "list?: Nullable[]>", "type Nullable = T | null | undefined"); +- testVariant(NullabilityDefinition.undefinedUnion, "list?: Nullable[]>", "type Nullable = T | undefined"); +- testVariant(NullabilityDefinition.nullUnion, "list: Nullable[]>", "type Nullable = T | null"); +- testVariant(NullabilityDefinition.nullAndUndefinedInlineUnion, "list?: (string | null | undefined)[] | null"); +- testVariant(NullabilityDefinition.undefinedInlineUnion, "list?: (string | undefined)[]"); +- testVariant(NullabilityDefinition.nullInlineUnion, "list: (string | null)[] | null"); +- } +- +- private static void testVariant(NullabilityDefinition nullabilityDefinition, String... expected) { +- final Settings settings = TestUtils.settings(); +- settings.nullableAnnotations.add(Nullable.class); +- settings.nullabilityDefinition = nullabilityDefinition; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(B.class)); +- for (String s : expected) { +- Assertions.assertTrue(output.contains(s)); +- } +- } +- +- private static class B { +- public @Nullable List<@Nullable String> list; +- } +- +- @Test +- public void testCombinationsOfOptionalAndNullable() { +- testCombinationOfOptionalAndNullable( +- OptionalPropertiesDeclaration.questionMark, +- NullabilityDefinition.nullInlineUnion, +- "list?: (string | null)[] | null;"); +- testCombinationOfOptionalAndNullable( +- OptionalPropertiesDeclaration.nullableType, +- NullabilityDefinition.nullInlineUnion, +- "list: (string | null)[] | null;"); +- testCombinationOfOptionalAndNullable( +- OptionalPropertiesDeclaration.nullableAndUndefinableType, +- NullabilityDefinition.nullAndUndefinedInlineUnion, +- "list: (string | null | undefined)[] | null | undefined;"); +- testCombinationOfOptionalAndNullable( +- OptionalPropertiesDeclaration.nullableType, +- NullabilityDefinition.nullAndUndefinedUnion, +- "list: Nullable[]> | null;"); +- } +- +- private static void testCombinationOfOptionalAndNullable( +- OptionalPropertiesDeclaration optionalPropertiesDeclaration, +- NullabilityDefinition nullabilityDefinition, +- String expected +- ) { +- final Settings settings = TestUtils.settings(); +- settings.optionalAnnotations.add(Nullable.class); +- settings.nullableAnnotations.add(Nullable.class); +- settings.optionalPropertiesDeclaration = optionalPropertiesDeclaration; +- settings.nullabilityDefinition = nullabilityDefinition; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(B.class)); +- Assertions.assertTrue(output.contains(expected), "Unexpected actual output: " + output); +- } +- +- @Test +- public void testNullableAnnotationTarget() { +- final Settings settings = TestUtils.settings(); +- settings.nullableAnnotations.add(javax.annotation.Nullable.class); +- Assertions.assertThrows(RuntimeException.class, () -> new TypeScriptGenerator(settings).generateTypeScript(Input.from(A.class))); +- } +- +- @Test +- public void testDate() { +- final Settings settings = TestUtils.settings(); +- settings.nullableAnnotations.add(Nullable.class); +- settings.nullabilityDefinition = NullabilityDefinition.nullAndUndefinedUnion; +- settings.mapDate = DateMapping.asString; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(ClassWithDate.class)); +- Assertions.assertTrue(output.contains("date?: Nullable")); +- } +- +- private static class ClassWithDate { +- public @Nullable Date date; +- } +- +-} +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/NumberEnumTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/NumberEnumTest.java +index bdbf0201d..ec07b40d6 100644 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/NumberEnumTest.java ++++ b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/NumberEnumTest.java +@@ -8,13 +8,9 @@ import cz.habarta.typescript.generator.parser.EnumModel; + import cz.habarta.typescript.generator.parser.Model; + import cz.habarta.typescript.generator.parser.ModelParser; + import java.io.File; +-import java.lang.annotation.ElementType; +-import java.lang.annotation.Retention; +-import java.lang.annotation.RetentionPolicy; +-import java.lang.annotation.Target; + import java.util.Arrays; +-import org.junit.jupiter.api.Assertions; +-import org.junit.jupiter.api.Test; ++import org.junit.Assert; ++import org.junit.Test; + + + public class NumberEnumTest { +@@ -24,19 +20,19 @@ public class NumberEnumTest { + final Settings settings = TestUtils.settings(); + final ModelParser parser = new TypeScriptGenerator(settings).getModelParser(); + final Model model = parser.parseModel(SomeCode.class); +- Assertions.assertEquals(1, model.getEnums().size()); +- final EnumModel enumModel = model.getEnums().get(0); +- Assertions.assertEquals(EnumKind.NumberBased, enumModel.getKind()); +- Assertions.assertEquals(2, enumModel.getMembers().size()); +- Assertions.assertEquals(10, ((Number)enumModel.getMembers().get(0).getEnumValue()).intValue()); +- Assertions.assertEquals(11, ((Number)enumModel.getMembers().get(1).getEnumValue()).intValue()); ++ Assert.assertEquals(1, model.getEnums().size()); ++ final EnumModel enumModel = model.getEnums().get(0); ++ Assert.assertEquals(EnumKind.NumberBased, enumModel.getKind()); ++ Assert.assertEquals(2, enumModel.getMembers().size()); ++ Assert.assertEquals(10, enumModel.getMembers().get(0).getEnumValue()); ++ Assert.assertEquals(11, enumModel.getMembers().get(1).getEnumValue()); + } + + @Test + public void test() { + final Settings settings = TestUtils.settings(); + final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(SomeCode.class)); +- Assertions.assertEquals( ++ Assert.assertEquals( + "declare const enum SomeCode {\n" + + " VALUE0 = 10,\n" + + " VALUE1 = 11,\n" + +@@ -44,49 +40,20 @@ public class NumberEnumTest { + output.trim()); + } + +- @Test +- public void testNonConstEnum() { +- final Settings settings = TestUtils.settings(); +- settings.outputFileType = TypeScriptFileType.implementationFile; +- settings.nonConstEnums = true; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(SomeCode.class)); +- Assertions.assertEquals( +- "enum SomeCode {\n" + +- " VALUE0 = 10,\n" + +- " VALUE1 = 11,\n" + +- "}", +- output.trim()); +- } +- +- @Test +- public void testNonConstAnnotationEnum() { +- final Settings settings = TestUtils.settings(); +- settings.outputFileType = TypeScriptFileType.implementationFile; +- settings.nonConstEnumAnnotations.add(SomeNonConstAnnotation.class); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(SomeCode.class)); +- Assertions.assertEquals( +- "enum SomeCode {\n" + +- " VALUE0 = 10,\n" + +- " VALUE1 = 11,\n" + +- "}", +- output.trim()); +- } +- + @Test + public void testJavadoc() { + final Settings settings = TestUtils.settings(); +- settings.javadocXmlFiles = Arrays.asList(new File("src/test/javadoc/test-javadoc.xml")); ++ settings.javadocXmlFiles = Arrays.asList(new File("target/test-javadoc.xml")); + final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(SomeCode.class)); +- Assertions.assertTrue(output.contains("Documentation for SomeCode enum.")); +- Assertions.assertTrue(output.contains("Documentation for VALUE0.")); +- Assertions.assertTrue(output.contains("Documentation for VALUE1.")); ++ Assert.assertTrue(output.contains("Documentation for SomeCode enum.")); ++ Assert.assertTrue(output.contains("Documentation for VALUE0.")); ++ Assert.assertTrue(output.contains("Documentation for VALUE1.")); + } + + /** + * Documentation for SomeCode enum. + */ + @JsonFormat(shape = JsonFormat.Shape.NUMBER_INT) +- @SomeNonConstAnnotation + public static enum SomeCode { + + /** +@@ -110,9 +77,4 @@ public class NumberEnumTest { + } + } + +- @Retention(RetentionPolicy.RUNTIME) +- @Target({ElementType.TYPE}) +- public @interface SomeNonConstAnnotation { +- } +- + } +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/ObjectAsIdTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/ObjectAsIdTest.java +deleted file mode 100644 +index 4a2cf1f3d..000000000 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/ObjectAsIdTest.java ++++ /dev/null +@@ -1,317 +0,0 @@ +- +-package cz.habarta.typescript.generator; +- +-import com.fasterxml.jackson.annotation.JsonIdentityInfo; +-import com.fasterxml.jackson.annotation.JsonIdentityReference; +-import com.fasterxml.jackson.annotation.JsonProperty; +-import com.fasterxml.jackson.annotation.ObjectIdGenerators; +-import com.fasterxml.jackson.core.JsonProcessingException; +-import com.fasterxml.jackson.databind.ObjectMapper; +-import com.fasterxml.jackson.databind.SerializationFeature; +-import cz.habarta.typescript.generator.util.Utils; +-import java.util.Arrays; +-import java.util.LinkedHashMap; +-import java.util.List; +-import java.util.Map; +-import java.util.concurrent.atomic.AtomicInteger; +-import java.util.stream.Collectors; +-import java.util.stream.Stream; +-import org.junit.jupiter.api.Assertions; +-import org.junit.jupiter.api.Test; +- +- +-@SuppressWarnings("unused") +-public class ObjectAsIdTest { +- +- @Test +- public void testJackson() throws JsonProcessingException { +- final TestObjectA testObjectA = new TestObjectA(); +- final TestObjectSubA testObjectSubA = new TestObjectSubA(); +- final TestObjectB testObjectB = new TestObjectB(); +- final TestObjectC testObjectC = new TestObjectC<>("valueC"); +- final TestObjectD testObjectD = new TestObjectD(); +- final TestObjectE testObjectE = new TestObjectE(); +- final Wrapper wrapper = new Wrapper(); +- wrapper.testObjectA1 = testObjectA; +- wrapper.testObjectA2 = testObjectA; +- wrapper.testObjectSubA = testObjectSubA; +- wrapper.testObjectB1 = testObjectB; +- wrapper.testObjectB2 = testObjectB; +- wrapper.testObjectC1 = testObjectC; +- wrapper.testObjectC2 = testObjectC; +- wrapper.testObjectD1 = testObjectD; +- wrapper.testObjectD2 = testObjectD; +- wrapper.testObjectE1 = testObjectE; +- wrapper.testObjectE2 = testObjectE; +- wrapper.testObjectE3 = testObjectE; +- final ObjectMapper objectMapper = Utils.getObjectMapper(); +- objectMapper.enable(SerializationFeature.INDENT_OUTPUT); +- final String json = objectMapper.writeValueAsString(wrapper); +- Assertions.assertTrue(json.contains("\"testObjectA1\": \"id1\"")); +- Assertions.assertTrue(json.contains("\"testObjectA2\": \"id1\"")); +- Assertions.assertTrue(json.contains("\"testObjectSubA\": \"id1\"")); +- Assertions.assertTrue(json.contains("\"testObjectB1\": {")); +- Assertions.assertTrue(json.contains("\"testObjectB2\": \"id2\"")); +- Assertions.assertTrue(json.contains("\"testObjectC1\": {")); +- Assertions.assertTrue(json.contains("\"testObjectC2\": \"id3\"")); +- Assertions.assertTrue(json.contains("\"testObjectD1\": \"id4\"")); +- Assertions.assertTrue(json.contains("\"testObjectD2\": \"id4\"")); +- Assertions.assertTrue(json.contains("\"testObjectE1\": \"id5\"")); +- Assertions.assertTrue(json.contains("\"testObjectE2\": {")); +- Assertions.assertTrue(json.contains("\"testObjectE3\": {")); +- } +- +- @Test +- public void testJacksonLists() throws JsonProcessingException { +- final TestObjectA testObjectA = new TestObjectA(); +- final TestObjectB testObjectB = new TestObjectB(); +- final TestObjectC testObjectC = new TestObjectC<>("valueC"); +- final TestObjectD testObjectD = new TestObjectD(); +- final TestObjectE testObjectE = new TestObjectE(); +- final WrapperWithLists wrapper = new WrapperWithLists(); +- wrapper.listOfTestObjectA = Arrays.asList(testObjectA, testObjectA); +- wrapper.listOfTestObjectB = Arrays.asList(testObjectB, testObjectB); +- wrapper.listOfTestObjectC = Arrays.asList(testObjectC, testObjectC); +- wrapper.listOfTestObjectD = Arrays.asList(testObjectD, testObjectD); +- wrapper.listOfTestObjectE = Arrays.asList(testObjectE, testObjectE); +- final ObjectMapper objectMapper = Utils.getObjectMapper(); +- objectMapper.disable(SerializationFeature.INDENT_OUTPUT); +- final String json = objectMapper.writeValueAsString(wrapper); +- Assertions.assertTrue(json.contains("\"listOfTestObjectA\":[\"id1\"")); +- Assertions.assertTrue(json.contains("\"listOfTestObjectB\":[{")); +- Assertions.assertTrue(json.contains("\"listOfTestObjectC\":[{")); +- Assertions.assertTrue(json.contains("\"listOfTestObjectD\":[\"id4\"")); +- Assertions.assertTrue(json.contains("\"listOfTestObjectE\":[\"id5\"")); +- } +- +- @Test +- public void testJacksonNestedMaps() throws JsonProcessingException { +- final TestObjectA testObjectA = new TestObjectA(); +- final TestObjectB testObjectB = new TestObjectB(); +- final TestObjectC testObjectC = new TestObjectC<>("valueC"); +- final TestObjectD testObjectD = new TestObjectD(); +- final TestObjectE testObjectE = new TestObjectE(); +- final WrapperWithNestedMaps wrapper = new WrapperWithNestedMaps(); +- wrapper.listOfMapOfTestObjectA = Arrays.asList(generateMap(testObjectA, testObjectA)); +- wrapper.listOfMapOfTestObjectB = Arrays.asList(generateMap(testObjectB, testObjectB)); +- wrapper.listOfMapOfTestObjectC = Arrays.asList(generateMap(testObjectC, testObjectC)); +- wrapper.listOfMapOfTestObjectD = Arrays.asList(generateMap(testObjectD, testObjectD)); +- wrapper.listOfMapOfTestObjectE = Arrays.asList(generateMap(testObjectE, testObjectE)); +- final ObjectMapper objectMapper = Utils.getObjectMapper(); +- objectMapper.disable(SerializationFeature.INDENT_OUTPUT); +- final String json = objectMapper.writeValueAsString(wrapper); +- Assertions.assertTrue(json.contains("\"listOfMapOfTestObjectA\":[{\"k1\":\"id1\"")); +- Assertions.assertTrue(json.contains("\"listOfMapOfTestObjectB\":[{\"k1\":{")); +- Assertions.assertTrue(json.contains("\"listOfMapOfTestObjectC\":[{\"k1\":{")); +- Assertions.assertTrue(json.contains("\"listOfMapOfTestObjectD\":[{\"k1\":\"id4\"")); +- Assertions.assertTrue(json.contains("\"listOfMapOfTestObjectE\":[{\"k1\":\"id5\"")); +- } +- +- @SafeVarargs +- @SuppressWarnings("varargs") +- private static Map generateMap(V... values) { +- final AtomicInteger index = new AtomicInteger(); +- return Stream.of(values).collect(Collectors.toMap( +- v -> "k" + index.incrementAndGet(), +- v -> v, +- (v1, v2) -> { throw new RuntimeException(); }, +- LinkedHashMap::new +- )); +- } +- +- @Test +- public void test() { +- final Settings settings = TestUtils.settings(); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(Wrapper.class)); +- Assertions.assertTrue(output.contains("testObjectA1: string")); +- Assertions.assertTrue(output.contains("testObjectSubA: string")); +- Assertions.assertTrue(output.contains("testObjectB1: TestObjectB | string")); +- Assertions.assertTrue(output.contains("testObjectC1: TestObjectC | string")); +- Assertions.assertTrue(output.contains("testObjectD1: string")); +- Assertions.assertTrue(output.contains("testObjectE1: string")); +- Assertions.assertTrue(output.contains("testObjectE2: TestObjectE | string")); +- Assertions.assertTrue(output.contains("testObjectE3: TestObjectE")); +- Assertions.assertTrue(!output.contains("interface TestObjectA")); +- Assertions.assertTrue(!output.contains("interface TestObjectSubA")); +- Assertions.assertTrue(output.contains("interface TestObjectB")); +- Assertions.assertTrue(output.contains("interface TestObjectC")); +- Assertions.assertTrue(!output.contains("interface TestObjectD")); +- Assertions.assertTrue(output.contains("interface TestObjectE")); +- } +- +- @Test +- public void testLists() { +- final Settings settings = TestUtils.settings(); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(WrapperWithLists.class)); +- Assertions.assertTrue(output.contains("listOfTestObjectA: string[]")); +- Assertions.assertTrue(output.contains("listOfTestObjectB: (TestObjectB | string)[]")); +- Assertions.assertTrue(output.contains("listOfTestObjectC: (TestObjectC | string)[]")); +- Assertions.assertTrue(output.contains("listOfTestObjectD: string[]")); +- Assertions.assertTrue(output.contains("listOfTestObjectE: string[]")); +- Assertions.assertTrue(!output.contains("interface TestObjectA")); +- Assertions.assertTrue(output.contains("interface TestObjectB")); +- Assertions.assertTrue(output.contains("interface TestObjectC")); +- Assertions.assertTrue(!output.contains("interface TestObjectD")); +- Assertions.assertTrue(!output.contains("interface TestObjectE")); +- } +- +- @Test +- public void testNestedMaps() { +- final Settings settings = TestUtils.settings(); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(WrapperWithNestedMaps.class)); +- Assertions.assertTrue(output.contains("listOfMapOfTestObjectA: { [index: string]: string }[]")); +- Assertions.assertTrue(output.contains("listOfMapOfTestObjectB: { [index: string]: TestObjectB | string }[]")); +- Assertions.assertTrue(output.contains("listOfMapOfTestObjectC: { [index: string]: TestObjectC | string }[]")); +- Assertions.assertTrue(output.contains("listOfMapOfTestObjectD: { [index: string]: string }[]")); +- Assertions.assertTrue(output.contains("listOfMapOfTestObjectE: { [index: string]: string }[]")); +- Assertions.assertTrue(!output.contains("interface TestObjectA")); +- Assertions.assertTrue(output.contains("interface TestObjectB")); +- Assertions.assertTrue(output.contains("interface TestObjectC")); +- Assertions.assertTrue(!output.contains("interface TestObjectD")); +- Assertions.assertTrue(!output.contains("interface TestObjectE")); +- } +- +- +- @Test +- public void testGenerics() { +- final Settings settings = TestUtils.settings(); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(TestObjectWithGeneric.class)); +- Assertions.assertTrue(output.contains("objectReference: string")); +- } +- +- @Test +- public void testDisableObjectIdentity() { +- final Settings settings = TestUtils.settings(); +- settings.jackson2Configuration = new Jackson2ConfigurationResolved(); +- settings.jackson2Configuration.disableObjectIdentityFeature = true; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(Wrapper.class)); +- Assertions.assertTrue(output.contains("testObjectA1: TestObjectA")); +- Assertions.assertTrue(output.contains("testObjectB1: TestObjectB")); +- Assertions.assertTrue(output.contains("testObjectC1: TestObjectC")); +- Assertions.assertTrue(output.contains("testObjectD1: TestObjectD")); +- Assertions.assertTrue(output.contains("testObjectE1: TestObjectE")); +- } +- +- @JsonIdentityInfo(generator = ObjectIdGenerators.PropertyGenerator.class, property = "@@@id") +- @JsonIdentityReference(alwaysAsId = true) +- private static class TestObjectA { +- +- @JsonProperty("@@@id") +- public String myIdentification = "id1"; +- +- public String myProperty = "valueA"; +- } +- +- private static class TestObjectSubA extends TestObjectA { +- public String subProperty = "valueSubA"; +- } +- +- @JsonIdentityInfo(generator = ObjectIdGenerators.PropertyGenerator.class, property = "@@@id") +- private static class TestObjectB { +- +- @JsonProperty("@@@id") +- public String myIdentification = "id2"; +- +- public String myProperty = "valueB"; +- } +- +- @JsonIdentityInfo(generator = ObjectIdGenerators.PropertyGenerator.class, property = "@@@id") +- private static class TestObjectC { +- +- @JsonProperty("@@@id") +- public String myIdentification = "id3"; +- +- public T myProperty; +- +- public TestObjectC(T myProperty) { +- this.myProperty = myProperty; +- } +- } +- +- @JsonIdentityInfo(generator = ObjectIdGenerators.PropertyGenerator.class, property = "@@@id") +- private static class TestObjectD { +- +- @JsonProperty("@@@id") +- public String myIdentification = "id4"; +- +- public String myProperty = "valueD"; +- } +- +- +- private static class ObjectWithID { +- @JsonProperty("@@@id") +- public String myIdentification; +- +- } +- +- private static class TestObjectWithID extends ObjectWithID { +- public String myProperty = "valueE"; +- +- public TestObjectWithID(String myIdentification) { +- this.myIdentification = myIdentification; +- } +- } +- +- +- private static class GenericWrapper { +- @JsonIdentityInfo(generator = ObjectIdGenerators.PropertyGenerator.class, property = "@@@id") @JsonIdentityReference(alwaysAsId = true) +- public M objectReference; +- +- +- public GenericWrapper(M objectReference) { +- this.objectReference = objectReference; +- } +- } +- +- +- private static class TestObjectWithGeneric { +- public GenericWrapper genericTestObject; +- +- public TestObjectWithGeneric(GenericWrapper genericTestObject) { +- this.genericTestObject = genericTestObject; +- } +- } +- +- +- +- +- private static class TestObjectE { +- +- @JsonProperty("@@@id") +- public String myIdentification = "id5"; +- +- public String myProperty = "valueE"; +- } +- +- private static class Wrapper { +- public TestObjectA testObjectA1; +- public TestObjectA testObjectA2; +- public TestObjectSubA testObjectSubA; +- public TestObjectB testObjectB1; +- public TestObjectB testObjectB2; +- public TestObjectC testObjectC1; +- public TestObjectC testObjectC2; +- public @JsonIdentityReference(alwaysAsId = true) TestObjectD testObjectD1; +- public @JsonIdentityReference(alwaysAsId = true) TestObjectD testObjectD2; +- public @JsonIdentityInfo(generator = ObjectIdGenerators.PropertyGenerator.class, property = "@@@id") @JsonIdentityReference(alwaysAsId = true) TestObjectE testObjectE1; +- public @JsonIdentityInfo(generator = ObjectIdGenerators.PropertyGenerator.class, property = "@@@id") TestObjectE testObjectE2; +- public TestObjectE testObjectE3; +- } +- +- private static class WrapperWithLists { +- public List listOfTestObjectA; +- public List listOfTestObjectB; +- public List> listOfTestObjectC; +- public @JsonIdentityReference(alwaysAsId = true) List listOfTestObjectD; +- public @JsonIdentityInfo(generator = ObjectIdGenerators.PropertyGenerator.class, property = "@@@id") @JsonIdentityReference(alwaysAsId = true) List listOfTestObjectE; +- } +- +- private static class WrapperWithNestedMaps { +- public List> listOfMapOfTestObjectA; +- public List> listOfMapOfTestObjectB; +- public List>> listOfMapOfTestObjectC; +- public @JsonIdentityReference(alwaysAsId = true) List> listOfMapOfTestObjectD; +- public @JsonIdentityInfo(generator = ObjectIdGenerators.PropertyGenerator.class, property = "@@@id") @JsonIdentityReference(alwaysAsId = true) List> listOfMapOfTestObjectE; +- } +- +-} +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/OptionalAnnotationTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/OptionalAnnotationTest.java +index 7ce1af5be..7277c469e 100644 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/OptionalAnnotationTest.java ++++ b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/OptionalAnnotationTest.java +@@ -1,26 +1,29 @@ + package cz.habarta.typescript.generator; + +-import com.fasterxml.jackson.annotation.JsonProperty; +-import cz.habarta.typescript.generator.parser.BeanModel; +-import cz.habarta.typescript.generator.parser.Jackson2Parser; +-import cz.habarta.typescript.generator.parser.Model; +-import cz.habarta.typescript.generator.parser.ModelParser; +-import cz.habarta.typescript.generator.parser.PropertyModel; +-import java.lang.annotation.ElementType; ++import cz.habarta.typescript.generator.parser.*; + import java.lang.annotation.Retention; + import java.lang.annotation.RetentionPolicy; +-import java.lang.annotation.Target; +-import java.util.Arrays; +-import java.util.Collection; +-import java.util.Date; +-import java.util.Map; +-import java.util.UUID; +-import org.junit.jupiter.api.Assertions; +-import org.junit.jupiter.api.Test; ++import org.junit.Assert; ++import org.junit.Test; + + + public class OptionalAnnotationTest { + ++ @Test ++ public void testJackson1OptionalAnnotation() { ++ Settings settings = new Settings(); ++ settings.optionalAnnotations.add(Nullable.class); ++ ModelParser parser = new Jackson1Parser(settings, new DefaultTypeProcessor()); ++ testModel(parser.parseModel(Jackson1Bean.class), true); ++ } ++ ++ @Test ++ public void testJackson1NoAnnotation() { ++ Settings settings = new Settings(); ++ ModelParser parser = new Jackson1Parser(settings, new DefaultTypeProcessor()); ++ testModel(parser.parseModel(Jackson1Bean.class), false); ++ } ++ + @Test + public void testJackson2OptionalAnnotation() { + Settings settings = new Settings(); +@@ -37,14 +40,19 @@ public class OptionalAnnotationTest { + } + + private void testModel(Model model, boolean optional) { +- Assertions.assertEquals(1, model.getBeans().size()); ++ Assert.assertEquals(1, model.getBeans().size()); + BeanModel beanModel = model.getBeans().get(0); +- Assertions.assertEquals(2, beanModel.getProperties().size()); ++ Assert.assertEquals(2, beanModel.getProperties().size()); + for (PropertyModel propertyModel : beanModel.getProperties()) { +- Assertions.assertEquals(optional, propertyModel.isOptional()); ++ Assert.assertEquals(optional, propertyModel.isOptional()); + } + } + ++ @Test ++ public void testJavaxNullableWithJackson1() { ++ testJavaxNullableUsingTypeScriptGenerator(JsonLibrary.jackson1); ++ } ++ + @Test + public void testJavaxNullableWithJackson2() { + testJavaxNullableUsingTypeScriptGenerator(JsonLibrary.jackson2); +@@ -55,192 +63,42 @@ public class OptionalAnnotationTest { + settings.jsonLibrary = jsonLibrary; + settings.optionalAnnotations.add(javax.annotation.Nullable.class); + final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(BeanWithJavaxNullable.class)); +- Assertions.assertTrue(output.contains("property1?: string;")); ++ Assert.assertTrue(output.contains("property1?: string;")); + } + ++ @org.codehaus.jackson.annotate.JacksonAnnotation + @Retention(RetentionPolicy.RUNTIME) + static @interface Nullable { + // marker + } + +- static class Jackson2Bean { ++ static class Jackson1Bean { + @Nullable +- @JsonProperty ++ @org.codehaus.jackson.annotate.JsonProperty + private String fieldProperty; + + @Nullable +- @JsonProperty ++ @org.codehaus.jackson.annotate.JsonProperty + public String getMethodProperty() { + return fieldProperty; + } + } + +- static class BeanWithJavaxNullable { +- @javax.annotation.Nullable +- public String property1; +- } +- +- @Test +- public void testNullableTypeAnnotation() { +- Settings settings = TestUtils.settings(); +- settings.optionalAnnotations.add(NullableType.class); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(BeanWithNullableType.class)); +- Assertions.assertTrue(output.contains("property1?: string;")); +- Assertions.assertTrue(output.contains("property2?: string;")); +- } +- +- @Retention(RetentionPolicy.RUNTIME) +- @Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER}) +- public @interface NullableType { +- } +- +- private static class BeanWithNullableType { +- @NullableType +- public String property1; +- +- @NullableType +- public String getProperty2() { +- return null; +- } +- } +- +- @Test +- public void testAnnotatedPrivateField() { +- final Settings settings = TestUtils.settings(); +- settings.optionalAnnotations.add(TypescriptOptional.class); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(SearchDTO.class)); +- Assertions.assertTrue(output.contains("selectedId?: number;")); +- } +- +- public class SearchDTO { +- +- private Integer year; +- +- @TypescriptOptional +- private Long selectedId; +- +- public Integer getYear() { +- return year; +- } +- +- public Long getSelectedId() { +- return selectedId; +- } +- +- } +- +- @Retention(RetentionPolicy.RUNTIME) +- public @interface TypescriptOptional { +- } +- +- @Test +- public void testOptionalAndRequiredProperty() { +- { +- final Settings settings = TestUtils.settings(); +- settings.optionalAnnotations = Arrays.asList(); +- settings.requiredAnnotations = Arrays.asList(); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(ClassWithMarkedField.class)); +- Assertions.assertTrue(output.contains("a: string;")); +- Assertions.assertTrue(output.contains("b: string;")); +- } +- { +- final Settings settings = TestUtils.settings(); +- settings.optionalAnnotations = Arrays.asList(MarkerAnnotation.class); +- settings.requiredAnnotations = Arrays.asList(); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(ClassWithMarkedField.class)); +- Assertions.assertTrue(output.contains("a: string;")); +- Assertions.assertTrue(output.contains("b?: string;")); +- } +- { +- final Settings settings = TestUtils.settings(); +- settings.optionalAnnotations = Arrays.asList(); +- settings.requiredAnnotations = Arrays.asList(MarkerAnnotation.class); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(ClassWithMarkedField.class)); +- Assertions.assertTrue(output.contains("a?: string;")); +- Assertions.assertTrue(output.contains("b: string;")); +- } +- try { +- final Settings settings = TestUtils.settings(); +- settings.optionalAnnotations = Arrays.asList(MarkerAnnotation.class); +- settings.requiredAnnotations = Arrays.asList(MarkerAnnotation.class); +- new TypeScriptGenerator(settings).generateTypeScript(Input.from(ClassWithMarkedField.class)); +- Assertions.fail(); +- } catch (Exception e) { +- // expected - optionalAnnotations and requiredAnnotations cannot be used together +- } +- } +- +- public class ClassWithMarkedField { +- public String a; +- @MarkerAnnotation public String b; +- } +- +- @Retention(RetentionPolicy.RUNTIME) +- public @interface MarkerAnnotation { +- } ++ static class Jackson2Bean { ++ @Nullable ++ @com.fasterxml.jackson.annotation.JsonProperty ++ private String fieldProperty; + +- @Test +- public void testPrimitiveFieldRequired() { +- { +- final Settings settings = TestUtils.settings(); +- settings.requiredAnnotations = Arrays.asList(MarkerAnnotation.class); +- settings.primitivePropertiesRequired = true; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(ClassWithPrimitiveField.class)); +- Assertions.assertTrue(output.contains("charVar1: string;")); +- Assertions.assertTrue(output.contains("byteVar1: number;")); +- Assertions.assertTrue(output.contains("shortVar1: number;")); +- Assertions.assertTrue(output.contains("intVar1: number;")); +- Assertions.assertTrue(output.contains("longVar1: number;")); +- Assertions.assertTrue(output.contains("floatVar1: number;")); +- Assertions.assertTrue(output.contains("doubleVar1: number;")); +- Assertions.assertTrue(output.contains("booleanVar1: boolean;")); +- Assertions.assertTrue(output.contains("stringVar?: string;")); +- Assertions.assertTrue(output.contains("charVar2?: string;")); +- Assertions.assertTrue(output.contains("byteVar2?: number;")); +- Assertions.assertTrue(output.contains("shortVar2?: number;")); +- Assertions.assertTrue(output.contains("intVar2?: number;")); +- Assertions.assertTrue(output.contains("longVar2?: number;")); +- Assertions.assertTrue(output.contains("floatVar2?: number;")); +- Assertions.assertTrue(output.contains("doubleVar2?: number;")); +- Assertions.assertTrue(output.contains("booleanVar2?: boolean;")); +- Assertions.assertTrue(output.contains("uuidVar?: string;")); +- Assertions.assertTrue(output.contains("dateVar?: Date;")); +- Assertions.assertTrue(output.contains("collectionVar?: string[];")); +- Assertions.assertTrue(output.contains("mapVar?: { [index: string]: string };")); +- } +- try { +- final Settings settings = TestUtils.settings(); +- settings.requiredAnnotations = Arrays.asList(); +- settings.primitivePropertiesRequired = true; +- new TypeScriptGenerator(settings).generateTypeScript(Input.from(ClassWithPrimitiveField.class)); +- Assertions.fail(); +- } catch (Exception e) { +- // expected - 'primitivePropertiesRequired' parameter can only be used with 'requiredAnnotations' parameter ++ @Nullable ++ @com.fasterxml.jackson.annotation.JsonProperty ++ public String getMethodProperty() { ++ return fieldProperty; + } + } + +- public class ClassWithPrimitiveField { +- public char charVar1; +- public byte byteVar1; +- public short shortVar1; +- public int intVar1; +- public long longVar1; +- public float floatVar1; +- public double doubleVar1; +- public boolean booleanVar1; +- public String stringVar; +- public Character charVar2; +- public Byte byteVar2; +- public Short shortVar2; +- public Integer intVar2; +- public Long longVar2; +- public Float floatVar2; +- public Double doubleVar2; +- public Boolean booleanVar2; +- public UUID uuidVar; +- public Date dateVar; +- public Collection collectionVar; +- public Map mapVar; ++ static class BeanWithJavaxNullable { ++ @javax.annotation.Nullable ++ public String property1; + } + + } +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/OptionalTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/OptionalTest.java +deleted file mode 100644 +index be0c75b87..000000000 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/OptionalTest.java ++++ /dev/null +@@ -1,162 +0,0 @@ +- +-package cz.habarta.typescript.generator; +- +-import com.fasterxml.jackson.annotation.JsonInclude; +-import com.fasterxml.jackson.databind.ObjectMapper; +-import com.fasterxml.jackson.datatype.jdk8.Jdk8Module; +-import java.util.Objects; +-import java.util.Optional; +-import java.util.OptionalInt; +-import org.junit.jupiter.api.Assertions; +-import org.junit.jupiter.api.Test; +- +- +-@SuppressWarnings("unused") +-public class OptionalTest { +- +- @Test +- public void test() { +- final String output = new TypeScriptGenerator(TestUtils.settings()).generateTypeScript(Input.from(Person.class)); +- Assertions.assertEquals( +- "interface Person {\n" + +- " name: string;\n" + +- " email?: string;\n" + +- " age?: number;\n" + +- "}", +- output.trim()); +- } +- +- @Test +- public void testJackson2OptionalSupport() throws Exception { +- final ObjectMapper objectMapper = new ObjectMapper() +- .registerModule(new Jdk8Module()) +- .setSerializationInclusion(JsonInclude.Include.NON_NULL); +- +- final Person personWithEmail = new Person("afh", Optional.of("af@h.cz")); +- final Person personWithEmptyEmail = new Person("afh", Optional.empty()); +- final Person personWithoutEmail = new Person("afh", null); +- +- final String jsonWithEmail = "{'name':'afh','email':'af@h.cz'}".replace('\'', '\"'); +- final String jsonWithNullEmail = "{'name':'afh','email':null}".replace('\'', '\"'); +- final String jsonWithoutEmail = "{'name':'afh'}".replace('\'', '\"'); +- +- Assertions.assertEquals(jsonWithEmail, objectMapper.writeValueAsString(personWithEmail)); +- Assertions.assertEquals(jsonWithNullEmail, objectMapper.writeValueAsString(personWithEmptyEmail)); +- Assertions.assertEquals(jsonWithoutEmail, objectMapper.writeValueAsString(personWithoutEmail)); +- +- Assertions.assertEquals(personWithEmail, objectMapper.readValue(jsonWithEmail, Person.class)); +- Assertions.assertEquals(personWithEmptyEmail, objectMapper.readValue(jsonWithNullEmail, Person.class)); +- Assertions.assertEquals(personWithoutEmail, objectMapper.readValue(jsonWithoutEmail, Person.class)); +- } +- +- @Test +- public void testDeclarationQuestionMark() { +- testDeclaration(OptionalPropertiesDeclaration.questionMark, +- "interface Person {\n" + +- " name: string;\n" + +- " email?: string;\n" + +- " age?: number;\n" + +- "}" +- ); +- } +- +- @Test +- public void testDeclarationNullableType() { +- testDeclaration(OptionalPropertiesDeclaration.nullableType, +- "interface Person {\n" + +- " name: string;\n" + +- " email: string | null;\n" + +- " age: number | null;\n" + +- "}" +- ); +- } +- +- @Test +- public void testDeclarationQuestionMarkAndNullableType() { +- testDeclaration(OptionalPropertiesDeclaration.questionMarkAndNullableType, +- "interface Person {\n" + +- " name: string;\n" + +- " email?: string | null;\n" + +- " age?: number | null;\n" + +- "}" +- ); +- } +- +- @Test +- public void testDeclarationNullableAndUndefinableType() { +- testDeclaration(OptionalPropertiesDeclaration.nullableAndUndefinableType, +- "interface Person {\n" + +- " name: string;\n" + +- " email: string | null | undefined;\n" + +- " age: number | null | undefined;\n" + +- "}" +- ); +- } +- +- @Test +- public void testDeclarationUndefinableType() { +- testDeclaration(OptionalPropertiesDeclaration.undefinableType, +- "interface Person {\n" + +- " name: string;\n" + +- " email: string | undefined;\n" + +- " age: number | undefined;\n" + +- "}" +- ); +- } +- +- private static void testDeclaration(OptionalPropertiesDeclaration declaration, String expected) { +- final Settings settings = TestUtils.settings(); +- settings.optionalPropertiesDeclaration = declaration; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(Person.class)); +- Assertions.assertEquals(expected.trim(), output.trim()); +- } +- +- private static class Person { +- public String name; +- public Optional email; +- public OptionalInt age; +- +- public Person() { +- } +- +- public Person(String name, Optional email) { +- this.name = name; +- this.email = email; +- } +- +- @Override +- public int hashCode() { +- int hash = 7; +- hash = 53 * hash + Objects.hashCode(this.name); +- hash = 53 * hash + Objects.hashCode(this.email); +- return hash; +- } +- +- @Override +- public boolean equals(Object obj) { +- if (this == obj) { +- return true; +- } +- if (obj == null) { +- return false; +- } +- if (getClass() != obj.getClass()) { +- return false; +- } +- final Person other = (Person) obj; +- if (!Objects.equals(this.name, other.name)) { +- return false; +- } +- if (!Objects.equals(this.email, other.email)) { +- return false; +- } +- return true; +- } +- +- @Override +- public String toString() { +- return "Person{" + "name=" + name + ", email=" + email + '}'; +- } +- } +- +-} +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/PathTemplateTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/PathTemplateTest.java +deleted file mode 100644 +index b0b303d04..000000000 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/PathTemplateTest.java ++++ /dev/null +@@ -1,28 +0,0 @@ +- +-package cz.habarta.typescript.generator; +- +-import cz.habarta.typescript.generator.parser.PathTemplate; +-import org.junit.jupiter.api.Assertions; +-import org.junit.jupiter.api.Test; +- +- +-public class PathTemplateTest { +- +- @Test +- public void test() { +- Assertions.assertEquals(0, PathTemplate.parse("").getParts().size()); +- Assertions.assertEquals(1, PathTemplate.parse("a").getParts().size()); +- Assertions.assertEquals(1, PathTemplate.parse("{x}").getParts().size()); +- Assertions.assertEquals(1, PathTemplate.parse("{x:.+}").getParts().size()); +- Assertions.assertEquals(1, PathTemplate.parse("{ x : .+ }").getParts().size()); +- Assertions.assertEquals(2, PathTemplate.parse("a{x}").getParts().size()); +- Assertions.assertEquals(2, PathTemplate.parse("{x}a").getParts().size()); +- Assertions.assertEquals(2, PathTemplate.parse("{x}{y}").getParts().size()); +- Assertions.assertEquals(3, PathTemplate.parse("a{x}a").getParts().size()); +- Assertions.assertEquals(3, PathTemplate.parse("{x}a{y}").getParts().size()); +- +- Assertions.assertEquals("${x}a${y}", PathTemplate.parse("{ x : .+ }a{y}").format("${", "}", false)); +- Assertions.assertEquals("{x:.+}a{y}", PathTemplate.parse("{ x : .+ }a{y}").format("{", "}", true)); +- } +- +-} +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/Person.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/Person.java +index 0123214b5..8c8d90a4d 100644 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/Person.java ++++ b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/Person.java +@@ -1,8 +1,7 @@ + + package cz.habarta.typescript.generator; + +-import java.util.List; +-import java.util.Map; ++import java.util.*; + + + public class Person { +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/PersonTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/PersonTest.java +index ff7e93728..2ba0b9243 100644 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/PersonTest.java ++++ b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/PersonTest.java +@@ -2,7 +2,7 @@ + package cz.habarta.typescript.generator; + + import java.io.File; +-import org.junit.jupiter.api.Test; ++import org.junit.Test; + + + public class PersonTest { +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/ReadOnlyWriteOnlyTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/ReadOnlyWriteOnlyTest.java +deleted file mode 100644 +index bfef627df..000000000 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/ReadOnlyWriteOnlyTest.java ++++ /dev/null +@@ -1,99 +0,0 @@ +- +-package cz.habarta.typescript.generator; +- +-import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +-import com.fasterxml.jackson.annotation.JsonProperty; +-import com.fasterxml.jackson.core.JsonProcessingException; +-import com.fasterxml.jackson.databind.ObjectMapper; +-import com.google.gson.Gson; +-import org.junit.jupiter.api.Assertions; +-import org.junit.jupiter.api.Test; +- +- +-public class ReadOnlyWriteOnlyTest { +- +- @JsonIgnoreProperties(ignoreUnknown = true) +- public static class ReadOnlyWriteOnlyUser { +- +- public String name; +- +- @JsonProperty(access = JsonProperty.Access.READ_ONLY) +- public String id1; +- +- @JsonProperty(access = JsonProperty.Access.WRITE_ONLY) +- public String password1; +- +- private String _id2; // Jackson would use `id2` field as writable property +- +- public String getId2() { +- return _id2; +- } +- +- private String password2; +- +- public void setPassword2(String password2) { +- this.password2 = password2; +- } +- +- @Override +- public String toString() { +- return new Gson().toJson(this); +- } +- +- } +- +- @Test +- public void testJacksonSerialization() throws JsonProcessingException { +- final ReadOnlyWriteOnlyUser user = new ReadOnlyWriteOnlyUser(); +- user.name = "name"; +- user.id1 = "id1"; +- user._id2 = "id2"; +- user.password1 = "password1"; +- user.password2 = "password2"; +- final String json = new ObjectMapper().writeValueAsString(user); +- Assertions.assertTrue(json.contains("id1")); +- Assertions.assertTrue(json.contains("id2")); +- Assertions.assertTrue(!json.contains("password1")); +- Assertions.assertTrue(!json.contains("password2")); +- } +- +- @Test +- public void testJacksonDeserialization() throws JsonProcessingException { +- final String json = "{'name':'name','id1':'id1','id2':'id2','password1':'password1','password2':'password2'}" +- .replace("'", "\""); +- final ReadOnlyWriteOnlyUser user = new ObjectMapper().readValue(json, ReadOnlyWriteOnlyUser.class); +- Assertions.assertNull(user.id1); +- Assertions.assertNull(user._id2); +- Assertions.assertNotNull(user.password1); +- Assertions.assertNotNull(user.password2); +- } +- +- @Test +- public void test() { +- final Settings settings = TestUtils.settings(); +- settings.generateReadonlyAndWriteonlyJSDocTags = true; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(ReadOnlyWriteOnlyUser.class)); +- final String expected = "\n" +- + "interface ReadOnlyWriteOnlyUser {\n" +- + " name: string;\n" +- + " /**\n" +- + " * @readonly\n" +- + " */\n" +- + " id1: string;\n" +- + " /**\n" +- + " * @writeonly\n" +- + " */\n" +- + " password1: string;\n" +- + " /**\n" +- + " * @readonly\n" +- + " */\n" +- + " id2: string;\n" +- + " /**\n" +- + " * @writeonly\n" +- + " */\n" +- + " password2: string;\n" +- + "}\n"; +- Assertions.assertEquals(expected, output); +- } +- +-} +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/RecordTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/RecordTest.java +deleted file mode 100644 +index 8f43d1ecc..000000000 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/RecordTest.java ++++ /dev/null +@@ -1,49 +0,0 @@ +- +-package cz.habarta.typescript.generator; +- +-import java.util.List; +-import org.junit.jupiter.api.Assertions; +-import org.junit.jupiter.api.Test; +- +- +-public class RecordTest { +- +- // public record Account(Long id, String name) {} +- +- // @Test +- // public void test() { +- // final Settings settings = TestUtils.settings(); +- // final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(Account.class)); +- // Assertions.assertTrue(!output.contains("interface Record")); +- // } +- +- // @Test +- // public void testConstructor() { +- // final Settings settings = TestUtils.settings(); +- // settings.outputFileType = TypeScriptFileType.implementationFile; +- // settings.mapClasses = ClassMapping.asClasses; +- // settings.generateConstructors = true; +- // final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(Account.class)); +- // System.out.println(output); +- // Assertions.assertTrue(!output.contains("interface Record")); +- // } +- +- private static class Base { +- } +- +- private static class Derived extends Base { +- public String name; +- } +- +- @Test +- public void testConstructorWithExclusion() { +- final Settings settings = TestUtils.settings(); +- settings.outputFileType = TypeScriptFileType.implementationFile; +- settings.mapClasses = ClassMapping.asClasses; +- settings.generateConstructors = true; +- settings.setExcludeFilter(List.of(Base.class.getName()), null); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(Derived.class)); +- Assertions.assertTrue(!output.contains("interface Record")); +- } +- +-} +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/SealedClassTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/SealedClassTest.java +deleted file mode 100644 +index 84436f09e..000000000 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/SealedClassTest.java ++++ /dev/null +@@ -1,84 +0,0 @@ +- +-package cz.habarta.typescript.generator; +- +-import com.fasterxml.jackson.annotation.JsonTypeInfo; +-import com.fasterxml.jackson.annotation.JsonTypeInfo.Id; +-import com.fasterxml.jackson.annotation.JsonTypeName; +-import com.fasterxml.jackson.core.JsonProcessingException; +-import com.fasterxml.jackson.databind.ObjectMapper; +-import com.fasterxml.jackson.databind.introspect.Annotated; +-import com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector; +-import com.fasterxml.jackson.databind.jsontype.NamedType; +-import com.fasterxml.jackson.databind.module.SimpleModule; +-import java.util.Arrays; +-import java.util.List; +-import org.junit.jupiter.api.Assertions; +-import org.junit.jupiter.api.Test; +- +- +-public class SealedClassTest { +- +- // TODO uncomment on Java 17 +- +- // @Test +- // public void testObjectMapper() throws JsonProcessingException { +- // final ObjectMapper objectMapper = new ObjectMapper(); +- // objectMapper.registerModule(new SealedClassesModule()); +- // final Shape shape = objectMapper.readValue( +- // """ +- // { +- // "type": "circle", +- // "radius": 42 +- // } +- // """, +- // Shape.class +- // ); +- // Assertions.assertTrue(shape instanceof Circle); +- // Assertions.assertEquals(42, ((Circle)shape).radius); +- // } +- +- // @Test +- // public void testSealedClassWithModule() throws JsonProcessingException { +- // final Settings settings = TestUtils.settings(); +- // settings.jackson2Modules.add(SealedClassesModule.class); +- // final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(Shape.class)); +- // Assertions.assertTrue(output.contains("circle")); +- // } +- +- // @Test +- // public void testSealedClassWithoutModule() throws JsonProcessingException { +- // final Settings settings = TestUtils.settings(); +- // final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(Shape.class)); +- // Assertions.assertFalse(output.contains("circle")); +- // } +- +- // @JsonTypeInfo(use = Id.NAME, property = "type") +- // private static abstract sealed class Shape { +- // } +- +- // @JsonTypeName("circle") +- // private static final class Circle extends Shape { +- // public double radius; +- // } +- +- // public static class SealedClassesModule extends SimpleModule { +- // @Override +- // public void setupModule(SetupContext context) { +- // context.appendAnnotationIntrospector(new SealedClassesAnnotationIntrospector()); +- // } +- // } +- +- // public static class SealedClassesAnnotationIntrospector extends JacksonAnnotationIntrospector { +- // @Override +- // public List findSubtypes(Annotated a) { +- // if (a.getAnnotated() instanceof Class cls && cls.isSealed()) { +- // final Class[] permittedSubclasses = cls.getPermittedSubclasses(); +- // if (permittedSubclasses.length > 0) { +- // return Arrays.stream(permittedSubclasses).map(NamedType::new).toList(); +- // } +- // } +- // return null; +- // } +- // } +- +-} +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/SettingsTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/SettingsTest.java +deleted file mode 100644 +index 0dfb20aac..000000000 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/SettingsTest.java ++++ /dev/null +@@ -1,55 +0,0 @@ +- +-package cz.habarta.typescript.generator; +- +-import java.lang.reflect.Modifier; +-import org.junit.jupiter.api.Assertions; +-import org.junit.jupiter.api.Test; +- +- +-public class SettingsTest { +- +- @Test +- public void testParseModifiers() { +- Assertions.assertEquals(0, Settings.parseModifiers("", Modifier.fieldModifiers())); +- Assertions.assertEquals(Modifier.STATIC, Settings.parseModifiers("static", Modifier.fieldModifiers())); +- Assertions.assertEquals(Modifier.STATIC | Modifier.TRANSIENT, Settings.parseModifiers("static | transient", Modifier.fieldModifiers())); +- } +- +- @Test +- public void testNpmDependenciesValidation() { +- String exceptionMessage = "'npmDependencies', 'npmDevDependencies' and 'npmPeerDependencies' parameters are only applicable when generating NPM 'package.json'."; +- +- { +- Settings settings = new Settings(); +- settings.outputKind = TypeScriptOutputKind.module; +- settings.jsonLibrary = JsonLibrary.jackson2; +- settings.generateNpmPackageJson = false; +- settings.npmPackageDependencies.put("dependencies", "version"); +- +- RuntimeException exception = Assertions.assertThrows(RuntimeException.class, () -> settings.validate()); +- Assertions.assertEquals(exceptionMessage, exception.getMessage()); +- } +- +- { +- Settings settings = new Settings(); +- settings.outputKind = TypeScriptOutputKind.module; +- settings.jsonLibrary = JsonLibrary.jackson2; +- settings.generateNpmPackageJson = false; +- settings.npmDevDependencies.put("dependencies", "version"); +- +- RuntimeException exception = Assertions.assertThrows(RuntimeException.class, () -> settings.validate()); +- Assertions.assertEquals(exceptionMessage, exception.getMessage()); +- } +- +- { +- Settings settings = new Settings(); +- settings.outputKind = TypeScriptOutputKind.module; +- settings.jsonLibrary = JsonLibrary.jackson2; +- settings.generateNpmPackageJson = false; +- settings.npmPeerDependencies.put("dependencies", "version"); +- +- RuntimeException exception = Assertions.assertThrows(RuntimeException.class, () -> settings.validate()); +- Assertions.assertEquals(exceptionMessage, exception.getMessage()); +- } +- } +-} +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/SortedTypesTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/SortedTypesTest.java +index 4e605bb02..a158898cc 100644 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/SortedTypesTest.java ++++ b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/SortedTypesTest.java +@@ -1,7 +1,7 @@ + package cz.habarta.typescript.generator; + +-import static org.junit.jupiter.api.Assertions.assertEquals; +-import org.junit.jupiter.api.Test; ++import static org.junit.Assert.*; ++import org.junit.*; + + public class SortedTypesTest { + +@@ -22,7 +22,7 @@ public class SortedTypesTest { + "" + settings.newline + + "interface A {" + settings.newline + + " x: number;" + settings.newline + +-" yyy: number;" + settings.newline + ++" y: number;" + settings.newline + + "}" + settings.newline + + "" + settings.newline + + "interface B {" + settings.newline + +@@ -35,7 +35,7 @@ public class SortedTypesTest { + } + + public static class A { +- public int getYYY() { ++ public int getY() { + return -1; + } + public int getX() { +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/StyleConfigurationTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/StyleConfigurationTest.java +index c54852b21..ebf2076f6 100644 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/StyleConfigurationTest.java ++++ b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/StyleConfigurationTest.java +@@ -1,10 +1,34 @@ + package cz.habarta.typescript.generator; + +-import static org.junit.jupiter.api.Assertions.assertEquals; +-import org.junit.jupiter.api.Test; ++import java.io.*; ++import org.junit.*; ++import static org.junit.Assert.*; + + public class StyleConfigurationTest { + ++ @Test ++ public void testOutputWithCustomStyle() { ++ final ByteArrayOutputStream output = new ByteArrayOutputStream(); ++ final Settings settings = TestUtils.settings(); ++ settings.addTypeNamePrefix = "I"; ++ settings.sortDeclarations = true; ++ ++ String expected = "" + ++"" + settings.newline + ++" export interface IA {" + settings.newline + ++" b: IB;" + settings.newline + ++" x: number;" + settings.newline + ++" }" + settings.newline + ++"" + settings.newline + ++" export interface IB {" + settings.newline + ++" s: string;" + settings.newline + ++" }" + settings.newline + ++""; ++ new TypeScriptGenerator(settings).generateEmbeddableTypeScript(Input.from(A.class), Output.to(output), true, 1); ++ ++ assertEquals(expected, new String(output.toByteArray())); ++ } ++ + public static class A { + public int getX() { + return -1; +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/Swagger3Test.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/Swagger3Test.java +deleted file mode 100644 +index d9a2d335b..000000000 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/Swagger3Test.java ++++ /dev/null +@@ -1,187 +0,0 @@ +- +-package cz.habarta.typescript.generator; +- +-import io.swagger.v3.oas.annotations.Operation; +-import io.swagger.v3.oas.annotations.media.Content; +-import io.swagger.v3.oas.annotations.media.Schema; +-import io.swagger.v3.oas.annotations.responses.ApiResponse; +-import io.swagger.v3.oas.annotations.responses.ApiResponses; +-import java.util.Arrays; +-import java.util.LinkedHashSet; +-import java.util.Set; +-import javax.ws.rs.GET; +-import javax.ws.rs.Path; +-import javax.ws.rs.core.Application; +-import javax.ws.rs.core.Response; +-import org.junit.jupiter.api.Assertions; +-import org.junit.jupiter.api.Test; +- +- +-public class Swagger3Test { +- +- @Test +- public void test() { +- final Settings settings = TestUtils.settings(); +- settings.generateJaxrsApplicationInterface = true; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(TestApplication.class)); +- Assertions.assertTrue(output.contains("interface TestResponse")); +- Assertions.assertTrue(output.contains("interface TestError")); +- Assertions.assertTrue(output.contains("testOperationError(): RestResponse;")); +- Assertions.assertTrue(output.contains("testOperation1a(): RestResponse;")); +- Assertions.assertTrue(output.contains("testOperation1b(): RestResponse;")); +- Assertions.assertTrue(output.contains("testOperation1c(): RestResponse;")); +-// Assertions.assertTrue(output.contains("testOperation2(): RestResponse;")); +-// Assertions.assertTrue(output.contains("testOperation3(): RestResponse;")); +-// Assertions.assertTrue(output.contains("testOperation4(): RestResponse<{ [index: string]: TestResponse }>;")); +- Assertions.assertTrue(!output.contains("testHiddenOperation")); +- } +- +- @Test +- public void testDocumentation() { +- final Settings settings = TestUtils.settings(); +- settings.generateJaxrsApplicationInterface = true; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(DocumentedApplication.class)); +- Assertions.assertTrue(output.contains("Documentation for operation 1.")); +- Assertions.assertTrue(output.contains("Bad Request")); +- Assertions.assertTrue(output.contains("Not Found")); +- Assertions.assertTrue(output.contains("Documentation for the bean.")); +- Assertions.assertTrue(output.contains("Documentation for property 1.")); +- Assertions.assertTrue(output.contains("Documentation for property 2.")); +- Assertions.assertTrue(output.contains("Documentation for property 3.")); +- } +- +- @Test +- public void testDataType() { +- final Settings settings = TestUtils.settings(); +- settings.generateJaxrsApplicationInterface = true; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(DocumentedApplication.class)); +- Assertions.assertTrue(output.contains("property1: string")); +- Assertions.assertTrue(output.contains("property2?: string")); +- Assertions.assertTrue(output.contains("property3: string")); +- } +- +- @Test +- public void testSwaggerOff() { +- final Settings settings = TestUtils.settings(); +- settings.generateJaxrsApplicationInterface = true; +- settings.ignoreSwaggerAnnotations = true; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(DocumentedApplication.class)); +- Assertions.assertTrue(!output.contains("Documentation for operation 1.")); +- Assertions.assertTrue(!output.contains("Bad Request")); +- Assertions.assertTrue(!output.contains("Not Found")); +- Assertions.assertTrue(!output.contains("Documentation for the bean.")); +- Assertions.assertTrue(!output.contains("Documentation for property 1.")); +- Assertions.assertTrue(!output.contains("Documentation for property 2.")); +- Assertions.assertTrue(!output.contains("Documentation for property 3.")); +- Assertions.assertTrue(output.contains("property1: string")); +- Assertions.assertTrue(output.contains("property2: number")); +- Assertions.assertTrue(output.contains("property3: number")); +- } +- +- private static class TestApplication extends Application { +- @Override +- public Set> getClasses() { +- return new LinkedHashSet<>(Arrays.>asList(TestResource.class)); +- } +- } +- +- @Path("test") +- private static class TestResource { +- +- @Operation(responses = @ApiResponse(content = @Content(schema = @Schema(implementation = TestResponse.class)))) +- @GET +- public Response testOperation1a() { +- return Response.ok(new TestResponse()).build(); +- } +- +- @ApiResponse(content = @Content(schema = @Schema(implementation = TestResponse.class))) +- @GET +- public Response testOperation1b() { +- return Response.ok(new TestResponse()).build(); +- } +- +- @ApiResponses(@ApiResponse(content = @Content(schema = @Schema(implementation = TestResponse.class)))) +- @GET +- public Response testOperation1c() { +- return Response.ok(new TestResponse()).build(); +- } +- +-// @Operation(responses = @ApiResponse(content = @Content(array = @ArraySchema(schema = @Schema(implementation = TestResponse.class))))) +-// @GET +-// public Response testOperation2() { +-// return Response.ok(new TestResponse()).build(); +-// } +-// +-// @Operation(responses = @ApiResponse(content = @Content(array = @ArraySchema(schema = @Schema(implementation = TestResponse.class))))) +-// @GET +-// public Response testOperation3() { +-// return Response.ok(new TestResponse()).build(); +-// } +-// +-// @Operation(responseContainer = "Map", response = TestResponse.class) +-// @GET +-// public Response testOperation4() { +-// return Response.ok(new TestResponse()).build(); +-// } +- +- @ApiResponses({@ApiResponse(responseCode = "400", content = {@Content(schema = @Schema(implementation = TestError.class))})}) +- @GET +- public Response testOperationError() { +- return Response.status(Response.Status.BAD_REQUEST).build(); +- } +- +- @Operation(hidden = true) +- @GET +- public Response testHiddenOperation() { +- return null; +- } +- +- } +- +- private static class TestResponse { +- } +- +- private static class TestError { +- } +- +- +- private static class DocumentedApplication extends Application { +- @Override +- public Set> getClasses() { +- return new LinkedHashSet<>(Arrays.>asList(DocumentedResource.class)); +- } +- } +- +- @Path("test") +- private static class DocumentedResource { +- +- @Operation(description = "Documentation for operation 1.") +- @ApiResponses({ +- @ApiResponse(responseCode = "400", description = "Bad Request"), +- @ApiResponse(responseCode = "404", description = "Not Found"), +- }) +- @GET +- public DocumentedBean documentedOperation1() { +- return null; +- } +- +- } +- +- @Schema(description = "Documentation for the bean.") +- private static class DocumentedBean { +- +- @Schema(description = "Documentation for property 1.") +- public String property1; +- +- /** +- * Sometimes custom serializers are used. In such cases target type is overridden explicitly +- * with dataType annotation attribute. +- */ +- @Schema(description = "Documentation for property 2.", implementation = String.class) +- public Long property2; +- +- @Schema(description = "Documentation for property 3.", implementation = String.class, required = true) +- public Long property3; +- } +- +-} +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/SwaggerTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/SwaggerTest.java +deleted file mode 100644 +index 38ced3d2b..000000000 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/SwaggerTest.java ++++ /dev/null +@@ -1,173 +0,0 @@ +- +-package cz.habarta.typescript.generator; +- +-import io.swagger.annotations.ApiModel; +-import io.swagger.annotations.ApiModelProperty; +-import io.swagger.annotations.ApiOperation; +-import io.swagger.annotations.ApiResponse; +-import io.swagger.annotations.ApiResponses; +-import java.util.Arrays; +-import java.util.LinkedHashSet; +-import java.util.Set; +-import javax.ws.rs.GET; +-import javax.ws.rs.Path; +-import javax.ws.rs.core.Application; +-import javax.ws.rs.core.Response; +-import org.junit.jupiter.api.Assertions; +-import org.junit.jupiter.api.Test; +- +- +-public class SwaggerTest { +- +- @Test +- public void test() { +- final Settings settings = TestUtils.settings(); +- settings.generateJaxrsApplicationInterface = true; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(TestApplication.class)); +- Assertions.assertTrue(output.contains("interface TestResponse")); +- Assertions.assertTrue(output.contains("interface TestError")); +- Assertions.assertTrue(output.contains("testOperationError(): RestResponse;")); +- Assertions.assertTrue(output.contains("testOperation1(): RestResponse;")); +- Assertions.assertTrue(output.contains("testOperation2(): RestResponse;")); +- Assertions.assertTrue(output.contains("testOperation3(): RestResponse;")); +- Assertions.assertTrue(output.contains("testOperation4(): RestResponse<{ [index: string]: TestResponse }>;")); +- Assertions.assertTrue(!output.contains("testHiddenOperation")); +- } +- +- @Test +- public void testDocumentation() { +- final Settings settings = TestUtils.settings(); +- settings.generateJaxrsApplicationInterface = true; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(DocumentedApplication.class)); +- Assertions.assertTrue(output.contains("Documentation for operation 1.")); +- Assertions.assertTrue(output.contains("Bad Request")); +- Assertions.assertTrue(output.contains("Not Found")); +- Assertions.assertTrue(output.contains("Documentation for the bean.")); +- Assertions.assertTrue(output.contains("Documentation for property 1.")); +- Assertions.assertTrue(output.contains("Documentation for property 2.")); +- Assertions.assertTrue(output.contains("Documentation for property 3.")); +- } +- +- @Test +- public void testDataType() { +- final Settings settings = TestUtils.settings(); +- settings.generateJaxrsApplicationInterface = true; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(DocumentedApplication.class)); +- Assertions.assertTrue(output.contains("property1: string")); +- Assertions.assertTrue(output.contains("property2?: string")); +- Assertions.assertTrue(output.contains("property3: string")); +- } +- +- @Test +- public void testSwaggerOff() { +- final Settings settings = TestUtils.settings(); +- settings.generateJaxrsApplicationInterface = true; +- settings.ignoreSwaggerAnnotations = true; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(DocumentedApplication.class)); +- Assertions.assertTrue(!output.contains("Documentation for operation 1.")); +- Assertions.assertTrue(!output.contains("Bad Request")); +- Assertions.assertTrue(!output.contains("Not Found")); +- Assertions.assertTrue(!output.contains("Documentation for the bean.")); +- Assertions.assertTrue(!output.contains("Documentation for property 1.")); +- Assertions.assertTrue(!output.contains("Documentation for property 2.")); +- Assertions.assertTrue(!output.contains("Documentation for property 3.")); +- Assertions.assertTrue(output.contains("property1: string")); +- Assertions.assertTrue(output.contains("property2: number")); +- Assertions.assertTrue(output.contains("property3: number")); +- } +- +- private static class TestApplication extends Application { +- @Override +- public Set> getClasses() { +- return new LinkedHashSet<>(Arrays.>asList(TestResource.class)); +- } +- } +- +- @Path("test") +- private static class TestResource { +- +- @ApiOperation(value = "", response = TestResponse.class) +- @GET +- public Response testOperation1() { +- return Response.ok(new TestResponse()).build(); +- } +- +- @ApiOperation(value = "", responseContainer = "List", response = TestResponse.class) +- @GET +- public Response testOperation2() { +- return Response.ok(new TestResponse()).build(); +- } +- +- @ApiOperation(value = "", responseContainer = "Set", response = TestResponse.class) +- @GET +- public Response testOperation3() { +- return Response.ok(new TestResponse()).build(); +- } +- +- @ApiOperation(value = "", responseContainer = "Map", response = TestResponse.class) +- @GET +- public Response testOperation4() { +- return Response.ok(new TestResponse()).build(); +- } +- +- @ApiResponses({@ApiResponse(code = 400, message = "", response = TestError.class)}) +- @GET +- public Response testOperationError() { +- return Response.status(Response.Status.BAD_REQUEST).build(); +- } +- +- @ApiOperation(value = "", hidden = true) +- @GET +- public Response testHiddenOperation() { +- return null; +- } +- +- } +- +- private static class TestResponse { +- } +- +- private static class TestError { +- } +- +- +- private static class DocumentedApplication extends Application { +- @Override +- public Set> getClasses() { +- return new LinkedHashSet<>(Arrays.>asList(DocumentedResource.class)); +- } +- } +- +- @Path("test") +- private static class DocumentedResource { +- +- @ApiOperation("Documentation for operation 1.") +- @ApiResponses({ +- @ApiResponse(code = 400, message = "Bad Request"), +- @ApiResponse(code = 404, message = "Not Found"), +- }) +- @GET +- public DocumentedBean documentedOperation1() { +- return null; +- } +- +- } +- +- @ApiModel(description = "Documentation for the bean.") +- private static class DocumentedBean { +- +- @ApiModelProperty("Documentation for property 1.") +- public String property1; +- +- /** +- * Sometimes custom serializers are used. In such cases target type is overridden explicitly +- * with dataType annotation attribute. +- */ +- @ApiModelProperty(value = "Documentation for property 2.", dataType = "java.lang.String") +- public Long property2; +- +- @ApiModelProperty(value = "Documentation for property 3.", dataType = "java.lang.String", required = true) +- public Long property3; +- } +- +-} +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/TaggedUnionsTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/TaggedUnionsTest.java +index 3a61da0c5..01402217c 100644 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/TaggedUnionsTest.java ++++ b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/TaggedUnionsTest.java +@@ -1,20 +1,14 @@ + + package cz.habarta.typescript.generator; + +-import com.fasterxml.jackson.annotation.JsonProperty; + import com.fasterxml.jackson.annotation.JsonSubTypes; + import com.fasterxml.jackson.annotation.JsonTypeInfo; + import com.fasterxml.jackson.annotation.JsonTypeName; +-import com.fasterxml.jackson.databind.ObjectMapper; +-import java.lang.annotation.Retention; +-import java.lang.annotation.RetentionPolicy; +-import java.util.Arrays; + import java.util.List; +-import org.junit.jupiter.api.Assertions; +-import org.junit.jupiter.api.Test; ++import org.junit.Assert; ++import org.junit.Test; + + +-@SuppressWarnings("unused") + public class TaggedUnionsTest { + + private static class Geometry { +@@ -27,7 +21,7 @@ public class TaggedUnionsTest { + @JsonSubTypes.Type(Rectangle.class), + @JsonSubTypes.Type(Circle.class), + }) +- private abstract static class Shape { ++ private static class Shape { + } + + @JsonTypeName("square") +@@ -75,116 +69,6 @@ public class TaggedUnionsTest { + public double radius; + } + +- @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "kind") +- @JsonSubTypes({ +- @JsonSubTypes.Type(IRectangle3.class), +- @JsonSubTypes.Type(ICircle3.class), +- }) +- interface IShape3 { +- } +- +- interface IQuadrilateral3 extends IShape3 { +- } +- +- interface INamedShape3 extends IShape3 { +- String getName(); +- } +- +- interface INamedQuadrilateral3 extends INamedShape3, IQuadrilateral3 { +- } +- +- @JsonTypeName("rectangle") +- interface IRectangle3 extends INamedQuadrilateral3 { +- } +- +- @JsonTypeName("circle") +- interface ICircle3 extends INamedShape3 { +- } +- +- @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "kind") +- @JsonSubTypes({ +- @JsonSubTypes.Type(DiamondB1.class), +- @JsonSubTypes.Type(DiamondB2.class), +- @JsonSubTypes.Type(DiamondC.class), +- }) +- private static interface DiamondA { +- public String getA(); +- } +- +- @JsonTypeName("b1") +- private static interface DiamondB1 extends DiamondA { +- public String getB1(); +- } +- +- @JsonTypeName("b2") +- private static interface DiamondB2 extends DiamondA { +- public String getB2(); +- } +- +- @JsonTypeName("c") +- private static interface DiamondC extends DiamondB1, DiamondB2 { +- public String getC(); +- } +- +- @JsonTypeInfo(use=JsonTypeInfo.Id.CLASS, include=JsonTypeInfo.As.PROPERTY, property="@class") +- @JsonSubTypes({ +- @JsonSubTypes.Type(DieselCar.class), +- @JsonSubTypes.Type(ElectricCar.class), +- }) +- private abstract static class Car { +- public String name; +- } +- +- private static class DieselCar extends Car { +- public double fuelTankCapacityInLiters; +- } +- +- private static class ElectricCar extends Car { +- public double batteryCapacityInKWh; +- } +- +- @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "kind") +- @JsonSubTypes({ +- @JsonSubTypes.Type(ElectricEngine.class), +- @JsonSubTypes.Type(DieselEngine.class), +- }) +- private static abstract class Engine { +- public double horsePower; +- } +- +- @JsonTypeName("electric") +- private static class ElectricEngine extends Engine { +- public double consumptionInKWh; +- } +- +- @JsonTypeName("diesel") +- private static class DieselEngine extends Engine { +- public double consumptionInLiters; +- } +- +- @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "kind") +- @JsonSubTypes({ +- @JsonSubTypes.Type(Boat.class), +- @JsonSubTypes.Type(Plane.class), +- }) +- private static abstract class Vehicule { +- public boolean canMove; +- } +- +- @JsonTypeName("boat") +- private static class Boat extends Vehicule { +- public boolean isFloating; +- } +- +- @JsonTypeName("plane") +- private static class Plane extends Vehicule { +- public double altitude; +- } +- +- private static class Earth { +- public List> vehicules; +- } +- + @Test + public void testTaggedUnions() { + final Settings settings = TestUtils.settings(); +@@ -218,7 +102,7 @@ public class TaggedUnionsTest { + "type ShapeUnion = Square | Rectangle | Circle;\n" + + "" + ).replace('\'', '"'); +- Assertions.assertEquals(expected, output); ++ Assert.assertEquals(expected, output); + } + + @Test +@@ -248,49 +132,12 @@ public class TaggedUnionsTest { + "}\n" + + "\n" + + "interface IQuadrilateral2 extends IShape2 {\n" + +- " kind: 'square' | 'rectangle';\n" + + "}\n" + + "\n" + + "type IShape2Union = CSquare2 | CRectangle2 | CCircle2;\n" + + "" + ).replace('\'', '"'); +- Assertions.assertEquals(expected, output); +- } +- +- @Test +- public void testTaggedUnionsWithOverlappingInterfaces() { +- final Settings settings = TestUtils.settings(); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(IShape3.class)); +- final String expected = ( +- "\n" + +- "interface IShape3 {\n" + +- " kind: 'circle' | 'rectangle';\n" + +- "}\n" + +- "\n" + +- "interface IRectangle3 extends INamedQuadrilateral3 {\n" + +- " kind: 'rectangle';\n" + +- "}\n" + +- "\n" + +- "interface ICircle3 extends INamedShape3 {\n" + +- " kind: 'circle';\n" + +- "}\n" + +- "\n" + +- "interface INamedQuadrilateral3 extends INamedShape3, IQuadrilateral3 {\n" + +- " kind: 'rectangle';\n" + +- "}\n" + +- "\n" + +- "interface INamedShape3 extends IShape3 {\n" + +- " kind: 'circle' | 'rectangle';\n" + +- " name: string;\n" + +- "}\n" + +- "\n" + +- "interface IQuadrilateral3 extends IShape3 {\n" + +- " kind: 'rectangle';\n" + +- "}\n" + +- "\n" + +- "type IShape3Union = IRectangle3 | ICircle3;\n" +- ).replace('\'', '"'); +- Assertions.assertEquals(expected, output); ++ Assert.assertEquals(expected, output); + } + + @Test +@@ -325,391 +172,7 @@ public class TaggedUnionsTest { + "}\n" + + "" + ).replace('\'', '"'); +- Assertions.assertEquals(expected, output); +- } +- +- @Test +- public void testTaggedUnionsWithDiamond() { +- final Settings settings = TestUtils.settings(); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(DiamondA.class)); +- final String expected = ( +- "\n" + +- "interface DiamondA {\n" + +- " kind: 'b1' | 'c' | 'b2';\n" + +- " a: string;\n" + +- "}\n" + +- "\n" + +- "interface DiamondB1 extends DiamondA {\n" + +- " kind: 'b1' | 'c';\n" + +- " b1: string;\n" + +- "}\n" + +- "\n" + +- "interface DiamondB2 extends DiamondA {\n" + +- " kind: 'b2' | 'c';\n" + +- " b2: string;\n" + +- "}\n" + +- "\n" + +- "interface DiamondC extends DiamondB1, DiamondB2 {\n" + +- " kind: 'c';\n" + +- " c: string;\n" + +- "}\n" + +- "\n" + +- "type DiamondAUnion = DiamondB1 | DiamondB2 | DiamondC;\n" + +- "" +- ).replace('\'', '"'); +- Assertions.assertEquals(expected, output); +- } +- +- @Test +- public void testIdClass() { +- final Settings settings = TestUtils.settings(); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(Car.class)); +- final String expected = ( +- "\n" + +- "interface Car {\n" + +- " '@class': 'cz.habarta.typescript.generator.TaggedUnionsTest$DieselCar' | 'cz.habarta.typescript.generator.TaggedUnionsTest$ElectricCar';\n" + +- " name: string;\n" + +- "}\n" + +- "\n" + +- "interface DieselCar extends Car {\n" + +- " '@class': 'cz.habarta.typescript.generator.TaggedUnionsTest$DieselCar';\n" + +- " fuelTankCapacityInLiters: number;\n" + +- "}\n" + +- "\n" + +- "interface ElectricCar extends Car {\n" + +- " '@class': 'cz.habarta.typescript.generator.TaggedUnionsTest$ElectricCar';\n" + +- " batteryCapacityInKWh: number;\n" + +- "}\n" + +- "\n" + +- "type CarUnion = DieselCar | ElectricCar;\n" + +- "" +- ).replace('\'', '"'); +- Assertions.assertEquals(expected, output); +- } +- +- @Test +- public void testWithTypeParameter() { +- final Settings settings = TestUtils.settings(); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(Earth.class)); +- Assertions.assertTrue(output.contains("EngineUnion")); +- Assertions.assertTrue(output.contains("VehiculeUnion")); +- } +- +- public static void main(String[] args) throws Exception { +- final ElectricCar electricCar = new ElectricCar(); +- electricCar.name = "Tesla"; +- electricCar.batteryCapacityInKWh = 75; // kWh +- System.out.println(new ObjectMapper().writeValueAsString(electricCar)); +- } +- +- @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type") +- @JsonSubTypes({ +- @JsonSubTypes.Type(value = InProgressResult.class, name = "in-progress"), +- @JsonSubTypes.Type(value = FinishedResult.class, name = "finished"), +- @JsonSubTypes.Type(value = FailedResult.class, name = "error") +- }) +- public static abstract class AsyncOperationResult { +- } +- +- public static class InProgressResult extends AsyncOperationResult { +- public double progress; +- } +- +- public static class FinishedResult extends AsyncOperationResult { +- public T value; +- } +- +- public static class FailedResult extends AsyncOperationResult { +- public String error; +- } +- +- public static class AsyncUsage { +- public AsyncOperationResult result; +- } +- +- @Test +- public void testAsyncResultWithGenerics() { +- final Settings settings = TestUtils.settings(); +- settings.outputKind = TypeScriptOutputKind.module; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(AsyncUsage.class)); +- Assertions.assertTrue(output.contains("result: AsyncOperationResultUnion")); +- Assertions.assertTrue(output.contains("type AsyncOperationResultUnion = InProgressResult | FinishedResult | FailedResult")); +- } +- +- @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type") +- @JsonSubTypes({ +- @JsonSubTypes.Type(value = FlippedGenericParameters.class), +- }) +- public static class Base { +- } +- +- public static class ResultA extends Base { +- public A a; +- } +- +- public static class FlippedGenericParameters extends Base { +- public A aFlipped; +- public B bFlipped; +- } +- +- public static class BaseUsage { +- public Base result; +- } +- +- @Test +- public void testBaseWithGenerics() { +- final Settings settings = TestUtils.settings(); +- settings.outputKind = TypeScriptOutputKind.module; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(BaseUsage.class)); +- Assertions.assertTrue(output.contains("result: BaseUnion")); +- Assertions.assertTrue(output.contains("type BaseUnion = FlippedGenericParameters")); +- } +- +- @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY) +- @JsonSubTypes({ +- @JsonSubTypes.Type(value = Foo.class, name = "Foo"), +- @JsonSubTypes.Type(value = Bar.class, name = "Bar") +- }) +- public static abstract class Entity { +- public T id; +- } +- +- public static class Foo extends Entity { +- } +- +- public static class Bar extends Entity { +- } +- +- public class EntityCollection { +- public List> entities; +- } +- +- @Test +- public void testGenericBaseWithNonGenericSubType() { +- final Settings settings = TestUtils.settings(); +- settings.outputFileType = TypeScriptFileType.implementationFile; +- settings.outputKind = TypeScriptOutputKind.module; +- settings.mapClasses = ClassMapping.asClasses; +- settings.mapEnum = EnumMapping.asEnum; +- settings.nonConstEnums = true; +- settings.mapPackagesToNamespaces = true; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(EntityCollection.class)); +- Assertions.assertTrue(output.contains("type EntityUnion = cz.habarta.typescript.generator.TaggedUnionsTest.Foo | cz.habarta.typescript.generator.TaggedUnionsTest.Bar")); +- } +- +- @Test +- public void testTaggedUnionsWithExistingProperty() { +- final Settings settings = TestUtils.settings(); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(Geometry2.class)); +- final String expected = ( +- "\n" + +- "interface Geometry2 {\n" + +- " shapes: Shape2Union[];\n" + +- "}\n" + +- "\n" + +- "interface Shape2 {\n" + +- " kind: 'square' | 'rectangle' | 'circle';\n" + +- "}\n" + +- "\n" + +- "interface Square2 extends Shape2 {\n" + +- " kind: 'square';\n" + +- " size: number;\n" + +- "}\n" + +- "\n" + +- "interface Rectangle2 extends Shape2 {\n" + +- " kind: 'rectangle';\n" + +- " width: number;\n" + +- " height: number;\n" + +- "}\n" + +- "\n" + +- "interface Circle2 extends Shape2 {\n" + +- " kind: 'circle';\n" + +- " radius: number;\n" + +- "}\n" + +- "\n" + +- "type Shape2Union = Square2 | Rectangle2 | Circle2;\n" + +- "" +- ).replace('\'', '"'); +- Assertions.assertEquals(expected, output); +- } +- +- @Test +- public void testTaggedUnionDisabledUsingAnnotation() { +- final Settings settings = TestUtils.settings(); +- settings.disableTaggedUnionAnnotations = Arrays.asList(TestMarker.class); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(Geometry2.class)); +- final String expected = ( +- "\n" + +- "interface Geometry2 {\n" + +- " shapes: Shape2[];\n" + +- "}\n" + +- "\n" + +- "interface Shape2 {\n" + +- " kind: string;\n" + +- "}\n" + +- "\n" + +- "interface Square2 extends Shape2 {\n" + +- " size: number;\n" + +- "}\n" + +- "\n" + +- "interface Rectangle2 extends Shape2 {\n" + +- " width: number;\n" + +- " height: number;\n" + +- "}\n" + +- "\n" + +- "interface Circle2 extends Shape2 {\n" + +- " radius: number;\n" + +- "}\n" + +- "" +- ).replace('\'', '"'); +- Assertions.assertEquals(expected, output); +- } +- +- @Retention(RetentionPolicy.RUNTIME) +- @interface TestMarker { +- } +- +- private static class Geometry2 { +- public List shapes; +- } +- +- @TestMarker +- @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "kind") +- @JsonSubTypes({ +- @JsonSubTypes.Type(Square2.class), +- @JsonSubTypes.Type(Rectangle2.class), +- @JsonSubTypes.Type(Circle2.class), +- }) +- private abstract static class Shape2 { +- @JsonProperty("kind") +- private final String kind; +- +- public Shape2() { +- final JsonTypeName annotation = getClass().getAnnotation(JsonTypeName.class); +- if (annotation == null) { +- throw new RuntimeException("Annotation @JsonTypeName not specified on " + getClass()); +- } +- this.kind = annotation.value(); +- } +- } +- +- @JsonTypeName("square") +- private static class Square2 extends Shape2 { +- public double size; +- } +- +- @JsonTypeName("rectangle") +- private static class Rectangle2 extends Shape2 { +- public double width; +- public double height; +- } +- +- @JsonTypeName("circle") +- private static class Circle2 extends Shape2 { +- public double radius; +- } +- +- +- static class RecordUsage { +- public List records; +- public List formRecords; +- public List listRecords; +- } +- +- @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY) +- @JsonSubTypes({ +- @JsonSubTypes.Type(value = FormRecord.class), +- @JsonSubTypes.Type(value = ListRecord.class), +- }) +- static abstract class Record {} +- +- @JsonSubTypes({ +- @JsonSubTypes.Type(value = OrderFormRecord.class, name = "order.form"), +- @JsonSubTypes.Type(value = ProductFormRecord.class, name = "product.form"), +- }) +- static abstract class FormRecord extends Record {} +- +- @JsonSubTypes({ +- @JsonSubTypes.Type(value = OrderListRecord.class, name = "order.list"), +- @JsonSubTypes.Type(value = ProductListRecord.class, name = "product.list"), +- }) +- static abstract class ListRecord extends Record {} +- +- static class OrderFormRecord extends FormRecord {} +- static class OrderListRecord extends ListRecord {} +- static class ProductFormRecord extends FormRecord {} +- static class ProductListRecord extends ListRecord {} +- +- @Test +- public void testIntermediateUnions() { +- final Settings settings = TestUtils.settings(); +- settings.quotes = "'"; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(RecordUsage.class)); +- final String expected = "" +- + "interface RecordUsage {\n" +- + " records: RecordUnion[];\n" +- + " formRecords: FormRecordUnion[];\n" +- + " listRecords: ListRecordUnion[];\n" +- + "}\n" +- + "\n" +- + "interface Record {\n" +- + " '@type': 'order.form' | 'product.form' | 'order.list' | 'product.list';\n" +- + "}\n" +- + "\n" +- + "interface FormRecord extends Record {\n" +- + " '@type': 'order.form' | 'product.form';\n" +- + "}\n" +- + "\n" +- + "interface ListRecord extends Record {\n" +- + " '@type': 'order.list' | 'product.list';\n" +- + "}\n" +- + "\n" +- + "interface OrderFormRecord extends FormRecord {\n" +- + " '@type': 'order.form';\n" +- + "}\n" +- + "\n" +- + "interface ProductFormRecord extends FormRecord {\n" +- + " '@type': 'product.form';\n" +- + "}\n" +- + "\n" +- + "interface OrderListRecord extends ListRecord {\n" +- + " '@type': 'order.list';\n" +- + "}\n" +- + "\n" +- + "interface ProductListRecord extends ListRecord {\n" +- + " '@type': 'product.list';\n" +- + "}\n" +- + "\n" +- + "type RecordUnion = FormRecord | ListRecord;\n" +- + "\n" +- + "type FormRecordUnion = OrderFormRecord | ProductFormRecord;\n" +- + "\n" +- + "type ListRecordUnion = OrderListRecord | ProductListRecord;\n" +- + ""; +- Assertions.assertEquals(expected.trim(), output.trim()); +- } +- +- @Test +- public void testJaxb() { +- final Settings settings = TestUtils.settings(); +- settings.jsonLibrary = JsonLibrary.jaxb; +- settings.quotes = "'"; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(Parent.class)); +- Assertions.assertTrue(output.contains("'one' | 'two'")); +- } +- +- @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +- @JsonSubTypes({ +- @JsonSubTypes.Type(value = Child1.class, name = "one"), +- @JsonSubTypes.Type(value = Child2.class, name = "two"), +- }) +- private static class Parent { +- } +- +- private static class Child1 extends Parent { +- } +- +- private static class Child2 extends Parent { ++ Assert.assertEquals(expected, output); + } + + } +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/TestEnums.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/TestEnums.java +deleted file mode 100644 +index d91e65834..000000000 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/TestEnums.java ++++ /dev/null +@@ -1,75 +0,0 @@ +-package cz.habarta.typescript.generator; +- +-import com.fasterxml.jackson.annotation.JsonProperty; +-import com.fasterxml.jackson.annotation.JsonValue; +- +-public class TestEnums { +- public enum StandardEnum { +- A, B, C +- } +- +- public enum GeneralMethodValuedEnum { +- A, B, C; +- +- @JsonValue +- public String getValue() { +- return "_" + name(); +- } +- } +- +- public enum NumberFieldValuedEnum { +- A(1), B(2), C(3); +- +- @JsonValue +- private int value; +- +- NumberFieldValuedEnum(int value) { +- this.value = value; +- } +- } +- +- public enum NumberMethodValuedEnum { +- A(1), B(2), C(3); +- +- private int value; +- +- NumberMethodValuedEnum(int value) { +- this.value = value; +- } +- +- @JsonValue +- public int getValue() { +- return value; +- } +- } +- +- public enum ToStringValuedEnum { +- A, B, C; +- +- @JsonValue +- @Override +- public String toString() { +- return "_" + name(); +- } +- } +- +- public enum StringPropertyValuedEnum { +- A, B, C; +- +- @JsonValue +- private final String value = "_" + name(); +- } +- +- public enum NumberPropertyValuedEnum { +- A, B, C; +- +- @JsonValue +- private final Integer value = ordinal(); +- } +- +- public enum JsonPropertyValuedEnum { +- @JsonProperty("_A") A, +- @JsonProperty("_B") B, +- @JsonProperty("_C") C +- } +-} +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/TestUtils.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/TestUtils.java +index 2f5cc2a9e..fd9c0bc5f 100644 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/TestUtils.java ++++ b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/TestUtils.java +@@ -2,10 +2,7 @@ + package cz.habarta.typescript.generator; + + import cz.habarta.typescript.generator.compiler.ModelCompiler; +-import java.io.IOException; + import java.lang.reflect.Type; +-import java.nio.file.Files; +-import java.nio.file.Paths; + + + public class TestUtils { +@@ -18,10 +15,7 @@ public class TestUtils { + settings.outputKind = TypeScriptOutputKind.global; + settings.jsonLibrary = JsonLibrary.jackson2; + settings.noFileComment = true; +- settings.noTslintDisable = true; +- settings.noEslintDisable = true; + settings.newline = "\n"; +- settings.classLoader = Thread.currentThread().getContextClassLoader(); + return settings; + } + +@@ -30,12 +24,4 @@ public class TestUtils { + return modelCompiler.javaToTypeScript(type); + } + +- public static String readFile(String file) { +- try { +- return String.join("\n", Files.readAllLines(Paths.get(file))); +- } catch (IOException e) { +- throw new RuntimeException(e); +- } +- } +- + } +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/TsTypeTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/TsTypeTest.java +index 04ce5f71b..8ec59d12e 100644 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/TsTypeTest.java ++++ b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/TsTypeTest.java +@@ -1,16 +1,11 @@ + package cz.habarta.typescript.generator; + +-import cz.habarta.typescript.generator.TsType.BasicArrayType; +-import cz.habarta.typescript.generator.TsType.IndexedArrayType; +-import static cz.habarta.typescript.generator.TsType.Number; +-import cz.habarta.typescript.generator.TsType.ObjectType; +-import static cz.habarta.typescript.generator.TsType.String; +-import cz.habarta.typescript.generator.TsType.UnionType; ++import static cz.habarta.typescript.generator.TsType.*; + import cz.habarta.typescript.generator.compiler.Symbol; + import java.util.Arrays; +-import static org.junit.jupiter.api.Assertions.assertEquals; +-import static org.junit.jupiter.api.Assertions.assertNotEquals; +-import org.junit.jupiter.api.Test; ++import static org.junit.Assert.*; ++ ++import org.junit.*; + + public class TsTypeTest { + +@@ -39,17 +34,4 @@ public class TsTypeTest { + assertEquals("{ [index: string]: string | number }", new IndexedArrayType(String, new UnionType(Arrays.asList(String, Number))).format(settings)); + } + +- @Test +- public void testObjectType() { +- final Settings settings = TestUtils.settings(); +- assertEquals("{ a: string; b: string | number; c: {}; d: { x: string; }; }", new TsType.ObjectType(Arrays.asList( +- new TsProperty("a", String), +- new TsProperty("b", new UnionType(Arrays.asList(String, Number))), +- new TsProperty("c", new ObjectType(Arrays.asList())), +- new TsProperty("d", new ObjectType(Arrays.asList( +- new TsProperty("x", String) +- ))) +- )).format(settings)); +- } +- + } +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/TypeGuardsForJackson2PolymorphismExtensionTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/TypeGuardsForJackson2PolymorphismExtensionTest.java +index 64c2496cc..a4537d5f6 100644 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/TypeGuardsForJackson2PolymorphismExtensionTest.java ++++ b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/TypeGuardsForJackson2PolymorphismExtensionTest.java +@@ -1,22 +1,15 @@ + + package cz.habarta.typescript.generator; + +-import com.fasterxml.jackson.annotation.JsonSubTypes; +-import com.fasterxml.jackson.annotation.JsonTypeInfo; +-import com.fasterxml.jackson.annotation.JsonTypeName; +-import cz.habarta.typescript.generator.compiler.ModelCompiler; +-import cz.habarta.typescript.generator.emitter.EmitterExtension; +-import cz.habarta.typescript.generator.emitter.TsModel; ++import com.fasterxml.jackson.annotation.*; ++import cz.habarta.typescript.generator.compiler.*; ++import cz.habarta.typescript.generator.emitter.*; + import cz.habarta.typescript.generator.ext.TypeGuardsForJackson2PolymorphismExtension; +-import cz.habarta.typescript.generator.parser.Jackson2Parser; +-import cz.habarta.typescript.generator.parser.Model; +-import java.util.ArrayList; +-import java.util.List; +-import org.junit.jupiter.api.Assertions; +-import org.junit.jupiter.api.Test; ++import cz.habarta.typescript.generator.parser.*; ++import java.util.*; ++import org.junit.*; + + +-@SuppressWarnings("unused") + public class TypeGuardsForJackson2PolymorphismExtensionTest { + + @Test +@@ -33,11 +26,11 @@ public class TypeGuardsForJackson2PolymorphismExtensionTest { + final Model model = new Jackson2Parser(settings, typeProcessor).parseModel(Point.class); + final TsModel tsModel = new ModelCompiler(settings, typeProcessor).javaToTypeScript(model); + new TypeGuardsForJackson2PolymorphismExtension().emitElements(writer, settings, false, tsModel); +- Assertions.assertEquals(8, lines.size()); +- Assertions.assertEquals("", lines.get(0)); +- Assertions.assertEquals("function isCartesianPoint(point: Point): point is CartesianPoint {", lines.get(1)); +- Assertions.assertEquals(" return point.type === \"cartesian\";", lines.get(2)); +- Assertions.assertEquals("}", lines.get(3)); ++ Assert.assertEquals(8, lines.size()); ++ Assert.assertEquals("", lines.get(0)); ++ Assert.assertEquals("function isCartesianPoint(point: Point): point is CartesianPoint {", lines.get(1)); ++ Assert.assertEquals(" return point.type === \"cartesian\";", lines.get(2)); ++ Assert.assertEquals("}", lines.get(3)); + } + + @Test +@@ -47,8 +40,8 @@ public class TypeGuardsForJackson2PolymorphismExtensionTest { + settings.addTypeNamePrefix = "Json"; + settings.extensions.add(new TypeGuardsForJackson2PolymorphismExtension()); + final String actual = new TypeScriptGenerator(settings).generateTypeScript(Input.from(Point.class)); +- Assertions.assertTrue(actual.contains("type: \"cartesian\" | \"polar\";")); +- Assertions.assertTrue(actual.contains("function isJsonCartesianPoint(jsonPoint: JsonPoint): jsonPoint is JsonCartesianPoint {")); ++ Assert.assertTrue(actual.contains("type: \"cartesian\" | \"polar\";")); ++ Assert.assertTrue(actual.contains("function isJsonCartesianPoint(jsonPoint: JsonPoint): jsonPoint is JsonCartesianPoint {")); + } + + @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/UtilsTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/UtilsTest.java +deleted file mode 100644 +index fe87b504c..000000000 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/UtilsTest.java ++++ /dev/null +@@ -1,79 +0,0 @@ +- +-package cz.habarta.typescript.generator; +- +-import cz.habarta.typescript.generator.util.Utils; +-import java.io.File; +-import java.util.Arrays; +-import java.util.Collection; +-import java.util.Date; +-import java.util.Map; +-import java.util.UUID; +-import org.junit.jupiter.api.Assertions; +-import org.junit.jupiter.api.Test; +- +- +-public class UtilsTest { +- +- @Test +- public void testReplaceExtension() { +- Assertions.assertEquals(new File("test.dir/test.js"), Utils.replaceExtension(new File("test.dir/test"), ".js")); +- Assertions.assertEquals(new File("test.dir/test.1.js"), Utils.replaceExtension(new File("test.dir/test.1.ts"), ".js")); +- } +- +- @Test +- public void testGlobToRegexp() { +- Assertions.assertEquals("\\Q\\E.*\\QJson\\E", Utils.globsToRegexps(Arrays.asList("**Json")).get(0).toString()); +- Assertions.assertEquals("\\Qcz.habarta.test.\\E[^.\\$]*\\Q\\E", Utils.globsToRegexps(Arrays.asList("cz.habarta.test.*")).get(0).toString()); +- } +- +- @Test +- public void testPathJoin() { +- Assertions.assertEquals("controller", Utils.joinPath("/controller", null)); +- Assertions.assertEquals("controller/", Utils.joinPath("/controller/", null)); +- Assertions.assertEquals("path", Utils.joinPath(null, "/path")); +- Assertions.assertEquals("path/", Utils.joinPath(null, "/path/")); +- Assertions.assertEquals("", Utils.joinPath(null, "/")); +- Assertions.assertEquals("", Utils.joinPath("/", null)); +- Assertions.assertEquals("path", Utils.joinPath("/", "path")); +- +- Assertions.assertEquals("controller", Utils.joinPath("/controller", "")); +- Assertions.assertEquals("controller/", Utils.joinPath("/controller", "/")); +- Assertions.assertEquals("controller/path", Utils.joinPath("/controller", "/path")); +- Assertions.assertEquals("controller/path", Utils.joinPath("/controller", "path")); +- Assertions.assertEquals("controller/path/", Utils.joinPath("/controller", "/path/")); +- +- Assertions.assertEquals("controller/", Utils.joinPath("/controller/", "")); +- Assertions.assertEquals("controller/", Utils.joinPath("/controller/", "/")); +- Assertions.assertEquals("controller/path", Utils.joinPath("/controller/", "/path")); +- Assertions.assertEquals("controller/path", Utils.joinPath("/controller/", "path")); +- Assertions.assertEquals("controller/path/", Utils.joinPath("/controller/", "/path/")); +- } +- +- @Test +- public void testIsPrimitiveType() { +- Assertions.assertTrue(Utils.isPrimitiveType(char.class)); +- Assertions.assertTrue(Utils.isPrimitiveType(byte.class)); +- Assertions.assertTrue(Utils.isPrimitiveType(short.class)); +- Assertions.assertTrue(Utils.isPrimitiveType(int.class)); +- Assertions.assertTrue(Utils.isPrimitiveType(long.class)); +- Assertions.assertTrue(Utils.isPrimitiveType(float.class)); +- Assertions.assertTrue(Utils.isPrimitiveType(double.class)); +- Assertions.assertTrue(Utils.isPrimitiveType(boolean.class)); +- Assertions.assertFalse(Utils.isPrimitiveType(String.class)); +- Assertions.assertFalse(Utils.isPrimitiveType(Character.class)); +- Assertions.assertFalse(Utils.isPrimitiveType(Byte.class)); +- Assertions.assertFalse(Utils.isPrimitiveType(Short.class)); +- Assertions.assertFalse(Utils.isPrimitiveType(Integer.class)); +- Assertions.assertFalse(Utils.isPrimitiveType(Long.class)); +- Assertions.assertFalse(Utils.isPrimitiveType(Float.class)); +- Assertions.assertFalse(Utils.isPrimitiveType(Double.class)); +- Assertions.assertFalse(Utils.isPrimitiveType(Boolean.class)); +- Assertions.assertFalse(Utils.isPrimitiveType(UUID.class)); +- Assertions.assertFalse(Utils.isPrimitiveType(Date.class)); +- Assertions.assertFalse(Utils.isPrimitiveType(Collection.class)); +- Assertions.assertFalse(Utils.isPrimitiveType(Map.class)); +- class NewClass{} +- Assertions.assertFalse(Utils.isPrimitiveType(NewClass.class)); +- } +- +-} +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/compiler/ModelCompilerUtilsTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/compiler/ModelCompilerUtilsTest.java +deleted file mode 100644 +index 8f8766c50..000000000 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/compiler/ModelCompilerUtilsTest.java ++++ /dev/null +@@ -1,30 +0,0 @@ +- +-package cz.habarta.typescript.generator.compiler; +- +-import java.util.stream.Collectors; +-import org.junit.jupiter.api.Assertions; +-import org.junit.jupiter.api.Test; +- +- +-public class ModelCompilerUtilsTest { +- +- @Test +- public void testSplitIdentifierIntoWords() { +- Assertions.assertEquals("Red", splitIdentifierIntoWords("Red")); +- Assertions.assertEquals("ATYPE", splitIdentifierIntoWords("ATYPE")); +- Assertions.assertEquals("camel Case Type", splitIdentifierIntoWords("camelCaseType")); +- Assertions.assertEquals("Pascal Case Type", splitIdentifierIntoWords("PascalCaseType")); +- Assertions.assertEquals("UPPER CASE TYPE", splitIdentifierIntoWords("UPPER_CASE_TYPE")); +- Assertions.assertEquals("XML Http Request", splitIdentifierIntoWords("XMLHttpRequest")); +- Assertions.assertEquals("HÁČKY A ČÁRKY", splitIdentifierIntoWords("HÁČKY_A_ČÁRKY")); +- Assertions.assertEquals("Háčky A Čárky", splitIdentifierIntoWords("HáčkyAČárky")); +- Assertions.assertEquals("String 2 Json", splitIdentifierIntoWords("String2Json")); +- Assertions.assertEquals("string 2 json", splitIdentifierIntoWords("string2json")); +- Assertions.assertEquals("version 42 final", splitIdentifierIntoWords("version42final")); +- } +- +- private static String splitIdentifierIntoWords(String identifier) { +- return ModelCompiler.splitIdentifierIntoWords(identifier).stream().collect(Collectors.joining(" ")); +- } +- +-} +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/ext/AxiosClientExtensionTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/ext/AxiosClientExtensionTest.java +deleted file mode 100644 +index a775661c9..000000000 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/ext/AxiosClientExtensionTest.java ++++ /dev/null +@@ -1,72 +0,0 @@ +- +-package cz.habarta.typescript.generator.ext; +- +-import cz.habarta.typescript.generator.Input; +-import cz.habarta.typescript.generator.JaxrsApplicationTest; +-import cz.habarta.typescript.generator.RestNamespacing; +-import cz.habarta.typescript.generator.Settings; +-import cz.habarta.typescript.generator.TestUtils; +-import cz.habarta.typescript.generator.TypeScriptFileType; +-import cz.habarta.typescript.generator.TypeScriptGenerator; +-import cz.habarta.typescript.generator.TypeScriptOutputKind; +-import org.junit.jupiter.api.Assertions; +-import org.junit.jupiter.api.Test; +- +- +-public class AxiosClientExtensionTest { +- +- @Test +- public void test() { +- final Settings settings = TestUtils.settings(); +- settings.outputFileType = TypeScriptFileType.implementationFile; +- settings.outputKind = TypeScriptOutputKind.module; +- settings.generateJaxrsApplicationClient = true; +- settings.restNamespacing = RestNamespacing.perResource; +- settings.extensions.add(new AxiosClientExtension()); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(JaxrsApplicationTest.OrganizationApplication.class)); +- final String errorMessage = "Unexpected output: " + output; +- +- Assertions.assertTrue(output.contains("interface Organization"), errorMessage); +- Assertions.assertTrue(output.contains("interface Address"), errorMessage); +- Assertions.assertTrue(output.contains("interface Person"), errorMessage); +- Assertions.assertTrue(output.contains("interface HttpClient"), errorMessage); +- +- Assertions.assertTrue(output.contains("class OrganizationsResourceClient"), errorMessage); +- Assertions.assertTrue(output.contains("class PersonResourceClient"), errorMessage); +- Assertions.assertTrue(output.contains("type RestResponse = Promise>"), errorMessage); +- +- Assertions.assertTrue(output.contains("class AxiosHttpClient implements HttpClient"), errorMessage); +- Assertions.assertTrue(output.contains("request(requestConfig: { method: string; url: string; queryParams?: any; data?: any; copyFn?: (data: R) => R; options?: Axios.AxiosRequestConfig; }): RestResponse"), errorMessage); +- Assertions.assertTrue(output.contains("class AxiosOrganizationsResourceClient extends OrganizationsResourceClient"), errorMessage); +- Assertions.assertTrue(output.contains("class AxiosPersonResourceClient extends PersonResourceClient"), errorMessage); +- Assertions.assertTrue(output.contains("constructor(baseURL: string, axiosInstance: Axios.AxiosInstance = axios.create())"), errorMessage); +- } +- +- @Test +- public void mapPackagesToNamespaces() { +- final Settings settings = TestUtils.settings(); +- settings.outputFileType = TypeScriptFileType.implementationFile; +- settings.outputKind = TypeScriptOutputKind.module; +- settings.generateJaxrsApplicationClient = true; +- settings.restNamespacing = RestNamespacing.perResource; +- settings.mapPackagesToNamespaces = true; +- settings.extensions.add(new AxiosClientExtension()); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(JaxrsApplicationTest.OrganizationApplication.class)); +- final String errorMessage = "Unexpected output: " + output; +- +- Assertions.assertTrue(output.contains("interface Organization"), errorMessage); +- Assertions.assertTrue(output.contains("interface Address"), errorMessage); +- Assertions.assertTrue(output.contains("interface Person"), errorMessage); +- Assertions.assertTrue(output.contains("interface HttpClient"), errorMessage); +- +- Assertions.assertTrue(output.contains("class OrganizationsResourceClient"), errorMessage); +- Assertions.assertTrue(output.contains("class PersonResourceClient"), errorMessage); +- Assertions.assertTrue(output.contains("type RestResponse = Promise>"), errorMessage); +- +- Assertions.assertTrue(output.contains("class AxiosHttpClient implements HttpClient"), errorMessage); +- Assertions.assertTrue(output.contains("request(requestConfig: { method: string; url: string; queryParams?: any; data?: any; copyFn?: (data: R) => R; options?: Axios.AxiosRequestConfig; }): RestResponse"), errorMessage); +- Assertions.assertTrue(output.contains("export class AxiosOrganizationsResourceClient extends cz.habarta.typescript.generator.JaxrsApplicationTest.OrganizationsResourceClient"), errorMessage); +- Assertions.assertTrue(output.contains("class AxiosPersonResourceClient extends cz.habarta.typescript.generator.JaxrsApplicationTest.PersonResourceClient"), errorMessage); +- Assertions.assertTrue(output.contains("constructor(baseURL: string, axiosInstance: Axios.AxiosInstance = axios.create())"), errorMessage); +- } +-} +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/ext/BeanPropertyPathExtensionTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/ext/BeanPropertyPathExtensionTest.java +index 7cf59ea1a..6be01df20 100644 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/ext/BeanPropertyPathExtensionTest.java ++++ b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/ext/BeanPropertyPathExtensionTest.java +@@ -1,35 +1,33 @@ + package cz.habarta.typescript.generator.ext; + ++import java.util.Arrays; ++import cz.habarta.typescript.generator.TypeProcessor; + import cz.habarta.typescript.generator.DefaultTypeProcessor; + import cz.habarta.typescript.generator.Settings; +-import cz.habarta.typescript.generator.TypeProcessor; + import cz.habarta.typescript.generator.compiler.ModelCompiler; + import cz.habarta.typescript.generator.emitter.EmitterExtension; + import cz.habarta.typescript.generator.emitter.TsModel; ++import cz.habarta.typescript.generator.ext.BeanPropertyPathExtension; + import cz.habarta.typescript.generator.parser.Jackson2Parser; + import cz.habarta.typescript.generator.parser.Model; +-import cz.habarta.typescript.generator.util.Utils; +-import org.junit.jupiter.api.Assertions; +-import org.junit.jupiter.api.Test; ++import java.util.ArrayList; ++import java.util.List; ++import org.junit.Assert; ++import org.junit.Test; + + public class BeanPropertyPathExtensionTest { + + static class ClassA { + public String field1; + public ClassB field2; +- public ClassC field3; + } + + static class ClassB { + public int field1; + } + +- static class ClassC extends ClassB { +- public int field4; +- } +- + @Test +- public void basicTest() throws Exception { ++ public void basicTest() { + final StringBuilder data = new StringBuilder(); + final EmitterExtension.Writer writer = new EmitterExtension.Writer() { + @Override +@@ -44,7 +42,8 @@ public class BeanPropertyPathExtensionTest { + final TsModel tsModel = new ModelCompiler(settings, typeProcessor).javaToTypeScript(model); + new BeanPropertyPathExtension().emitElements(writer, settings, false, tsModel); + String dataStr = data.toString(); +- final String expected = Utils.readString(getClass().getResourceAsStream("/ext/expected.ts"), "\n"); +- Assertions.assertEquals(expected.trim(), dataStr.trim()); ++ Assert.assertEquals(29, dataStr.split("\n").length); ++ Assert.assertTrue(dataStr.contains("class ClassAFields")); ++ Assert.assertTrue(dataStr.contains("class ClassBFields")); + } + } +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/ext/DefaultsFromInstanceExtensionTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/ext/DefaultsFromInstanceExtensionTest.java +deleted file mode 100644 +index 7c7a2872d..000000000 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/ext/DefaultsFromInstanceExtensionTest.java ++++ /dev/null +@@ -1,50 +0,0 @@ +- +-package cz.habarta.typescript.generator.ext; +- +-import cz.habarta.typescript.generator.ClassMapping; +-import cz.habarta.typescript.generator.Input; +-import cz.habarta.typescript.generator.Settings; +-import cz.habarta.typescript.generator.TestUtils; +-import cz.habarta.typescript.generator.TypeScriptFileType; +-import cz.habarta.typescript.generator.TypeScriptGenerator; +-import java.util.Arrays; +-import java.util.List; +-import org.junit.jupiter.api.Assertions; +-import org.junit.jupiter.api.Test; +- +- +-public class DefaultsFromInstanceExtensionTest { +- +- @Test +- public void test() { +- final Settings settings = TestUtils.settings(); +- settings.quotes = "'"; +- settings.outputFileType = TypeScriptFileType.implementationFile; +- settings.mapClasses = ClassMapping.asClasses; +- settings.extensions.add(new DefaultsFromInstanceExtension()); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(A.class)); +- Assertions.assertTrue(output.contains("text0: string;")); +- Assertions.assertTrue(output.contains("text1: string = 'hello';")); +- Assertions.assertTrue(output.contains("number0: number;")); +- Assertions.assertTrue(output.contains("number1: number = 42;")); +- Assertions.assertTrue(output.contains("number2: number = 42;")); +- Assertions.assertTrue(output.contains("list: string[];")); +- Assertions.assertTrue(output.contains("text2: string = 'hello2';")); +- } +- +- public static class A { +- +- public String text0 = null; +- public String text1 = "hello"; +- public Long number0 = null; +- public Long number1 = 42L; +- public long number2 = 42L; +- public List list = Arrays.asList("a", "b"); +- +- public String getText2() { +- return "hello2"; +- } +- +- } +- +-} +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/ext/OnePossiblePropertyValueAssigningExtensionTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/ext/OnePossiblePropertyValueAssigningExtensionTest.java +deleted file mode 100644 +index 24a2e6fa3..000000000 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/ext/OnePossiblePropertyValueAssigningExtensionTest.java ++++ /dev/null +@@ -1,87 +0,0 @@ +-package cz.habarta.typescript.generator.ext; +- +-import com.fasterxml.jackson.annotation.JsonProperty; +-import com.fasterxml.jackson.annotation.JsonTypeInfo; +-import cz.habarta.typescript.generator.ClassMapping; +-import cz.habarta.typescript.generator.Input; +-import cz.habarta.typescript.generator.Settings; +-import cz.habarta.typescript.generator.TestUtils; +-import cz.habarta.typescript.generator.TypeScriptFileType; +-import cz.habarta.typescript.generator.TypeScriptGenerator; +-import cz.habarta.typescript.generator.TypeScriptOutputKind; +-import cz.habarta.typescript.generator.util.Utils; +-import java.lang.reflect.Type; +-import org.junit.jupiter.api.Assertions; +-import org.junit.jupiter.api.Test; +- +-public class OnePossiblePropertyValueAssigningExtensionTest { +- private static final String BASE_PATH = "/ext/OnePossiblePropertyValueAssigningExtensionTest-"; +- +- @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "discriminator") +- abstract static class BaseClass { +- +- @JsonProperty +- private Long field1; +- +- @JsonProperty +- private OneValueEnum field2; +- } +- +- static class SubClass extends BaseClass { +- +- @JsonProperty +- private String testField1; +- } +- +- static class OtherSubClass extends BaseClass { +- +- @JsonProperty +- private String testField2; +- +- @JsonProperty +- private OneValueEnum enumField1; +- +- @JsonProperty +- private TwoValueEnum enumField2; +- } +- +- enum OneValueEnum { +- MY_VALUE +- } +- +- enum TwoValueEnum { +- ONE, +- TWO +- } +- +- @Test +- public void testGeneration() { +- Settings settings = createBaseSettings(new OnePossiblePropertyValueAssigningExtension()); +- String result = generateTypeScript(settings, SubClass.class, OtherSubClass.class); +- +- String expected = readResource("all.ts"); +- +- Assertions.assertEquals(expected, result); +- } +- +- private static Settings createBaseSettings(OnePossiblePropertyValueAssigningExtension extension) { +- Settings settings = TestUtils.settings(); +- settings.sortDeclarations = true; +- settings.extensions.add(extension); +- settings.outputFileType = TypeScriptFileType.implementationFile; +- settings.outputKind = TypeScriptOutputKind.module; +- settings.mapClasses = ClassMapping.asClasses; +- return settings; +- } +- +- private static String generateTypeScript(Settings settings, Type... types) { +- TypeScriptGenerator typeScriptGenerator = new TypeScriptGenerator(settings); +- String result = typeScriptGenerator.generateTypeScript(Input.from(types)); +- return Utils.normalizeLineEndings(result, "\n"); +- } +- +- private String readResource(String suffix) { +- return Utils.readString(getClass().getResourceAsStream(BASE_PATH + suffix), "\n"); +- } +- +-} +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/ext/PropertyPolymorphismExtensionTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/ext/PropertyPolymorphismExtensionTest.java +deleted file mode 100644 +index 8c4d46c98..000000000 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/ext/PropertyPolymorphismExtensionTest.java ++++ /dev/null +@@ -1,80 +0,0 @@ +-package cz.habarta.typescript.generator.ext; +- +-import cz.habarta.typescript.generator.Input; +-import cz.habarta.typescript.generator.JsonLibrary; +-import cz.habarta.typescript.generator.Settings; +-import cz.habarta.typescript.generator.TestUtils; +-import cz.habarta.typescript.generator.TypeScriptGenerator; +-import java.lang.annotation.Retention; +-import java.lang.annotation.RetentionPolicy; +-import java.util.HashMap; +-import java.util.Locale; +-import java.util.Map; +-import static org.junit.jupiter.api.Assertions.assertTrue; +-import org.junit.jupiter.api.Test; +- +-public class PropertyPolymorphismExtensionTest { +- +- @Retention(RetentionPolicy.RUNTIME) +- private @interface Marker { +- } +- +- @Retention(RetentionPolicy.RUNTIME) +- private @interface PropertyName { +- String name(); +- } +- +- private static class TestA { +- @SuppressWarnings("unused") +- TestB b; +- } +- +- @Marker +- private static class TestB { +- } +- +- private static class TestBSub1 extends TestB { +- } +- +- @PropertyName(name="foo") +- private static class TestBSub2 extends TestB { +- } +- +- @Test +- public void test() { +- final Settings settings = TestUtils.settings(); +- settings.jsonLibrary = JsonLibrary.gson; +- settings.extensions.add(new PropertyPolymorphismExtension(cls -> cls==TestB.class, subType -> { +- String name = subType.getSimpleName(); +- return name.substring(0, 1).toLowerCase(Locale.ENGLISH) + name.substring(1); +- +- })); +- +- final String output = new TypeScriptGenerator(settings) +- .generateTypeScript(Input.from(TestA.class, TestBSub1.class, TestBSub2.class)); +- assertTrue(output.contains("interface TestA {\n" + " b: TestBRef;\n" + "}"), output); +- assertTrue(output.contains("interface TestBRef {"), output); +- assertTrue(output.contains("testBSub2: TestBSub2;"), output); +- } +- +- @Test +- public void testWithConfiguration() { +- final Settings settings = TestUtils.settings(); +- settings.jsonLibrary = JsonLibrary.gson; +- PropertyPolymorphismExtension extension = new PropertyPolymorphismExtension(); +- Map config = new HashMap<>(); +- config.put(PropertyPolymorphismExtension.MARKER_ANNOTATION, Marker.class.getName()); +- config.put(PropertyPolymorphismExtension.NAME_ANNOTATION, PropertyName.class.getName()); +- config.put(PropertyPolymorphismExtension.NAME_ELEMENT, "name"); +- +- extension.setConfiguration(config); +- settings.extensions.add(extension); +- +- final String output = new TypeScriptGenerator(settings) +- .generateTypeScript(Input.from(TestA.class, TestBSub1.class, TestBSub2.class)); +- assertTrue(output.contains("b: TestBRef;"), output); +- assertTrue(output.contains("interface TestBRef {"), output); +- assertTrue(output.contains("foo: TestBSub2;"), output); +- assertTrue(output.contains("testBSub1: TestBSub1;"), output); +- } +-} +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/ext/RequiredPropertyConstructorExtensionTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/ext/RequiredPropertyConstructorExtensionTest.java +deleted file mode 100644 +index 71d2fffcc..000000000 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/ext/RequiredPropertyConstructorExtensionTest.java ++++ /dev/null +@@ -1,176 +0,0 @@ +-package cz.habarta.typescript.generator.ext; +- +-import com.fasterxml.jackson.annotation.JsonTypeInfo; +-import com.fasterxml.jackson.annotation.JsonTypeName; +-import cz.habarta.typescript.generator.ClassMapping; +-import cz.habarta.typescript.generator.Input; +-import cz.habarta.typescript.generator.JsonLibrary; +-import cz.habarta.typescript.generator.Settings; +-import cz.habarta.typescript.generator.TypeScriptFileType; +-import cz.habarta.typescript.generator.TypeScriptGenerator; +-import cz.habarta.typescript.generator.TypeScriptOutputKind; +-import cz.habarta.typescript.generator.util.Utils; +-import java.lang.reflect.Type; +-import java.util.ArrayList; +-import java.util.HashMap; +-import java.util.Map; +-import javax.annotation.Nullable; +-import org.junit.jupiter.api.Assertions; +-import org.junit.jupiter.api.Test; +- +-public class RequiredPropertyConstructorExtensionTest { +- +- private static final String BASE_PATH = "/ext/RequiredPropertyConstructorExtensionTest-"; +- +- static class SimpleClass { +- public String field1; +- public PolymorphicClass field2; +- } +- +- static class OtherClass { +- public String field2; +- } +- +- static class MultipleEnumContainerClass { +- public MultipleEntryEnum multiple; +- } +- +- enum MultipleEntryEnum { +- ENTRY_1, +- ENTRY_2, +- ENTRY_3 +- } +- +- static class SingleEnumContainerClass { +- public SingleEntryEnum single; +- } +- +- enum SingleEntryEnum { +- ENTRY_1 +- } +- +- @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "discriminator") +- interface SuperInterface { +- +- } +- +- @JsonTypeName("class-b") +- static class PolymorphicClass implements SuperInterface { +- public int field1; +- } +- +- static class SecondClass extends SimpleClass { +- public int field3; +- } +- +- static class SimpleOptionalClass { +- public String field1; +- @Nullable +- public Integer field2; +- } +- +- static class SecondOptionalClass extends SimpleOptionalClass { +- public String field3; +- } +- +- @Test +- public void testBasicWithReadOnly() { +- Settings settings = createBaseSettings(new RequiredPropertyConstructorExtension()); +- settings.declarePropertiesAsReadOnly = true; +- String result = generateTypeScript(settings, SimpleClass.class); +- +- String expected = readResource("basicWithReadOnly.ts"); +- +- Assertions.assertEquals(expected, result); +- } +- +- @Test +- public void testBasicWithConfiguration() { +- RequiredPropertyConstructorExtension extension = new RequiredPropertyConstructorExtension(); +- Map configuration = new HashMap<>(); +- String classes = SimpleClass.class.getCanonicalName() + " " + OtherClass.class.getCanonicalName(); +- configuration.put(RequiredPropertyConstructorExtension.CFG_CLASSES, classes); +- extension.setConfiguration(configuration); +- +- Settings settings = createBaseSettings(extension); +- settings.declarePropertiesAsReadOnly = true; +- String result = generateTypeScript(settings, SimpleClass.class, OtherClass.class); +- +- String expected = readResource("basicWithConfiguration.ts"); +- +- Assertions.assertEquals(expected, result); +- } +- +- @Test +- public void testBasicWithoutReadOnly() { +- Settings settings = createBaseSettings(); +- settings.declarePropertiesAsReadOnly = false; +- String result = generateTypeScript(settings, SimpleClass.class); +- +- String expected = readResource("basicWithoutReadOnly.ts"); +- +- Assertions.assertEquals(expected, result); +- } +- +- @Test +- public void testEnums() { +- Settings settings = createBaseSettings(); +- settings.declarePropertiesAsReadOnly = true; +- +- String result = generateTypeScript(settings, MultipleEnumContainerClass.class, SingleEnumContainerClass.class); +- +- String expected = readResource("enums.ts"); +- Assertions.assertEquals(expected, result); +- } +- +- @Test +- public void testInheritance() { +- Settings settings = createBaseSettings(); +- settings.declarePropertiesAsReadOnly = true; +- +- String result = generateTypeScript(settings, SecondClass.class); +- +- String expected = readResource("inheritance.ts"); +- Assertions.assertEquals(expected, result); +- } +- +- @Test +- public void testOptionalParameters() { +- Settings settings = createBaseSettings(); +- settings.declarePropertiesAsReadOnly = true; +- settings.optionalAnnotations = new ArrayList<>(); +- settings.optionalAnnotations.add(Nullable.class); +- +- String result = generateTypeScript(settings, SecondOptionalClass.class); +- +- String expected = readResource("optionalParameters.ts"); +- Assertions.assertEquals(expected, result); +- } +- +- private static String generateTypeScript(Settings settings, Type... types) { +- TypeScriptGenerator typeScriptGenerator = new TypeScriptGenerator(settings); +- String result = typeScriptGenerator.generateTypeScript(Input.from(types)); +- return Utils.normalizeLineEndings(result, "\n"); +- } +- +- private static Settings createBaseSettings() { +- return createBaseSettings(new RequiredPropertyConstructorExtension()); +- } +- +- private static Settings createBaseSettings(RequiredPropertyConstructorExtension extension) { +- Settings settings = new Settings(); +- settings.sortDeclarations = true; +- settings.extensions.add(extension); +- settings.jsonLibrary = JsonLibrary.jackson2; +- settings.outputFileType = TypeScriptFileType.implementationFile; +- settings.outputKind = TypeScriptOutputKind.module; +- settings.mapClasses = ClassMapping.asClasses; +- settings.noFileComment = true; +- settings.noEslintDisable = true; +- return settings; +- } +- +- private String readResource(String suffix) { +- return Utils.readString(getClass().getResourceAsStream(BASE_PATH + suffix), "\n"); +- } +-} +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/library/GuavaTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/library/GuavaTest.java +deleted file mode 100644 +index d030a27a6..000000000 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/library/GuavaTest.java ++++ /dev/null +@@ -1,110 +0,0 @@ +- +-package cz.habarta.typescript.generator.library; +- +-import com.fasterxml.jackson.core.JsonProcessingException; +-import com.fasterxml.jackson.databind.ObjectMapper; +-import com.fasterxml.jackson.datatype.guava.GuavaModule; +-import com.google.common.cache.CacheBuilder; +-import com.google.common.cache.CacheBuilderSpec; +-import com.google.common.collect.FluentIterable; +-import com.google.common.collect.ForwardingTable; +-import com.google.common.collect.ImmutableMultimap; +-import com.google.common.collect.ImmutableRangeSet; +-import com.google.common.collect.ImmutableTable; +-import com.google.common.collect.Multimap; +-import com.google.common.collect.Range; +-import com.google.common.collect.Table; +-import com.google.common.collect.Tables; +-import com.google.common.hash.HashCode; +-import com.google.common.net.HostAndPort; +-import com.google.common.net.InternetDomainName; +-import cz.habarta.typescript.generator.Input; +-import cz.habarta.typescript.generator.Jackson2ConfigurationResolved; +-import cz.habarta.typescript.generator.Logger; +-import cz.habarta.typescript.generator.Settings; +-import cz.habarta.typescript.generator.TestUtils; +-import cz.habarta.typescript.generator.TypeScriptGenerator; +-import cz.habarta.typescript.generator.util.Utils; +-import java.util.Arrays; +-import java.util.concurrent.TimeUnit; +-import org.junit.jupiter.api.Assertions; +-import org.junit.jupiter.api.Test; +- +- +-@SuppressWarnings("unused") +-public class GuavaTest { +- +- @Test +- public void testGuavaInJackson() throws JsonProcessingException { +- final ObjectMapper objectMapper = Utils.getObjectMapper(); +- objectMapper.registerModule(new GuavaModule()); +- final String json = objectMapper.writeValueAsString(new GuavaSerializedClasses()); +-// System.out.println(json); +- } +- +- @Test +- public void testGuava() { +- TypeScriptGenerator.setLogger(new Logger(Logger.Level.Verbose)); +- final Settings settings = TestUtils.settings(); +- settings.jackson2Configuration = new Jackson2ConfigurationResolved(); +- settings.additionalDataLibraries = Arrays.asList("guava"); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(GuavaSerializedClasses.class)); +- Assertions.assertTrue(output.contains("rangeSet: GuavaRangeSet")); +- Assertions.assertTrue(output.contains("type GuavaRangeSet")); +- Assertions.assertTrue(output.contains("range: GuavaRange")); +- Assertions.assertTrue(output.contains("type GuavaRange")); +- Assertions.assertTrue(output.contains("table: GuavaTable")); +- Assertions.assertTrue(output.contains("type GuavaTable")); +- Assertions.assertTrue(output.contains("hostAndPort: string")); +- Assertions.assertTrue(output.contains("internetDomainName: string")); +- Assertions.assertTrue(output.contains("cacheBuilderSpec: string")); +- Assertions.assertTrue(output.contains("cacheBuilder: string")); +- Assertions.assertTrue(output.contains("hashCode: string")); +- Assertions.assertTrue(output.contains("fluentIterable: string[]")); +- Assertions.assertTrue(output.contains("multimap: GuavaMultimap")); +- Assertions.assertTrue(output.contains("type GuavaMultimap")); +- } +- +- private static class GuavaSerializedClasses { +- public ImmutableRangeSet rangeSet = ImmutableRangeSet.of(Range.closedOpen("a", "d")); +- public Range range = Range.closedOpen(new Named("a"), new Named("f")); +- public Table table = ImmutableTable.builder() +- .put(Tables.immutableCell('a', 1, false)) +- .put(Tables.immutableCell('b', 3, true)) +- .build(); +- public NamedTable namedTable = new NamedTable(); +- public HostAndPort hostAndPort = HostAndPort.fromParts("habarta.cz", 80); +- public InternetDomainName internetDomainName = InternetDomainName.from("habarta.cz"); +- public CacheBuilderSpec cacheBuilderSpec = CacheBuilderSpec.parse("initialCapacity=5,expireAfterWrite=60s"); +- public CacheBuilder cacheBuilder = CacheBuilder.newBuilder() +- .initialCapacity(5) +- .expireAfterWrite(60, TimeUnit.SECONDS); +- public HashCode hashCode = HashCode.fromInt(45); +- public FluentIterable fluentIterable = FluentIterable.of("a", "b", "c"); +- public Multimap multimap = ImmutableMultimap.of("a", 1, "b", 2); +- } +- +- private static class Named implements Comparable { +- public final String name; +- +- public Named(String name) { +- this.name = name; +- } +- +- @Override +- public int compareTo(Named o) { +- return this.name.compareTo(o.name); +- } +- } +- +- private static class NamedTable extends ForwardingTable { +- @Override +- protected Table delegate() { +- return ImmutableTable.builder() +- .put(Tables.immutableCell("a", "1", new Named("a1"))) +- .put(Tables.immutableCell("b", "3", new Named("b3"))) +- .build(); +- } +- } +- +-} +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/library/JodaTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/library/JodaTest.java +deleted file mode 100644 +index f8303b568..000000000 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/library/JodaTest.java ++++ /dev/null +@@ -1,133 +0,0 @@ +- +-package cz.habarta.typescript.generator.library; +- +-import com.fasterxml.jackson.databind.ObjectMapper; +-import com.fasterxml.jackson.databind.SerializationFeature; +-import com.fasterxml.jackson.datatype.joda.JodaModule; +-import cz.habarta.typescript.generator.DateMapping; +-import cz.habarta.typescript.generator.Input; +-import cz.habarta.typescript.generator.Settings; +-import cz.habarta.typescript.generator.TestUtils; +-import cz.habarta.typescript.generator.TypeScriptGenerator; +-import cz.habarta.typescript.generator.util.Utils; +-import java.util.Arrays; +-import java.util.List; +-import java.util.Map; +-import org.joda.time.DateMidnight; +-import org.joda.time.DateTime; +-import org.joda.time.DateTimeZone; +-import org.joda.time.Duration; +-import org.joda.time.Instant; +-import org.joda.time.Interval; +-import org.joda.time.LocalDate; +-import org.joda.time.LocalDateTime; +-import org.joda.time.LocalTime; +-import org.joda.time.MonthDay; +-import org.joda.time.Period; +-import org.joda.time.YearMonth; +-import org.junit.jupiter.api.Assertions; +-import org.junit.jupiter.api.Test; +- +- +-public class JodaTest { +- +- @Test +- public void testDate_forJodaDateTime() { +- final Settings settings = TestUtils.settings(); +- settings.customTypeMappings.put("org.joda.time.DateTime", "Date"); +- final String dts = new TypeScriptGenerator(settings).generateTypeScript(Input.from(JodaDates.class)); +- Assertions.assertTrue(dts.contains("date: Date;")); +- Assertions.assertTrue(dts.contains("dateList: Date[];")); +- Assertions.assertTrue(dts.contains("datesMap: { [index: string]: Date[] };")); +- Assertions.assertTrue(dts.contains("dates: Date[];")); +- } +- +- @Test +- public void testDateAsNumber_forJodaDateTime() { +- final Settings settings = TestUtils.settings(); +- settings.customTypeMappings.put("org.joda.time.DateTime", "number"); +- final String dts = new TypeScriptGenerator(settings).generateTypeScript(Input.from(JodaDates.class)); +- Assertions.assertTrue(dts.contains("date: number;")); +- Assertions.assertTrue(dts.contains("dateList: number[];")); +- Assertions.assertTrue(dts.contains("datesMap: { [index: string]: number[] };")); +- Assertions.assertTrue(dts.contains("dates: number[];")); +- Assertions.assertTrue(!dts.contains("type DateAsNumber = number;")); +- } +- +- @Test +- public void testDateAsString_forJodaDateTime() { +- final Settings settings = TestUtils.settings(); +- settings.customTypeMappings.put("org.joda.time.DateTime", "string"); +- final String dts = new TypeScriptGenerator(settings).generateTypeScript(Input.from(JodaDates.class)); +- Assertions.assertTrue(dts.contains("date: string;")); +- Assertions.assertTrue(dts.contains("dateList: string[];")); +- Assertions.assertTrue(dts.contains("datesMap: { [index: string]: string[] };")); +- Assertions.assertTrue(dts.contains("dates: string[];")); +- Assertions.assertTrue(!dts.contains("type DateAsString = string;")); +- } +- +- @Test +- public void testDateAsString_forJodaDateTime_usingDataLibrary() { +- final Settings settings = TestUtils.settings(); +- settings.additionalDataLibraries = Arrays.asList("joda"); +- settings.mapDate = DateMapping.asString; +- final String dts = new TypeScriptGenerator(settings).generateTypeScript(Input.from(JodaDates.class)); +- Assertions.assertTrue(dts.contains("date: DateAsString;")); +- Assertions.assertTrue(dts.contains("dateList: DateAsString[];")); +- Assertions.assertTrue(dts.contains("datesMap: { [index: string]: DateAsString[] };")); +- Assertions.assertTrue(dts.contains("dates: DateAsString[];")); +- Assertions.assertTrue(dts.contains("type DateAsString = string;")); +- } +- +- @Test +- public void testJodaInJackson() throws Exception { +- final ObjectMapper objectMapper = Utils.getObjectMapper(); +- objectMapper.registerModule(new JodaModule()); +- objectMapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); +- final String json = objectMapper.writeValueAsString(new JodaSerializedClasses()); +-// System.out.println(json); +- } +- +- @Test +- public void testJodaLibrary() { +- final Settings settings = TestUtils.settings(); +- settings.additionalDataLibraries = Arrays.asList("joda"); +- settings.mapDate = DateMapping.asString; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(JodaSerializedClasses.class)); +- Assertions.assertTrue(output.contains("dateTime: DateAsString;")); +- Assertions.assertTrue(output.contains("dateTimeZone: string;")); +- Assertions.assertTrue(output.contains("duration: number;")); +- Assertions.assertTrue(output.contains("instant: DateAsString;")); +- Assertions.assertTrue(output.contains("localDateTime: DateAsString;")); +- Assertions.assertTrue(output.contains("localDate: DateAsString;")); +- Assertions.assertTrue(output.contains("localTime: DateAsString;")); +- Assertions.assertTrue(output.contains("period: string;")); +- Assertions.assertTrue(output.contains("interval: string;")); +- Assertions.assertTrue(output.contains("monthDay: string;")); +- Assertions.assertTrue(output.contains("yearMonth: string;")); +- Assertions.assertTrue(output.contains("dateMidnight: DateAsString;")); +- } +- +-} +- +-class JodaDates { +- public org.joda.time.DateTime date; +- public List dateList; +- public Map> datesMap; +- public org.joda.time.DateTime[] dates; +-} +- +-class JodaSerializedClasses { +- public DateTime dateTime = DateTime.now(); +- public DateTimeZone dateTimeZone = DateTimeZone.UTC; +- public Duration duration = Duration.ZERO; +- public Instant instant = Instant.now(); +- public LocalDateTime localDateTime = LocalDateTime.now(); +- public LocalDate localDate = LocalDate.now(); +- public LocalTime localTime = LocalTime.now(); +- public Period period = Period.ZERO; +- public Interval interval = new Interval(Instant.now(), Instant.now().plus(10)); +- public MonthDay monthDay = MonthDay.now(); +- public YearMonth yearMonth = YearMonth.now(); +- public DateMidnight dateMidnight = DateMidnight.now(); +-} +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/library/VavrTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/library/VavrTest.java +deleted file mode 100644 +index ddba4dd92..000000000 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/library/VavrTest.java ++++ /dev/null +@@ -1,99 +0,0 @@ +- +-package cz.habarta.typescript.generator.library; +- +-import com.fasterxml.jackson.core.JsonProcessingException; +-import com.fasterxml.jackson.databind.ObjectMapper; +-import cz.habarta.typescript.generator.Input; +-import cz.habarta.typescript.generator.Jackson2ConfigurationResolved; +-import cz.habarta.typescript.generator.Logger; +-import cz.habarta.typescript.generator.Settings; +-import cz.habarta.typescript.generator.TestUtils; +-import cz.habarta.typescript.generator.TypeScriptGenerator; +-import cz.habarta.typescript.generator.util.Utils; +-import io.vavr.Lazy; +-import io.vavr.collection.CharSeq; +-import io.vavr.collection.LinkedHashMap; +-import io.vavr.collection.LinkedHashMultimap; +-import io.vavr.collection.LinkedHashSet; +-import io.vavr.collection.List; +-import io.vavr.collection.Map; +-import io.vavr.collection.Multimap; +-import io.vavr.collection.PriorityQueue; +-import io.vavr.collection.Set; +-import io.vavr.control.Option; +-import io.vavr.jackson.datatype.VavrModule; +-import java.math.BigDecimal; +-import java.math.BigInteger; +-import java.util.Arrays; +-import org.junit.jupiter.api.Assertions; +-import org.junit.jupiter.api.Test; +- +- +-@SuppressWarnings("unused") +-public class VavrTest { +- +- @Test +- public void testVavrInJackson() throws JsonProcessingException { +- final ObjectMapper objectMapper = Utils.getObjectMapper(); +- objectMapper.registerModule(new VavrModule()); +- final String json = objectMapper.writeValueAsString(new VavrSerializedClasses()); +-// System.out.println(json); +- } +- +- @Test +- public void testVavr() { +- TypeScriptGenerator.setLogger(new Logger(Logger.Level.Verbose)); +- final Settings settings = TestUtils.settings(); +- settings.jackson2Configuration = new Jackson2ConfigurationResolved(); +- settings.additionalDataLibraries = Arrays.asList("vavr"); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(VavrSerializedClasses.class)); +- Assertions.assertTrue(output.contains("lazy: number")); +- Assertions.assertTrue(output.contains("option?: number")); +- Assertions.assertTrue(output.contains("charSeq: string")); +- Assertions.assertTrue(output.contains("list: string[]")); +- Assertions.assertTrue(output.contains("set: string[]")); +- Assertions.assertTrue(output.contains("priorityQueue: number[]")); +- Assertions.assertTrue(output.contains("map: { [index: string]: number }")); +- Assertions.assertTrue(output.contains("multimap: VavrMultimap")); +- Assertions.assertTrue(output.contains("multimap2: VavrMultimap")); +- Assertions.assertTrue(output.contains("type VavrMultimap")); +- } +- +- private static final Key aKey = new Key("a"); +- private static final Key bKey = new Key("b"); +- +- private static class VavrSerializedClasses { +- public Lazy lazy = Lazy.of(() -> BigDecimal.ONE); +- public Option option = Option.some(BigDecimal.ONE); +- public CharSeq charSeq = CharSeq.of("abc"); +- public List list = List.of("a", "b"); +- public Set set = LinkedHashSet.of("a", "b"); +- public PriorityQueue priorityQueue = PriorityQueue.of(1, 2, 3); +- public Map map = LinkedHashMap.of("a", BigInteger.ONE, "b", BigInteger.TEN); +- public Multimap multimap = LinkedHashMultimap.withSeq().of("a", 1, "a", 1, "b", 2); +- public Multimap multimap2 = LinkedHashMultimap.withSeq().of(aKey, new Value("1"), aKey, new Value("1"), bKey, new Value("2"), bKey, null); +- } +- +- private static class Key { +- public final String key; +- +- public Key(String key) { +- this.key = key; +- } +- +- @Override +- public String toString() { +- return key; +- } +- +- } +- +- private static class Value { +- public final String value; +- +- public Value(String value) { +- this.value = value; +- } +- } +- +-} +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/p1/A.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/p1/A.java +deleted file mode 100644 +index 76d21eb00..000000000 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/p1/A.java ++++ /dev/null +@@ -1,9 +0,0 @@ +- +-package cz.habarta.typescript.generator.p1; +- +- +-public class A { +- +- public String sa; +- +-} +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/p1/C.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/p1/C.java +deleted file mode 100644 +index f71ac7960..000000000 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/p1/C.java ++++ /dev/null +@@ -1,11 +0,0 @@ +- +-package cz.habarta.typescript.generator.p1; +- +-import cz.habarta.typescript.generator.p2.B; +- +- +-public class C extends B { +- +- public String sc; +- +-} +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/p1/E.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/p1/E.java +deleted file mode 100644 +index 9b56840d2..000000000 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/p1/E.java ++++ /dev/null +@@ -1,6 +0,0 @@ +- +-package cz.habarta.typescript.generator.p1; +- +-public enum E { +- Left, Right +-} +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/p2/B.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/p2/B.java +deleted file mode 100644 +index 4a95ea049..000000000 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/p2/B.java ++++ /dev/null +@@ -1,11 +0,0 @@ +- +-package cz.habarta.typescript.generator.p2; +- +-import cz.habarta.typescript.generator.p1.A; +- +- +-public class B extends A { +- +- public String sb; +- +-} +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/p2/D.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/p2/D.java +deleted file mode 100644 +index e78e6209c..000000000 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/p2/D.java ++++ /dev/null +@@ -1,16 +0,0 @@ +- +-package cz.habarta.typescript.generator.p2; +- +-import cz.habarta.typescript.generator.p1.A; +-import cz.habarta.typescript.generator.p1.C; +-import cz.habarta.typescript.generator.p1.E; +- +- +-public class D { +- +- public A a; +- public B b; +- public C c; +- public E e; +- +-} +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/parser/GsonParserTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/parser/GsonParserTest.java +deleted file mode 100644 +index 9c803a6f0..000000000 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/parser/GsonParserTest.java ++++ /dev/null +@@ -1,128 +0,0 @@ +-package cz.habarta.typescript.generator.parser; +- +-import com.google.gson.annotations.SerializedName; +-import cz.habarta.typescript.generator.DefaultTypeProcessor; +-import cz.habarta.typescript.generator.DummyBean; +-import cz.habarta.typescript.generator.GsonConfiguration; +-import cz.habarta.typescript.generator.Input; +-import cz.habarta.typescript.generator.JsonLibrary; +-import cz.habarta.typescript.generator.OptionalProperties; +-import cz.habarta.typescript.generator.Settings; +-import cz.habarta.typescript.generator.TestUtils; +-import cz.habarta.typescript.generator.TypeScriptGenerator; +-import java.lang.annotation.Retention; +-import java.lang.annotation.RetentionPolicy; +-import java.util.Arrays; +-import org.junit.jupiter.api.Assertions; +-import org.junit.jupiter.api.BeforeEach; +-import org.junit.jupiter.api.Test; +- +-@SuppressWarnings("unused") +-public class GsonParserTest { +- +- private Settings settings; +- +- private static class DummyBeanGson { +- private int privateField; +- } +- +- @BeforeEach +- public void before() { +- settings = TestUtils.settings(); +- settings.jsonLibrary = JsonLibrary.gson; +- } +- +- @Test +- public void test() { +- final GsonParser gsonParser = getGsonParser(); +- final Class bean = DummyBean.class; +- final Model model = gsonParser.parseModel(bean); +- Assertions.assertTrue(model.getBeans().size() > 0); +- final BeanModel beanModel = model.getBeans().get(0); +- Assertions.assertEquals("DummyBean", beanModel.getOrigin().getSimpleName()); +- Assertions.assertTrue(beanModel.getProperties().size() > 0); +- Assertions.assertEquals("firstProperty", beanModel.getProperties().get(0).getName()); +- } +- +- @Test +- public void testPrivateFieldGenerated() { +- final String output = generate(settings, DummyBeanGson.class); +- Assertions.assertTrue(output.contains("privateField"), output); +- } +- +- private static class DummyBeanSerializedName { +- @SerializedName("bar") +- int foo; +- } +- +- @Test +- public void testSerializedName() { +- final String output = generate(settings, DummyBeanSerializedName.class); +- Assertions.assertTrue(output.contains("bar"), output); +- } +- +- private String generate(final Settings settings, Class cls) { +- return new TypeScriptGenerator(settings).generateTypeScript(Input.from(cls)); +- } +- +- static GsonParser getGsonParser() { +- final Settings settings = new Settings(); +- return new GsonParser(settings, new DefaultTypeProcessor()); +- } +- +- private static class Demo { +- public static String THIS_FIELD_SHOULD_NOT_BE_INCLUDED = "test"; +- public String thisShouldBeIncluded = "test"; +- } +- +- @Test +- public void testStaticFieldNotIncluded() { +- final String output = generate(settings, Demo.class); +- Assertions.assertTrue(!output.contains("THIS_FIELD_SHOULD_NOT_BE_INCLUDED")); +- } +- +- @Test +- public void testStaticFieldIncluded() { +- settings.gsonConfiguration = new GsonConfiguration(); +- settings.gsonConfiguration.excludeFieldsWithModifiers = "transient"; +- final String output = generate(settings, Demo.class); +- Assertions.assertTrue(output.contains("THIS_FIELD_SHOULD_NOT_BE_INCLUDED")); +- } +- +- @Test +- public void testOptionalProperties_Default() { +- final String output = generate(settings, BeanWithOptionalProperty.class); +- Assertions.assertTrue(output.contains("property1: string;")); +- } +- +- @Test +- public void testOptionalProperties_All() { +- settings.optionalProperties = OptionalProperties.all; +- final String output = generate(settings, BeanWithOptionalProperty.class); +- Assertions.assertTrue(output.contains("property1?: string;")); +- } +- +- @Test +- public void testOptionalProperties_UseLibraryDefinition() { +- settings.optionalProperties = OptionalProperties.useLibraryDefinition; +- final String output = generate(settings, BeanWithOptionalProperty.class); +- Assertions.assertTrue(output.contains("property1?: string;")); +- } +- +- @Test +- public void testOptionalProperties_UseSpecifiedAnnotations() { +- settings.optionalAnnotations = Arrays.asList(OptionalProperty.class); +- final String output = generate(settings, BeanWithOptionalProperty.class); +- Assertions.assertTrue(output.contains("property1?: string;")); +- } +- +- private static class BeanWithOptionalProperty { +- @OptionalProperty +- private String property1; +- } +- +- @Retention(RetentionPolicy.RUNTIME) +- @interface OptionalProperty { +- } +- +-} +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/parser/Jackson2ParserPropertiesTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/parser/Jackson2ParserPropertiesTest.java +deleted file mode 100644 +index 439267e92..000000000 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/parser/Jackson2ParserPropertiesTest.java ++++ /dev/null +@@ -1,97 +0,0 @@ +- +-package cz.habarta.typescript.generator.parser; +- +-import com.fasterxml.jackson.annotation.JsonProperty; +-import com.fasterxml.jackson.annotation.JsonPropertyOrder; +-import com.fasterxml.jackson.databind.BeanProperty; +-import cz.habarta.typescript.generator.Settings; +-import cz.habarta.typescript.generator.TestUtils; +-import cz.habarta.typescript.generator.TypeScriptGenerator; +-import java.util.Arrays; +-import java.util.List; +-import java.util.stream.Collectors; +-import org.junit.jupiter.api.Assertions; +-import org.junit.jupiter.api.Test; +- +- +-public class Jackson2ParserPropertiesTest { +- +- @JsonPropertyOrder({"password1", "id2"}) +- public static class UserOrdered { +- public String name; +- public String id1; +- public String id2; +- public String password1; +- public String password2; +- } +- +- @JsonPropertyOrder(alphabetic = true) +- public static class UserAlphabetic { +- public String name; +- public String id1; +- public String id2; +- public String password1; +- public String password2; +- } +- +- public static class UserIndexed { +- @JsonProperty(index = 5) public String name; +- @JsonProperty(index = 4) public String id1; +- @JsonProperty(index = 3) public String id2; +- @JsonProperty(index = 2) public String password1; +- @JsonProperty(index = 1) public String password2; +- } +- +- public static class User1 { +- @JsonProperty(access = JsonProperty.Access.READ_WRITE) public String name; +- @JsonProperty(access = JsonProperty.Access.READ_WRITE) public String id1; +- @JsonProperty(access = JsonProperty.Access.READ_WRITE) public String id2; +- @JsonProperty(access = JsonProperty.Access.READ_WRITE) public String password1; +- @JsonProperty(access = JsonProperty.Access.READ_WRITE) public String password2; +- } +- +- public static class User2 { +- @JsonProperty(access = JsonProperty.Access.READ_WRITE) public String name; +- @JsonProperty(access = JsonProperty.Access.READ_ONLY) public String id1; +- @JsonProperty(access = JsonProperty.Access.READ_ONLY) public String id2; +- @JsonProperty(access = JsonProperty.Access.WRITE_ONLY) public String password1; +- @JsonProperty(access = JsonProperty.Access.WRITE_ONLY) public String password2; +- } +- +- public static class User3 { +- @JsonProperty(access = JsonProperty.Access.READ_WRITE) public String name; +- @JsonProperty(access = JsonProperty.Access.WRITE_ONLY) public String password1; +- @JsonProperty(access = JsonProperty.Access.WRITE_ONLY) public String password2; +- @JsonProperty(access = JsonProperty.Access.READ_ONLY) public String id1; +- @JsonProperty(access = JsonProperty.Access.READ_ONLY) public String id2; +- } +- +- public static class User4 { +- @JsonProperty(access = JsonProperty.Access.WRITE_ONLY) public String password1; +- @JsonProperty(access = JsonProperty.Access.READ_ONLY) public String id1; +- @JsonProperty(access = JsonProperty.Access.WRITE_ONLY) public String password2; +- @JsonProperty(access = JsonProperty.Access.READ_ONLY) public String id2; +- @JsonProperty(access = JsonProperty.Access.READ_WRITE) public String name; +- } +- +- @Test +- public void testPropertyOrder() { +- Assertions.assertEquals(Arrays.asList("password1", "id2", "name", "id1", "password2"), getProperties(UserOrdered.class)); +- Assertions.assertEquals(Arrays.asList("id1", "id2", "name", "password1", "password2"), getProperties(UserAlphabetic.class)); +- Assertions.assertEquals(Arrays.asList("password2", "password1", "id2", "id1", "name"), getProperties(UserIndexed.class)); +- Assertions.assertEquals(Arrays.asList("name", "id1", "id2", "password1", "password2"), getProperties(User1.class)); +- Assertions.assertEquals(Arrays.asList("name", "id1", "id2", "password1", "password2"), getProperties(User2.class)); +- Assertions.assertEquals(Arrays.asList("name", "password1", "password2", "id1", "id2"), getProperties(User3.class)); +- Assertions.assertEquals(Arrays.asList("password1", "id1", "password2", "id2", "name"), getProperties(User4.class)); +- } +- +- private List getProperties(Class beanClass) { +- final Settings settings = TestUtils.settings(); +- final TypeScriptGenerator typeScriptGenerator = new TypeScriptGenerator(settings); +- final Jackson2Parser jackson2Parser = (Jackson2Parser) typeScriptGenerator.getModelParser(); +- final List properties = jackson2Parser.getBeanProperties(beanClass); +- final List names = properties.stream().map(BeanProperty::getName).collect(Collectors.toList()); +- return names; +- } +- +-} +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/parser/JaxrsApplicationParserTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/parser/JaxrsApplicationParserTest.java +deleted file mode 100644 +index fcc6d99f6..000000000 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/parser/JaxrsApplicationParserTest.java ++++ /dev/null +@@ -1,31 +0,0 @@ +- +-package cz.habarta.typescript.generator.parser; +- +-import jakarta.ws.rs.ApplicationPath; +-import org.junit.jupiter.api.Assertions; +-import org.junit.jupiter.api.Test; +- +- +-public class JaxrsApplicationParserTest { +- +- @jakarta.ws.rs.ApplicationPath("testJakarta") +- private static class JakartaRsClass {} +- +- @javax.ws.rs.ApplicationPath("testJavax") +- private static class JavaxRsClass {} +- +- @Test +- public void testJakartaAnnotation() { +- final ApplicationPath annotation = JaxrsApplicationParser.getRsAnnotation(JakartaRsClass.class, jakarta.ws.rs.ApplicationPath.class); +- Assertions.assertNotNull(annotation); +- Assertions.assertEquals("testJakarta", annotation.value()); +- } +- +- @Test +- public void testJavaxAnnotation() { +- final ApplicationPath annotation = JaxrsApplicationParser.getRsAnnotation(JavaxRsClass.class, jakarta.ws.rs.ApplicationPath.class); +- Assertions.assertNotNull(annotation); +- Assertions.assertEquals("testJavax", annotation.value()); +- } +- +-} +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/parser/JsonbParserTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/parser/JsonbParserTest.java +deleted file mode 100644 +index f7c9f0734..000000000 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/parser/JsonbParserTest.java ++++ /dev/null +@@ -1,348 +0,0 @@ +-package cz.habarta.typescript.generator.parser; +- +-import cz.habarta.typescript.generator.Input; +-import cz.habarta.typescript.generator.JsonLibrary; +-import cz.habarta.typescript.generator.OptionalProperties; +-import cz.habarta.typescript.generator.Settings; +-import cz.habarta.typescript.generator.TestUtils; +-import cz.habarta.typescript.generator.TypeScriptGenerator; +-import jakarta.json.JsonArray; +-import jakarta.json.JsonNumber; +-import jakarta.json.JsonObject; +-import jakarta.json.JsonString; +-import jakarta.json.JsonValue; +-import jakarta.json.bind.annotation.JsonbCreator; +-import jakarta.json.bind.annotation.JsonbProperty; +-import jakarta.json.bind.annotation.JsonbTransient; +-import java.lang.annotation.Retention; +-import java.lang.annotation.RetentionPolicy; +-import java.lang.reflect.Field; +-import java.lang.reflect.Method; +-import java.util.Collection; +-import java.util.Date; +-import java.util.List; +-import java.util.Map; +-import java.util.OptionalInt; +-import java.util.UUID; +-import org.checkerframework.checker.nullness.qual.Nullable; +-import org.junit.jupiter.api.Assertions; +-import org.junit.jupiter.api.BeforeEach; +-import org.junit.jupiter.api.Test; +- +-public class JsonbParserTest { +- +- private Settings settings; +- +- @BeforeEach +- public void before() { +- settings = TestUtils.settings(); +- settings.jsonLibrary = JsonLibrary.jsonb; +- settings.optionalProperties = OptionalProperties.useLibraryDefinition; +- } +- +- private static class JsonTypes { +- public JsonValue jsonValue; +- public JsonObject jsonObject; +- public JsonArray jsonArray; +- public JsonString jsonString; +- public JsonNumber jsonNumber; +- } +- +- private static class OverridenPropertyName { +- @JsonbProperty("$foo") +- int foo; +- } +- +- private static class OverridenPropertyNameOnGetter { +- int foo; +- +- @JsonbProperty("$foo") +- public int getFoo() { +- return foo; +- } +- } +- +- public static class DirectName { +- public int foo; +- } +- +- public static class OptionalWithGetter { +- private int foo; +- +- public int getFoo() { +- return foo; +- } +- } +- +- public static class Required { +- public final int foo; +- +- @JsonbCreator +- public Required(final int foo) { +- this.foo = foo; +- } +- } +- +- public static class RequiredOptional { +- public final int foo; +- +- @JsonbCreator +- public RequiredOptional(final OptionalInt foo) { +- this.foo = foo.orElse(1); +- } +- } +- +- public static class RequiredWithGetter { +- private final int foo; +- +- @JsonbCreator +- public RequiredWithGetter(final int foo) { +- this.foo = foo; +- } +- +- public int getFoo() { +- return foo; +- } +- } +- +- public static class NillableConstructorParameter { +- private final int foo; +- +- @JsonbCreator // we agree it is a stupid case but generator must respect user choice +- public NillableConstructorParameter(@JsonbProperty(value = "foo", nillable = true) final int foo) { +- this.foo = foo; +- } +- +- public int getFoo() { +- return foo; +- } +- } +- +- public static class ObjecWithRequiredProperty { +- @RequiredAnnotation +- public String foo; +- public String bar; +- } +- +- public static class PrimitiveObjectWithTheOtherObject { +- public char charVar1; +- public byte byteVar1; +- public short shortVar1; +- public int intVar1; +- public long longVar1; +- public float floatVar1; +- public double doubleVar1; +- public boolean booleanVar1; +- public String stringVar; +- public Character charVar2; +- public Byte byteVar2; +- public Short shortVar2; +- public Integer intVar2; +- public Long longVar2; +- public Float floatVar2; +- public Double doubleVar2; +- public Boolean booleanVar2; +- public UUID uuidVar; +- public Date dateVar; +- public Collection collectionVar; +- public Map mapVar; +- } +- +- public static class ObjectWithRequiredPropertyAndConstructor { +- public String foo; +- public String bar; +- +- @JsonbCreator +- public ObjectWithRequiredPropertyAndConstructor(@RequiredAnnotation final String foo, final String bar) {} +- } +- +- @Retention(RetentionPolicy.RUNTIME) +- public @interface RequiredAnnotation { +- } +- +- public static class ListOfNullableElementsField { +- public List<@Nullable String> foos; +- } +- +- public static class ListOfNullableElementsGetter { +- public List<@Nullable String> getFoos() { +- return null; +- } +- } +- +- @SuppressWarnings("unused") +- public static class ListOfNullableElementsConstructor { +- private List foos; +- +- @JsonbCreator +- public ListOfNullableElementsConstructor(List<@Nullable String> foos) { +- this.foos = foos; +- } +- } +- +- @Test +- public void testJsonTypes() { +- Assertions.assertEquals( +- "interface JsonTypes {\n" + +- " jsonArray?: any[];\n" + +- " jsonNumber?: number;\n" + +- " jsonObject?: { [index: string]: any };\n" + +- " jsonString?: string;\n" + +- " jsonValue?: any;\n" + +- "}", +- generate(settings, JsonTypes.class).trim()); +- } +- +- @Test +- public void testNullabilityField() { +- settings.nullableAnnotations.add(Nullable.class); +- final String output = generate(settings, ListOfNullableElementsField.class); +- Assertions.assertTrue(output.contains(" foos?: (string | null)[];"), output); +- } +- +- @Test +- public void testNullabilityGetter() { +- settings.nullableAnnotations.add(Nullable.class); +- final String output = generate(settings, ListOfNullableElementsGetter.class); +- Assertions.assertTrue(output.contains(" foos?: (string | null)[];"), output); +- } +- +- @Test +- public void testNullabilityConstructor() { +- settings.nullableAnnotations.add(Nullable.class); +- final String output = generate(settings, ListOfNullableElementsConstructor.class); +- Assertions.assertTrue(output.contains(" foos: (string | null)[];"), output); +- } +- +- @Test +- public void testRequiredPropertyMarkedByAnnotation() { +- settings.optionalProperties = OptionalProperties.useSpecifiedAnnotations; +- settings.requiredAnnotations.add(RequiredAnnotation.class); +- final String output = generate(settings, ObjecWithRequiredProperty.class); +- Assertions.assertTrue(output.contains(" foo:"), output); +- Assertions.assertTrue(output.contains(" bar?:"), output); +- } +- +- @Test +- public void testRequiredPropertyMarkedByAnnotationAndConstructorFactory() { +- settings.optionalProperties = OptionalProperties.useSpecifiedAnnotations; +- settings.requiredAnnotations.add(RequiredAnnotation.class); +- final String output = generate(settings, ObjectWithRequiredPropertyAndConstructor.class); +- Assertions.assertTrue(output.contains(" foo:"), output); +- Assertions.assertTrue(output.contains(" bar?:"), output); +- } +- +- @Test +- public void testRequiredPropertyMarkedByAnnotationWithPrimitivePropertiesRequired() { +- settings.optionalProperties = OptionalProperties.useSpecifiedAnnotations; +- settings.requiredAnnotations.add(RequiredAnnotation.class); +- settings.primitivePropertiesRequired = true; +- final String output = generate(settings, PrimitiveObjectWithTheOtherObject.class); +- Assertions.assertTrue(output.contains("charVar1: string;")); +- Assertions.assertTrue(output.contains("byteVar1: number;")); +- Assertions.assertTrue(output.contains("shortVar1: number;")); +- Assertions.assertTrue(output.contains("intVar1: number;")); +- Assertions.assertTrue(output.contains("longVar1: number;")); +- Assertions.assertTrue(output.contains("floatVar1: number;")); +- Assertions.assertTrue(output.contains("doubleVar1: number;")); +- Assertions.assertTrue(output.contains("booleanVar1: boolean;")); +- Assertions.assertTrue(output.contains("stringVar?: string;")); +- Assertions.assertTrue(output.contains("charVar2?: string;")); +- Assertions.assertTrue(output.contains("byteVar2?: number;")); +- Assertions.assertTrue(output.contains("shortVar2?: number;")); +- Assertions.assertTrue(output.contains("intVar2?: number;")); +- Assertions.assertTrue(output.contains("longVar2?: number;")); +- Assertions.assertTrue(output.contains("floatVar2?: number;")); +- Assertions.assertTrue(output.contains("doubleVar2?: number;")); +- Assertions.assertTrue(output.contains("booleanVar2?: boolean;")); +- Assertions.assertTrue(output.contains("uuidVar?: string;")); +- Assertions.assertTrue(output.contains("dateVar?: Date;")); +- Assertions.assertTrue(output.contains("collectionVar?: string[];")); +- Assertions.assertTrue(output.contains("mapVar?: { [index: string]: string };")); +- } +- +- @Test +- public void tesJsonbProperty() { +- final String output = generate(settings, OverridenPropertyName.class); +- Assertions.assertTrue(output.contains(" $foo?:"), output); +- } +- +- @Test +- public void tesJsonbPropertyOnMethod() { +- final String output = generate(settings, OverridenPropertyNameOnGetter.class); +- Assertions.assertTrue(output.contains(" $foo?:"), output); +- Assertions.assertFalse(output.contains(" foo?:"), output); +- } +- @Test +- public void tesImplicitName() { +- final String output = generate(settings, DirectName.class); +- Assertions.assertTrue(output.contains(" foo?:"), output); +- } +- @Test +- public void optionality() { +- { +- final String output = generate(settings, DirectName.class); +- Assertions.assertTrue(output.contains(" foo?: number"), output); +- } +- { +- final String output = generate(settings, OptionalWithGetter.class); +- Assertions.assertTrue(output.contains(" foo?: number"), output); +- } +- { +- final String output = generate(settings, Required.class); +- Assertions.assertTrue(output.contains(" foo: number"), output); +- } +- { +- final String output = generate(settings, RequiredWithGetter.class); +- Assertions.assertTrue(output.contains(" foo: number"), output); +- } +- { +- final String output = generate(settings, RequiredOptional.class); +- Assertions.assertTrue(output.contains(" foo?: number"), output); +- } +- { +- final String output = generate(settings, NillableConstructorParameter.class); +- Assertions.assertTrue(output.contains(" foo?: number"), output); +- } +- } +- +- public static class TransientField { +- @JsonbTransient +- public String foo; +- } +- +- @Test +- public void testTransientField() { +- final String output = generate(settings, TransientField.class); +- Assertions.assertFalse(output.contains("foo"), output); +- } +- +- private String generate(final Settings settings, Class cls) { +- return new TypeScriptGenerator(settings).generateTypeScript(Input.from(cls)); +- } +- +- @javax.json.bind.annotation.JsonbVisibility(HideAllVisibilityStrategy.class) +- public class SecretDataJavax { +- public String password; +- } +- +- public static class HideAllVisibilityStrategy implements javax.json.bind.config.PropertyVisibilityStrategy { +- +- @Override +- public boolean isVisible(Field field) { +- return false; +- } +- +- @Override +- public boolean isVisible(Method method) { +- return false; +- } +- } +- +- @Test +- public void testJavaxVisibilityStrategy() { +- final String output = generate(settings, SecretDataJavax.class); +- Assertions.assertFalse(output.contains("password"), output); +- } +- +-} +diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/yield/KeywordInPackage.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/yield/KeywordInPackage.java +deleted file mode 100644 +index f23fc483a..000000000 +--- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/yield/KeywordInPackage.java ++++ /dev/null +@@ -1,6 +0,0 @@ +- +-package cz.habarta.typescript.generator.yield; +- +- +-public class KeywordInPackage { +-} +diff --git a/typescript-generator-core/src/test/javadoc/test-javadoc.xml b/typescript-generator-core/src/test/javadoc/test-javadoc.xml +deleted file mode 100644 +index b1c3175e5..000000000 +--- a/typescript-generator-core/src/test/javadoc/test-javadoc.xml ++++ /dev/null +@@ -1,12351 +0,0 @@ +- +- +- +- +- +- +- +- RUNTIME +- +- +- +- +- +- +- +- RUNTIME +- +- +- +- +- +- java.lang.annotation.ElementType.TYPE +- +- +- +- +- +- +- +- RUNTIME +- +- +- +- +- +- java.lang.annotation.ElementType.TYPE_USE +- java.lang.annotation.ElementType.TYPE_PARAMETER +- +- +- +- +- +- +- +- RUNTIME +- +- +- +- +- +- +- +- RUNTIME +- +- +- +- +- +- +- +- RUNTIME +- +- +- +- +- +- java.lang.annotation.ElementType.TYPE_USE +- java.lang.annotation.ElementType.TYPE_PARAMETER +- +- +- +- +- +- +- +- RUNTIME +- +- +- +- +- +- +- +- RUNTIME +- +- +- +- +- +- +- +- RUNTIME +- +- +- +- +- +- java.lang.annotation.ElementType.TYPE +- +- +- +- +- +- +- +- RUNTIME +- +- +- +- +- +- +- +- +- +- +- +- Documentation for DummyEnum. +- +- +- +- +- ff0000 +- +- +- 00ff00 +- +- +- 0000ff +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- OBJECT +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- NUMBER_INT +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- Documentation for SomeCode enum. +- +- +- +- +- Documentation for VALUE0. +- +- +- Documentation for VALUE1. +- +- +- +- +- NUMBER_INT +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- _A +- +- +- +- +- +- +- +- _B +- +- +- +- +- +- +- +- _C +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- _A +- +- +- +- +- +- +- +- _B +- +- +- +- +- +- +- +- _C +- +- +- +- +- +- Documentation for SomeCode enum. +- +- +- +- +- Documentation for VALUE0. +- +- +- Documentation for VALUE1. +- +- +- +- +- NUMBER_INT +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- OBJECT +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- NUMBER_INT +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- Documentation for DummyEnum. +- +- +- +- +- ff0000 +- +- +- 00ff00 +- +- +- 0000ff +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- cz.habarta.typescript.generator.CustomTypeMappingTest.CodedValueSerializer +- +- +- +- +- +- +- +- +- +- +- java.io.Serializable +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- NAME +- +- +- +- kind +- +- +- +- +- +- @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value=cz.habarta.typescript.generator.ImmutablesTest.Square.class, name="square") +- @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value=cz.habarta.typescript.generator.ImmutablesTest.Rectangle.class, name="rectangle") +- @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value=cz.habarta.typescript.generator.ImmutablesTest.Circle.class, name="circle") +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- cz.habarta.typescript.generator.ImmutableCircle +- +- +- +- +- +- +- +- +- +- cz.habarta.typescript.generator.ImmutableCircle +- +- +- +- +- +- +- +- +- +- +- +- +- CLASS +- +- +- +- PROPERTY +- +- +- +- @class +- +- +- +- +- Documentation for InterfaceWithJavadoc. +- +- Documentation for interface getter property. +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- id +- +- +- +- +- +- +- +- +- {id} +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- /test +- +- +- +- +- +- +- /account +- +- +- +- +- +- +- +- +- +- +- +- +- id +- +- +- +- +- +- +- +- +- {id} +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- /test +- +- +- +- +- +- +- /account +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- id +- +- +- +- +- +- +- +- +- {id} +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- /test +- +- +- +- +- +- +- /account +- +- +- +- +- +- +- +- +- +- +- +- +- id +- +- +- +- +- +- +- +- +- {id} +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- /test +- +- +- +- +- +- +- /account +- +- +- +- +- Documentation for InterfaceWithJavadoc. +- +- Documentation for interface getter property. +- +- +- +- +- +- +- +- +- +- +- CLASS +- +- +- +- PROPERTY +- +- +- +- @class +- +- +- +- +- +- +- +- +- +- +- +- +- NAME +- +- +- +- kind +- +- +- +- +- +- @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value=cz.habarta.typescript.generator.ImmutablesTest.Square.class, name="square") +- @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value=cz.habarta.typescript.generator.ImmutablesTest.Rectangle.class, name="rectangle") +- @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value=cz.habarta.typescript.generator.ImmutablesTest.Circle.class, name="circle") +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- cz.habarta.typescript.generator.ImmutableCircle +- +- +- +- +- +- +- +- +- +- cz.habarta.typescript.generator.ImmutableCircle +- +- +- +- +- +- java.io.Serializable +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- cz.habarta.typescript.generator.CustomTypeMappingTest.CodedValueSerializer +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- unused +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- unused +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- Tests that custom mapping a superclass to a primitive doesn't cause errors. +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- unused +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- unused +- +- +- +- +- +- +- +- +- +- +- +- +- +- rawtypes +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- NAME +- +- +- +- kind +- +- +- +- PROPERTY +- +- +- +- +- +- @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value=cz.habarta.typescript.generator.DuplicatePropertyTest.DuplicateKind1.class, name="kind_1") +- @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value=cz.habarta.typescript.generator.DuplicatePropertyTest.DuplicateKind2.class, name="kind_2") +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- unused +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- unused +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- unused +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- cz.habarta.typescript.generator.ImmutableRectangle +- +- +- +- +- +- width +- height +- +- +- +- +- +- +- +- +- +- cz.habarta.typescript.generator.ImmutableRectangle +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- {index} - {0} +- +- +- +- +- +- data +- +- +- +- +- +- +- +- +- +- +- +- {index} - {0} +- +- +- +- +- +- data +- +- +- +- +- +- +- +- +- +- +- +- {index} - {0} +- +- +- +- +- +- data +- +- +- +- +- +- +- unused +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- unused +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- Test that root type name in a hirarchy is included iff root type itself is not abstract +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- NAME +- +- +- +- PROPERTY +- +- +- +- type +- +- +- +- +- +- @com.fasterxml.jackson.annotation.JsonSubTypes.Type(cz.habarta.typescript.generator.Jackson2DeserializableRootType.NonAbstractRootSub.class) +- +- +- +- +- +- rootType +- +- +- +- +- +- +- +- +- +- subType +- +- +- +- +- +- +- +- +- +- NAME +- +- +- +- PROPERTY +- +- +- +- type +- +- +- +- +- +- @com.fasterxml.jackson.annotation.JsonSubTypes.Type(cz.habarta.typescript.generator.Jackson2DeserializableRootType.AbstractRootSub.class) +- +- +- +- +- +- rootType +- +- +- +- +- +- +- +- +- +- subType +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- unused +- +- +- +- +- +- +- +- +- +- +- +- changedNameProperty +- +- +- +- +- +- +- +- +- +- +- NAME +- +- +- +- PROPERTY +- +- +- +- type +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- true +- +- +- +- +- +- +- +- +- true +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- false +- +- +- +- +- +- +- +- +- true +- +- +- +- +- +- +- +- +- +- +- +- +- false +- +- +- +- +- +- +- +- +- true +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- cz.habarta.typescript.generator.Jackson2ParserTest.IdSerializer +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- cz.habarta.typescript.generator.Jackson2ParserTest.IdSerializer +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- cz.habarta.typescript.generator.Jackson2ParserTest.IdSerializer +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- cz.habarta.typescript.generator.Jackson2ParserTest.LocalDateTimeJsonDeserializer +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- a +- +- +- +- +- +- +- +- +- +- b +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- @com.fasterxml.jackson.annotation.JsonSubTypes.Type(cz.habarta.typescript.generator.Jackson2PolymorphismTest.Y.class) +- @com.fasterxml.jackson.annotation.JsonSubTypes.Type(cz.habarta.typescript.generator.Jackson2PolymorphismTest.X.class) +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- Documentation for ClassWithJavadoc. First line. +- Second line. +- +- +- +- Documentation for getter property. +- +- +- +- +- Documentation for documentedField. +- +- +- +- Documentation for documentedEnumField. +- +- +- +- Documentation for renamed field. +- +- +- +- newName +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- This class comes with an embedded example! +- +- <pre>{@code +- public class Example { +- // indentation and line breaks are kept +- +- {@literal @}SuppressWarnings +- public List<String> generics() { +- return null; +- } +- } +- }</pre> +- +- +- +- +- +- +- +- Class documentation <br> +- ------------------- <br/> +- Some documentation <br /> for this class.<br> +- +- +- +- +- First sentence. +- +- <p> Long +- paragraph </p> +- +- <p>Second +- paragraph</p> +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- unused +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- api +- +- +- +- +- +- +- +- +- +- +- +- +- name +- +- +- +- +- +- +- +- +- search-limit +- +- +- +- +- +- +- +- +- +- +- +- +- +- { organizationCode : [a-z]+ }/{organizationId} +- +- +- +- +- +- +- OrgApi +- +- +- +- +- +- organizations +- +- +- +- +- +- +- +- organizationId +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- organizationCode +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- Returns person with specified ID. +- +- +- +- +- Comment in swagger annotation +- +- +- +- +- +- @io.swagger.annotations.ApiResponse(code=200, message="ok") +- @io.swagger.annotations.ApiResponse(code=400, message="not ok") +- +- +- +- +- +- +- +- +- +- +- address-id +- +- +- +- +- +- +- +- +- address/{address-id} +- +- +- +- +- +- +- +- people/{personId} +- +- +- +- +- +- +- +- personId +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- search +- +- +- +- +- +- +- +- +- search +- +- +- +- +- +- +- +- +- +- person-id +- +- +- +- +- +- +- +- +- {person-id:.+} +- +- +- +- +- +- +- conflict +- +- +- +- +- +- application/json +- +- +- +- +- +- application/json +- +- +- +- +- +- +- +- +- +- +- +- +- target +- +- +- +- +- +- +- +- +- +- +- somePath +- +- +- +- +- +- +- enum-query-param +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- description +- +- +- +- +- +- +- +- +- +- +- +- +- +- class +- +- +- +- +- +- +- +- +- +- +- /logs/{class} +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- message +- +- +- +- +- +- +- +- +- +- +- +- bean-param +- +- +- +- +- +- application/json +- +- +- +- +- +- +- +- +- +- +- +- +- id +- +- +- +- +- +- +- +- +- {id: [0-9]{1,99}} +- +- +- +- +- +- +- objects +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- unused +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- api +- +- +- +- +- +- +- +- +- +- +- +- +- name +- +- +- +- +- +- +- +- +- search-limit +- +- +- +- +- +- +- +- +- +- +- +- +- +- { organizationCode : [a-z]+ }/{organizationId} +- +- +- +- +- +- +- OrgApi +- +- +- +- +- +- organizations +- +- +- +- +- +- +- +- organizationId +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- organizationCode +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- Returns person with specified ID. +- +- +- +- +- Comment in swagger annotation +- +- +- +- +- +- @io.swagger.annotations.ApiResponse(code=200, message="ok") +- @io.swagger.annotations.ApiResponse(code=400, message="not ok") +- +- +- +- +- +- +- +- +- +- +- address-id +- +- +- +- +- +- +- +- +- address/{address-id} +- +- +- +- +- +- +- +- people/{personId} +- +- +- +- +- +- +- +- personId +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- search +- +- +- +- +- +- +- +- +- search +- +- +- +- +- +- +- +- +- +- person-id +- +- +- +- +- +- +- +- +- {person-id:.+} +- +- +- +- +- +- +- conflict +- +- +- +- +- +- application/json +- +- +- +- +- +- application/json +- +- +- +- +- +- +- +- +- +- +- +- +- target +- +- +- +- +- +- +- +- +- +- +- somePath +- +- +- +- +- +- +- enum-query-param +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- description +- +- +- +- +- +- +- +- +- +- +- +- +- +- class +- +- +- +- +- +- +- +- +- +- +- /logs/{class} +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- message +- +- +- +- +- +- +- +- +- +- +- +- bean-param +- +- +- +- +- +- application/json +- +- +- +- +- +- +- +- +- +- +- +- +- id +- +- +- +- +- +- +- +- +- {id: [0-9]{1,99}} +- +- +- +- +- +- +- objects +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- typescript2java +- +- +- +- +- +- +- unused +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- A +- +- +- +- A +- +- +- +- +- +- +- +- +- B +- +- +- +- B +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- _ +- +- +- +- 2 +- +- +- +- +- +- +- +- +- false +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- cz.habarta.typescript.generator.JsonViewTest.Views.BaseConfig +- cz.habarta.typescript.generator.JsonViewTest.Views.REST +- +- +- +- +- +- +- +- +- +- +- +- +- cz.habarta.typescript.generator.JsonViewTest.Views.BaseConfig +- cz.habarta.typescript.generator.JsonViewTest.Views.REST +- +- +- +- +- +- +- +- +- +- +- +- +- cz.habarta.typescript.generator.JsonViewTest.Views.Exclude +- +- +- +- +- +- +- +- +- +- +- +- +- cz.habarta.typescript.generator.JsonViewTest.Views.REST +- +- +- +- +- +- +- +- +- +- +- +- +- cz.habarta.typescript.generator.JsonViewTest.Views.BaseConfig +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- cz.habarta.typescript.generator.JsonViewTest.Views.BaseConfig +- cz.habarta.typescript.generator.JsonViewTest.Views.REST +- +- +- +- +- +- +- +- +- +- +- +- +- cz.habarta.typescript.generator.JsonViewTest.Views.BaseConfig +- cz.habarta.typescript.generator.JsonViewTest.Views.REST +- +- +- +- +- +- +- +- +- +- +- +- +- cz.habarta.typescript.generator.JsonViewTest.Views.Exclude +- +- +- +- +- +- +- +- +- +- +- +- +- cz.habarta.typescript.generator.JsonViewTest.Views.REST +- +- +- +- +- +- +- +- +- +- +- +- +- cz.habarta.typescript.generator.JsonViewTest.Views.BaseConfig +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- NATURAL +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- OBJECT +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- unused +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- unused +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- unused +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- unused +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- unused +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- unused +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- true +- +- +- +- +- +- +- +- +- +- +- READ_ONLY +- +- +- +- +- +- +- +- +- WRITE_ONLY +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- deprecation +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- unused +- +- +- +- +- +- +- +- +- +- +- NAME +- +- +- +- type +- +- +- +- +- +- @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value=cz.habarta.typescript.generator.TaggedUnionsTest.InProgressResult.class, name="in-progress") +- @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value=cz.habarta.typescript.generator.TaggedUnionsTest.FinishedResult.class, name="finished") +- @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value=cz.habarta.typescript.generator.TaggedUnionsTest.FailedResult.class, name="error") +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- NAME +- +- +- +- type +- +- +- +- +- +- @com.fasterxml.jackson.annotation.JsonSubTypes.Type(cz.habarta.typescript.generator.TaggedUnionsTest.FlippedGenericParameters.class) +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- NAME +- +- +- +- PROPERTY +- +- +- +- +- +- @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value=cz.habarta.typescript.generator.TaggedUnionsTest.Foo.class, name="Foo") +- @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value=cz.habarta.typescript.generator.TaggedUnionsTest.Bar.class, name="Bar") +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- unused +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- Immutable implementation of {@link ImmutablesTest.Circle}. +- <p> +- Use the builder to create immutable instances: +- {@code new ImmutablesTest.Circle.Builder()}. +- +- +- +- +- +- +- +- +- radius +- +- +- +- +- +- Copy the current immutable object by setting a value for the {@link ImmutablesTest.Circle#radius() radius} attribute. +- A value strict bits equality used to prevent copying of the same value by returning {@code this}. +- +- +- +- +- +- +- +- +- This instance is equal to all instances of {@code ImmutableCircle} that have equal attribute values. +- +- +- +- +- +- +- +- +- +- Computes a hash code from attributes: {@code radius}. +- +- +- +- +- +- Prints the immutable value {@code Circle} with attribute values. +- +- +- +- +- +- Creates an immutable copy of a {@link ImmutablesTest.Circle} value. +- Uses accessors to get values to initialize the new immutable instance. +- If an instance is already immutable, it is returned as is. +- +- +- +- +- +- +- +- +- +- +- ImmutablesTest.Circle +- +- +- +- Immutables +- +- +- +- +- +- all +- +- +- +- +- +- +- +- org.immutables.processor.ProxyProcessor +- +- +- +- +- +- +- Builds instances of type {@link ImmutableCircle ImmutableCircle}. +- Initialize attributes and then invoke the {@link #build()} method to create an +- immutable instance. +- <p><em>{@code Builder} is not thread-safe and generally should not be stored in a field or collection, +- but instead used immediately to create instances.</em> +- +- +- Creates a builder for {@link ImmutableCircle ImmutableCircle} instances. +- <pre> +- new ImmutablesTest.Circle.Builder() +- .radius(double) // required {@link ImmutablesTest.Circle#radius() radius} +- .build(); +- </pre> +- +- +- Fill a builder with attribute values from the provided {@code Circle} instance. +- Regular attribute values will be replaced with those from the given instance. +- Absent optional values will not replace present values. +- +- +- +- +- +- +- +- +- +- Initializes the value for the {@link ImmutablesTest.Circle#radius() radius} attribute. +- +- +- +- +- +- +- +- +- +- +- radius +- +- +- +- +- Builds a new {@link ImmutableCircle ImmutableCircle}. +- +- +- +- +- +- +- +- ImmutablesTest.Circle +- +- +- +- Immutables +- +- +- +- +- +- Immutable implementation of {@link ImmutablesTest.Rectangle}. +- <p> +- Use the builder to create immutable instances: +- {@code new ImmutablesTest.Rectangle.Builder()}. +- +- +- +- +- +- +- +- width +- +- +- +- +- +- +- +- +- +- +- height +- +- +- +- +- +- Copy the current immutable object by setting a value for the {@link ImmutablesTest.Rectangle#width() width} attribute. +- A value strict bits equality used to prevent copying of the same value by returning {@code this}. +- +- +- +- +- +- +- +- +- Copy the current immutable object by setting a value for the {@link ImmutablesTest.Rectangle#height() height} attribute. +- A value strict bits equality used to prevent copying of the same value by returning {@code this}. +- +- +- +- +- +- +- +- +- This instance is equal to all instances of {@code ImmutableRectangle} that have equal attribute values. +- +- +- +- +- +- +- +- +- +- Computes a hash code from attributes: {@code width}, {@code height}. +- +- +- +- +- +- Prints the immutable value {@code Rectangle} with attribute values. +- +- +- +- +- +- Creates an immutable copy of a {@link ImmutablesTest.Rectangle} value. +- Uses accessors to get values to initialize the new immutable instance. +- If an instance is already immutable, it is returned as is. +- +- +- +- +- +- +- +- +- +- +- ImmutablesTest.Rectangle +- +- +- +- Immutables +- +- +- +- +- +- all +- +- +- +- +- +- +- +- org.immutables.processor.ProxyProcessor +- +- +- +- +- +- +- Builds instances of type {@link ImmutableRectangle ImmutableRectangle}. +- Initialize attributes and then invoke the {@link #build()} method to create an +- immutable instance. +- <p><em>{@code Builder} is not thread-safe and generally should not be stored in a field or collection, +- but instead used immediately to create instances.</em> +- +- +- Creates a builder for {@link ImmutableRectangle ImmutableRectangle} instances. +- <pre> +- new ImmutablesTest.Rectangle.Builder() +- .width(double) // required {@link ImmutablesTest.Rectangle#width() width} +- .height(double) // required {@link ImmutablesTest.Rectangle#height() height} +- .build(); +- </pre> +- +- +- Fill a builder with attribute values from the provided {@code Rectangle} instance. +- Regular attribute values will be replaced with those from the given instance. +- Absent optional values will not replace present values. +- +- +- +- +- +- +- +- +- +- Initializes the value for the {@link ImmutablesTest.Rectangle#width() width} attribute. +- +- +- +- +- +- +- +- +- +- +- width +- +- +- +- +- Initializes the value for the {@link ImmutablesTest.Rectangle#height() height} attribute. +- +- +- +- +- +- +- +- +- +- +- height +- +- +- +- +- Builds a new {@link ImmutableRectangle ImmutableRectangle}. +- +- +- +- +- +- +- +- ImmutablesTest.Rectangle +- +- +- +- Immutables +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- unused +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- unused +- +- +- +- +- +- +- +- +- +- +- NAME +- +- +- +- type +- +- +- +- +- +- @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value=cz.habarta.typescript.generator.TaggedUnionsTest.InProgressResult.class, name="in-progress") +- @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value=cz.habarta.typescript.generator.TaggedUnionsTest.FinishedResult.class, name="finished") +- @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value=cz.habarta.typescript.generator.TaggedUnionsTest.FailedResult.class, name="error") +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- NAME +- +- +- +- type +- +- +- +- +- +- @com.fasterxml.jackson.annotation.JsonSubTypes.Type(cz.habarta.typescript.generator.TaggedUnionsTest.FlippedGenericParameters.class) +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- NAME +- +- +- +- PROPERTY +- +- +- +- +- +- @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value=cz.habarta.typescript.generator.TaggedUnionsTest.Foo.class, name="Foo") +- @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value=cz.habarta.typescript.generator.TaggedUnionsTest.Bar.class, name="Bar") +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- deprecation +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- true +- +- +- +- +- +- +- +- +- +- +- READ_ONLY +- +- +- +- +- +- +- +- +- WRITE_ONLY +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- unused +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- unused +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- unused +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- unused +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- unused +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- unused +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- NATURAL +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- OBJECT +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- cz.habarta.typescript.generator.JsonViewTest.Views.BaseConfig +- cz.habarta.typescript.generator.JsonViewTest.Views.REST +- +- +- +- +- +- +- +- +- +- +- +- +- cz.habarta.typescript.generator.JsonViewTest.Views.BaseConfig +- cz.habarta.typescript.generator.JsonViewTest.Views.REST +- +- +- +- +- +- +- +- +- +- +- +- +- cz.habarta.typescript.generator.JsonViewTest.Views.Exclude +- +- +- +- +- +- +- +- +- +- +- +- +- cz.habarta.typescript.generator.JsonViewTest.Views.REST +- +- +- +- +- +- +- +- +- +- +- +- +- cz.habarta.typescript.generator.JsonViewTest.Views.BaseConfig +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- cz.habarta.typescript.generator.JsonViewTest.Views.BaseConfig +- cz.habarta.typescript.generator.JsonViewTest.Views.REST +- +- +- +- +- +- +- +- +- +- +- +- +- cz.habarta.typescript.generator.JsonViewTest.Views.BaseConfig +- cz.habarta.typescript.generator.JsonViewTest.Views.REST +- +- +- +- +- +- +- +- +- +- +- +- +- cz.habarta.typescript.generator.JsonViewTest.Views.Exclude +- +- +- +- +- +- +- +- +- +- +- +- +- cz.habarta.typescript.generator.JsonViewTest.Views.REST +- +- +- +- +- +- +- +- +- +- +- +- +- cz.habarta.typescript.generator.JsonViewTest.Views.BaseConfig +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- A +- +- +- +- A +- +- +- +- +- +- +- +- +- B +- +- +- +- B +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- _ +- +- +- +- 2 +- +- +- +- +- +- +- +- +- false +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- typescript2java +- +- +- +- +- +- +- unused +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- unused +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- api +- +- +- +- +- +- +- +- +- +- +- +- +- name +- +- +- +- +- +- +- +- +- search-limit +- +- +- +- +- +- +- +- +- +- +- +- +- +- { organizationCode : [a-z]+ }/{organizationId} +- +- +- +- +- +- +- OrgApi +- +- +- +- +- +- organizations +- +- +- +- +- +- +- +- organizationId +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- organizationCode +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- Returns person with specified ID. +- +- +- +- +- Comment in swagger annotation +- +- +- +- +- +- @io.swagger.annotations.ApiResponse(code=200, message="ok") +- @io.swagger.annotations.ApiResponse(code=400, message="not ok") +- +- +- +- +- +- +- +- +- +- +- address-id +- +- +- +- +- +- +- +- +- address/{address-id} +- +- +- +- +- +- +- +- people/{personId} +- +- +- +- +- +- +- +- personId +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- search +- +- +- +- +- +- +- +- +- search +- +- +- +- +- +- +- +- +- +- person-id +- +- +- +- +- +- +- +- +- {person-id:.+} +- +- +- +- +- +- +- conflict +- +- +- +- +- +- application/json +- +- +- +- +- +- application/json +- +- +- +- +- +- +- +- +- +- +- +- +- target +- +- +- +- +- +- +- +- +- +- +- somePath +- +- +- +- +- +- +- enum-query-param +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- description +- +- +- +- +- +- +- +- +- +- +- +- +- +- class +- +- +- +- +- +- +- +- +- +- +- /logs/{class} +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- message +- +- +- +- +- +- +- +- +- +- +- +- bean-param +- +- +- +- +- +- application/json +- +- +- +- +- +- +- +- +- +- +- +- +- id +- +- +- +- +- +- +- +- +- {id: [0-9]{1,99}} +- +- +- +- +- +- +- objects +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- unused +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- api +- +- +- +- +- +- +- +- +- +- +- +- +- name +- +- +- +- +- +- +- +- +- search-limit +- +- +- +- +- +- +- +- +- +- +- +- +- +- { organizationCode : [a-z]+ }/{organizationId} +- +- +- +- +- +- +- OrgApi +- +- +- +- +- +- organizations +- +- +- +- +- +- +- +- organizationId +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- organizationCode +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- Returns person with specified ID. +- +- +- +- +- Comment in swagger annotation +- +- +- +- +- +- @io.swagger.annotations.ApiResponse(code=200, message="ok") +- @io.swagger.annotations.ApiResponse(code=400, message="not ok") +- +- +- +- +- +- +- +- +- +- +- address-id +- +- +- +- +- +- +- +- +- address/{address-id} +- +- +- +- +- +- +- +- people/{personId} +- +- +- +- +- +- +- +- personId +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- search +- +- +- +- +- +- +- +- +- search +- +- +- +- +- +- +- +- +- +- person-id +- +- +- +- +- +- +- +- +- {person-id:.+} +- +- +- +- +- +- +- conflict +- +- +- +- +- +- application/json +- +- +- +- +- +- application/json +- +- +- +- +- +- +- +- +- +- +- +- +- target +- +- +- +- +- +- +- +- +- +- +- somePath +- +- +- +- +- +- +- enum-query-param +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- description +- +- +- +- +- +- +- +- +- +- +- +- +- +- class +- +- +- +- +- +- +- +- +- +- +- /logs/{class} +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- message +- +- +- +- +- +- +- +- +- +- +- +- bean-param +- +- +- +- +- +- application/json +- +- +- +- +- +- +- +- +- +- +- +- +- id +- +- +- +- +- +- +- +- +- {id: [0-9]{1,99}} +- +- +- +- +- +- +- objects +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- Documentation for ClassWithJavadoc. First line. +- Second line. +- +- +- +- Documentation for getter property. +- +- +- +- +- Documentation for documentedField. +- +- +- +- Documentation for documentedEnumField. +- +- +- +- Documentation for renamed field. +- +- +- +- newName +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- This class comes with an embedded example! +- +- <pre>{@code +- public class Example { +- // indentation and line breaks are kept +- +- {@literal @}SuppressWarnings +- public List<String> generics() { +- return null; +- } +- } +- }</pre> +- +- +- +- +- +- +- +- Class documentation <br> +- ------------------- <br/> +- Some documentation <br /> for this class.<br> +- +- +- +- +- First sentence. +- +- <p> Long +- paragraph </p> +- +- <p>Second +- paragraph</p> +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- @com.fasterxml.jackson.annotation.JsonSubTypes.Type(cz.habarta.typescript.generator.Jackson2PolymorphismTest.Y.class) +- @com.fasterxml.jackson.annotation.JsonSubTypes.Type(cz.habarta.typescript.generator.Jackson2PolymorphismTest.X.class) +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- unused +- +- +- +- +- +- +- +- +- +- +- +- changedNameProperty +- +- +- +- +- +- +- +- +- +- +- NAME +- +- +- +- PROPERTY +- +- +- +- type +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- true +- +- +- +- +- +- +- +- +- true +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- false +- +- +- +- +- +- +- +- +- true +- +- +- +- +- +- +- +- +- +- +- +- +- false +- +- +- +- +- +- +- +- +- true +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- cz.habarta.typescript.generator.Jackson2ParserTest.IdSerializer +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- cz.habarta.typescript.generator.Jackson2ParserTest.IdSerializer +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- cz.habarta.typescript.generator.Jackson2ParserTest.IdSerializer +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- cz.habarta.typescript.generator.Jackson2ParserTest.LocalDateTimeJsonDeserializer +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- a +- +- +- +- +- +- +- +- +- +- b +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- Test that root type name in a hirarchy is included iff root type itself is not abstract +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- NAME +- +- +- +- PROPERTY +- +- +- +- type +- +- +- +- +- +- @com.fasterxml.jackson.annotation.JsonSubTypes.Type(cz.habarta.typescript.generator.Jackson2DeserializableRootType.NonAbstractRootSub.class) +- +- +- +- +- +- rootType +- +- +- +- +- +- +- +- +- +- subType +- +- +- +- +- +- +- +- +- +- NAME +- +- +- +- PROPERTY +- +- +- +- type +- +- +- +- +- +- @com.fasterxml.jackson.annotation.JsonSubTypes.Type(cz.habarta.typescript.generator.Jackson2DeserializableRootType.AbstractRootSub.class) +- +- +- +- +- +- rootType +- +- +- +- +- +- +- +- +- +- subType +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- unused +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- {index} - {0} +- +- +- +- +- +- data +- +- +- +- +- +- +- +- +- +- +- +- {index} - {0} +- +- +- +- +- +- data +- +- +- +- +- +- +- +- +- +- +- +- {index} - {0} +- +- +- +- +- +- data +- +- +- +- +- +- +- unused +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- cz.habarta.typescript.generator.ImmutableRectangle +- +- +- +- +- +- width +- height +- +- +- +- +- +- +- +- +- +- cz.habarta.typescript.generator.ImmutableRectangle +- +- +- +- +- +- +- +- +- +- +- +- +- Immutable implementation of {@link ImmutablesTest.Rectangle}. +- <p> +- Use the builder to create immutable instances: +- {@code new ImmutablesTest.Rectangle.Builder()}. +- +- +- +- +- +- +- +- width +- +- +- +- +- +- +- +- +- +- +- height +- +- +- +- +- +- Copy the current immutable object by setting a value for the {@link ImmutablesTest.Rectangle#width() width} attribute. +- A value strict bits equality used to prevent copying of the same value by returning {@code this}. +- +- +- +- +- +- +- +- +- Copy the current immutable object by setting a value for the {@link ImmutablesTest.Rectangle#height() height} attribute. +- A value strict bits equality used to prevent copying of the same value by returning {@code this}. +- +- +- +- +- +- +- +- +- This instance is equal to all instances of {@code ImmutableRectangle} that have equal attribute values. +- +- +- +- +- +- +- +- +- +- Computes a hash code from attributes: {@code width}, {@code height}. +- +- +- +- +- +- Prints the immutable value {@code Rectangle} with attribute values. +- +- +- +- +- +- Creates an immutable copy of a {@link ImmutablesTest.Rectangle} value. +- Uses accessors to get values to initialize the new immutable instance. +- If an instance is already immutable, it is returned as is. +- +- +- +- +- +- +- +- +- +- +- ImmutablesTest.Rectangle +- +- +- +- Immutables +- +- +- +- +- +- all +- +- +- +- +- +- +- +- org.immutables.processor.ProxyProcessor +- +- +- +- +- +- +- Builds instances of type {@link ImmutableRectangle ImmutableRectangle}. +- Initialize attributes and then invoke the {@link #build()} method to create an +- immutable instance. +- <p><em>{@code Builder} is not thread-safe and generally should not be stored in a field or collection, +- but instead used immediately to create instances.</em> +- +- +- Creates a builder for {@link ImmutableRectangle ImmutableRectangle} instances. +- <pre> +- new ImmutablesTest.Rectangle.Builder() +- .width(double) // required {@link ImmutablesTest.Rectangle#width() width} +- .height(double) // required {@link ImmutablesTest.Rectangle#height() height} +- .build(); +- </pre> +- +- +- Fill a builder with attribute values from the provided {@code Rectangle} instance. +- Regular attribute values will be replaced with those from the given instance. +- Absent optional values will not replace present values. +- +- +- +- +- +- +- +- +- +- Initializes the value for the {@link ImmutablesTest.Rectangle#width() width} attribute. +- +- +- +- +- +- +- +- +- +- +- width +- +- +- +- +- Initializes the value for the {@link ImmutablesTest.Rectangle#height() height} attribute. +- +- +- +- +- +- +- +- +- +- +- height +- +- +- +- +- Builds a new {@link ImmutableRectangle ImmutableRectangle}. +- +- +- +- +- +- +- +- ImmutablesTest.Rectangle +- +- +- +- Immutables +- +- +- +- +- +- Immutable implementation of {@link ImmutablesTest.Circle}. +- <p> +- Use the builder to create immutable instances: +- {@code new ImmutablesTest.Circle.Builder()}. +- +- +- +- +- +- +- +- +- radius +- +- +- +- +- +- Copy the current immutable object by setting a value for the {@link ImmutablesTest.Circle#radius() radius} attribute. +- A value strict bits equality used to prevent copying of the same value by returning {@code this}. +- +- +- +- +- +- +- +- +- This instance is equal to all instances of {@code ImmutableCircle} that have equal attribute values. +- +- +- +- +- +- +- +- +- +- Computes a hash code from attributes: {@code radius}. +- +- +- +- +- +- Prints the immutable value {@code Circle} with attribute values. +- +- +- +- +- +- Creates an immutable copy of a {@link ImmutablesTest.Circle} value. +- Uses accessors to get values to initialize the new immutable instance. +- If an instance is already immutable, it is returned as is. +- +- +- +- +- +- +- +- +- +- +- ImmutablesTest.Circle +- +- +- +- Immutables +- +- +- +- +- +- all +- +- +- +- +- +- +- +- org.immutables.processor.ProxyProcessor +- +- +- +- +- +- +- Builds instances of type {@link ImmutableCircle ImmutableCircle}. +- Initialize attributes and then invoke the {@link #build()} method to create an +- immutable instance. +- <p><em>{@code Builder} is not thread-safe and generally should not be stored in a field or collection, +- but instead used immediately to create instances.</em> +- +- +- Creates a builder for {@link ImmutableCircle ImmutableCircle} instances. +- <pre> +- new ImmutablesTest.Circle.Builder() +- .radius(double) // required {@link ImmutablesTest.Circle#radius() radius} +- .build(); +- </pre> +- +- +- Fill a builder with attribute values from the provided {@code Circle} instance. +- Regular attribute values will be replaced with those from the given instance. +- Absent optional values will not replace present values. +- +- +- +- +- +- +- +- +- +- Initializes the value for the {@link ImmutablesTest.Circle#radius() radius} attribute. +- +- +- +- +- +- +- +- +- +- +- radius +- +- +- +- +- Builds a new {@link ImmutableCircle ImmutableCircle}. +- +- +- +- +- +- +- +- ImmutablesTest.Circle +- +- +- +- Immutables +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- unused +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- unused +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- unused +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- NAME +- +- +- +- kind +- +- +- +- PROPERTY +- +- +- +- +- +- @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value=cz.habarta.typescript.generator.DuplicatePropertyTest.DuplicateKind1.class, name="kind_1") +- @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value=cz.habarta.typescript.generator.DuplicatePropertyTest.DuplicateKind2.class, name="kind_2") +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- rawtypes +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- unused +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- Tests that custom mapping a superclass to a primitive doesn't cause errors. +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- unused +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- unused +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- unused +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- unused +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- unused +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- unused +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- unused +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- RUNTIME +- +- +- +- +- +- +- +- RUNTIME +- +- +- +- +- +- +- +- RUNTIME +- +- +- +- +- +- +- +- RUNTIME +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- unused +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- password1 +- id2 +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- true +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- 5 +- +- +- +- +- +- +- +- +- 4 +- +- +- +- +- +- +- +- +- 3 +- +- +- +- +- +- +- +- +- 2 +- +- +- +- +- +- +- +- +- 1 +- +- +- +- +- +- +- +- +- +- +- +- +- READ_WRITE +- +- +- +- +- +- +- +- +- READ_WRITE +- +- +- +- +- +- +- +- +- READ_WRITE +- +- +- +- +- +- +- +- +- READ_WRITE +- +- +- +- +- +- +- +- +- READ_WRITE +- +- +- +- +- +- +- +- +- +- +- +- +- READ_WRITE +- +- +- +- +- +- +- +- +- READ_ONLY +- +- +- +- +- +- +- +- +- READ_ONLY +- +- +- +- +- +- +- +- +- WRITE_ONLY +- +- +- +- +- +- +- +- +- WRITE_ONLY +- +- +- +- +- +- +- +- +- +- +- +- +- READ_WRITE +- +- +- +- +- +- +- +- +- WRITE_ONLY +- +- +- +- +- +- +- +- +- WRITE_ONLY +- +- +- +- +- +- +- +- +- READ_ONLY +- +- +- +- +- +- +- +- +- READ_ONLY +- +- +- +- +- +- +- +- +- +- +- +- +- WRITE_ONLY +- +- +- +- +- +- +- +- +- READ_ONLY +- +- +- +- +- +- +- +- +- WRITE_ONLY +- +- +- +- +- +- +- +- +- READ_ONLY +- +- +- +- +- +- +- +- +- READ_WRITE +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- foo +- +- +- +- true +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- unused +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- foo +- +- +- +- true +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- unused +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- foo +- +- +- +- true +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- unused +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- foo +- +- +- +- true +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- unused +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- password1 +- id2 +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- true +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- 5 +- +- +- +- +- +- +- +- +- 4 +- +- +- +- +- +- +- +- +- 3 +- +- +- +- +- +- +- +- +- 2 +- +- +- +- +- +- +- +- +- 1 +- +- +- +- +- +- +- +- +- +- +- +- +- READ_WRITE +- +- +- +- +- +- +- +- +- READ_WRITE +- +- +- +- +- +- +- +- +- READ_WRITE +- +- +- +- +- +- +- +- +- READ_WRITE +- +- +- +- +- +- +- +- +- READ_WRITE +- +- +- +- +- +- +- +- +- +- +- +- +- READ_WRITE +- +- +- +- +- +- +- +- +- READ_ONLY +- +- +- +- +- +- +- +- +- READ_ONLY +- +- +- +- +- +- +- +- +- WRITE_ONLY +- +- +- +- +- +- +- +- +- WRITE_ONLY +- +- +- +- +- +- +- +- +- +- +- +- +- READ_WRITE +- +- +- +- +- +- +- +- +- WRITE_ONLY +- +- +- +- +- +- +- +- +- WRITE_ONLY +- +- +- +- +- +- +- +- +- READ_ONLY +- +- +- +- +- +- +- +- +- READ_ONLY +- +- +- +- +- +- +- +- +- +- +- +- +- WRITE_ONLY +- +- +- +- +- +- +- +- +- READ_ONLY +- +- +- +- +- +- +- +- +- WRITE_ONLY +- +- +- +- +- +- +- +- +- READ_ONLY +- +- +- +- +- +- +- +- +- READ_WRITE +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- unused +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +diff --git a/typescript-generator-core/src/test/resources/cz/habarta/typescript/generator/JsonDeserializationTest-expected.ts b/typescript-generator-core/src/test/resources/cz/habarta/typescript/generator/JsonDeserializationTest-expected.ts +deleted file mode 100644 +index f0d074509..000000000 +--- a/typescript-generator-core/src/test/resources/cz/habarta/typescript/generator/JsonDeserializationTest-expected.ts ++++ /dev/null +@@ -1,215 +0,0 @@ +- +-export class User { +- name: string; +- authentication: Authentication; +- childAccount: boolean; +- age: number; +- address: Address; +- addresses: Address[]; +- taggedAddresses: { [index: string]: Address }; +- groupedAddresses: { [index: string]: Address[] }; +- listOfTaggedAddresses: { [index: string]: Address }[]; +- tags: string[]; +- mapping: { [index: string]: string }; +- listOfListOfString: string[][]; +- orders: PagedList; +- allOrders: PagedList[]; +- shape: ShapeUnion; +- shapes: ShapeUnion[]; +- +- static fromData(data: User, target?: User): User { +- if (!data) { +- return data; +- } +- const instance = target || new User(); +- instance.name = data.name; +- instance.authentication = data.authentication; +- instance.childAccount = data.childAccount; +- instance.age = data.age; +- instance.address = Address.fromData(data.address); +- instance.addresses = __getCopyArrayFn(Address.fromData)(data.addresses); +- instance.taggedAddresses = __getCopyObjectFn(Address.fromData)(data.taggedAddresses); +- instance.groupedAddresses = __getCopyObjectFn(__getCopyArrayFn(Address.fromData))(data.groupedAddresses); +- instance.listOfTaggedAddresses = __getCopyArrayFn(__getCopyObjectFn(Address.fromData))(data.listOfTaggedAddresses); +- instance.tags = __getCopyArrayFn(__identity())(data.tags); +- instance.mapping = __getCopyObjectFn(__identity())(data.mapping); +- instance.listOfListOfString = __getCopyArrayFn(__getCopyArrayFn(__identity()))(data.listOfListOfString); +- instance.orders = PagedList.fromDataFn(Order.fromData, __identity())(data.orders); +- instance.allOrders = __getCopyArrayFn(PagedList.fromDataFn(Order.fromData, __identity()))(data.allOrders); +- instance.shape = Shape.fromDataUnion(data.shape); +- instance.shapes = __getCopyArrayFn(Shape.fromDataUnion)(data.shapes); +- return instance; +- } +-} +- +-export class Address { +- street: string; +- city: string; +- +- static fromData(data: Address, target?: Address): Address { +- if (!data) { +- return data; +- } +- const instance = target || new Address(); +- instance.street = data.street; +- instance.city = data.city; +- return instance; +- } +-} +- +-export class PagedList { +- page: number; +- items: T[]; +- additionalInfo: A; +- +- static fromDataFn(constructorFnOfT: (data: T) => T, constructorFnOfA: (data: A) => A): (data: PagedList) => PagedList { +- return data => PagedList.fromData(data, constructorFnOfT, constructorFnOfA); +- } +- +- static fromData(data: PagedList, constructorFnOfT: (data: T) => T, constructorFnOfA: (data: A) => A, target?: PagedList): PagedList { +- if (!data) { +- return data; +- } +- const instance = target || new PagedList(); +- instance.page = data.page; +- instance.items = __getCopyArrayFn(constructorFnOfT)(data.items); +- instance.additionalInfo = constructorFnOfA(data.additionalInfo); +- return instance; +- } +-} +- +-export class Order { +- id: string; +- +- static fromData(data: Order, target?: Order): Order { +- if (!data) { +- return data; +- } +- const instance = target || new Order(); +- instance.id = data.id; +- return instance; +- } +-} +- +-export class Shape { +- kind: "square" | "rectangle" | "circle"; +- metadata: ShapeMetadata; +- +- static fromData(data: Shape, target?: Shape): Shape { +- if (!data) { +- return data; +- } +- const instance = target || new Shape(); +- instance.kind = data.kind; +- instance.metadata = ShapeMetadata.fromData(data.metadata); +- return instance; +- } +- +- static fromDataUnion(data: ShapeUnion): ShapeUnion { +- if (!data) { +- return data; +- } +- switch (data.kind) { +- case "square": +- return Square.fromData(data); +- case "rectangle": +- return Rectangle.fromData(data); +- case "circle": +- return Circle.fromData(data); +- } +- } +-} +- +-export class ShapeMetadata { +- group: string; +- +- static fromData(data: ShapeMetadata, target?: ShapeMetadata): ShapeMetadata { +- if (!data) { +- return data; +- } +- const instance = target || new ShapeMetadata(); +- instance.group = data.group; +- return instance; +- } +-} +- +-export class Square extends Shape { +- kind: "square"; +- size: number; +- +- static fromData(data: Square, target?: Square): Square { +- if (!data) { +- return data; +- } +- const instance = target || new Square(); +- super.fromData(data, instance); +- instance.size = data.size; +- return instance; +- } +-} +- +-export class Rectangle extends Shape { +- kind: "rectangle"; +- width: number; +- height: number; +- +- static fromData(data: Rectangle, target?: Rectangle): Rectangle { +- if (!data) { +- return data; +- } +- const instance = target || new Rectangle(); +- super.fromData(data, instance); +- instance.width = data.width; +- instance.height = data.height; +- return instance; +- } +-} +- +-export class Circle extends Shape { +- kind: "circle"; +- radius: number; +- +- static fromData(data: Circle, target?: Circle): Circle { +- if (!data) { +- return data; +- } +- const instance = target || new Circle(); +- super.fromData(data, instance); +- instance.radius = data.radius; +- return instance; +- } +-} +- +-export type Authentication = "Password" | "Token" | "Fingerprint" | "Voice"; +- +-export type ShapeUnion = Square | Rectangle | Circle; +- +-function __getCopyArrayFn(itemCopyFn: (item: T) => T): (array: T[]) => T[] { +- return (array: T[]) => __copyArray(array, itemCopyFn); +-} +- +-function __copyArray(array: T[], itemCopyFn: (item: T) => T): T[] { +- return array && array.map(item => item && itemCopyFn(item)); +-} +- +-function __getCopyObjectFn(itemCopyFn: (item: T) => T): (object: { [index: string]: T }) => { [index: string]: T } { +- return (object: { [index: string]: T }) => __copyObject(object, itemCopyFn); +-} +- +-function __copyObject(object: { [index: string]: T }, itemCopyFn: (item: T) => T): { [index: string]: T } { +- if (!object) { +- return object; +- } +- const result: any = {}; +- for (const key in object) { +- if (object.hasOwnProperty(key)) { +- const value = object[key]; +- result[key] = value && itemCopyFn(value); +- } +- } +- return result; +-} +- +-function __identity(): (value: T) => T { +- return value => value; +-} +diff --git a/typescript-generator-core/src/test/resources/cz/habarta/typescript/generator/JsonDeserializationTestWithConstructors-expected.ts b/typescript-generator-core/src/test/resources/cz/habarta/typescript/generator/JsonDeserializationTestWithConstructors-expected.ts +deleted file mode 100644 +index f4f4a29e9..000000000 +--- a/typescript-generator-core/src/test/resources/cz/habarta/typescript/generator/JsonDeserializationTestWithConstructors-expected.ts ++++ /dev/null +@@ -1,274 +0,0 @@ +- +-export class User { +- name: string; +- authentication: Authentication; +- childAccount: boolean; +- age: number; +- address: Address; +- addresses: Address[]; +- taggedAddresses: { [index: string]: Address }; +- groupedAddresses: { [index: string]: Address[] }; +- listOfTaggedAddresses: { [index: string]: Address }[]; +- tags: string[]; +- mapping: { [index: string]: string }; +- listOfListOfString: string[][]; +- orders: PagedList; +- allOrders: PagedList[]; +- shape: ShapeUnion; +- shapes: ShapeUnion[]; +- +- constructor(data: User) { +- this.name = data.name; +- this.authentication = data.authentication; +- this.childAccount = data.childAccount; +- this.age = data.age; +- this.address = data.address; +- this.addresses = data.addresses; +- this.taggedAddresses = data.taggedAddresses; +- this.groupedAddresses = data.groupedAddresses; +- this.listOfTaggedAddresses = data.listOfTaggedAddresses; +- this.tags = data.tags; +- this.mapping = data.mapping; +- this.listOfListOfString = data.listOfListOfString; +- this.orders = data.orders; +- this.allOrders = data.allOrders; +- this.shape = data.shape; +- this.shapes = data.shapes; +- } +- +- static fromData(data: User, target?: User): User { +- if (!data) { +- return data; +- } +- const instance = target || new User(data); +- instance.name = data.name; +- instance.authentication = data.authentication; +- instance.childAccount = data.childAccount; +- instance.age = data.age; +- instance.address = Address.fromData(data.address); +- instance.addresses = __getCopyArrayFn(Address.fromData)(data.addresses); +- instance.taggedAddresses = __getCopyObjectFn(Address.fromData)(data.taggedAddresses); +- instance.groupedAddresses = __getCopyObjectFn(__getCopyArrayFn(Address.fromData))(data.groupedAddresses); +- instance.listOfTaggedAddresses = __getCopyArrayFn(__getCopyObjectFn(Address.fromData))(data.listOfTaggedAddresses); +- instance.tags = __getCopyArrayFn(__identity())(data.tags); +- instance.mapping = __getCopyObjectFn(__identity())(data.mapping); +- instance.listOfListOfString = __getCopyArrayFn(__getCopyArrayFn(__identity()))(data.listOfListOfString); +- instance.orders = PagedList.fromDataFn(Order.fromData, __identity())(data.orders); +- instance.allOrders = __getCopyArrayFn(PagedList.fromDataFn(Order.fromData, __identity()))(data.allOrders); +- instance.shape = Shape.fromDataUnion(data.shape); +- instance.shapes = __getCopyArrayFn(Shape.fromDataUnion)(data.shapes); +- return instance; +- } +-} +- +-export class Address { +- street: string; +- city: string; +- +- constructor(data: Address) { +- this.street = data.street; +- this.city = data.city; +- } +- +- static fromData(data: Address, target?: Address): Address { +- if (!data) { +- return data; +- } +- const instance = target || new Address(data); +- instance.street = data.street; +- instance.city = data.city; +- return instance; +- } +-} +- +-export class PagedList { +- page: number; +- items: T[]; +- additionalInfo: A; +- +- constructor(data: PagedList) { +- this.page = data.page; +- this.items = data.items; +- this.additionalInfo = data.additionalInfo; +- } +- +- static fromDataFn(constructorFnOfT: (data: T) => T, constructorFnOfA: (data: A) => A): (data: PagedList) => PagedList { +- return data => PagedList.fromData(data, constructorFnOfT, constructorFnOfA); +- } +- +- static fromData(data: PagedList, constructorFnOfT: (data: T) => T, constructorFnOfA: (data: A) => A, target?: PagedList): PagedList { +- if (!data) { +- return data; +- } +- const instance = target || new PagedList(data); +- instance.page = data.page; +- instance.items = __getCopyArrayFn(constructorFnOfT)(data.items); +- instance.additionalInfo = constructorFnOfA(data.additionalInfo); +- return instance; +- } +-} +- +-export class Order { +- id: string; +- +- constructor(data: Order) { +- this.id = data.id; +- } +- +- static fromData(data: Order, target?: Order): Order { +- if (!data) { +- return data; +- } +- const instance = target || new Order(data); +- instance.id = data.id; +- return instance; +- } +-} +- +-export class Shape { +- kind: "square" | "rectangle" | "circle"; +- metadata: ShapeMetadata; +- +- constructor(data: Shape) { +- this.kind = data.kind; +- this.metadata = data.metadata; +- } +- +- static fromData(data: Shape, target?: Shape): Shape { +- if (!data) { +- return data; +- } +- const instance = target || new Shape(data); +- instance.kind = data.kind; +- instance.metadata = ShapeMetadata.fromData(data.metadata); +- return instance; +- } +- +- static fromDataUnion(data: ShapeUnion): ShapeUnion { +- if (!data) { +- return data; +- } +- switch (data.kind) { +- case "square": +- return Square.fromData(data); +- case "rectangle": +- return Rectangle.fromData(data); +- case "circle": +- return Circle.fromData(data); +- } +- } +-} +- +-export class ShapeMetadata { +- group: string; +- +- constructor(data: ShapeMetadata) { +- this.group = data.group; +- } +- +- static fromData(data: ShapeMetadata, target?: ShapeMetadata): ShapeMetadata { +- if (!data) { +- return data; +- } +- const instance = target || new ShapeMetadata(data); +- instance.group = data.group; +- return instance; +- } +-} +- +-export class Square extends Shape { +- kind: "square"; +- size: number; +- +- constructor(data: Square) { +- super(data); +- this.size = data.size; +- } +- +- static fromData(data: Square, target?: Square): Square { +- if (!data) { +- return data; +- } +- const instance = target || new Square(data); +- super.fromData(data, instance); +- instance.size = data.size; +- return instance; +- } +-} +- +-export class Rectangle extends Shape { +- kind: "rectangle"; +- width: number; +- height: number; +- +- constructor(data: Rectangle) { +- super(data); +- this.width = data.width; +- this.height = data.height; +- } +- +- static fromData(data: Rectangle, target?: Rectangle): Rectangle { +- if (!data) { +- return data; +- } +- const instance = target || new Rectangle(data); +- super.fromData(data, instance); +- instance.width = data.width; +- instance.height = data.height; +- return instance; +- } +-} +- +-export class Circle extends Shape { +- kind: "circle"; +- radius: number; +- +- constructor(data: Circle) { +- super(data); +- this.radius = data.radius; +- } +- +- static fromData(data: Circle, target?: Circle): Circle { +- if (!data) { +- return data; +- } +- const instance = target || new Circle(data); +- super.fromData(data, instance); +- instance.radius = data.radius; +- return instance; +- } +-} +- +-export type Authentication = "Password" | "Token" | "Fingerprint" | "Voice"; +- +-export type ShapeUnion = Square | Rectangle | Circle; +- +-function __getCopyArrayFn(itemCopyFn: (item: T) => T): (array: T[]) => T[] { +- return (array: T[]) => __copyArray(array, itemCopyFn); +-} +- +-function __copyArray(array: T[], itemCopyFn: (item: T) => T): T[] { +- return array && array.map(item => item && itemCopyFn(item)); +-} +- +-function __getCopyObjectFn(itemCopyFn: (item: T) => T): (object: { [index: string]: T }) => { [index: string]: T } { +- return (object: { [index: string]: T }) => __copyObject(object, itemCopyFn); +-} +- +-function __copyObject(object: { [index: string]: T }, itemCopyFn: (item: T) => T): { [index: string]: T } { +- if (!object) { +- return object; +- } +- const result: any = {}; +- for (const key in object) { +- if (object.hasOwnProperty(key)) { +- const value = object[key]; +- result[key] = value && itemCopyFn(value); +- } +- } +- return result; +-} +- +-function __identity(): (value: T) => T { +- return value => value; +-} +\ No newline at end of file +diff --git a/typescript-generator-core/src/test/resources/ext/OnePossiblePropertyValueAssigningExtensionTest-all.ts b/typescript-generator-core/src/test/resources/ext/OnePossiblePropertyValueAssigningExtensionTest-all.ts +deleted file mode 100644 +index 5675eb942..000000000 +--- a/typescript-generator-core/src/test/resources/ext/OnePossiblePropertyValueAssigningExtensionTest-all.ts ++++ /dev/null +@@ -1,37 +0,0 @@ +- +-export class BaseClass { +- discriminator: "OnePossiblePropertyValueAssigningExtensionTest$SubClass" | "OnePossiblePropertyValueAssigningExtensionTest$OtherSubClass"; +- field1: number; +- readonly field2: OneValueEnum; +- +- constructor() { +- this.field2 = "MY_VALUE"; +- } +-} +- +-export class OtherSubClass extends BaseClass { +- readonly discriminator: "OnePossiblePropertyValueAssigningExtensionTest$OtherSubClass"; +- readonly enumField1: OneValueEnum; +- enumField2: TwoValueEnum; +- testField2: string; +- +- constructor() { +- super(); +- this.discriminator = "OnePossiblePropertyValueAssigningExtensionTest$OtherSubClass"; +- this.enumField1 = "MY_VALUE"; +- } +-} +- +-export class SubClass extends BaseClass { +- readonly discriminator: "OnePossiblePropertyValueAssigningExtensionTest$SubClass"; +- testField1: string; +- +- constructor() { +- super(); +- this.discriminator = "OnePossiblePropertyValueAssigningExtensionTest$SubClass"; +- } +-} +- +-export type OneValueEnum = "MY_VALUE"; +- +-export type TwoValueEnum = "ONE" | "TWO"; +diff --git a/typescript-generator-core/src/test/resources/ext/RequiredPropertyConstructorExtensionTest-basicWithConfiguration.ts b/typescript-generator-core/src/test/resources/ext/RequiredPropertyConstructorExtensionTest-basicWithConfiguration.ts +deleted file mode 100644 +index ee5c095f1..000000000 +--- a/typescript-generator-core/src/test/resources/ext/RequiredPropertyConstructorExtensionTest-basicWithConfiguration.ts ++++ /dev/null +@@ -1,28 +0,0 @@ +-/* tslint:disable */ +- +-export class OtherClass { +- readonly field2: string; +- +- constructor(field2: string) { +- this.field2 = field2; +- } +-} +- +-export class PolymorphicClass implements SuperInterface { +- readonly discriminator: "class-b"; +- readonly field1: number; +-} +- +-export class SimpleClass { +- readonly field1: string; +- readonly field2: PolymorphicClass; +- +- constructor(field1: string, field2: PolymorphicClass) { +- this.field1 = field1; +- this.field2 = field2; +- } +-} +- +-export interface SuperInterface { +- readonly discriminator: "class-b"; +-} +diff --git a/typescript-generator-core/src/test/resources/ext/RequiredPropertyConstructorExtensionTest-basicWithReadOnly.ts b/typescript-generator-core/src/test/resources/ext/RequiredPropertyConstructorExtensionTest-basicWithReadOnly.ts +deleted file mode 100644 +index 56a42578c..000000000 +--- a/typescript-generator-core/src/test/resources/ext/RequiredPropertyConstructorExtensionTest-basicWithReadOnly.ts ++++ /dev/null +@@ -1,25 +0,0 @@ +-/* tslint:disable */ +- +-export class PolymorphicClass implements SuperInterface { +- readonly discriminator: "class-b"; +- readonly field1: number; +- +- constructor(field1: number) { +- this.discriminator = "class-b"; +- this.field1 = field1; +- } +-} +- +-export class SimpleClass { +- readonly field1: string; +- readonly field2: PolymorphicClass; +- +- constructor(field1: string, field2: PolymorphicClass) { +- this.field1 = field1; +- this.field2 = field2; +- } +-} +- +-export interface SuperInterface { +- readonly discriminator: "class-b"; +-} +diff --git a/typescript-generator-core/src/test/resources/ext/RequiredPropertyConstructorExtensionTest-basicWithoutReadOnly.ts b/typescript-generator-core/src/test/resources/ext/RequiredPropertyConstructorExtensionTest-basicWithoutReadOnly.ts +deleted file mode 100644 +index 6622df9ea..000000000 +--- a/typescript-generator-core/src/test/resources/ext/RequiredPropertyConstructorExtensionTest-basicWithoutReadOnly.ts ++++ /dev/null +@@ -1,15 +0,0 @@ +-/* tslint:disable */ +- +-export class PolymorphicClass implements SuperInterface { +- discriminator: "class-b"; +- field1: number; +-} +- +-export class SimpleClass { +- field1: string; +- field2: PolymorphicClass; +-} +- +-export interface SuperInterface { +- discriminator: "class-b"; +-} +diff --git a/typescript-generator-core/src/test/resources/ext/RequiredPropertyConstructorExtensionTest-enums.ts b/typescript-generator-core/src/test/resources/ext/RequiredPropertyConstructorExtensionTest-enums.ts +deleted file mode 100644 +index 06815ff6f..000000000 +--- a/typescript-generator-core/src/test/resources/ext/RequiredPropertyConstructorExtensionTest-enums.ts ++++ /dev/null +@@ -1,21 +0,0 @@ +-/* tslint:disable */ +- +-export class MultipleEnumContainerClass { +- readonly multiple: MultipleEntryEnum; +- +- constructor(multiple: MultipleEntryEnum) { +- this.multiple = multiple; +- } +-} +- +-export class SingleEnumContainerClass { +- readonly single: SingleEntryEnum; +- +- constructor() { +- this.single = "ENTRY_1"; +- } +-} +- +-export type MultipleEntryEnum = "ENTRY_1" | "ENTRY_2" | "ENTRY_3"; +- +-export type SingleEntryEnum = "ENTRY_1"; +diff --git a/typescript-generator-core/src/test/resources/ext/RequiredPropertyConstructorExtensionTest-inheritance.ts b/typescript-generator-core/src/test/resources/ext/RequiredPropertyConstructorExtensionTest-inheritance.ts +deleted file mode 100644 +index 522542bee..000000000 +--- a/typescript-generator-core/src/test/resources/ext/RequiredPropertyConstructorExtensionTest-inheritance.ts ++++ /dev/null +@@ -1,34 +0,0 @@ +-/* tslint:disable */ +- +-export class PolymorphicClass implements SuperInterface { +- readonly discriminator: "class-b"; +- readonly field1: number; +- +- constructor(field1: number) { +- this.discriminator = "class-b"; +- this.field1 = field1; +- } +-} +- +-export class SimpleClass { +- readonly field1: string; +- readonly field2: PolymorphicClass; +- +- constructor(field1: string, field2: PolymorphicClass) { +- this.field1 = field1; +- this.field2 = field2; +- } +-} +- +-export class SecondClass extends SimpleClass { +- readonly field3: number; +- +- constructor(field1: string, field2: PolymorphicClass, field3: number) { +- super(field1, field2); +- this.field3 = field3; +- } +-} +- +-export interface SuperInterface { +- readonly discriminator: "class-b"; +-} +diff --git a/typescript-generator-core/src/test/resources/ext/RequiredPropertyConstructorExtensionTest-optionalParameters.ts b/typescript-generator-core/src/test/resources/ext/RequiredPropertyConstructorExtensionTest-optionalParameters.ts +deleted file mode 100644 +index 708d11d23..000000000 +--- a/typescript-generator-core/src/test/resources/ext/RequiredPropertyConstructorExtensionTest-optionalParameters.ts ++++ /dev/null +@@ -1,20 +0,0 @@ +-/* tslint:disable */ +- +-export class SimpleOptionalClass { +- readonly field1: string; +- readonly field2?: number; +- +- constructor(field1: string, field2?: number) { +- this.field1 = field1; +- this.field2 = field2; +- } +-} +- +-export class SecondOptionalClass extends SimpleOptionalClass { +- readonly field3: string; +- +- constructor(field1: string, field3: string, field2?: number) { +- super(field1, field2); +- this.field3 = field3; +- } +-} +diff --git a/typescript-generator-core/src/test/resources/ext/expected.ts b/typescript-generator-core/src/test/resources/ext/expected.ts +deleted file mode 100644 +index 7a5018281..000000000 +--- a/typescript-generator-core/src/test/resources/ext/expected.ts ++++ /dev/null +@@ -1,36 +0,0 @@ +- +-export class Fields { +- protected $$parent: Fields | undefined; +- protected $$name: string; +- constructor(parent?: Fields, name?: string) { +- this.$$parent = parent; +- this.$$name = name || ''; +- }; +- get(): string { +- if (this.$$parent && this.$$parent.get().length > 0) { +- return this.$$parent.get() + "." + this.$$name; +- } else { +- return this.$$name; +- } +- } +-} +- +-class ClassAFields extends Fields { +- constructor(parent?: Fields, name?: string) { super(parent, name); } +- field1 = new Fields(this, "field1"); +- field2 = new ClassBFields(this, "field2"); +- field3 = new ClassCFields(this, "field3"); +-} +- +-class ClassBFields extends Fields { +- constructor(parent?: Fields, name?: string) { super(parent, name); } +- field1 = new Fields(this, "field1"); +-} +- +-class ClassCFields extends ClassBFields { +- constructor(parent?: Fields, name?: string) { super(parent, name); } +- field4 = new Fields(this, "field4"); +-} +-const ClassA = new ClassAFields(); +-const ClassB = new ClassBFields(); +-const ClassC = new ClassCFields(); +diff --git a/typescript-generator-core/src/test/ts/JsonDeserializationTest/JsonDeserializationTest-expected-test-data.json b/typescript-generator-core/src/test/ts/JsonDeserializationTest/JsonDeserializationTest-expected-test-data.json +deleted file mode 100644 +index 603171f57..000000000 +--- a/typescript-generator-core/src/test/ts/JsonDeserializationTest/JsonDeserializationTest-expected-test-data.json ++++ /dev/null +@@ -1,86 +0,0 @@ +-{ +- "name": "name1", +- "authentication": "Password", +- "childAccount": true, +- "age": 42, +- "address": { +- "street": "street1", +- "city": "city1" +- }, +- "addresses": [ +- { +- "street": "street2", +- "city": "city2" +- } +- ], +- "taggedAddresses": { +- "address3": { +- "street": "street3", +- "city": "city3" +- } +- }, +- "groupedAddresses": { +- "addresses4": [ +- { +- "street": "street5", +- "city": "city5" +- } +- ] +- }, +- "listOfTaggedAddresses": [ +- { +- "address6": { +- "street": "street6", +- "city": "city6" +- } +- } +- ], +- "tags": [ +- "item" +- ], +- "mapping": { +- "key": "value" +- }, +- "listOfListOfString": [ +- [ +- "string" +- ] +- ], +- "orders": { +- "page": 7, +- "items": [ +- { +- "id": "id7" +- } +- ], +- "additionalInfo": "Token" +- }, +- "allOrders": [ +- { +- "page": 8, +- "items": [ +- { +- "id": "id8" +- } +- ], +- "additionalInfo": "Fingerprint" +- } +- ], +- "shape": { +- "kind": "square", +- "metadata": { +- "group": "group9" +- }, +- "size": 9 +- }, +- "shapes": [ +- { +- "kind": "rectangle", +- "metadata": { +- "group": "group10" +- }, +- "width": 10, +- "height": 10 +- } +- ] +-} +\ No newline at end of file +diff --git a/typescript-generator-core/src/test/ts/JsonDeserializationTest/JsonDeserializationTest-expected-test.ts b/typescript-generator-core/src/test/ts/JsonDeserializationTest/JsonDeserializationTest-expected-test.ts +deleted file mode 100644 +index ea674326f..000000000 +--- a/typescript-generator-core/src/test/ts/JsonDeserializationTest/JsonDeserializationTest-expected-test.ts ++++ /dev/null +@@ -1,144 +0,0 @@ +-import { Address, Order, PagedList, Rectangle, ShapeMetadata, Square, User, Authentication } from "../../resources/cz/habarta/typescript/generator/JsonDeserializationTest-expected"; +- +-// load JSON data +-const data = require("./JsonDeserializationTest-expected-test-data"); +-assertEquals(typeof data, "object"); +-assertEquals(data instanceof User, false); +- +-// deserialize to classes +-const user = User.fromData(data); +- +-assertType(user, "object"); +-assertType(user, User); +- +-// .name +-assertType(user.name, "string"); +- +-// .authentication +-assertType(user.authentication, "string"); +- +-// .childAccount +-assertType(user.childAccount, "boolean"); +- +-// .age +-assertType(user.age, "number"); +- +-// .address +-assertType(user.address, Address); +- +-// .addresses +-assertType(user.addresses, "object"/*array*/); +-assertType(user.addresses, Array); +- +-// .taggedAddresses +-assertType(user.taggedAddresses, "object"); +-assertType(user.taggedAddresses["address3"], Address); +- +-// .groupedAddresses +-assertType(user.groupedAddresses, "object"); +-assertType(user.groupedAddresses["addresses4"], Array); +-assertType(user.groupedAddresses["addresses4"][0], Address); +- +-// .listOfTaggedAddresses +-assertType(user.listOfTaggedAddresses, Array); +-assertType(user.listOfTaggedAddresses[0], "object"); +-assertType(user.listOfTaggedAddresses[0]["address6"], Address); +- +-// .tags +-assertType(user.tags, Array); +-assertType(user.tags[0], "string"); +- +-// .mapping +-assertType(user.mapping, "object"); +-assertType(user.mapping["key"], "string"); +- +-// .listOfListOfString +-assertType(user.listOfListOfString, Array); +-assertType(user.listOfListOfString[0], Array); +-assertType(user.listOfListOfString[0][0], "string"); +- +-// .orders +-assertType(user.orders, PagedList); +-assertType(user.orders.page, "number"); +-assertType(user.orders.items, Array); +-assertType(user.orders.items[0], Order); +-assertType(user.orders.items[0].id, "string"); +-assertType(user.orders.additionalInfo, "string"); +- +-// .allOrders +-assertType(user.allOrders, Array); +-assertType(user.allOrders[0], PagedList); +-assertType(user.allOrders[0].page, "number"); +-assertType(user.allOrders[0].items, Array); +-assertType(user.allOrders[0].items[0], Order); +-assertType(user.allOrders[0].items[0].id, "string"); +-assertType(user.allOrders[0].additionalInfo, "string"); +- +-// .shape +-assertType(user.shape, "object"); +-assertType(user.shape, Square); +-assertType((user.shape as Square).kind, "string"); +-assertType((user.shape as Square).metadata, ShapeMetadata); +-assertType((user.shape as Square).metadata.group, "string"); +-assertType((user.shape as Square).size, "number"); +- +-// .shapes +-assertType(user.shapes, Array); +-assertType(user.shapes[0], "object"); +-assertType(user.shapes[0], Rectangle); +-assertType((user.shapes[0] as Rectangle).kind, "string"); +-assertType((user.shapes[0] as Rectangle).metadata, ShapeMetadata); +-assertType((user.shapes[0] as Rectangle).metadata.group, "string"); +-assertType((user.shapes[0] as Rectangle).width, "number"); +-assertType((user.shapes[0] as Rectangle).height, "number"); +- +- +-// augment User +-declare module "../../resources/cz/habarta/typescript/generator/JsonDeserializationTest-expected" { +- interface User { +- equals(other: User): boolean; +- } +-} +-User.prototype.equals = function (this: User, other) { +- return this.name === other.name; +-}; +- +-// test augmentation +-const user1 = User.fromData(data); +-const user2 = User.fromData(data); +-assertEquals(user1.equals(user2), true); +-user2.name = "name2"; +-assertEquals(user1.equals(user2), false); +- +-const serializedData = JSON.stringify(user2); +-require('fs').writeFileSync("./target/JsonDeserializationTest-actual-test-data-2.json", serializedData); +- +-const data2 = require("../../../../target/JsonDeserializationTest-actual-test-data"); +-const actualUser2 = User.fromData(data2); +- +-assertEquals(actualUser2.name, "user1"); +-assertEquals(actualUser2.authentication, "Password"); +- +-console.log("Test finished."); +- +- +-function assertType(value: any, type: string | Function, message?: string) { +- if (typeof type === "string") { +- assertEquals(typeof value, type, message); +- } else { +- assertEquals(value instanceof type, true, message); +- } +-} +- +-function assertEquals(actual: any, expected: any, message?: string) { +- if (actual !== expected) { +- fail( +- (message ? message + " " : "") + +- `"expected [${expected}] but found [${actual}]` +- ); +- } +-} +- +-function fail(message: string) { +- throw new Error(message); +-} +diff --git a/typescript-generator-core/src/test/ts/JsonDeserializationTest/tsconfig.json b/typescript-generator-core/src/test/ts/JsonDeserializationTest/tsconfig.json +deleted file mode 100644 +index 9a5810419..000000000 +--- a/typescript-generator-core/src/test/ts/JsonDeserializationTest/tsconfig.json ++++ /dev/null +@@ -1,10 +0,0 @@ +-{ +- "compilerOptions": { +- "module": "commonjs", +- "target": "es5", +- "noImplicitAny": true, +- "sourceMap": true, +- "strict": true, +- "strictPropertyInitialization": false +- } +-} +\ No newline at end of file +diff --git a/typescript-generator-core/src/test/ts/module-usage-pkg.ts b/typescript-generator-core/src/test/ts/module-usage-pkg.ts +deleted file mode 100644 +index 7792ca7a6..000000000 +--- a/typescript-generator-core/src/test/ts/module-usage-pkg.ts ++++ /dev/null +@@ -1,58 +0,0 @@ +- +-/// +-/// +-/// +-/// +-/// +-/// +- +-// declaration files +- +-var a1: cz.habarta.typescript.generator.ModulesAndNamespacesTest.Test1Data; +-var e1: cz.habarta.typescript.generator.ModulesAndNamespacesTest.Test1Direction; +-var ne1: cz.habarta.typescript.generator.ModulesAndNamespacesTest.Test1Align; +- +-var a2: NS2.cz.habarta.typescript.generator.ModulesAndNamespacesTest.Test2Data; +-var e2: NS2.cz.habarta.typescript.generator.ModulesAndNamespacesTest.Test2Direction; +-var ne2: NS2.cz.habarta.typescript.generator.ModulesAndNamespacesTest.Test2Align; +- +-import * as mod3a from "mod3a"; +-var a3a: mod3a.cz.habarta.typescript.generator.ModulesAndNamespacesTest.Test3aData; +-var e3a: mod3a.cz.habarta.typescript.generator.ModulesAndNamespacesTest.Test3aDirection; +-var ne3a: mod3a.cz.habarta.typescript.generator.ModulesAndNamespacesTest.Test3aAlign; +- +-import * as mod3b from "../../../target/test-ts-modules-pkg/test-mn3b"; +-var a3b: mod3b.cz.habarta.typescript.generator.ModulesAndNamespacesTest.Test3bData; +-var e3b: mod3b.cz.habarta.typescript.generator.ModulesAndNamespacesTest.Test3bDirection; +-var ne3b: mod3b.cz.habarta.typescript.generator.ModulesAndNamespacesTest.Test3bAlign; +- +-import * as mod4a from "mod4a"; +-var a4a: mod4a.NS4a.cz.habarta.typescript.generator.ModulesAndNamespacesTest.Test4aData; +-var e4a: mod4a.NS4a.cz.habarta.typescript.generator.ModulesAndNamespacesTest.Test4aDirection; +-var ne4a: mod4a.NS4a.cz.habarta.typescript.generator.ModulesAndNamespacesTest.Test4aAlign; +- +-import * as mod4b from "../../../target/test-ts-modules-pkg/test-mn4b"; +-var a4b: mod4b.NS4b.cz.habarta.typescript.generator.ModulesAndNamespacesTest.Test4bData; +-var e4b: mod4b.NS4b.cz.habarta.typescript.generator.ModulesAndNamespacesTest.Test4bDirection; +-var ne4b: mod4b.NS4b.cz.habarta.typescript.generator.ModulesAndNamespacesTest.Test4bAlign; +- +- +-// implementation files +- +-var a5: cz.habarta.typescript.generator.ModulesAndNamespacesTest.Test5Data; +-var e5: cz.habarta.typescript.generator.ModulesAndNamespacesTest.Test5Direction; +-var ne5: cz.habarta.typescript.generator.ModulesAndNamespacesTest.Test5Align; +- +-var a6: NS6.Test6Data; +-var e6: NS6.Test6Direction; +-var ne6: NS6.Test6Align; +- +-import * as mod7 from "../../../target/test-ts-modules-pkg/test-mn7"; +-var a7: mod7.cz.habarta.typescript.generator.ModulesAndNamespacesTest.Test7Data; +-var e7: mod7.cz.habarta.typescript.generator.ModulesAndNamespacesTest.Test7Direction; +-var ne7: mod7.cz.habarta.typescript.generator.ModulesAndNamespacesTest.Test7Align; +- +-import * as mod8 from "../../../target/test-ts-modules-pkg/test-mn8"; +-var a8: mod8.NS8.cz.habarta.typescript.generator.ModulesAndNamespacesTest.Test8Data; +-var e8: mod8.NS8.cz.habarta.typescript.generator.ModulesAndNamespacesTest.Test8Direction; +-var ne8: mod8.NS8.cz.habarta.typescript.generator.ModulesAndNamespacesTest.Test8Align; +diff --git a/typescript-generator-core/src/test/ts/module-usage.ts b/typescript-generator-core/src/test/ts/module-usage.ts +index 6833d2ca4..552a96d7c 100644 +--- a/typescript-generator-core/src/test/ts/module-usage.ts ++++ b/typescript-generator-core/src/test/ts/module-usage.ts +@@ -1,11 +1,4 @@ + +-/// +-/// +-/// +-/// +-/// +-/// +- + // declaration files + + var a1: Test1Data; +diff --git a/typescript-generator-core/src/test/ts/tsconfig.json b/typescript-generator-core/src/test/ts/tsconfig.json +index 89bd22fd7..3e2cd8da6 100644 +--- a/typescript-generator-core/src/test/ts/tsconfig.json ++++ b/typescript-generator-core/src/test/ts/tsconfig.json +@@ -8,26 +8,15 @@ + }, + "files": [ + "module-usage.ts", +- // "../../../target/test-ts-modules/test-mn1.d.ts", +- // "../../../target/test-ts-modules/test-mn2.d.ts", +- // "../../../target/test-ts-modules/test-mn3a.d.ts", +- // "../../../target/test-ts-modules/test-mn3b.d.ts", +- // "../../../target/test-ts-modules/test-mn4a.d.ts", +- // "../../../target/test-ts-modules/test-mn4b.d.ts", +- // "../../../target/test-ts-modules/test-mn5.ts", +- // "../../../target/test-ts-modules/test-mn6.ts", +- // "../../../target/test-ts-modules/test-mn7.ts", +- // "../../../target/test-ts-modules/test-mn8.ts", +- "module-usage-pkg.ts" +- // "../../../target/test-ts-modules-pkg/test-mn1.d.ts", +- // "../../../target/test-ts-modules-pkg/test-mn2.d.ts", +- // "../../../target/test-ts-modules-pkg/test-mn3a.d.ts", +- // "../../../target/test-ts-modules-pkg/test-mn3b.d.ts", +- // "../../../target/test-ts-modules-pkg/test-mn4a.d.ts", +- // "../../../target/test-ts-modules-pkg/test-mn4b.d.ts", +- // "../../../target/test-ts-modules-pkg/test-mn5.ts", +- // "../../../target/test-ts-modules-pkg/test-mn6.ts", +- // "../../../target/test-ts-modules-pkg/test-mn7.ts", +- // "../../../target/test-ts-modules-pkg/test-mn8.ts" ++ "../../../target/test-ts-modules/test-mn1.d.ts", ++ "../../../target/test-ts-modules/test-mn2.d.ts", ++ "../../../target/test-ts-modules/test-mn3a.d.ts", ++ "../../../target/test-ts-modules/test-mn3b.d.ts", ++ "../../../target/test-ts-modules/test-mn4a.d.ts", ++ "../../../target/test-ts-modules/test-mn4b.d.ts", ++ "../../../target/test-ts-modules/test-mn5.ts", ++ "../../../target/test-ts-modules/test-mn6.ts", ++ "../../../target/test-ts-modules/test-mn7.ts", ++ "../../../target/test-ts-modules/test-mn8.ts" + ] + } +\ No newline at end of file +diff --git a/typescript-generator-gradle-plugin/gradle-lib/gradle-base-services-2.0.jar b/typescript-generator-gradle-plugin/gradle-lib/gradle-base-services-2.0.jar +new file mode 100644 +index 000000000..25c3038a1 +Binary files /dev/null and b/typescript-generator-gradle-plugin/gradle-lib/gradle-base-services-2.0.jar differ +diff --git a/typescript-generator-gradle-plugin/gradle-lib/gradle-base-services-groovy-2.0.jar b/typescript-generator-gradle-plugin/gradle-lib/gradle-base-services-groovy-2.0.jar +new file mode 100644 +index 000000000..e66a65037 +Binary files /dev/null and b/typescript-generator-gradle-plugin/gradle-lib/gradle-base-services-groovy-2.0.jar differ +diff --git a/typescript-generator-gradle-plugin/gradle-lib/gradle-core-2.0.jar b/typescript-generator-gradle-plugin/gradle-lib/gradle-core-2.0.jar +new file mode 100644 +index 000000000..9b9bf0ac1 +Binary files /dev/null and b/typescript-generator-gradle-plugin/gradle-lib/gradle-core-2.0.jar differ +diff --git a/typescript-generator-gradle-plugin/pom.xml b/typescript-generator-gradle-plugin/pom.xml +index 43742569d..673f51273 100644 +--- a/typescript-generator-gradle-plugin/pom.xml ++++ b/typescript-generator-gradle-plugin/pom.xml +@@ -5,88 +5,49 @@ + + cz.habarta.typescript-generator + typescript-generator +- 3.2-SNAPSHOT ++ 1.12-SNAPSHOT + + + typescript-generator-gradle-plugin + jar + typescript-generator-gradle-plugin + +- +- 5.6 +- +- + + + org.gradle + gradle-core +- ${gradle.version} +- provided +- +- +- org.gradle +- gradle-core-api +- ${gradle.version} +- provided +- +- +- org.gradle +- gradle-model-core +- ${gradle.version} +- provided ++ 2.0 ++ system ++ ${basedir}/gradle-lib/gradle-core-2.0.jar + + + org.gradle + gradle-base-services +- ${gradle.version} +- provided ++ 2.0 ++ system ++ ${basedir}/gradle-lib/gradle-base-services-2.0.jar + + + org.gradle + gradle-base-services-groovy +- ${gradle.version} +- provided +- +- +- org.gradle +- gradle-logging +- ${gradle.version} +- provided ++ 2.0 ++ system ++ ${basedir}/gradle-lib/gradle-base-services-groovy-2.0.jar + + + org.codehaus.groovy + groovy-all +- 2.4.21 ++ 2.4.4 + + + cz.habarta.typescript-generator + typescript-generator-core +- 3.2-SNAPSHOT ++ 1.12-SNAPSHOT + + + +- +- +- repo.gradle.org +- https://repo.gradle.org/gradle/libs-releases-local/ +- +- +- + + +- +- org.apache.maven.plugins +- maven-checkstyle-plugin +- +- +- check +- verify +- +- check +- +- +- +- + + + +diff --git a/typescript-generator-gradle-plugin/src/main/java/cz/habarta/typescript/generator/gradle/GenerateTask.java b/typescript-generator-gradle-plugin/src/main/java/cz/habarta/typescript/generator/gradle/GenerateTask.java +index 12b282619..b909b9f4f 100644 +--- a/typescript-generator-gradle-plugin/src/main/java/cz/habarta/typescript/generator/gradle/GenerateTask.java ++++ b/typescript-generator-gradle-plugin/src/main/java/cz/habarta/typescript/generator/gradle/GenerateTask.java +@@ -1,40 +1,13 @@ + + package cz.habarta.typescript.generator.gradle; + +-import cz.habarta.typescript.generator.ClassMapping; +-import cz.habarta.typescript.generator.DateMapping; +-import cz.habarta.typescript.generator.EnumMapping; +-import cz.habarta.typescript.generator.GsonConfiguration; +-import cz.habarta.typescript.generator.IdentifierCasing; ++import cz.habarta.typescript.generator.*; + import cz.habarta.typescript.generator.Input; +-import cz.habarta.typescript.generator.Jackson2Configuration; +-import cz.habarta.typescript.generator.JsonLibrary; +-import cz.habarta.typescript.generator.JsonbConfiguration; +-import cz.habarta.typescript.generator.Logger; +-import cz.habarta.typescript.generator.MapMapping; +-import cz.habarta.typescript.generator.ModuleDependency; +-import cz.habarta.typescript.generator.NullabilityDefinition; +-import cz.habarta.typescript.generator.OptionalProperties; +-import cz.habarta.typescript.generator.OptionalPropertiesDeclaration; +-import cz.habarta.typescript.generator.Output; +-import cz.habarta.typescript.generator.RestNamespacing; +-import cz.habarta.typescript.generator.Settings; +-import cz.habarta.typescript.generator.StringQuotes; +-import cz.habarta.typescript.generator.TypeScriptFileType; +-import cz.habarta.typescript.generator.TypeScriptGenerator; +-import cz.habarta.typescript.generator.TypeScriptOutputKind; +-import cz.habarta.typescript.generator.util.Utils; +-import java.io.File; +-import java.net.URL; +-import java.net.URLClassLoader; +-import java.util.ArrayList; +-import java.util.Collections; +-import java.util.LinkedHashSet; +-import java.util.List; +-import java.util.Set; +-import org.gradle.api.DefaultTask; +-import org.gradle.api.Task; +-import org.gradle.api.tasks.TaskAction; ++import java.io.*; ++import java.net.*; ++import java.util.*; ++import org.gradle.api.*; ++import org.gradle.api.tasks.*; + + + public class GenerateTask extends DefaultTask { +@@ -44,93 +17,59 @@ public class GenerateTask extends DefaultTask { + public TypeScriptOutputKind outputKind; + public String module; + public String namespace; +- public boolean mapPackagesToNamespaces; +- public String umdNamespace; +- public List moduleDependencies; + public List classes; + public List classPatterns; +- public List classesWithAnnotations; +- public List classesImplementingInterfaces; +- public List classesExtendingClasses; + public String classesFromJaxrsApplication; + public boolean classesFromAutomaticJaxrsApplication; +- public List scanningAcceptedPackages; + public List excludeClasses; + public List excludeClassPatterns; + public List includePropertyAnnotations; +- public List excludePropertyAnnotations; + public JsonLibrary jsonLibrary; +- public Jackson2Configuration jackson2Configuration; +- public GsonConfiguration gsonConfiguration; +- public JsonbConfiguration jsonbConfiguration; +- public List additionalDataLibraries; +- public OptionalProperties optionalProperties; +- public OptionalPropertiesDeclaration optionalPropertiesDeclaration; +- public NullabilityDefinition nullabilityDefinition; +- public boolean declarePropertiesAsReadOnly; ++ public boolean declarePropertiesAsOptional; + public String removeTypeNamePrefix; + public String removeTypeNameSuffix; + public String addTypeNamePrefix; + public String addTypeNameSuffix; + public List customTypeNaming; +- public String customTypeNamingFunction; + public List referencedFiles; + public List importDeclarations; + public List customTypeMappings; +- public List customTypeAliases; + public DateMapping mapDate; +- public MapMapping mapMap; + public EnumMapping mapEnum; +- public IdentifierCasing enumMemberCasing; +- public boolean nonConstEnums; +- public List nonConstEnumAnnotations; +- public ClassMapping mapClasses; +- public List mapClassesAsClassesPatterns; +- public boolean generateConstructors; +- public List disableTaggedUnionAnnotations; + public boolean disableTaggedUnions; +- public boolean generateReadonlyAndWriteonlyJSDocTags; +- public boolean ignoreSwaggerAnnotations; +- public boolean generateJaxrsApplicationInterface; +- public boolean generateJaxrsApplicationClient; +- public boolean generateSpringApplicationInterface; +- public boolean generateSpringApplicationClient; +- public boolean scanSpringApplication; +- public RestNamespacing restNamespacing; +- public String restNamespacingAnnotation; +- public String restResponseType; +- public String restOptionsType; + public String customTypeProcessor; + public boolean sortDeclarations; + public boolean sortTypeDeclarations; + public boolean noFileComment; +- public boolean noTslintDisable; +- public boolean noEslintDisable; +- public boolean tsNoCheck; + public List javadocXmlFiles; + public List extensionClasses; +- public List extensions; +- public List extensionsWithConfiguration; + public List optionalAnnotations; +- public List requiredAnnotations; +- public List nullableAnnotations; +- public boolean primitivePropertiesRequired; +- public boolean generateInfoJson; +- public boolean generateNpmPackageJson; +- public String npmName; +- public String npmVersion; +- public String npmTypescriptVersion; +- public String npmBuildScript; +- public List npmDependencies; +- public List npmDevDependencies; +- public List npmPeerDependencies; +- public StringQuotes stringQuotes; +- public String indentString; +- public boolean jackson2ModuleDiscovery; +- public List jackson2Modules; +- public Logger.Level loggingLevel; ++ public boolean displaySerializerWarning = true; + +- private Settings createSettings(URLClassLoader classLoader) { ++ @TaskAction ++ public void generate() throws Exception { ++ if (outputFile == null) { ++ throw new RuntimeException("Please specify 'outputFile' property."); ++ } ++ if (jsonLibrary == null) { ++ throw new RuntimeException("Please specify 'jsonLibrary' property."); ++ } ++ ++ TypeScriptGenerator.printVersion(); ++ ++ // class loader ++ final List urls = new ArrayList<>(); ++ for (Task task : getProject().getTasksByName("compileJava", false)) { ++ for (File file : task.getOutputs().getFiles()) { ++ urls.add(file.toURI().toURL()); ++ } ++ } ++ for (File file : getProject().getConfigurations().getAt("compile").getFiles()) { ++ urls.add(file.toURI().toURL()); ++ } ++ final URLClassLoader classLoader = new URLClassLoader(urls.toArray(new URL[0]), Thread.currentThread().getContextClassLoader()); ++ ++ // Settings + final Settings settings = new Settings(); + if (outputFileType != null) { + settings.outputFileType = outputFileType; +@@ -138,143 +77,36 @@ public class GenerateTask extends DefaultTask { + settings.outputKind = outputKind; + settings.module = module; + settings.namespace = namespace; +- settings.mapPackagesToNamespaces = mapPackagesToNamespaces; +- settings.umdNamespace = umdNamespace; +- settings.moduleDependencies = moduleDependencies; + settings.setExcludeFilter(excludeClasses, excludeClassPatterns); + settings.jsonLibrary = jsonLibrary; +- settings.setJackson2Configuration(classLoader, jackson2Configuration); +- settings.gsonConfiguration = gsonConfiguration; +- settings.jsonbConfiguration = jsonbConfiguration; +- settings.additionalDataLibraries = additionalDataLibraries; +- settings.optionalProperties = optionalProperties; +- settings.optionalPropertiesDeclaration = optionalPropertiesDeclaration; +- settings.nullabilityDefinition = nullabilityDefinition; +- settings.declarePropertiesAsReadOnly = declarePropertiesAsReadOnly; ++ settings.declarePropertiesAsOptional = declarePropertiesAsOptional; + settings.removeTypeNamePrefix = removeTypeNamePrefix; + settings.removeTypeNameSuffix = removeTypeNameSuffix; + settings.addTypeNamePrefix = addTypeNamePrefix; + settings.addTypeNameSuffix = addTypeNameSuffix; +- settings.customTypeNaming = Settings.convertToMap(customTypeNaming, "customTypeNaming"); +- settings.customTypeNamingFunction = customTypeNamingFunction; ++ settings.customTypeNaming = Settings.convertToMap(customTypeNaming); + settings.referencedFiles = referencedFiles; + settings.importDeclarations = importDeclarations; +- settings.customTypeMappings = Settings.convertToMap(customTypeMappings, "customTypeMapping"); +- settings.customTypeAliases = Settings.convertToMap(customTypeAliases, "customTypeAlias"); ++ settings.customTypeMappings = Settings.convertToMap(customTypeMappings); + settings.mapDate = mapDate; +- settings.mapMap = mapMap; + settings.mapEnum = mapEnum; +- settings.enumMemberCasing = enumMemberCasing; +- settings.nonConstEnums = nonConstEnums; +- settings.loadNonConstEnumAnnotations(classLoader, nonConstEnumAnnotations); +- settings.mapClasses = mapClasses; +- settings.mapClassesAsClassesPatterns = mapClassesAsClassesPatterns; +- settings.generateConstructors = generateConstructors; +- settings.loadDisableTaggedUnionAnnotations(classLoader, disableTaggedUnionAnnotations); + settings.disableTaggedUnions = disableTaggedUnions; +- settings.generateReadonlyAndWriteonlyJSDocTags = generateReadonlyAndWriteonlyJSDocTags; +- settings.ignoreSwaggerAnnotations = ignoreSwaggerAnnotations; +- settings.generateJaxrsApplicationInterface = generateJaxrsApplicationInterface; +- settings.generateJaxrsApplicationClient = generateJaxrsApplicationClient; +- settings.generateSpringApplicationInterface = generateSpringApplicationInterface; +- settings.generateSpringApplicationClient = generateSpringApplicationClient; +- settings.scanSpringApplication = scanSpringApplication; +- settings.restNamespacing = restNamespacing; +- settings.setRestNamespacingAnnotation(classLoader, restNamespacingAnnotation); +- settings.restResponseType = restResponseType; +- settings.setRestOptionsType(restOptionsType); + settings.loadCustomTypeProcessor(classLoader, customTypeProcessor); + settings.sortDeclarations = sortDeclarations; + settings.sortTypeDeclarations = sortTypeDeclarations; + settings.noFileComment = noFileComment; +- settings.noTslintDisable = noTslintDisable; +- settings.noEslintDisable = noEslintDisable; +- settings.tsNoCheck = tsNoCheck; + settings.javadocXmlFiles = javadocXmlFiles; +- settings.loadExtensions(classLoader, Utils.concat(extensionClasses, extensions), extensionsWithConfiguration); ++ settings.loadExtensions(classLoader, extensionClasses); + settings.loadIncludePropertyAnnotations(classLoader, includePropertyAnnotations); +- settings.loadExcludePropertyAnnotations(classLoader, excludePropertyAnnotations); + settings.loadOptionalAnnotations(classLoader, optionalAnnotations); +- settings.loadRequiredAnnotations(classLoader, requiredAnnotations); +- settings.loadNullableAnnotations(classLoader, nullableAnnotations); +- settings.primitivePropertiesRequired = primitivePropertiesRequired; +- settings.generateInfoJson = generateInfoJson; +- settings.generateNpmPackageJson = generateNpmPackageJson; +- settings.npmName = npmName == null && generateNpmPackageJson ? getProject().getName() : npmName; +- settings.npmVersion = npmVersion == null && generateNpmPackageJson ? settings.getDefaultNpmVersion() : npmVersion; +- settings.npmTypescriptVersion = npmTypescriptVersion; +- settings.npmBuildScript = npmBuildScript; +- settings.npmPackageDependencies = Settings.convertToMap(npmDependencies, "npmDependencies"); +- settings.npmDevDependencies = Settings.convertToMap(npmDevDependencies, "npmDevDependencies"); +- settings.npmPeerDependencies = Settings.convertToMap(npmPeerDependencies, "npmPeerDependencies"); +- settings.setStringQuotes(stringQuotes); +- settings.setIndentString(indentString); +- settings.jackson2ModuleDiscovery = jackson2ModuleDiscovery; +- settings.loadJackson2Modules(classLoader, jackson2Modules); +- settings.classLoader = classLoader; +- return settings; +- } +- +- @TaskAction +- public void generate() throws Exception { +- if (outputKind == null) { +- throw new RuntimeException("Please specify 'outputKind' property."); +- } +- if (jsonLibrary == null) { +- throw new RuntimeException("Please specify 'jsonLibrary' property."); +- } +- +- TypeScriptGenerator.setLogger(new Logger(loggingLevel)); +- TypeScriptGenerator.printVersion(); +- +- // class loader +- final Set urls = new LinkedHashSet<>(); +- for (Task task : getProject().getTasks()) { +- if (task.getName().startsWith("compile") && !task.getName().startsWith("compileTest")) { +- for (File file : task.getOutputs().getFiles()) { +- urls.add(file.toURI().toURL()); +- } +- } +- } +- urls.addAll(getFilesFromConfiguration("compileClasspath")); +- +- try (URLClassLoader classLoader = Settings.createClassLoader(getProject().getName(), urls.toArray(new URL[0]), Thread.currentThread().getContextClassLoader())) { +- +- final Settings settings = createSettings(classLoader); +- +- final Input.Parameters parameters = new Input.Parameters(); +- parameters.classNames = classes; +- parameters.classNamePatterns = classPatterns; +- parameters.classesWithAnnotations = classesWithAnnotations; +- parameters.classesImplementingInterfaces = classesImplementingInterfaces; +- parameters.classesExtendingClasses = classesExtendingClasses; +- parameters.jaxrsApplicationClassName = classesFromJaxrsApplication; +- parameters.automaticJaxrsApplication = classesFromAutomaticJaxrsApplication; +- parameters.isClassNameExcluded = settings.getExcludeFilter(); +- parameters.classLoader = classLoader; +- parameters.scanningAcceptedPackages = scanningAcceptedPackages; +- parameters.debug = loggingLevel == Logger.Level.Debug; +- +- final File output = outputFile != null +- ? getProject().file(outputFile) +- : new File(new File(getProject().getBuildDir(), "typescript-generator"), getProject().getName() + settings.getExtension()); +- settings.validateFileName(output); +- +- new TypeScriptGenerator(settings).generateTypeScript(Input.from(parameters), Output.to(output)); +- } +- } +- +- private List getFilesFromConfiguration(String configuration) { +- try { +- final List urls = new ArrayList<>(); +- for (File file : getProject().getConfigurations().getAt(configuration).getFiles()) { +- urls.add(file.toURI().toURL()); +- } +- return urls; +- } catch (Exception e) { +- TypeScriptGenerator.getLogger().warning(String.format("Cannot get file names from configuration '%s': %s", configuration, e.getMessage())); +- return Collections.emptyList(); +- } ++ settings.displaySerializerWarning = displaySerializerWarning; ++ settings.validateFileName(new File(outputFile)); ++ ++ // TypeScriptGenerator ++ new TypeScriptGenerator(settings).generateTypeScript( ++ Input.fromClassNamesAndJaxrsApplication(classes, classPatterns, classesFromJaxrsApplication, classesFromAutomaticJaxrsApplication, settings.getExcludeFilter(), classLoader), ++ Output.to(getProject().file(outputFile)) ++ ); + } + + } +diff --git a/typescript-generator-gradle-plugin/src/main/java/cz/habarta/typescript/generator/gradle/TypeScriptGeneratorPlugin.java b/typescript-generator-gradle-plugin/src/main/java/cz/habarta/typescript/generator/gradle/TypeScriptGeneratorPlugin.java +index d9e0eb8c4..1d6fde837 100644 +--- a/typescript-generator-gradle-plugin/src/main/java/cz/habarta/typescript/generator/gradle/TypeScriptGeneratorPlugin.java ++++ b/typescript-generator-gradle-plugin/src/main/java/cz/habarta/typescript/generator/gradle/TypeScriptGeneratorPlugin.java +@@ -1,24 +1,19 @@ + + package cz.habarta.typescript.generator.gradle; + +-import java.util.Collections; +-import org.gradle.api.Plugin; +-import org.gradle.api.Project; +-import org.gradle.api.Task; ++import java.util.*; ++import org.gradle.api.*; + + + public class TypeScriptGeneratorPlugin implements Plugin { + + @Override + public void apply(Project project) { +- final Task generateTsTask = project.task(Collections.singletonMap(Task.TASK_TYPE, GenerateTask.class), "generateTypeScript"); +- +- for (Task task : project.getTasks()) { +- if (task.getName().startsWith("compile") && !task.getName().startsWith("compileTest")) { +- generateTsTask.dependsOn(task.getName()); +- generateTsTask.getInputs().files(task); +- } ++ final Task task = project.task(Collections.singletonMap(Task.TASK_TYPE, GenerateTask.class), "generateTypeScript"); ++ task.dependsOn("compileJava"); ++ for (Task classesTask : project.getTasksByName("classes", false)) { ++ classesTask.dependsOn(task); + } + } +- ++ + } +diff --git a/typescript-generator-maven-plugin/pom.xml b/typescript-generator-maven-plugin/pom.xml +index 2c1484b3f..bedc74a9c 100644 +--- a/typescript-generator-maven-plugin/pom.xml ++++ b/typescript-generator-maven-plugin/pom.xml +@@ -5,7 +5,7 @@ + + cz.habarta.typescript-generator + typescript-generator +- 3.2-SNAPSHOT ++ 1.12-SNAPSHOT + + + typescript-generator-maven-plugin +@@ -17,7 +17,6 @@ + org.apache.maven + maven-core + 3.0 +- provided + + + org.apache.maven.plugin-tools +@@ -28,7 +27,7 @@ + + cz.habarta.typescript-generator + typescript-generator-core +- 3.2-SNAPSHOT ++ 1.12-SNAPSHOT + + + +@@ -37,6 +36,7 @@ + + org.apache.maven.plugins + maven-plugin-plugin ++ 3.3 + + typescript-generator + true +@@ -56,19 +56,6 @@ + + + +- +- org.apache.maven.plugins +- maven-checkstyle-plugin +- +- +- check +- verify +- +- check +- +- +- +- + + + +diff --git a/typescript-generator-maven-plugin/src/main/java/cz/habarta/typescript/generator/maven/GenerateMojo.java b/typescript-generator-maven-plugin/src/main/java/cz/habarta/typescript/generator/maven/GenerateMojo.java +index a68044ca4..e5aa846ed 100644 +--- a/typescript-generator-maven-plugin/src/main/java/cz/habarta/typescript/generator/maven/GenerateMojo.java ++++ b/typescript-generator-maven-plugin/src/main/java/cz/habarta/typescript/generator/maven/GenerateMojo.java +@@ -1,162 +1,80 @@ + + package cz.habarta.typescript.generator.maven; + +-import cz.habarta.typescript.generator.ClassMapping; +-import cz.habarta.typescript.generator.DateMapping; +-import cz.habarta.typescript.generator.EnumMapping; +-import cz.habarta.typescript.generator.GsonConfiguration; +-import cz.habarta.typescript.generator.IdentifierCasing; +-import cz.habarta.typescript.generator.Input; +-import cz.habarta.typescript.generator.Jackson2Configuration; +-import cz.habarta.typescript.generator.JsonLibrary; +-import cz.habarta.typescript.generator.JsonbConfiguration; +-import cz.habarta.typescript.generator.Logger; +-import cz.habarta.typescript.generator.MapMapping; +-import cz.habarta.typescript.generator.ModuleDependency; +-import cz.habarta.typescript.generator.NullabilityDefinition; +-import cz.habarta.typescript.generator.OptionalProperties; +-import cz.habarta.typescript.generator.OptionalPropertiesDeclaration; +-import cz.habarta.typescript.generator.Output; +-import cz.habarta.typescript.generator.RestNamespacing; +-import cz.habarta.typescript.generator.Settings; +-import cz.habarta.typescript.generator.StringQuotes; +-import cz.habarta.typescript.generator.TypeScriptFileType; +-import cz.habarta.typescript.generator.TypeScriptGenerator; +-import cz.habarta.typescript.generator.TypeScriptOutputKind; +-import java.io.File; +-import java.io.IOException; +-import java.net.URL; +-import java.net.URLClassLoader; +-import java.util.ArrayList; +-import java.util.List; +-import org.apache.maven.artifact.DependencyResolutionRequiredException; ++import cz.habarta.typescript.generator.*; ++import java.io.*; ++import java.net.*; ++import java.util.*; ++import org.apache.maven.artifact.*; + import org.apache.maven.plugin.AbstractMojo; +-import org.apache.maven.plugins.annotations.LifecyclePhase; +-import org.apache.maven.plugins.annotations.Mojo; +-import org.apache.maven.plugins.annotations.Parameter; +-import org.apache.maven.plugins.annotations.ResolutionScope; ++import org.apache.maven.plugins.annotations.*; + import org.apache.maven.project.MavenProject; + + /** + * Generates TypeScript declaration file from specified java classes. + * For more information see README and Wiki on GitHub. + */ +-@Mojo(name = "generate", defaultPhase = LifecyclePhase.PROCESS_CLASSES, requiresDependencyResolution = ResolutionScope.COMPILE, threadSafe = true) ++@Mojo(name = "generate", defaultPhase = LifecyclePhase.PROCESS_CLASSES, requiresDependencyResolution = ResolutionScope.COMPILE) + public class GenerateMojo extends AbstractMojo { + + /** + * Path and name of generated TypeScript file. ++ * Required parameter. + */ +- @Parameter ++ @Parameter(required = true) + private File outputFile; + + /** +- * Output file format, can be: +- *
    +- *
  • declarationFile (.d.ts)
  • +- *
  • implementationFile (.ts)
  • +- *
+- * Setting this parameter to implementationFile allows to generate runnable TypeScript code.
+- * Default value is declarationFile. ++ * Output file format, can be 'declarationFile' (.d.ts) or 'implementationFile' (.ts). ++ * Setting this parameter to 'implementationFile' allows extensions to generate runnable TypeScript code. ++ * Default value is 'declarationFile'. + */ + @Parameter + private TypeScriptFileType outputFileType; + + /** +- * Kind of generated TypeScript output. Allowed values are: +- *
    +- *
  • global - means that declarations will be in global scope or namespace (no module)
  • +- *
  • module - means that generated file will contain top-level export declarations
  • +- *
  • ambientModule - means that generated declarations will be wrapped in declare module "mod" { } declaration
  • +- *
++ * Kind of generated TypeScript output, allowed values are 'global', 'module' or 'ambientModule'. ++ * Value 'global' means that declarations will be in global scope or namespace (no module). ++ * Value 'module' means that generated file will contain top-level 'export' declarations. ++ * Value 'ambientModule' means that generated declarations will be wrapped in 'declare module "mod" { }' declaration. + * Required parameter. +- * For more information see
Modules and Namespaces Wiki page. ++ * For more information see Wiki page 'http://vojtechhabarta.github.io/typescript-generator/doc/ModulesAndNamespaces.html'. + */ + @Parameter(required = true) +- public TypeScriptOutputKind outputKind; ++ private TypeScriptOutputKind outputKind; + + /** +- * Name of generated ambient module.
+- * Used when {@link #outputKind} is set to ambientModule. ++ * Name of generated ambient module. ++ * Used when 'outputKind' is set to 'ambientModule'. + */ + @Parameter + private String module; + + /** +- * Generates specified namespace.
+- * Not recommended to combine with modules.
+- * Default is no namespace. ++ * Generates specified namespace. Not recommended to combine with modules. Default is no namespace. + */ + @Parameter + private String namespace; + + /** +- * Generates TypeScript namespaces from Java packages. Default is false. +- */ +- @Parameter +- private boolean mapPackagesToNamespaces; +- +- /** +- * Turns proper module into UMD (Universal Module Definition) with specified namespace. +- * Only applicable to declaration files. +- */ +- @Parameter +- private String umdNamespace; +- +- /** +- * List of modules (generated by typescript-generator!) on which currently generated module depends on. +- * Each item of this list has +- *
    +- *
  • importFrom - (required) module name in generated import statement, can be relative path
  • +- *
  • importAs - (required) name that will be used when referring to the imports
  • +- *
  • infoJson - (required) file path to the module info JSON generated by preceding typescript-generator run, see {@link #generateInfoJson} parameter
  • +- *
  • npmPackageName - (required when generating package.json) NPM dependency package name
  • +- *
  • npmVersionRange - (required when generating package.json) NPM dependency version (or other identification)
  • +- *
+- * Only applicable when {@link #outputKind} is set to module. +- */ +- @Parameter +- private List moduleDependencies; +- +- /** +- * Classes to process. ++ * JSON classes to process. + */ + @Parameter + private List classes; + + /** +- * Classes to process specified using glob patterns ++ * JSON classes to process specified using glob patterns + * so it is possible to specify package or class name suffix. + * Glob patterns support two wildcards: +- *
    +- *
  • Single * wildcard matches any character except for . and $.
  • +- *
  • Double ** wildcard matches any character.
  • +- *
+- * For more information and examples see Class Names Glob Patterns Wiki page. ++ * Single "*" wildcard matches any character except for "." and "$". ++ * Double "**" wildcard matches any character. ++ * For more information and examples see Wiki page 'https://github.com/vojtechhabarta/typescript-generator/wiki/Class-Names-Glob-Patterns'. + */ + @Parameter + private List classPatterns; + + /** +- * Classes to process specified by annotations. +- */ +- @Parameter +- private List classesWithAnnotations; +- +- /** +- * Classes to process specified by implemented interface. +- */ +- @Parameter +- private List classesImplementingInterfaces; +- +- /** +- * Classes to process specified by extended superclasses. +- */ +- @Parameter +- private List classesExtendingClasses; +- +- /** +- * Scans specified JAX-RS {@link javax.ws.rs.core.Application} for classes to process. ++ * Scans specified JAX-RS {@link javax.ws.rs.core.Application} for JSON classes to process. + * Parameter contains fully-qualified class name. + * It is possible to exclude particular REST resource classes using {@link #excludeClasses} parameter. + */ +@@ -170,21 +88,6 @@ public class GenerateMojo extends AbstractMojo { + @Parameter + private boolean classesFromAutomaticJaxrsApplication; + +- /** +- * Allows to speed up classpath scanning by limiting scanning to specified packages. +- * This optimization applies to following parameters: +- *
    +- *
  • classPatterns
  • +- *
  • classesImplementingInterfaces
  • +- *
  • classesExtendingClasses
  • +- *
  • classesWithAnnotations
  • +- *
  • classesFromAutomaticJaxrsApplication
  • +- *
+- * This parameter is passed directly to underlying classpath scanning library (ClassGraph) without any validation or interpretation. +- */ +- @Parameter +- private List scanningAcceptedPackages; +- + /** + * List of classes excluded from processing. + */ +@@ -193,189 +96,80 @@ public class GenerateMojo extends AbstractMojo { + + /** + * Excluded classes specified using glob patterns. +- * For more information and examples see Class Names Glob Patterns Wiki page. + */ + @Parameter + private List excludeClassPatterns; + + /** +- * If this list is not empty then only properties with any of these annotations will be included. ++ * If this list is not empty then TypeScript will only be generated for ++ * methods with one of the annotations defined in this list + */ + @Parameter + private List includePropertyAnnotations; + +- /** +- * Properties with any of these annotations will be excluded. +- */ +- @Parameter +- private List excludePropertyAnnotations; +- + /** + * Library used in JSON classes. +- * Supported values are: +- *
    +- *
  • jackson2 - annotations from `com.fasterxml.jackson.annotation` package
  • +- *
  • jaxb - annotations from `javax.xml.bind.annotation` package
  • +- *
  • gson - annotations from `com.google.gson.annotations` package
  • +- *
  • jsonb - annotations from `javax.json.bind.annotation` package
  • +- *
+- * Required parameter, recommended value is jackson2. ++ * Supported values are ++ * 'jackson1' (annotations from 'org.codehaus.jackson.annotate' package), ++ * 'jackson2' (annotations from 'com.fasterxml.jackson.annotation' package), ++ * `jaxb` (annotations from 'javax.xml.bind.annotation' package). ++ * Required parameter, recommended value is 'jackson2'. + */ + @Parameter(required = true) + private JsonLibrary jsonLibrary; + + /** +- * Specifies Jackson 2 global configuration. +- * Description of individual parameters is in +- * Jackson2Configuration +- * class on GitHub (latest version). +- */ +- @Parameter +- private Jackson2Configuration jackson2Configuration; +- +- /** +- * Specifies Gson global configuration. +- * Description of individual parameters is in +- * GsonConfiguration +- * class on GitHub (latest version). +- */ +- @Parameter +- private GsonConfiguration gsonConfiguration; +- +- /** +- * Specifies JSON-B global configuration. +- * Description of individual parameters is in +- * Jackson2Configuration +- * class on GitHub (latest version). +- */ +- @Parameter +- private JsonbConfiguration jsonbConfiguration; +- +- /** +- * Allows to add support for specified libraries. +- * Some libraries have special Jackson serializers and deserializers for their data types so this parameter allows to reflect actual JSON format of those data types. +- * Note: specified library must be present in project dependencies (typescript-generator itself doesn't depend on those libraries). +- * Supported libraries are: +- * +- */ +- @Parameter +- private List additionalDataLibraries; +- +- /** +- * Specifies how properties are defined to be optional. +- * Supported values are: +- *
    +- *
  • useSpecifiedAnnotations - annotations specified using {@link #optionalAnnotations} or {@link #requiredAnnotations} parameter
  • +- *
  • useLibraryDefinition - examples: @JsonProperty(required = false) when using jackson2 library +- * or @XmlElement(required = false) when using jaxb library
  • +- *
  • all - all properties are optional
  • +- *
+- * Default value is useSpecifiedAnnotations. +- */ +- @Parameter +- private OptionalProperties optionalProperties; +- +- /** +- * Specifies how optional properties will be declared in generated file. +- * This parameter applies to properties detected as optional. +- * The detection can be specified using {@link #optionalProperties} parameter. +- * Supported values are: +- *
    +- *
  • questionMark - property will be marked using ? character as optional
  • +- *
  • questionMarkAndNullableType - property will be optional and it will also have union with null value
  • +- *
  • nullableType - property will not be optional but its type will be union with null value
  • +- *
  • nullableAndUndefinableType - property will not be optional but its type will be union with null and undefined values
  • +- *
  • undefinableType - property will not be optional but its type will be union with undefined value
  • +- *
+- * Default value is questionMark. +- */ +- @Parameter +- private OptionalPropertiesDeclaration optionalPropertiesDeclaration; +- +- /** +- * Specifies how nullable types will be created in generated file. +- * Nullable types are marked in Java by annotations specified using {@link #nullableAnnotations} parameter like List<@Nullable String>. +- * In Kotlin nullable types are marked using ? character like List<String?>. +- * Value of this parameter specifies how nullable type is created from regular type T: +- *
    +- *
  • nullAndUndefinedUnion - type alias Nullable<T> which is defined as union of T | null | undefined
  • +- *
  • nullUnion - type alias Nullable<T> which is defined as union of T | null
  • +- *
  • undefinedUnion - type alias Nullable<T> which is defined as union of T | undefined
  • +- *
  • nullAndUndefinedInlineUnion - union of T | null | undefined without type alias
  • +- *
  • nullInlineUnion - union of T | null without type alias
  • +- *
  • undefinedInlineUnion - union of T | undefined without type alias
  • +- *
+- * Default value is nullInlineUnion. +- */ +- @Parameter +- private NullabilityDefinition nullabilityDefinition; +- +- /** +- * If true declared properties will be readonly. ++ * If true declared properties will be optional. + */ + @Parameter +- private boolean declarePropertiesAsReadOnly; ++ private boolean declarePropertiesAsOptional; + + /** + * Prefix which will be removed from names of classes, interfaces, enums. +- * For example if set to Json then mapping for JsonData will be Data. ++ * For example if set to "Json" then mapping for "JsonData" will be "Data". + */ + @Parameter + private String removeTypeNamePrefix; + + /** + * Suffix which will be removed from names of classes, interfaces, enums. +- * For example if set to JSON then mapping for DataJSON will be Data. ++ * For example if set to "JSON" then mapping for "DataJSON" will be "Data". + */ + @Parameter + private String removeTypeNameSuffix; + + /** + * Prefix which will be added to names of classes, interfaces, enums. +- * For example if set to I then mapping for Data will be IData. ++ * For example if set to "I" then mapping for "Data" will be "IData". + */ + @Parameter + private String addTypeNamePrefix; + + /** + * Suffix which will be added to names of classes, interfaces, enums. +- * For example if set to Data then mapping for Person will be PersonData. ++ * For example if set to "Data" then mapping for "Person" will be "PersonData". + */ + @Parameter + private String addTypeNameSuffix; + + /** +- * Specifies custom TypeScript names for Java classes. +- * Multiple mappings can be specified, each using this format: javaClassName:typescriptName. ++ * Specifies custom TypeScript name for Java classes. ++ * Multiple mappings can be specified, each using this format: "javaClassName:typescriptName". + * This takes precedence over other naming settings. +- * For more information and example see Type Mapping Wiki page. + */ + @Parameter + private List customTypeNaming; + + /** +- * Specifies JavaScript function for getting custom TypeScript names for Java classes. +- * Function can return undefined if default name should be used.
+- * Function signature: function getName(className: string, classSimpleName: string): string | null | undefined;
+- * Example function: function(name, simpleName) { if (name.startsWith('cz.')) return 'Test' + simpleName; } +- */ +- @Parameter +- private String customTypeNamingFunction; +- +- /** +- * List of files which will be referenced using triple-slash directive: /// <reference path="file" />. +- * This can be used with {@link #customTypeMappings} to provide needed TypeScript types. ++ * List of files which will be referenced using triple-slash directive: /// <reference path="file" />. ++ * This can be used with "customTypeMappings" to provide needed TypeScript types. + */ + @Parameter + private List referencedFiles; + + /** + * List of import declarations which will be added to generated output. +- * This can be used with {@link #customTypeMappings} to provide needed TypeScript types. ++ * This can be used with "customTypeMappings" to provide needed TypeScript types. + */ + @Parameter + private List importDeclarations; +@@ -383,286 +177,71 @@ public class GenerateMojo extends AbstractMojo { + /** + * List of custom mappings. + * Each item specifies TypeScript type which will be used for particular Java class. +- * Item format is: javaClassName:typescriptType. +- * For example mapping Joda-Time {@link org.joda.time.LocalDateTime} to string would be added as org.joda.time.LocalDateTime:string. +- * Mappings of generic classes must use syntax com.package.MyGenericClass<T1,T2>:TsGenericType2<T1,T2>. +- * Instead of <T1,T2> it is also possible to use [T1,T2]. ++ * Item format is: "javaClass:typescriptType". ++ * For example mapping "ZonedDateTime" to "string" would be added as "java.time.ZonedDateTime:string". + */ + @Parameter + private List customTypeMappings; + +- /** +- * List of custom type aliases. +- * Each item it this list specifies type alias name (possibly with generic parameters) and its definition. +- * Item format is: name:definition. +- * For example for Unwrap<T>:T following type alias will be generated type Unwrap<T> = T. +- * Other examples: SimpleName:VeryLongGeneratedName, StringID<T>:string. +- */ +- @Parameter +- private List customTypeAliases; +- + /** + * Specifies how {@link java.util.Date} will be mapped. +- * Supported values are: +- *
    +- *
  • asDate - type Date
  • +- *
  • asNumber - type number
  • +- *
  • asString - type string
  • +- *
+- * Default value is asDate. ++ * Supported values are 'asDate', 'asNumber', 'asString'. ++ * Default value is 'asDate'. + */ + @Parameter + private DateMapping mapDate; + +- /** +- * Specifies how {@link java.util.Map} and similar types will be mapped. +- * Supported values are: +- *
    +- *
  • asIndexedArray - creates indexed array type, example: { [index: string]: Person } (original way)
  • +- *
  • asRecord - creates Record type, example: Record<string, Person> (from TypeScript 2.1)
  • +- *
+- * Default value is asIndexedArray.
+- */ +- @Parameter +- private MapMapping mapMap; +- + /** + * Specifies how enums will be mapped. +- * Supported values are: +- *
    +- *
  • asUnion - creates type alias to union of string enum values
  • +- *
  • asInlineUnion - creates union of enum values on places where the enum is used
  • +- *
  • asEnum - creates string enum. Requires TypeScript 2.4
  • +- *
  • asNumberBasedEnum - creates enum of named number values
  • +- *
+- * Default value is asUnion.
+- * See also nonConstEnums parameter. ++ * Supported values are 'asUnion', 'asInlineUnion', 'asNumberBasedEnum'. ++ * Default value is 'asUnion'. ++ * Value 'asUnion' creates type alias to union of string enum values. ++ * Value 'asInlineUnion' creates union of enum values on places where the enum is used. ++ * Value 'asNumberBasedEnum' creates enum of named number values. + */ + @Parameter + private EnumMapping mapEnum; + + /** +- * Specifies how enum members will be named. +- * Supported values are: +- *
    +- *
  • keepOriginal - keeps member name as is
  • +- *
  • PascalCase - converts name to Pascal case (upper camel case) convention
  • +- *
  • camelCase - converts name to lower camel case convention
  • +- *
+- * Default value is keepOriginal. +- */ +- @Parameter +- private IdentifierCasing enumMemberCasing; +- +- /** +- * If true generated enums will not have const keyword.
+- * This can be used only in implementation files. +- */ +- @Parameter +- private boolean nonConstEnums; +- +- /** +- * If this list is not empty, then generated enums will not have const keyword, +- * if the enum contains one of the annotations defined in this list. +- * See {@link #nonConstEnums} +- * +- */ +- @Parameter +- private List nonConstEnumAnnotations; +- +- /** +- * Specifies whether Java classes will be mapped to TypeScript classes or interfaces. +- * Java interfaces are always mapped as TypeScript interfaces. +- * Supported values are: +- *
    +- *
  • asInterfaces
  • +- *
  • asClasses
  • +- *
+- * Default value is asInterfaces.
+- * Value asClasses can only be used in implementation files (.ts). +- * In this case it is also possible to generate constructors by setting generateConstructors parameter to true. +- * It is also possible to generate mix of classes and interfaces by setting mapClasses parameter to asClasses value +- * and specifying which classes should be mapped as classes using mapClassesAsClassesPatterns parameter. +- */ +- @Parameter +- private ClassMapping mapClasses; +- +- /** +- * Specifies which Java classes should be mapped as TypeScript classes. +- * Classes which are matched by any of these patters are mapped as classes otherwise they are mapped as interfaces. +- * This parameter can only be used when mapClasses parameter is set to asClasses value. +- */ +- @Parameter +- private List mapClassesAsClassesPatterns; +- +- /** +- * If true generated classes will also have constructors. +- * Generated constructors use "named parameters" pattern so when calling such constructor parameters need to be wrapped in "options" object. +- * This parameter can only be used when mapClasses parameter is set to asClasses value. +- */ +- @Parameter +- private boolean generateConstructors; +- +- /** +- * Specifies annotations used for disabling tagged union created from classes. +- * In case of Jackson2 library this means class hierarchy formed using @JsonTypeInfo and @JsonSubTypes annotations. +- * While disableTaggedUnions parameter only disables creation of TypeScript discriminated union types +- * this parameter allows to disable also processing of discriminant property. +- */ +- @Parameter +- private List disableTaggedUnionAnnotations; +- +- /** +- * If true tagged unions will not be generated for Jackson 2 polymorphic types. +- * This parameter does not disable processing of discriminant property. +- * See also disableTaggedUnionAnnotations parameter. ++ * If true tagged unions will not be generated for Jackson 2 polymorphic types. + */ + @Parameter + private boolean disableTaggedUnions; + +- /** +- * If true JSDoc tags @readonly and @writeonly will be generated on properties with read-only or write-only access. +- */ +- @Parameter +- private boolean generateReadonlyAndWriteonlyJSDocTags; +- +- /** +- * If true Swagger annotations will not be used. +- */ +- @Parameter +- private boolean ignoreSwaggerAnnotations; +- +- /** +- * If true interface for JAX-RS REST application will be generated. +- */ +- @Parameter +- private boolean generateJaxrsApplicationInterface; +- +- /** +- * If true client for JAX-RS REST application will be generated. +- */ +- @Parameter +- private boolean generateJaxrsApplicationClient; +- +- /** +- * If true interface for Spring REST application will be generated. +- */ +- @Parameter +- private boolean generateSpringApplicationInterface; +- +- /** +- * If true client for Spring REST application will be generated. +- */ +- @Parameter +- private boolean generateSpringApplicationClient; +- +- /** +- * If true Spring REST application will be loaded and scanned for classes to process. +- * It is needed to specify application class using another parameter (for example {@link #classes}). +- */ +- @Parameter +- private boolean scanSpringApplication; +- +- /** +- * Specifies how JAX-RS REST operations will be grouped into objects. +- * Supported values are: +- *
    +- *
  • singleObject - means that one object with all operations will be generated
  • +- *
  • perResource - means that for each root resource one object will be generated
  • +- *
  • byAnnotation - means that operations will be grouped by annotation specified using {@link #jaxrsNamespacingAnnotation}
  • +- *
+- * Default value is singleObject. +- */ +- @Parameter +- private RestNamespacing restNamespacing; +- +- /** +- * Specifies annotation used for grouping JAX-RS REST operations. +- * Format is annotationClass#annotationElement where +- * annotationClass is fully-qualified class name and annotationElement is element name and defaults to value. +- * Examples: +- *
    +- *
  • io.swagger.annotations.Api
  • +- *
  • io.swagger.annotations.Api#value
  • +- *
+- */ +- @Parameter +- private String restNamespacingAnnotation; +- +- /** +- * Specifies HTTP response type in REST application. +- * Default value is Promise<R> which means data object returned asynchronously. +- * This parameter is useful for example when underlying HTTP response object (like XMLHttpRequest or AxiosPromise) +- * is returned instead of actual response data. +- */ +- @Parameter +- private String restResponseType; +- +- /** +- * Specifies HTTP request options type in REST application. +- * By default no options parameter is generated. +- * Useful when passing additional parameters to underlying HTTP request method (like jQuery ajax settings or AxiosRequestConfig). +- * Can be specific (for example AxiosRequestConfig) or generic (for example <O>). +- */ +- @Parameter +- private String restOptionsType; +- + /** + * Specifies custom class implementing {@link cz.habarta.typescript.generator.TypeProcessor}. + * This allows to customize how Java types are mapped to TypeScript. + * For example it is possible to implement TypeProcessor +- * for {@link com.google.common.base.Optional} from guava. ++ * for {@link com.google.common.base.Optional} from guava or for Java 8 date/time classes. + */ + @Parameter + private String customTypeProcessor; + + /** +- * If true TypeScript declarations (interfaces, properties) will be sorted alphabetically. ++ * If true TypeScript declarations (interfaces, properties) will be sorted alphabetically. + */ + @Parameter + private boolean sortDeclarations; + + /** +- * If true TypeScript type declarations (interfaces) will be sorted alphabetically. ++ * If true TypeScript type declarations (interfaces) will be sorted alphabetically. + */ + @Parameter + private boolean sortTypeDeclarations; + + /** +- * If true generated file will not contain comment at the top. ++ * If true generated file will not contain comment at the top. + * By default there is a comment with timestamp and typescript-generator version. + * So it might be useful to suppress this comment if the file is in source control and is regenerated in build. + */ + @Parameter + private boolean noFileComment; + +- /** +- * If true generated file will not be prevented from linting by TSLint. +- * By default there is a {@code tslint:disable} comment that will force TSLint to ignore the generated file. +- * This can be enabled to suppress this comment so that the file can be linted by TSLint. +- */ +- @Parameter +- private boolean noTslintDisable; +- +- /** +- * If true generated file will not be prevented from linting by ESLint. +- * By default there is a {@code eslint-disable} comment that will force ESLint to ignore the generated file. +- * This can be enabled to suppress this comment so that the file can be linted by ESLint. +- */ +- @Parameter +- private boolean noEslintDisable; +- +- /** +- * If true generated file will have disabled TypeScript semantic checks using @ts-nocheck comment. +- */ +- @Parameter +- private boolean tsNoCheck; +- + /** + * List of Javadoc XML files to search for documentation comments. +- * These files should be created using com.github.markusbernhardt.xmldoclet.XmlDoclet from com.github.markusbernhardt:xml-doclet artifact. ++ * These files should be created using "com.github.markusbernhardt.xmldoclet.XmlDoclet" (com.github.markusbernhardt:xml-doclet). + * Javadoc comments are added to output declarations as JSDoc comments. +- * For more information see Javadoc Wiki page. ++ * For more information see Wiki page 'https://github.com/vojtechhabarta/typescript-generator/wiki/Javadoc'. + */ + @Parameter + private List javadocXmlFiles; +@@ -670,327 +249,81 @@ public class GenerateMojo extends AbstractMojo { + /** + * List of extensions specified as fully qualified class name. + * Known extensions: +- *
    +- *
  • cz.habarta.typescript.generator.ext.AxiosClientExtension} +- * - generates client for JAX-RS service using Axios library, see JAX RS ApplicationWiki page
  • +- *
  • cz.habarta.typescript.generator.ext.BeanPropertyPathExtension} +- * - generates type-safe property path getters
  • +- *
  • cz.habarta.typescript.generator.ext.TypeGuardsForJackson2PolymorphismExtension}
  • +- *
+- * Parameter {@link #extensionsWithConfiguration} can be used in case extension needs some configuration. ++ * cz.habarta.typescript.generator.ext.TypeGuardsForJackson2PolymorphismExtension + */ + @Parameter + private List extensions; + +- /** +- * List of extensions with their configurations. +- * This parameter has the same purpose as {@link #extensions} parameter. +- * Each item of this list has +- *
    +- *
  • className - required fully-qualified class name of the extension
  • +- *
  • configuration - optional Map with String keys and String values
  • +- *
+- */ +- @Parameter +- private List extensionsWithConfiguration; +- + /** + * The presence of any annotation in this list on a JSON property will cause + * the typescript-generator to treat that property as optional when generating + * the corresponding TypeScript interface. +- * Example optional annotation: javax.annotation.Nullable. +- * This parameter is "opposite" of {@link #requiredAnnotations}, only one of them could be used. ++ * Example optional annotation: @javax.annotation.Nullable + */ + @Parameter + private List optionalAnnotations; + + /** +- * Properties will be treated as optional except those annotated with any of specified annotations. +- * This parameter is "opposite" of {@link #optionalAnnotations}, only one of them could be used. +- */ +- @Parameter +- private List requiredAnnotations; +- +- /** +- * When any of specified annotations is used on a Java type typescript-generator treats this type as nullable. +- * For example Java type List<@Nullable String> +- * can be transformed to TypeScript as (string | null)[] (instead of just string[]). +- * Exact nullability form depends on {@link #nullabilityDefinition} parameter. +- * Unlike optional properties nullable types can also be used "inside" other types like in previous example. +- * Specified annotations must have target set to TYPE_PARAMETER or TYPE_USE. +- * Example optional annotation: org.checkerframework.checker.nullness.qual.Nullable +- */ +- @Parameter +- private List nullableAnnotations; +- +- /** +- * When using {@link #requiredAnnotations} to mark properties as not optional then +- * setting this parameter to true marks also all properties of primitive type without explicit annotation. +- */ +- @Parameter +- private boolean primitivePropertiesRequired; +- +- /** +- * If true JSON file describing generated module will be generated. +- * In following typescript-generator run this allows to generate another module which could depend on currently generated module. +- * Generated JSON file contains mapping from Java classes to TypeScript types which typescript-generator needs +- * when the module is referenced from another module using {@link #moduleDependencies} parameter. +- * Only applicable when {@link #outputKind} is set to module. +- */ +- @Parameter +- private boolean generateInfoJson; +- +- /** +- * If true NPM package.json will be generated. +- * Only applicable when {@link #outputKind} is set to module. +- * NPM package name and version can be specified using {@link #npmName} and {@link #npmVersion} parameters. +- */ +- @Parameter +- private boolean generateNpmPackageJson; +- +- /** +- * Specifies NPM package name.
+- * Only applicable when {@link #generateNpmPackageJson} parameter is true.
+- * Default value is ${project.artifactId}. ++ * Display warnings when bean serializer is not found. + */ +- @Parameter +- private String npmName; +- +- /** +- * Specifies NPM package version.
+- * Only applicable when {@link #generateNpmPackageJson} parameter is true.
+- * Default value is 1.0.0. +- */ +- @Parameter +- private String npmVersion; +- +- /** +- * Specifies TypeScript version declared in NPM package.json.
+- * Default value is ^2.4. +- */ +- @Parameter +- private String npmTypescriptVersion; +- +- /** +- * Specifies NPM "build" script.
+- * Only applicable when {@link #generateNpmPackageJson} parameter is true and generating implementation file (.ts).
+- * Default value is tsc --module umd --moduleResolution node --typeRoots --target es5 --lib es6 --declaration --sourceMap $outputFile. +- */ +- @Parameter +- private String npmBuildScript; +- +- /** +- * List of additional NPM dependencies.
+- * Only applicable when {@link #generateNpmPackageJson} parameter is true and generating implementation file (.ts).
+- * Each item it this list specifies dependency with its version.
+- * Item format is: name:version. +- */ +- @Parameter +- private List npmDependencies; +- +- /** +- * List of additional NPM devDependencies.
+- * Only applicable when {@link #generateNpmPackageJson} parameter is true and generating implementation file (.ts).
+- * Each item it this list specifies dependency with its version.
+- * Item format is: name:version. +- */ +- @Parameter +- private List npmDevDependencies; +- +- /** +- * List of additional NPM peerDependencies.
+- * Only applicable when {@link #generateNpmPackageJson} parameter is true and generating implementation file (.ts).
+- * Each item it this list specifies dependency with its version.
+- * Item format is: name:version. +- */ +- @Parameter +- private List npmPeerDependencies; +- +- /** +- * Specifies how strings will be quoted. +- * Supported values are: +- *
    +- *
  • doubleQuotes
  • +- *
  • singleQuotes
  • +- *
+- * Default value is doubleQuotes. +- */ +- @Parameter +- private StringQuotes stringQuotes; +- +- /** +- * Specifies indentation string. +- * In Maven pom.xml file it is needed to set xml:space attribute to preserve.
+- * Example: ]]>. +- */ +- @Parameter +- private String indentString; +- +- /** +- * Turns on Jackson2 automatic module discovery. +- */ +- @Parameter +- private boolean jackson2ModuleDiscovery; +- +- /** +- * Specifies Jackson2 modules to use. +- */ +- @Parameter +- private List jackson2Modules; +- +- /** +- * Specifies level of logging output. +- * Supported values are: +- *
    +- *
  • Debug
  • +- *
  • Verbose
  • +- *
  • Info
  • +- *
  • Warning
  • +- *
  • Error
  • +- *
+- * Default value is Verbose. +- */ +- @Parameter +- private Logger.Level loggingLevel; +- +- @Parameter(property = "typescript.generator.skip") +- private boolean skip; ++ @Parameter(defaultValue = "true") ++ private boolean displaySerializerWarning; + + @Parameter(defaultValue = "${project}", readonly = true, required = true) + private MavenProject project; + +- @Parameter(defaultValue = "${project.build.directory}", readonly = true, required = true) +- private String projectBuildDirectory; +- +- private Settings createSettings(URLClassLoader classLoader) { +- final Settings settings = new Settings(); +- if (outputFileType != null) { +- settings.outputFileType = outputFileType; +- } +- settings.outputKind = outputKind; +- settings.module = module; +- settings.namespace = namespace; +- settings.mapPackagesToNamespaces = mapPackagesToNamespaces; +- settings.umdNamespace = umdNamespace; +- settings.moduleDependencies = moduleDependencies; +- settings.setExcludeFilter(excludeClasses, excludeClassPatterns); +- settings.jsonLibrary = jsonLibrary; +- settings.setJackson2Configuration(classLoader, jackson2Configuration); +- settings.gsonConfiguration = gsonConfiguration; +- settings.jsonbConfiguration = jsonbConfiguration; +- settings.additionalDataLibraries = additionalDataLibraries; +- settings.optionalProperties = optionalProperties; +- settings.optionalPropertiesDeclaration = optionalPropertiesDeclaration; +- settings.nullabilityDefinition = nullabilityDefinition; +- settings.declarePropertiesAsReadOnly = declarePropertiesAsReadOnly; +- settings.removeTypeNamePrefix = removeTypeNamePrefix; +- settings.removeTypeNameSuffix = removeTypeNameSuffix; +- settings.addTypeNamePrefix = addTypeNamePrefix; +- settings.addTypeNameSuffix = addTypeNameSuffix; +- settings.customTypeNaming = Settings.convertToMap(customTypeNaming, "customTypeNaming"); +- settings.customTypeNamingFunction = customTypeNamingFunction; +- settings.referencedFiles = referencedFiles; +- settings.importDeclarations = importDeclarations; +- settings.customTypeMappings = Settings.convertToMap(customTypeMappings, "customTypeMapping"); +- settings.customTypeAliases = Settings.convertToMap(customTypeAliases, "customTypeAlias"); +- settings.mapDate = mapDate; +- settings.mapMap = mapMap; +- settings.mapEnum = mapEnum; +- settings.enumMemberCasing = enumMemberCasing; +- settings.nonConstEnums = nonConstEnums; +- settings.loadNonConstEnumAnnotations(classLoader, nonConstEnumAnnotations); +- settings.mapClasses = mapClasses; +- settings.mapClassesAsClassesPatterns = mapClassesAsClassesPatterns; +- settings.generateConstructors = generateConstructors; +- settings.loadDisableTaggedUnionAnnotations(classLoader, disableTaggedUnionAnnotations); +- settings.disableTaggedUnions = disableTaggedUnions; +- settings.generateReadonlyAndWriteonlyJSDocTags = generateReadonlyAndWriteonlyJSDocTags; +- settings.ignoreSwaggerAnnotations = ignoreSwaggerAnnotations; +- settings.generateJaxrsApplicationInterface = generateJaxrsApplicationInterface; +- settings.generateJaxrsApplicationClient = generateJaxrsApplicationClient; +- settings.generateSpringApplicationInterface = generateSpringApplicationInterface; +- settings.generateSpringApplicationClient = generateSpringApplicationClient; +- settings.scanSpringApplication = scanSpringApplication; +- settings.restNamespacing = restNamespacing; +- settings.setRestNamespacingAnnotation(classLoader, restNamespacingAnnotation); +- settings.restResponseType = restResponseType; +- settings.setRestOptionsType(restOptionsType); +- settings.loadCustomTypeProcessor(classLoader, customTypeProcessor); +- settings.sortDeclarations = sortDeclarations; +- settings.sortTypeDeclarations = sortTypeDeclarations; +- settings.noFileComment = noFileComment; +- settings.noTslintDisable = noTslintDisable; +- settings.noEslintDisable = noEslintDisable; +- settings.tsNoCheck = tsNoCheck; +- settings.javadocXmlFiles = javadocXmlFiles; +- settings.loadExtensions(classLoader, extensions, extensionsWithConfiguration); +- settings.loadIncludePropertyAnnotations(classLoader, includePropertyAnnotations); +- settings.loadExcludePropertyAnnotations(classLoader, excludePropertyAnnotations); +- settings.loadOptionalAnnotations(classLoader, optionalAnnotations); +- settings.loadRequiredAnnotations(classLoader, requiredAnnotations); +- settings.loadNullableAnnotations(classLoader, nullableAnnotations); +- settings.primitivePropertiesRequired = primitivePropertiesRequired; +- settings.generateInfoJson = generateInfoJson; +- settings.generateNpmPackageJson = generateNpmPackageJson; +- settings.npmName = npmName == null && generateNpmPackageJson ? project.getArtifactId() : npmName; +- settings.npmVersion = npmVersion == null && generateNpmPackageJson ? settings.getDefaultNpmVersion() : npmVersion; +- settings.npmTypescriptVersion = npmTypescriptVersion; +- settings.npmBuildScript = npmBuildScript; +- settings.npmPackageDependencies = Settings.convertToMap(npmDependencies, "npmDependencies"); +- settings.npmDevDependencies = Settings.convertToMap(npmDevDependencies, "npmDevDependencies"); +- settings.npmPeerDependencies = Settings.convertToMap(npmPeerDependencies, "npmPeerDependencies"); +- settings.setStringQuotes(stringQuotes); +- settings.setIndentString(indentString); +- settings.jackson2ModuleDiscovery = jackson2ModuleDiscovery; +- settings.loadJackson2Modules(classLoader, jackson2Modules); +- settings.classLoader = classLoader; +- return settings; +- } +- + @Override + public void execute() { +- TypeScriptGenerator.setLogger(new Logger(loggingLevel)); +- TypeScriptGenerator.printVersion(); +- if (skip) { +- TypeScriptGenerator.getLogger().info("Skipping plugin execution"); +- return; +- } +- +- // class loader +- final List urls = new ArrayList<>(); + try { ++ TypeScriptGenerator.printVersion(); ++ ++ // class loader ++ final List urls = new ArrayList<>(); + for (String element : project.getCompileClasspathElements()) { + urls.add(new File(element).toURI().toURL()); + } +- } catch (DependencyResolutionRequiredException | IOException e) { +- throw new RuntimeException(e); +- } +- +- try (URLClassLoader classLoader = Settings.createClassLoader(project.getArtifactId(), urls.toArray(new URL[0]), Thread.currentThread().getContextClassLoader())) { +- +- final Settings settings = createSettings(classLoader); +- +- final Input.Parameters parameters = new Input.Parameters(); +- parameters.classNames = classes; +- parameters.classNamePatterns = classPatterns; +- parameters.classesWithAnnotations = classesWithAnnotations; +- parameters.classesImplementingInterfaces = classesImplementingInterfaces; +- parameters.classesExtendingClasses = classesExtendingClasses; +- parameters.jaxrsApplicationClassName = classesFromJaxrsApplication; +- parameters.automaticJaxrsApplication = classesFromAutomaticJaxrsApplication; +- parameters.isClassNameExcluded = settings.getExcludeFilter(); +- parameters.classLoader = classLoader; +- parameters.scanningAcceptedPackages = scanningAcceptedPackages; +- parameters.debug = loggingLevel == Logger.Level.Debug; ++ final URLClassLoader classLoader = new URLClassLoader(urls.toArray(new URL[0]), Thread.currentThread().getContextClassLoader()); + +- final File output = outputFile != null +- ? outputFile +- : new File(new File(projectBuildDirectory, "typescript-generator"), project.getArtifactId() + settings.getExtension()); +- settings.validateFileName(output); +- +- new TypeScriptGenerator(settings).generateTypeScript(Input.from(parameters), Output.to(output)); ++ // Settings ++ final Settings settings = new Settings(); ++ if (outputFileType != null) { ++ settings.outputFileType = outputFileType; ++ } ++ settings.outputKind = outputKind; ++ settings.module = module; ++ settings.namespace = namespace; ++ settings.setExcludeFilter(excludeClasses, excludeClassPatterns); ++ settings.jsonLibrary = jsonLibrary; ++ settings.declarePropertiesAsOptional = declarePropertiesAsOptional; ++ settings.removeTypeNamePrefix = removeTypeNamePrefix; ++ settings.removeTypeNameSuffix = removeTypeNameSuffix; ++ settings.addTypeNamePrefix = addTypeNamePrefix; ++ settings.addTypeNameSuffix = addTypeNameSuffix; ++ settings.customTypeNaming = Settings.convertToMap(customTypeNaming); ++ settings.referencedFiles = referencedFiles; ++ settings.importDeclarations = importDeclarations; ++ settings.customTypeMappings = Settings.convertToMap(customTypeMappings); ++ settings.mapDate = mapDate; ++ settings.mapEnum = mapEnum; ++ settings.disableTaggedUnions = disableTaggedUnions; ++ settings.loadCustomTypeProcessor(classLoader, customTypeProcessor); ++ settings.sortDeclarations = sortDeclarations; ++ settings.sortTypeDeclarations = sortTypeDeclarations; ++ settings.noFileComment = noFileComment; ++ settings.javadocXmlFiles = javadocXmlFiles; ++ settings.loadExtensions(classLoader, extensions); ++ settings.loadIncludePropertyAnnotations(classLoader, includePropertyAnnotations); ++ settings.loadOptionalAnnotations(classLoader, optionalAnnotations); ++ settings.displaySerializerWarning = displaySerializerWarning; ++ settings.validateFileName(outputFile); ++ ++ // TypeScriptGenerator ++ new TypeScriptGenerator(settings).generateTypeScript( ++ Input.fromClassNamesAndJaxrsApplication(classes, classPatterns, classesFromJaxrsApplication, classesFromAutomaticJaxrsApplication, settings.getExcludeFilter(), classLoader), ++ Output.to(outputFile) ++ ); + +- } catch (IOException e) { ++ } catch (DependencyResolutionRequiredException | IOException e) { + throw new RuntimeException(e); + } + } +diff --git a/typescript-generator-maven-plugin/src/site/site.xml b/typescript-generator-maven-plugin/src/site/site.xml +index 6f25a07d6..5b10a4586 100644 +--- a/typescript-generator-maven-plugin/src/site/site.xml ++++ b/typescript-generator-maven-plugin/src/site/site.xml +@@ -8,7 +8,7 @@ + + org.apache.maven.skins + maven-fluido-skin +- 1.6 ++ 1.3.1 + + + +diff --git a/typescript-generator-spring/pom.xml b/typescript-generator-spring/pom.xml +deleted file mode 100644 +index b976b95b8..000000000 +--- a/typescript-generator-spring/pom.xml ++++ /dev/null +@@ -1,105 +0,0 @@ +- +- +- 4.0.0 +- +- +- cz.habarta.typescript-generator +- typescript-generator +- 3.2-SNAPSHOT +- +- +- typescript-generator-spring +- jar +- typescript-generator-spring +- +- +- +- +- +- +- +- cz.habarta.typescript-generator +- typescript-generator-core +- 3.2-SNAPSHOT +- +- +- org.springframework.boot +- spring-boot-starter-web +- +- +- org.springframework.boot +- spring-boot-starter-logging +- +- +- +- +- org.springframework.data +- spring-data-commons +- +- +- org.slf4j +- slf4j-api +- +- +- +- +- +- +- cz.habarta.typescript-generator +- typescript-generator-core +- 3.2-SNAPSHOT +- test-jar +- test +- +- +- org.junit.jupiter +- junit-jupiter +- +- test +- +- +- io.swagger +- swagger-annotations +- 1.6.11 +- test +- +- +- io.swagger.core.v3 +- swagger-annotations +- 2.2.15 +- test +- +- +- +- +- +- +- org.jetbrains.kotlin +- kotlin-maven-plugin +- +- +- test-compile +- test-compile +- +- test-compile +- +- +- +- +- +- org.apache.maven.plugins +- maven-checkstyle-plugin +- +- +- check +- verify +- +- check +- +- +- +- +- +- +- +- +diff --git a/typescript-generator-spring/src/main/java/cz/habarta/typescript/generator/spring/SpringApplicationParser.java b/typescript-generator-spring/src/main/java/cz/habarta/typescript/generator/spring/SpringApplicationParser.java +deleted file mode 100644 +index 99b36662f..000000000 +--- a/typescript-generator-spring/src/main/java/cz/habarta/typescript/generator/spring/SpringApplicationParser.java ++++ /dev/null +@@ -1,403 +0,0 @@ +- +-package cz.habarta.typescript.generator.spring; +- +-import cz.habarta.typescript.generator.Settings; +-import cz.habarta.typescript.generator.TsType; +-import cz.habarta.typescript.generator.TypeProcessor; +-import cz.habarta.typescript.generator.TypeScriptGenerator; +-import cz.habarta.typescript.generator.parser.JaxrsApplicationParser; +-import cz.habarta.typescript.generator.parser.MethodParameterModel; +-import cz.habarta.typescript.generator.parser.PathTemplate; +-import cz.habarta.typescript.generator.parser.RestApplicationModel; +-import cz.habarta.typescript.generator.parser.RestApplicationParser; +-import cz.habarta.typescript.generator.parser.RestApplicationType; +-import cz.habarta.typescript.generator.parser.RestMethodModel; +-import cz.habarta.typescript.generator.parser.RestQueryParam; +-import cz.habarta.typescript.generator.parser.SourceType; +-import cz.habarta.typescript.generator.parser.Swagger; +-import cz.habarta.typescript.generator.parser.SwaggerOperation; +-import cz.habarta.typescript.generator.parser.SwaggerResponse; +-import cz.habarta.typescript.generator.type.JTypeWithNullability; +-import cz.habarta.typescript.generator.util.GenericsResolver; +-import cz.habarta.typescript.generator.util.Pair; +-import cz.habarta.typescript.generator.util.Utils; +-import static cz.habarta.typescript.generator.util.Utils.getInheritanceChain; +-import java.beans.BeanInfo; +-import java.beans.IntrospectionException; +-import java.beans.Introspector; +-import java.beans.PropertyDescriptor; +-import java.lang.reflect.Method; +-import java.lang.reflect.Parameter; +-import java.lang.reflect.ParameterizedType; +-import java.lang.reflect.Type; +-import java.util.ArrayList; +-import java.util.Arrays; +-import java.util.LinkedHashMap; +-import java.util.List; +-import java.util.Map; +-import java.util.Objects; +-import java.util.stream.Collectors; +-import java.util.stream.Stream; +-import org.springframework.boot.SpringApplication; +-import org.springframework.boot.autoconfigure.SpringBootApplication; +-import org.springframework.context.ConfigurableApplicationContext; +-import org.springframework.core.BridgeMethodResolver; +-import org.springframework.core.annotation.AnnotatedElementUtils; +-import org.springframework.core.annotation.AnnotationUtils; +-import org.springframework.data.domain.Pageable; +-import org.springframework.http.ResponseEntity; +-import org.springframework.stereotype.Component; +-import org.springframework.util.MultiValueMap; +-import org.springframework.web.bind.annotation.ModelAttribute; +-import org.springframework.web.bind.annotation.PathVariable; +-import org.springframework.web.bind.annotation.RequestBody; +-import org.springframework.web.bind.annotation.RequestMapping; +-import org.springframework.web.bind.annotation.RequestMethod; +-import org.springframework.web.bind.annotation.RequestParam; +-import org.springframework.web.bind.annotation.ValueConstants; +- +-public class SpringApplicationParser extends RestApplicationParser { +- +- // This factory class is instantiated using reflections! +- public static class Factory extends RestApplicationParser.Factory { +- +- @Override +- public TypeProcessor getSpecificTypeProcessor() { +- return (javaType, context) -> { +- final Class rawClass = Utils.getRawClassOrNull(javaType); +- if (rawClass != null) { +- for (Map.Entry, TsType> entry : getStandardEntityClassesMapping().entrySet()) { +- final Class cls = entry.getKey(); +- final TsType type = entry.getValue(); +- if (cls.isAssignableFrom(rawClass) && type != null) { +- return new TypeProcessor.Result(type); +- } +- } +- if (getDefaultExcludedClassNames().contains(rawClass.getName())) { +- return new TypeProcessor.Result(TsType.Any); +- } +- } +- return null; +- }; +- } +- +- @Override +- public RestApplicationParser create(Settings settings, TypeProcessor commonTypeProcessor) { +- return new SpringApplicationParser(settings, commonTypeProcessor); +- } +- +- } +- +- public SpringApplicationParser(Settings settings, TypeProcessor commonTypeProcessor) { +- super(settings, commonTypeProcessor, new RestApplicationModel(RestApplicationType.Spring)); +- } +- +- @Override +- public JaxrsApplicationParser.Result tryParse(SourceType sourceType) { +- if (!(sourceType.type instanceof Class)) { +- return null; +- } +- final Class cls = (Class) sourceType.type; +- +- // application +- final SpringBootApplication app = AnnotationUtils.findAnnotation(cls, SpringBootApplication.class); +- if (app != null) { +- if (settings.scanSpringApplication) { +- TypeScriptGenerator.getLogger().verbose("Scanning Spring application: " + cls.getName()); +- final ClassLoader originalContextClassLoader = Thread.currentThread().getContextClassLoader(); +- try { +- Thread.currentThread().setContextClassLoader(settings.classLoader); +- final SpringApplicationHelper springApplicationHelper = new SpringApplicationHelper(settings.classLoader, cls); +- final List> restControllers = springApplicationHelper.findRestControllers(); +- return new JaxrsApplicationParser.Result(restControllers.stream() +- .map(controller -> new SourceType(controller, cls, "")) +- .collect(Collectors.toList()) +- ); +- } finally { +- Thread.currentThread().setContextClassLoader(originalContextClassLoader); +- } +- } else { +- return null; +- } +- } +- +- // controller +- final Component component = AnnotationUtils.findAnnotation(cls, Component.class); +- if (component != null) { +- TypeScriptGenerator.getLogger().verbose("Parsing Spring component: " + cls.getName()); +- final JaxrsApplicationParser.Result result = new JaxrsApplicationParser.Result(); +- final RequestMapping requestMapping = AnnotatedElementUtils.findMergedAnnotation(cls, RequestMapping.class); +- final String path = requestMapping != null && requestMapping.path() != null && requestMapping.path().length != 0 ? requestMapping.path()[0] : null; +- final JaxrsApplicationParser.ResourceContext context = new JaxrsApplicationParser.ResourceContext(cls, path); +- parseController(result, context, cls); +- return result; +- } +- +- return null; +- } +- +- private class SpringApplicationHelper extends SpringApplication { +- +- private final ClassLoader classLoader; +- +- public SpringApplicationHelper(ClassLoader classLoader, Class... primarySources) { +- super(primarySources); +- this.classLoader = classLoader; +- } +- +- public List> findRestControllers() { +- try (ConfigurableApplicationContext context = createApplicationContext()) { +- load(context, getAllSources().toArray()); +- withSystemProperty("server.port", "0", () -> { +- context.refresh(); +- }); +- final List> classes = Stream.of(context.getBeanDefinitionNames()) +- .map(beanName -> context.getBeanFactory().getBeanDefinition(beanName).getBeanClassName()) +- .filter(Objects::nonNull) +- .filter(className -> isClassNameExcluded == null || !isClassNameExcluded.test(className)) +- .map(className -> { +- try { +- return classLoader.loadClass(className); +- } catch (ClassNotFoundException e) { +- throw new RuntimeException(e); +- } +- }) +- .filter(instance -> AnnotationUtils.findAnnotation(instance, Component.class) != null) +- .collect(Collectors.toList()); +- return classes; +- } +- } +- +- } +- +- private static void withSystemProperty(String name, String value, Runnable runnable) { +- final String original = System.getProperty(name); +- try { +- System.setProperty(name, value); +- runnable.run(); +- } finally { +- if (original != null) { +- System.setProperty(name, original); +- } else { +- System.getProperties().remove(name); +- } +- } +- } +- +- private void parseController(JaxrsApplicationParser.Result result, JaxrsApplicationParser.ResourceContext context, Class controllerClass) { +- // parse controller methods +- final List methods = getAllRequestMethods(controllerClass); +- methods.sort(Utils.methodComparator()); +- for (Method method : methods) { +- parseControllerMethod(result, context, controllerClass, method); +- } +- } +- +- private List getAllRequestMethods(Class cls) { +- +- List currentlyResolvedMethods = new ArrayList<>(); +- +- getInheritanceChain(cls) +- .forEach(clazz -> { +- +- for (Method method : clazz.getDeclaredMethods()) { +- final RequestMapping requestMapping = AnnotatedElementUtils.findMergedAnnotation(method, RequestMapping.class); +- if (requestMapping != null) { +- addOrReplaceMethod(currentlyResolvedMethods, method); +- } +- } +- +- }); +- +- return currentlyResolvedMethods; +- } +- +- private void addOrReplaceMethod(List resolvedMethods, Method newMethod) { +- +- int methodIndex = getMethodIndex(resolvedMethods, newMethod); +- if (methodIndex == -1) { +- resolvedMethods.add(newMethod); +- return; +- } +- +- final Method bridgedMethod = BridgeMethodResolver.findBridgedMethod(newMethod); +- +- int bridgedMethodIndex = getMethodIndex(resolvedMethods, bridgedMethod); +- if (bridgedMethodIndex == -1 || bridgedMethodIndex == methodIndex) { +- resolvedMethods.set(methodIndex, bridgedMethod); +- } else { +- resolvedMethods.set(bridgedMethodIndex, bridgedMethod); +- resolvedMethods.remove(methodIndex); +- } +- } +- +- private int getMethodIndex(List resolvedMethods, Method newMethod) { +- for (int i = 0; i < resolvedMethods.size(); i++) { +- Method currMethod = resolvedMethods.get(i); +- +- if (!currMethod.getName().equals(newMethod.getName())) continue; +- if (!Arrays.equals(currMethod.getParameterTypes(), newMethod.getParameterTypes())) continue; +- +- return i; +- } +- +- return -1; +- } +- +- // https://docs.spring.io/spring/docs/current/spring-framework-reference/web.html#mvc-ann-methods +- private void parseControllerMethod(JaxrsApplicationParser.Result result, JaxrsApplicationParser.ResourceContext context, Class controllerClass, Method method) { +- final RequestMapping requestMapping = AnnotatedElementUtils.findMergedAnnotation(method, RequestMapping.class); +- if (requestMapping != null) { +- +- // swagger +- final SwaggerOperation swaggerOperation = settings.ignoreSwaggerAnnotations +- ? new SwaggerOperation() +- : Swagger.parseSwaggerAnnotations(method); +- if (swaggerOperation.possibleResponses != null) { +- for (SwaggerResponse response : swaggerOperation.possibleResponses) { +- if (response.responseType != null) { +- foundType(result, response.responseType, controllerClass, method.getName()); +- } +- } +- } +- if (swaggerOperation.hidden) { +- return; +- } +- +- // subContext +- context = context.subPath(requestMapping.path().length == 0 ? "" : requestMapping.path()[0]); +- final Map pathParamTypes = new LinkedHashMap<>(); +- for (Parameter parameter : method.getParameters()) { +- final PathVariable pathVariableAnnotation = AnnotationUtils.findAnnotation(parameter, PathVariable.class); +- if (pathVariableAnnotation != null) { +- String pathVariableName = pathVariableAnnotation.value(); +- // https://docs.spring.io/spring/docs/3.2.x/spring-framework-reference/html/mvc.html#mvc-ann-requestmapping-uri-templates +- // Can be empty if the URI template variable matches the method argument +- if (pathVariableName.isEmpty()) { +- pathVariableName = parameter.getName(); +- } +- pathParamTypes.put(pathVariableName, parameter.getParameterizedType()); +- } +- } +- context = context.subPathParamTypes(pathParamTypes); +- final RequestMethod httpMethod = requestMapping.method().length == 0 ? RequestMethod.GET : requestMapping.method()[0]; +- +- // path parameters +- final PathTemplate pathTemplate = PathTemplate.parse(context.path); +- final Map contextPathParamTypes = context.pathParamTypes; +- final List pathParams = pathTemplate.getParts().stream() +- .filter(PathTemplate.Parameter.class::isInstance) +- .map(PathTemplate.Parameter.class::cast) +- .map(parameter -> { +- final Type type = contextPathParamTypes.get(parameter.getOriginalName()); +- final Type paramType = type != null ? type : String.class; +- foundType(result, paramType, controllerClass, method.getName()); +- return new MethodParameterModel(parameter.getValidName(), paramType); +- }) +- .collect(Collectors.toList()); +- +- // query parameters +- final List queryParams = new ArrayList<>(); +- for (Parameter parameter : method.getParameters()) { +- if (parameter.getType() == Pageable.class) { +- queryParams.add(new RestQueryParam.Single(new MethodParameterModel("page", Long.class), false)); +- queryParams.add(new RestQueryParam.Single(new MethodParameterModel("size", Long.class), false)); +- queryParams.add(new RestQueryParam.Single(new MethodParameterModel("sort", String.class), false)); +- } else { +- final RequestParam requestParamAnnotation = AnnotationUtils.findAnnotation(parameter, RequestParam.class); +- if (requestParamAnnotation != null) { +- if (parameter.getType() == MultiValueMap.class) { +- queryParams.add(new RestQueryParam.Map(false)); +- } else { +- final boolean isRequired = requestParamAnnotation.required() && requestParamAnnotation.defaultValue().equals(ValueConstants.DEFAULT_NONE); +- queryParams.add(new RestQueryParam.Single(new MethodParameterModel(firstOf( +- requestParamAnnotation.value(), +- parameter.getName() +- ), parameter.getParameterizedType()), isRequired)); +- foundType(result, parameter.getParameterizedType(), controllerClass, method.getName()); +- } +- } +- +- final ModelAttribute modelAttributeAnnotation = AnnotationUtils.findAnnotation(parameter, ModelAttribute.class); +- if (modelAttributeAnnotation != null) { +- try { +- final BeanInfo beanInfo = Introspector.getBeanInfo(parameter.getType()); +- for (PropertyDescriptor propertyDescriptor : beanInfo.getPropertyDescriptors()) { +- final Method writeMethod = propertyDescriptor.getWriteMethod(); +- if (writeMethod != null) { +- queryParams.add(new RestQueryParam.Single(new MethodParameterModel( +- propertyDescriptor.getName(), +- propertyDescriptor.getPropertyType() +- ), false)); +- foundType(result, propertyDescriptor.getPropertyType(), controllerClass, method.getName()); +- } +- } +- } catch (IntrospectionException e) { +- TypeScriptGenerator.getLogger().warning(String.format("Cannot introspect '%s' class: " + e.getMessage(), parameter.getAnnotatedType())); +- } +- } +- } +- } +- +- // entity parameter +- final MethodParameterModel entityParameter = getEntityParameter(controllerClass, method); +- if (entityParameter != null) { +- foundType(result, entityParameter.getType(), controllerClass, method.getName()); +- } +- +- final Type modelReturnType = parseReturnType(controllerClass, method); +- foundType(result, modelReturnType, controllerClass, method.getName()); +- +- model.getMethods().add(new RestMethodModel(controllerClass, method.getName(), modelReturnType, method, +- controllerClass, httpMethod.name(), context.path, pathParams, queryParams, entityParameter, null)); +- } +- } +- +- private Type parseReturnType(Class controllerClass, Method method) { +- final Class returnType = method.getReturnType(); +- final Type parsedReturnType = settings.getTypeParser().getMethodReturnType(method); +- final Type plainReturnType = JTypeWithNullability.getPlainType(parsedReturnType); +- final Type modelReturnType; +- if (returnType == void.class) { +- modelReturnType = returnType; +- } else if (plainReturnType instanceof ParameterizedType && returnType == ResponseEntity.class) { +- final ParameterizedType parameterizedReturnType = (ParameterizedType) plainReturnType; +- modelReturnType = parameterizedReturnType.getActualTypeArguments()[0]; +- } else { +- modelReturnType = parsedReturnType; +- } +- return GenericsResolver.resolveType(controllerClass, modelReturnType, method.getDeclaringClass()); +- } +- +- private MethodParameterModel getEntityParameter(Class controller, Method method) { +- final List parameterTypes = settings.getTypeParser().getMethodParameterTypes(method); +- final List> parameters = Utils.zip(Arrays.asList(method.getParameters()), parameterTypes); +- for (Pair pair : parameters) { +- final RequestBody requestBodyAnnotation = AnnotationUtils.findAnnotation(pair.getValue1(), RequestBody.class); +- if (requestBodyAnnotation != null) { +- final Type resolvedType = GenericsResolver.resolveType(controller, pair.getValue2(), method.getDeclaringClass()); +- return new MethodParameterModel(pair.getValue1().getName(), resolvedType); +- } +- } +- return null; +- } +- +- private static Map, TsType> getStandardEntityClassesMapping() { +- if (standardEntityClassesMapping == null) { +- final Map, TsType> map = new LinkedHashMap<>(); +- standardEntityClassesMapping = map; +- } +- return standardEntityClassesMapping; +- } +- +- private static Map, TsType> standardEntityClassesMapping; +- +- private static List getDefaultExcludedClassNames() { +- return Arrays.asList( +- ); +- } +- +- private static String firstOf(String... values) { +- return Stream.of(values).filter(it -> it != null && !it.isEmpty()).findFirst().orElse(""); +- } +-} +diff --git a/typescript-generator-spring/src/test/java/cz/habarta/typescript/generator/spring/SpringKotlinTest.kt b/typescript-generator-spring/src/test/java/cz/habarta/typescript/generator/spring/SpringKotlinTest.kt +deleted file mode 100644 +index 4f2aa3377..000000000 +--- a/typescript-generator-spring/src/test/java/cz/habarta/typescript/generator/spring/SpringKotlinTest.kt ++++ /dev/null +@@ -1,60 +0,0 @@ +-package cz.habarta.typescript.generator.spring +- +-import cz.habarta.typescript.generator.Input +-import cz.habarta.typescript.generator.NullabilityDefinition +-import cz.habarta.typescript.generator.TestUtils +-import cz.habarta.typescript.generator.TypeScriptFileType +-import cz.habarta.typescript.generator.TypeScriptGenerator +-import org.junit.jupiter.api.Assertions +-import org.junit.jupiter.api.Test +-import org.springframework.web.bind.annotation.PostMapping +-import org.springframework.web.bind.annotation.RequestBody +-import org.springframework.web.bind.annotation.RequestMapping +-import org.springframework.web.bind.annotation.RestController +- +-@Suppress("UNUSED_PARAMETER") +-class SpringKotlinTest { +- +- @Test +- fun testSpring() { +- val settings = TestUtils.settings() +- settings.outputFileType = TypeScriptFileType.implementationFile +- settings.generateSpringApplicationClient = true +- settings.nullabilityDefinition = NullabilityDefinition.undefinedInlineUnion +- val output = TypeScriptGenerator(settings).generateTypeScript(Input.from(B::class.java)) +- val errorMessage = "Unexpected output: $output" +- Assertions.assertTrue(output.contains("doSomething(arg0?: (A | undefined)[]): RestResponse<(string | undefined)[] | undefined>"), errorMessage) +- } +- +- private class A { +- val nullableString: String? = null +- val nonNullableString: String = "" +- val nullableList: List? = null +- val nullableArray: Array? = null +- val nullableGenericArray: Array? = null +- val nullableGenericType: T? = null +- +- fun getData(): B? { +- return null; +- } +- +- fun getTest(): String { +- return "" +- } +- +- fun getTestNullable(): String? { +- return "" +- } +- } +- +- @RestController +- @RequestMapping("") +- private class B { +- +- @PostMapping +- fun doSomething(@RequestBody body: List?>?): List? { +- return null +- } +- } +- +-} +diff --git a/typescript-generator-spring/src/test/java/cz/habarta/typescript/generator/spring/SpringTest.java b/typescript-generator-spring/src/test/java/cz/habarta/typescript/generator/spring/SpringTest.java +deleted file mode 100644 +index a2a932bef..000000000 +--- a/typescript-generator-spring/src/test/java/cz/habarta/typescript/generator/spring/SpringTest.java ++++ /dev/null +@@ -1,491 +0,0 @@ +- +-package cz.habarta.typescript.generator.spring; +- +-import cz.habarta.typescript.generator.Input; +-import cz.habarta.typescript.generator.Settings; +-import cz.habarta.typescript.generator.TestUtils; +-import cz.habarta.typescript.generator.TypeScriptFileType; +-import cz.habarta.typescript.generator.TypeScriptGenerator; +-import cz.habarta.typescript.generator.util.Utils; +-import io.swagger.annotations.ApiOperation; +-import io.swagger.v3.oas.annotations.Operation; +-import java.lang.annotation.Retention; +-import java.lang.annotation.RetentionPolicy; +-import java.lang.reflect.Method; +-import java.util.Arrays; +-import java.util.Collection; +-import java.util.List; +-import java.util.Map; +-import java.util.regex.Pattern; +-import org.junit.jupiter.api.Assertions; +-import org.junit.jupiter.api.Test; +-import org.springframework.core.annotation.AnnotatedElementUtils; +-import org.springframework.data.domain.Page; +-import org.springframework.data.domain.Pageable; +-import org.springframework.http.ResponseEntity; +-import org.springframework.stereotype.Component; +-import org.springframework.util.MultiValueMap; +-import org.springframework.web.bind.annotation.GetMapping; +-import org.springframework.web.bind.annotation.ModelAttribute; +-import org.springframework.web.bind.annotation.PathVariable; +-import org.springframework.web.bind.annotation.PostMapping; +-import org.springframework.web.bind.annotation.RequestBody; +-import org.springframework.web.bind.annotation.RequestMapping; +-import org.springframework.web.bind.annotation.RequestMethod; +-import org.springframework.web.bind.annotation.RequestParam; +-import org.springframework.web.bind.annotation.RestController; +- +- +-public class SpringTest { +- +- @Test +- public void testAnnotationUtils() { +- final Method greetingMethod = getMethod(SpringTestApplication.GreetingController.class, "greeting"); +- final RequestMapping mapping = AnnotatedElementUtils.findMergedAnnotation(greetingMethod, RequestMapping.class); +- Assertions.assertNotNull(mapping); +- Assertions.assertEquals(0, mapping.method().length); +- Assertions.assertEquals(1, mapping.path().length); +- Assertions.assertEquals("/greeting", mapping.path()[0]); +- } +- +- private static Method getMethod(Class cls, String methodName) { +- final Method greetingMethod = Utils.getAllMethods(cls).stream() +- .filter(method -> method.getName().equals(methodName)) +- .findFirst() +- .get(); +- return greetingMethod; +- } +- +- @Test +- public void testApplicationScan() { +- final Settings settings = TestUtils.settings(); +- settings.generateSpringApplicationInterface = true; +- settings.scanSpringApplication = true; +- settings.classLoader = Thread.currentThread().getContextClassLoader(); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(SpringTestApplication.class)); +- Assertions.assertTrue(output.contains("interface RestApplication")); +- Assertions.assertTrue(output.contains("greeting(queryParams?: { name?: string; count?: number; unnamed?: string; }): RestResponse")); +- Assertions.assertTrue(output.contains("interface Greeting")); +- } +- +- @Test +- public void testPathParameters() { +- final Settings settings = TestUtils.settings(); +- settings.outputFileType = TypeScriptFileType.implementationFile; +- settings.generateSpringApplicationClient = true; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(Controller1.class)); +- Assertions.assertTrue(output.contains("findPet(ownerId: number, petId: number): RestResponse")); +- Assertions.assertTrue(output.contains("uriEncoding`owners/${ownerId}/pets/${petId}`")); +- Assertions.assertTrue(output.contains("interface Pet")); +- } +- +- @Test +- public void testPathParametersWithoutValue() { +- final Settings settings = TestUtils.settings(); +- settings.outputFileType = TypeScriptFileType.implementationFile; +- settings.generateSpringApplicationClient = true; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(Controller5.class)); +- Assertions.assertTrue(output.contains("findPet(ownerId: number, petId: number): RestResponse")); +- Assertions.assertTrue(output.contains("uriEncoding`owners2/${ownerId}/pets2/${petId}`")); +- Assertions.assertTrue(output.contains("interface Pet")); +- } +- +- @Test +- public void testPathParameterWithReservedWord() { +- final Settings settings = TestUtils.settings(); +- settings.outputFileType = TypeScriptFileType.implementationFile; +- settings.generateSpringApplicationClient = true; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(ControllerWithReservedWord.class)); +- Assertions.assertTrue(output.contains("getLogs(_class: string): RestResponse")); +- Assertions.assertTrue(output.contains("uriEncoding`logs/${_class}`")); +- } +- +- @RestController +- @RequestMapping +- public static class ControllerWithReservedWord { +- @GetMapping(value = "/logs/{class}") +- public Collection getLogs(@PathVariable("class") String clazz) { +- return null; +- } +- } +- +- @Test +- public void testQueryParameters() { +- final Settings settings = TestUtils.settings(); +- settings.outputFileType = TypeScriptFileType.implementationFile; +- settings.generateSpringApplicationClient = true; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(Controller2.class)); +- Assertions.assertTrue(output.contains("echo(queryParams: { message: string; count?: number; optionalRequestParam?: number; }): RestResponse")); +- } +- +- @Test +- public void testAllOptionalQueryParameters() { +- final Settings settings = TestUtils.settings(); +- settings.outputFileType = TypeScriptFileType.implementationFile; +- settings.generateSpringApplicationClient = true; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(Controller7.class)); +- Assertions.assertTrue(output.contains("echo(queryParams?: { message?: string; }): RestResponse")); +- } +- +- @Test +- public void testEntityParameter() { +- final Settings settings = TestUtils.settings(); +- settings.outputFileType = TypeScriptFileType.implementationFile; +- settings.generateSpringApplicationClient = true; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(Controller3.class)); +- Assertions.assertTrue(output.contains("setEntity(data: Data1): RestResponse")); +- Assertions.assertTrue(output.contains("interface Data1")); +- } +- +- @Test +- public void testReturnType() { +- final Settings settings = TestUtils.settings(); +- settings.outputFileType = TypeScriptFileType.implementationFile; +- settings.generateSpringApplicationClient = true; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(Controller4.class)); +- Assertions.assertTrue(output.contains("getEntity(): RestResponse")); +- Assertions.assertTrue(output.contains("interface Data2")); +- } +- +- @Test +- public void testGenerics() { +- final Settings settings = TestUtils.settings(); +- settings.outputFileType = TypeScriptFileType.implementationFile; +- settings.generateSpringApplicationClient = true; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(Controller6.class)); +- Assertions.assertTrue(output.contains("doSomething(input: number[]): RestResponse<{ [P in Controller6Enum]?: any }[]>")); +- Assertions.assertTrue(output.contains("type Controller6Enum")); +- } +- +- @Test +- public void testInheritance() { +- final Settings settings = TestUtils.settings(); +- settings.outputFileType = TypeScriptFileType.implementationFile; +- settings.generateSpringApplicationClient = true; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(Controller6.class)); +- Assertions.assertTrue(output.contains("doSomethingElse(id: number): RestResponse")); +- Assertions.assertTrue(output.contains("doSomethingElseAgain(): RestResponse")); +- Assertions.assertTrue(output.contains("uriEncoding`test/c`")); +- Assertions.assertFalse(output.contains("uriEncoding`test/b`")); +- } +- +- @RestController +- @RequestMapping("/owners/{ownerId}") +- public static class Controller1 { +- @GetMapping("/pets/{petId}") +- public Pet findPet( +- @PathVariable("ownerId") Long ownerId, +- @PathVariable(name = "petId") Long petId +- ) { +- return null; +- } +- } +- +- @RestController +- public static class Controller2 { +- @RequestMapping("/echo") +- public String echo( +- @RequestParam("message") String message, +- @RequestParam(name = "count", defaultValue = "1") Integer count, +- @RequestParam(required = false) Integer optionalRequestParam +- ) { +- return message; +- } +- } +- +- @RestController +- public static class Controller7 { +- @RequestMapping("/echo2") +- public String echo( +- @RequestParam(required = false) String message +- ) { +- return message; +- } +- } +- +- @Test +- public void testQueryParametersWithModel() { +- final Settings settings = TestUtils.settings(); +- settings.outputFileType = TypeScriptFileType.implementationFile; +- settings.generateSpringApplicationClient = true; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(ControllerWithModelAttribute.class)); +- Assertions.assertTrue(output.contains("echoWithModelAttribute(queryParams?: { message?: string; }): RestResponse")); +- } +- +- @RestController +- public static class ControllerWithModelAttribute { +- @RequestMapping("/echoWithModelAttribute") +- public String echoWithModelAttribute(@ModelAttribute FilterParams nested) { +- return nested.getMessage(); +- } +- +- static class FilterParams { +- private String message; +- public String getMessage() { return message; } +- public void setMessage(String message) { this.message = message; } +- } +- } +- +- @RestController +- public static class Controller3 { +- @RequestMapping(path = "/data1", method = RequestMethod.PUT) +- public void setEntity(@RequestBody Data1 data) { +- } +- } +- +- @RestController +- public static class Controller4 { +- @RequestMapping(path = "/data2", method = RequestMethod.GET) +- public ResponseEntity getEntity() { +- return null; +- } +- } +- +- @RestController +- @RequestMapping("/owners2/{ownerId}") +- public static class Controller5 { +- @GetMapping("/pets2/{petId}") +- public Pet findPet( +- @PathVariable Long ownerId, +- @PathVariable Long petId +- ) { +- return null; +- } +- } +- +- private enum Controller6Enum { +- A, +- B +- } +- +- @RestController +- @RequestMapping("/test") +- public static class Controller6 extends Controller6Super { +- @Override +- int doSomethingElse(@PathVariable long id) { +- return 3; +- } +- +- @GetMapping("/c") +- @Override +- int doSomethingElseAgain() { +- return super.doSomethingElseAgain(); +- } +- } +- +- static abstract class Controller6Super, B> { +- +- @PostMapping("a") +- List> doSomething(@RequestBody List input) { +- return null; +- } +- +- @GetMapping("/{id}") +- int doSomethingElse(@PathVariable long id) { +- return 1; +- } +- +- @GetMapping("/b") +- int doSomethingElseAgain() { +- return 1; +- } +- } +- +- public static class Pet { +- } +- +- public static class Data1 { +- } +- +- public static class Data2 { +- } +- +- @Test +- public void testUnwrapping() { +- final Settings settings = TestUtils.settings(); +- settings.outputFileType = TypeScriptFileType.implementationFile; +- settings.generateSpringApplicationClient = true; +- settings.customTypeMappings.put("cz.habarta.typescript.generator.spring.SpringTest$Wrapper", "Unwrap"); +- settings.importDeclarations.add("import { Unwrap } from './unwrap'"); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(ControllerWithWrapper.class)); +- Assertions.assertTrue(output.contains("getEntity(): RestResponse>")); +- } +- +- @Test +- public void testUnwrappingNew() { +- final Settings settings = TestUtils.settings(); +- settings.outputFileType = TypeScriptFileType.implementationFile; +- settings.generateSpringApplicationClient = true; +- settings.customTypeMappings.put("cz.habarta.typescript.generator.spring.SpringTest$Wrapper", "T"); +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(ControllerWithWrapper.class)); +- Assertions.assertTrue(output.contains("getEntity(): RestResponse")); +- } +- +- @RestController +- public static class ControllerWithWrapper { +- @RequestMapping(path = "/data", method = RequestMethod.GET) +- public Wrapper getEntity() { +- return null; +- } +- } +- +- public static class Wrapper { +- public T value; +- } +- +- @Test +- public void testGenericController() { +- final Settings settings = TestUtils.settings(); +- settings.outputFileType = TypeScriptFileType.implementationFile; +- settings.generateSpringApplicationClient = true; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(ConcreteGenerticController.class)); +- Assertions.assertTrue(output.contains("post(input: string): RestResponse")); +- } +- +- @RestController +- public static abstract class AbstractGenerticController { +- @PostMapping("/generic") +- public R post(@RequestBody T input) { +- return map(input); +- } +- +- abstract protected R map(T input); +- } +- +- public static class ConcreteGenerticController extends AbstractGenerticController { +- protected Integer map(String input) { +- return input.length(); +- } +- } +- +- @Test +- public void testPageableController() { +- final Settings settings = TestUtils.settings(); +- settings.outputFileType = TypeScriptFileType.implementationFile; +- settings.generateSpringApplicationClient = true; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(PageableController.class)); +- Assertions.assertTrue(output.contains(" post(queryParams?: { page?: number; size?: number; sort?: string; }): RestResponse>")); +- } +- +- @RestController +- public static abstract class PageableController { +- @GetMapping("/pageable") +- public Page post(Pageable page) { +- return null; +- } +- } +- +- @Test +- public void testDoubleGenericController() { +- final Settings settings = TestUtils.settings(); +- settings.outputFileType = TypeScriptFileType.implementationFile; +- settings.generateSpringApplicationClient = true; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(DoubleGenericController.class)); +- Assertions.assertTrue(output.contains(" get(): RestResponse")); +- } +- +- @RestController +- public class DoubleGenericController { +- @GetMapping("/generic2") +- public ResponseEntity> get () { +- return ResponseEntity.ok(Arrays.asList( "a" , "b" , "c" )); +- } +- } +- +- @Test +- public void testCustomControllerAnnotaion() { +- final Settings settings = TestUtils.settings(); +- settings.outputFileType = TypeScriptFileType.implementationFile; +- settings.generateSpringApplicationClient = true; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(CustomAnnotatedController.class)); +- Assertions.assertTrue(output.contains("getText(): RestResponse")); +- } +- +- @MyRestController +- public class CustomAnnotatedController { +- @GetMapping("/text") +- public String getText() { +- return ""; +- } +- } +- +- @Retention(RetentionPolicy.RUNTIME) +- @Component +- public @interface MyRestController { +- } +- +- @Test +- public void testUrlTrailingSlash() { +- final Settings settings = TestUtils.settings(); +- settings.outputFileType = TypeScriptFileType.implementationFile; +- settings.generateSpringApplicationClient = true; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(TestUrlTrailingSlashController.class)); +- Assertions.assertTrue(Pattern.compile("response\\(\\):.*\\n.*uriEncoding`controller/`").matcher(output).find()); +- Assertions.assertTrue(Pattern.compile("response2\\(\\):.*\\n.*uriEncoding`controller`").matcher(output).find()); +- } +- +- @RestController +- @RequestMapping("/controller") +- public class TestUrlTrailingSlashController { +- @GetMapping("/") +- public void response() { +- } +- @GetMapping("") +- public void response2() { +- } +- } +- +- @Test +- public void testMultiValueMapRequestParam() { +- final Settings settings = TestUtils.settings(); +- settings.outputFileType = TypeScriptFileType.implementationFile; +- settings.generateSpringApplicationClient = true; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(ControllerWithMultiValueMap.class)); +- Assertions.assertTrue(output.contains("search(queryParams?: { [index: string]: any }): RestResponse")); +- } +- +- @RestController +- public class ControllerWithMultiValueMap { +- @GetMapping("/search") +- public String search(@RequestParam MultiValueMap params) { +- return ""; +- } +- } +- +- @Test +- public void testSwaggerExclude() { +- final Settings settings = TestUtils.settings(); +- settings.outputFileType = TypeScriptFileType.implementationFile; +- settings.generateSpringApplicationClient = true; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(ControllerWithSwaggerIgnore.class)); +- Assertions.assertTrue(!output.contains("shouldBeExcluded")); +- } +- +- @RestController +- public class ControllerWithSwaggerIgnore { +- @ApiOperation(value = "", hidden = true) +- @GetMapping("/test") +- public String shouldBeExcluded() { +- return ""; +- } +- } +- +- @Test +- public void testSwagger3Exclude() { +- final Settings settings = TestUtils.settings(); +- settings.outputFileType = TypeScriptFileType.implementationFile; +- settings.generateSpringApplicationClient = true; +- final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(ControllerWithSwagger3Ignore.class)); +- Assertions.assertTrue(!output.contains("shouldBeExcluded")); +- } +- +- @RestController +- public class ControllerWithSwagger3Ignore { +- @Operation(hidden = true) +- @GetMapping("/test") +- public String shouldBeExcluded() { +- return ""; +- } +- } +- +-} +diff --git a/typescript-generator-spring/src/test/java/cz/habarta/typescript/generator/spring/SpringTestApplication.java b/typescript-generator-spring/src/test/java/cz/habarta/typescript/generator/spring/SpringTestApplication.java +deleted file mode 100644 +index 4c087c6a0..000000000 +--- a/typescript-generator-spring/src/test/java/cz/habarta/typescript/generator/spring/SpringTestApplication.java ++++ /dev/null +@@ -1,55 +0,0 @@ +- +-package cz.habarta.typescript.generator.spring; +- +-import java.util.concurrent.atomic.AtomicLong; +-import org.springframework.boot.SpringApplication; +-import org.springframework.boot.autoconfigure.SpringBootApplication; +-import org.springframework.web.bind.annotation.RequestMapping; +-import org.springframework.web.bind.annotation.RequestParam; +-import org.springframework.web.bind.annotation.RestController; +- +- +-@SpringBootApplication +-public class SpringTestApplication { +- +- public static void main(String[] args) { +- SpringApplication.run(SpringTestApplication.class, args); +- } +- +- @RestController +- public static class GreetingController { +- +- private static final String template = "Hello, %s! I come in %s!"; +- private final AtomicLong counter = new AtomicLong(); +- +- @RequestMapping("/greeting") +- public Greeting greeting( +- @RequestParam(value = "name", defaultValue = "World") String name, +- @RequestParam(name = "count", defaultValue = "1") Integer count, +- @RequestParam(defaultValue = "peace") String unnamed +- ) { +- return new Greeting(counter.addAndGet(count), String.format(template, name, unnamed)); +- } +- +- } +- +- public static class Greeting { +- +- private final long id; +- private final String content; +- +- public Greeting(long id, String content) { +- this.id = id; +- this.content = content; +- } +- +- public long getId() { +- return id; +- } +- +- public String getContent() { +- return content; +- } +- } +- +-} diff --git a/nondex_before.log b/nondex_before.log new file mode 100644 index 000000000..a348caef3 --- /dev/null +++ b/nondex_before.log @@ -0,0 +1,376 @@ +[INFO] Scanning for projects... +[WARNING] +[WARNING] Some problems were encountered while building the effective model for cz.habarta.typescript-generator:typescript-generator-gradle-plugin:jar:1.12-SNAPSHOT +[WARNING] 'dependencies.dependency.systemPath' for org.gradle:gradle-core:jar should not point at files within the project directory, ${basedir}/gradle-lib/gradle-core-2.0.jar will be unresolvable by dependent projects @ line 21, column 25 +[WARNING] 'dependencies.dependency.systemPath' for org.gradle:gradle-base-services:jar should not point at files within the project directory, ${basedir}/gradle-lib/gradle-base-services-2.0.jar will be unresolvable by dependent projects @ line 28, column 25 +[WARNING] 'dependencies.dependency.systemPath' for org.gradle:gradle-base-services-groovy:jar should not point at files within the project directory, ${basedir}/gradle-lib/gradle-base-services-groovy-2.0.jar will be unresolvable by dependent projects @ line 35, column 25 +[WARNING] +[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. +[WARNING] +[WARNING] For this reason, future Maven versions might no longer support building such malformed projects. +[WARNING] +[INFO] +[INFO] -----< cz.habarta.typescript-generator:typescript-generator-core >------ +[INFO] Building typescript-generator-core 1.12-SNAPSHOT +[INFO] --------------------------------[ jar ]--------------------------------- +[INFO] +[INFO] >>> nondex-maven-plugin:1.1.2:nondex (default-cli) > test-compile @ typescript-generator-core >>> +[INFO] +[INFO] --- maven-jaxb2-plugin:0.13.1:generate (generate) @ typescript-generator-core --- +[INFO] Up-to-date check for source resources [[file:/home/codebind/typescript-generator/typescript-generator-core/src/main/schema/javadoc.xsd, file:/home/codebind/typescript-generator/typescript-generator-core/pom.xml]] and target resources [[file:/home/codebind/typescript-generator/typescript-generator-core/target/generated-sources/xjc/META-INF/sun-jaxb.episode, file:/home/codebind/typescript-generator/typescript-generator-core/target/generated-sources/xjc/cz/habarta/typescript/generator/xmldoclet/Annotation.java, file:/home/codebind/typescript-generator/typescript-generator-core/target/generated-sources/xjc/cz/habarta/typescript/generator/xmldoclet/TypeInfo.java, file:/home/codebind/typescript-generator/typescript-generator-core/target/generated-sources/xjc/cz/habarta/typescript/generator/xmldoclet/Method.java, file:/home/codebind/typescript-generator/typescript-generator-core/target/generated-sources/xjc/cz/habarta/typescript/generator/xmldoclet/TagInfo.java, file:/home/codebind/typescript-generator/typescript-generator-core/target/generated-sources/xjc/cz/habarta/typescript/generator/xmldoclet/Wildcard.java, file:/home/codebind/typescript-generator/typescript-generator-core/target/generated-sources/xjc/cz/habarta/typescript/generator/xmldoclet/Constructor.java, file:/home/codebind/typescript-generator/typescript-generator-core/target/generated-sources/xjc/cz/habarta/typescript/generator/xmldoclet/ObjectFactory.java, file:/home/codebind/typescript-generator/typescript-generator-core/target/generated-sources/xjc/cz/habarta/typescript/generator/xmldoclet/Interface.java, file:/home/codebind/typescript-generator/typescript-generator-core/target/generated-sources/xjc/cz/habarta/typescript/generator/xmldoclet/Package.java, file:/home/codebind/typescript-generator/typescript-generator-core/target/generated-sources/xjc/cz/habarta/typescript/generator/xmldoclet/AnnotationElement.java, file:/home/codebind/typescript-generator/typescript-generator-core/target/generated-sources/xjc/cz/habarta/typescript/generator/xmldoclet/Field.java, file:/home/codebind/typescript-generator/typescript-generator-core/target/generated-sources/xjc/cz/habarta/typescript/generator/xmldoclet/Class.java, file:/home/codebind/typescript-generator/typescript-generator-core/target/generated-sources/xjc/cz/habarta/typescript/generator/xmldoclet/EnumConstant.java, file:/home/codebind/typescript-generator/typescript-generator-core/target/generated-sources/xjc/cz/habarta/typescript/generator/xmldoclet/TypeParameter.java, file:/home/codebind/typescript-generator/typescript-generator-core/target/generated-sources/xjc/cz/habarta/typescript/generator/xmldoclet/AnnotationInstance.java, file:/home/codebind/typescript-generator/typescript-generator-core/target/generated-sources/xjc/cz/habarta/typescript/generator/xmldoclet/MethodParameter.java, file:/home/codebind/typescript-generator/typescript-generator-core/target/generated-sources/xjc/cz/habarta/typescript/generator/xmldoclet/AnnotationArgument.java, file:/home/codebind/typescript-generator/typescript-generator-core/target/generated-sources/xjc/cz/habarta/typescript/generator/xmldoclet/Root.java, file:/home/codebind/typescript-generator/typescript-generator-core/target/generated-sources/xjc/cz/habarta/typescript/generator/xmldoclet/Enum.java]]. +[INFO] Latest timestamp of the source resources is [2025-06-09 22:52:29.575], earliest timestamp of the target resources is [2025-06-12 23:53:30.524]. +[INFO] Sources are up-to-date, XJC will be skipped. +[INFO] +[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ typescript-generator-core --- +[INFO] Using 'UTF-8' encoding to copy filtered resources. +[INFO] skip non existing resourceDirectory /home/codebind/typescript-generator/typescript-generator-core/src/main/resources +[INFO] Copying 1 resource +[INFO] +[INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ typescript-generator-core --- +[INFO] Nothing to compile - all classes are up to date +[INFO] +[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ typescript-generator-core --- +[INFO] Using 'UTF-8' encoding to copy filtered resources. +[INFO] skip non existing resourceDirectory /home/codebind/typescript-generator/typescript-generator-core/src/test/resources +[INFO] +[INFO] --- maven-compiler-plugin:3.2:testCompile (default-testCompile) @ typescript-generator-core --- +[INFO] Nothing to compile - all classes are up to date +[INFO] +[INFO] <<< nondex-maven-plugin:1.1.2:nondex (default-cli) < test-compile @ typescript-generator-core <<< +[INFO] +[INFO] +[INFO] --- nondex-maven-plugin:1.1.2:nondex (default-cli) @ typescript-generator-core --- +INFO: The original argline is: +INFO: Adding NonDex argLine to existing argLine specified by the project +CONFIG: nondexFilter=.* +nondexMode=FULL +nondexSeed=933178 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=.nondex +nondexExecid=clean_sMII3+z9v0locOvVEVRA+zsqEQnysqMLD2Ujy7Ycyg= +nondexLogging=CONFIG +test= +[INFO] Surefire report directory: /home/codebind/typescript-generator/typescript-generator-core/.nondex/clean_sMII3+z9v0locOvVEVRA+zsqEQnysqMLD2Ujy7Ycyg= + +------------------------------------------------------- + T E S T S +------------------------------------------------------- +Running cz.habarta.typescript.generator.TaggedUnionsTest +Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in cz.habarta.typescript.generator.TaggedUnionsTest + +Results : + +Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 + +INFO: Surefire failed when running tests for clean_sMII3+z9v0locOvVEVRA+zsqEQnysqMLD2Ujy7Ycyg= +INFO: Adding excluded groups to newly created one +INFO: Adding NonDex argLine to existing argLine specified by the project +CONFIG: nondexFilter=.* +nondexMode=FULL +nondexSeed=933178 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=l38BmQ7bLO89EuTwJ4jFGggaqCqsEpdhT2PfLK6CHys= +nondexLogging=CONFIG +test= +[INFO] Surefire report directory: /home/codebind/typescript-generator/typescript-generator-core/.nondex/l38BmQ7bLO89EuTwJ4jFGggaqCqsEpdhT2PfLK6CHys= +[INFO] parallel='none', perCoreThreadCount=true, threadCount=0, useUnlimitedThreads=false, threadCountSuites=0, threadCountClasses=0, threadCountMethods=0, parallelOptimized=true + +------------------------------------------------------- + T E S T S +------------------------------------------------------- + +Results : + +Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 + +INFO: Surefire failed when running tests for l38BmQ7bLO89EuTwJ4jFGggaqCqsEpdhT2PfLK6CHys= +INFO: Adding excluded groups to newly created one +INFO: Adding NonDex argLine to existing argLine specified by the project +CONFIG: nondexFilter=.* +nondexMode=FULL +nondexSeed=974622 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=Ce6KMIBdhCnnbcheAL9ioq+8Djpt+NazeoXx0QZo6j0= +nondexLogging=CONFIG +test= +[INFO] Surefire report directory: /home/codebind/typescript-generator/typescript-generator-core/.nondex/Ce6KMIBdhCnnbcheAL9ioq+8Djpt+NazeoXx0QZo6j0= +[INFO] parallel='none', perCoreThreadCount=true, threadCount=0, useUnlimitedThreads=false, threadCountSuites=0, threadCountClasses=0, threadCountMethods=0, parallelOptimized=true + +------------------------------------------------------- + T E S T S +------------------------------------------------------- + +Results : + +Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 + +INFO: Surefire failed when running tests for Ce6KMIBdhCnnbcheAL9ioq+8Djpt+NazeoXx0QZo6j0= +INFO: Adding excluded groups to newly created one +INFO: Adding NonDex argLine to existing argLine specified by the project +CONFIG: nondexFilter=.* +nondexMode=FULL +nondexSeed=1016066 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=cw889t8uxHyzfx3ErPDU8f9uX7UlXwNCIBwTp0fsmYk= +nondexLogging=CONFIG +test= +[INFO] Surefire report directory: /home/codebind/typescript-generator/typescript-generator-core/.nondex/cw889t8uxHyzfx3ErPDU8f9uX7UlXwNCIBwTp0fsmYk= +[INFO] parallel='none', perCoreThreadCount=true, threadCount=0, useUnlimitedThreads=false, threadCountSuites=0, threadCountClasses=0, threadCountMethods=0, parallelOptimized=true + +------------------------------------------------------- + T E S T S +------------------------------------------------------- + +Results : + +Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 + +INFO: Surefire failed when running tests for cw889t8uxHyzfx3ErPDU8f9uX7UlXwNCIBwTp0fsmYk= +INFO: Adding excluded groups to newly created one +INFO: Adding NonDex argLine to existing argLine specified by the project +CONFIG: nondexFilter=.* +nondexMode=FULL +nondexSeed=1057510 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=A9owVc6ItAdDqyNI8JZCtM2++qDPiaOF9k6n+hXFco= +nondexLogging=CONFIG +test= +[INFO] Surefire report directory: /home/codebind/typescript-generator/typescript-generator-core/.nondex/A9owVc6ItAdDqyNI8JZCtM2++qDPiaOF9k6n+hXFco= +[INFO] parallel='none', perCoreThreadCount=true, threadCount=0, useUnlimitedThreads=false, threadCountSuites=0, threadCountClasses=0, threadCountMethods=0, parallelOptimized=true + +------------------------------------------------------- + T E S T S +------------------------------------------------------- + +Results : + +Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 + +INFO: Surefire failed when running tests for A9owVc6ItAdDqyNI8JZCtM2++qDPiaOF9k6n+hXFco= +INFO: Adding excluded groups to newly created one +INFO: Adding NonDex argLine to existing argLine specified by the project +CONFIG: nondexFilter=.* +nondexMode=FULL +nondexSeed=1098954 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=3qNsvNxLxWzI3GcVDi1w84ujLreDsMI1Xju+eJ+KyWE= +nondexLogging=CONFIG +test= +[INFO] Surefire report directory: /home/codebind/typescript-generator/typescript-generator-core/.nondex/3qNsvNxLxWzI3GcVDi1w84ujLreDsMI1Xju+eJ+KyWE= +[INFO] parallel='none', perCoreThreadCount=true, threadCount=0, useUnlimitedThreads=false, threadCountSuites=0, threadCountClasses=0, threadCountMethods=0, parallelOptimized=true + +------------------------------------------------------- + T E S T S +------------------------------------------------------- + +Results : + +Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 + +INFO: Surefire failed when running tests for 3qNsvNxLxWzI3GcVDi1w84ujLreDsMI1Xju+eJ+KyWE= +INFO: Adding excluded groups to newly created one +INFO: Adding NonDex argLine to existing argLine specified by the project +CONFIG: nondexFilter=.* +nondexMode=FULL +nondexSeed=1140398 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=WxdOaqt7qOjkk4yUdjosE2k3mXlSQ1KE7GKdxUpfYko= +nondexLogging=CONFIG +test= +[INFO] Surefire report directory: /home/codebind/typescript-generator/typescript-generator-core/.nondex/WxdOaqt7qOjkk4yUdjosE2k3mXlSQ1KE7GKdxUpfYko= +[INFO] parallel='none', perCoreThreadCount=true, threadCount=0, useUnlimitedThreads=false, threadCountSuites=0, threadCountClasses=0, threadCountMethods=0, parallelOptimized=true + +------------------------------------------------------- + T E S T S +------------------------------------------------------- + +Results : + +Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 + +INFO: Surefire failed when running tests for WxdOaqt7qOjkk4yUdjosE2k3mXlSQ1KE7GKdxUpfYko= +INFO: Adding excluded groups to newly created one +INFO: Adding NonDex argLine to existing argLine specified by the project +CONFIG: nondexFilter=.* +nondexMode=FULL +nondexSeed=1181842 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=2j5wep7zgh0nCftkXUPVwmMxPOvWAl6IMKu1Ti6O42k= +nondexLogging=CONFIG +test= +[INFO] Surefire report directory: /home/codebind/typescript-generator/typescript-generator-core/.nondex/2j5wep7zgh0nCftkXUPVwmMxPOvWAl6IMKu1Ti6O42k= +[INFO] parallel='none', perCoreThreadCount=true, threadCount=0, useUnlimitedThreads=false, threadCountSuites=0, threadCountClasses=0, threadCountMethods=0, parallelOptimized=true + +------------------------------------------------------- + T E S T S +------------------------------------------------------- + +Results : + +Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 + +INFO: Surefire failed when running tests for 2j5wep7zgh0nCftkXUPVwmMxPOvWAl6IMKu1Ti6O42k= +INFO: Adding excluded groups to newly created one +INFO: Adding NonDex argLine to existing argLine specified by the project +CONFIG: nondexFilter=.* +nondexMode=FULL +nondexSeed=1223286 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=dpjVkFMU32B7nkPxuJtWkJ2CrWG2adtBDFjIQEWnxIE= +nondexLogging=CONFIG +test= +[INFO] Surefire report directory: /home/codebind/typescript-generator/typescript-generator-core/.nondex/dpjVkFMU32B7nkPxuJtWkJ2CrWG2adtBDFjIQEWnxIE= +[INFO] parallel='none', perCoreThreadCount=true, threadCount=0, useUnlimitedThreads=false, threadCountSuites=0, threadCountClasses=0, threadCountMethods=0, parallelOptimized=true + +------------------------------------------------------- + T E S T S +------------------------------------------------------- + +Results : + +Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 + +INFO: Surefire failed when running tests for dpjVkFMU32B7nkPxuJtWkJ2CrWG2adtBDFjIQEWnxIE= +INFO: Adding excluded groups to newly created one +INFO: Adding NonDex argLine to existing argLine specified by the project +CONFIG: nondexFilter=.* +nondexMode=FULL +nondexSeed=1264730 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=Xk4ae3uEkyoFljW7NcXxqziIoNhop0dZTSiS76EhpY= +nondexLogging=CONFIG +test= +[INFO] Surefire report directory: /home/codebind/typescript-generator/typescript-generator-core/.nondex/Xk4ae3uEkyoFljW7NcXxqziIoNhop0dZTSiS76EhpY= +[INFO] parallel='none', perCoreThreadCount=true, threadCount=0, useUnlimitedThreads=false, threadCountSuites=0, threadCountClasses=0, threadCountMethods=0, parallelOptimized=true + +------------------------------------------------------- + T E S T S +------------------------------------------------------- + +Results : + +Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 + +INFO: Surefire failed when running tests for Xk4ae3uEkyoFljW7NcXxqziIoNhop0dZTSiS76EhpY= +INFO: Adding excluded groups to newly created one +INFO: Adding NonDex argLine to existing argLine specified by the project +CONFIG: nondexFilter=.* +nondexMode=FULL +nondexSeed=1306174 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=2zFHusL3cgYqJzpFofxhe9VbXpymE+d0lWdGBD1fDKE= +nondexLogging=CONFIG +test= +[INFO] Surefire report directory: /home/codebind/typescript-generator/typescript-generator-core/.nondex/2zFHusL3cgYqJzpFofxhe9VbXpymE+d0lWdGBD1fDKE= +[INFO] parallel='none', perCoreThreadCount=true, threadCount=0, useUnlimitedThreads=false, threadCountSuites=0, threadCountClasses=0, threadCountMethods=0, parallelOptimized=true + +------------------------------------------------------- + T E S T S +------------------------------------------------------- + +Results : + +Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 + +INFO: Surefire failed when running tests for 2zFHusL3cgYqJzpFofxhe9VbXpymE+d0lWdGBD1fDKE= +[INFO] NonDex SUMMARY: +[INFO] ********* +[INFO] mvn nondex:nondex -DnondexFilter='.*' -DnondexMode=FULL -DnondexSeed=933178 -DnondexStart=0 -DnondexEnd=9223372036854775807 -DnondexPrintstack=false -DnondexDir="/home/codebind/typescript-generator/typescript-generator-core/.nondex" -DnondexJarDir="/home/codebind/typescript-generator/typescript-generator-core/.nondex" -DnondexExecid=l38BmQ7bLO89EuTwJ4jFGggaqCqsEpdhT2PfLK6CHys= -DnondexLogging=CONFIG +[INFO] No Test Failed with this configuration. +[INFO] ********* +[INFO] ********* +[INFO] mvn nondex:nondex -DnondexFilter='.*' -DnondexMode=FULL -DnondexSeed=974622 -DnondexStart=0 -DnondexEnd=9223372036854775807 -DnondexPrintstack=false -DnondexDir="/home/codebind/typescript-generator/typescript-generator-core/.nondex" -DnondexJarDir="/home/codebind/typescript-generator/typescript-generator-core/.nondex" -DnondexExecid=Ce6KMIBdhCnnbcheAL9ioq+8Djpt+NazeoXx0QZo6j0= -DnondexLogging=CONFIG +[INFO] No Test Failed with this configuration. +[INFO] ********* +[INFO] ********* +[INFO] mvn nondex:nondex -DnondexFilter='.*' -DnondexMode=FULL -DnondexSeed=1016066 -DnondexStart=0 -DnondexEnd=9223372036854775807 -DnondexPrintstack=false -DnondexDir="/home/codebind/typescript-generator/typescript-generator-core/.nondex" -DnondexJarDir="/home/codebind/typescript-generator/typescript-generator-core/.nondex" -DnondexExecid=cw889t8uxHyzfx3ErPDU8f9uX7UlXwNCIBwTp0fsmYk= -DnondexLogging=CONFIG +[INFO] No Test Failed with this configuration. +[INFO] ********* +[INFO] ********* +[INFO] mvn nondex:nondex -DnondexFilter='.*' -DnondexMode=FULL -DnondexSeed=1057510 -DnondexStart=0 -DnondexEnd=9223372036854775807 -DnondexPrintstack=false -DnondexDir="/home/codebind/typescript-generator/typescript-generator-core/.nondex" -DnondexJarDir="/home/codebind/typescript-generator/typescript-generator-core/.nondex" -DnondexExecid=A9owVc6ItAdDqyNI8JZCtM2++qDPiaOF9k6n+hXFco= -DnondexLogging=CONFIG +[INFO] No Test Failed with this configuration. +[INFO] ********* +[INFO] ********* +[INFO] mvn nondex:nondex -DnondexFilter='.*' -DnondexMode=FULL -DnondexSeed=1098954 -DnondexStart=0 -DnondexEnd=9223372036854775807 -DnondexPrintstack=false -DnondexDir="/home/codebind/typescript-generator/typescript-generator-core/.nondex" -DnondexJarDir="/home/codebind/typescript-generator/typescript-generator-core/.nondex" -DnondexExecid=3qNsvNxLxWzI3GcVDi1w84ujLreDsMI1Xju+eJ+KyWE= -DnondexLogging=CONFIG +[INFO] No Test Failed with this configuration. +[INFO] ********* +[INFO] ********* +[INFO] mvn nondex:nondex -DnondexFilter='.*' -DnondexMode=FULL -DnondexSeed=1140398 -DnondexStart=0 -DnondexEnd=9223372036854775807 -DnondexPrintstack=false -DnondexDir="/home/codebind/typescript-generator/typescript-generator-core/.nondex" -DnondexJarDir="/home/codebind/typescript-generator/typescript-generator-core/.nondex" -DnondexExecid=WxdOaqt7qOjkk4yUdjosE2k3mXlSQ1KE7GKdxUpfYko= -DnondexLogging=CONFIG +[INFO] No Test Failed with this configuration. +[INFO] ********* +[INFO] ********* +[INFO] mvn nondex:nondex -DnondexFilter='.*' -DnondexMode=FULL -DnondexSeed=1181842 -DnondexStart=0 -DnondexEnd=9223372036854775807 -DnondexPrintstack=false -DnondexDir="/home/codebind/typescript-generator/typescript-generator-core/.nondex" -DnondexJarDir="/home/codebind/typescript-generator/typescript-generator-core/.nondex" -DnondexExecid=2j5wep7zgh0nCftkXUPVwmMxPOvWAl6IMKu1Ti6O42k= -DnondexLogging=CONFIG +[INFO] No Test Failed with this configuration. +[INFO] ********* +[INFO] ********* +[INFO] mvn nondex:nondex -DnondexFilter='.*' -DnondexMode=FULL -DnondexSeed=1223286 -DnondexStart=0 -DnondexEnd=9223372036854775807 -DnondexPrintstack=false -DnondexDir="/home/codebind/typescript-generator/typescript-generator-core/.nondex" -DnondexJarDir="/home/codebind/typescript-generator/typescript-generator-core/.nondex" -DnondexExecid=dpjVkFMU32B7nkPxuJtWkJ2CrWG2adtBDFjIQEWnxIE= -DnondexLogging=CONFIG +[INFO] No Test Failed with this configuration. +[INFO] ********* +[INFO] ********* +[INFO] mvn nondex:nondex -DnondexFilter='.*' -DnondexMode=FULL -DnondexSeed=1264730 -DnondexStart=0 -DnondexEnd=9223372036854775807 -DnondexPrintstack=false -DnondexDir="/home/codebind/typescript-generator/typescript-generator-core/.nondex" -DnondexJarDir="/home/codebind/typescript-generator/typescript-generator-core/.nondex" -DnondexExecid=Xk4ae3uEkyoFljW7NcXxqziIoNhop0dZTSiS76EhpY= -DnondexLogging=CONFIG +[INFO] No Test Failed with this configuration. +[INFO] ********* +[INFO] ********* +[INFO] mvn nondex:nondex -DnondexFilter='.*' -DnondexMode=FULL -DnondexSeed=1306174 -DnondexStart=0 -DnondexEnd=9223372036854775807 -DnondexPrintstack=false -DnondexDir="/home/codebind/typescript-generator/typescript-generator-core/.nondex" -DnondexJarDir="/home/codebind/typescript-generator/typescript-generator-core/.nondex" -DnondexExecid=2zFHusL3cgYqJzpFofxhe9VbXpymE+d0lWdGBD1fDKE= -DnondexLogging=CONFIG +[INFO] No Test Failed with this configuration. +[INFO] ********* +[INFO] Across all seeds: +[INFO] Test results can be found at: +[INFO] file:///home/codebind/typescript-generator/typescript-generator-core/.nondex/l38BmQ7bLO89EuTwJ4jFGggaqCqsEpdhT2PfLK6CHys=/test_results.html +[INFO] [NonDex] The id of this run is: l38BmQ7bLO89EuTwJ4jFGggaqCqsEpdhT2PfLK6CHys= +[INFO] ------------------------------------------------------------------------ +[INFO] BUILD FAILURE +[INFO] ------------------------------------------------------------------------ +[INFO] Total time: 3.155 s +[INFO] Finished at: 2025-06-13T18:34:16Z +[INFO] ------------------------------------------------------------------------ +[ERROR] Failed to execute goal edu.illinois:nondex-maven-plugin:1.1.2:nondex (default-cli) on project typescript-generator-core: Unable to execute mojo: No tests were executed! (Set -DfailIfNoTests=false to ignore this error.) -> [Help 1] +[ERROR] +[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. +[ERROR] Re-run Maven using the -X switch to enable full debug logging. +[ERROR] +[ERROR] For more information about the errors and possible solutions, please read the following articles: +[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException diff --git a/nondex_exact_commit.log b/nondex_exact_commit.log new file mode 100644 index 000000000..e23a27e29 --- /dev/null +++ b/nondex_exact_commit.log @@ -0,0 +1,594 @@ +[INFO] Scanning for projects... +[WARNING] +[WARNING] Some problems were encountered while building the effective model for cz.habarta.typescript-generator:typescript-generator-gradle-plugin:jar:1.12-SNAPSHOT +[WARNING] 'dependencies.dependency.systemPath' for org.gradle:gradle-core:jar should not point at files within the project directory, ${basedir}/gradle-lib/gradle-core-2.0.jar will be unresolvable by dependent projects @ line 21, column 25 +[WARNING] 'dependencies.dependency.systemPath' for org.gradle:gradle-base-services:jar should not point at files within the project directory, ${basedir}/gradle-lib/gradle-base-services-2.0.jar will be unresolvable by dependent projects @ line 28, column 25 +[WARNING] 'dependencies.dependency.systemPath' for org.gradle:gradle-base-services-groovy:jar should not point at files within the project directory, ${basedir}/gradle-lib/gradle-base-services-groovy-2.0.jar will be unresolvable by dependent projects @ line 35, column 25 +[WARNING] +[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. +[WARNING] +[WARNING] For this reason, future Maven versions might no longer support building such malformed projects. +[WARNING] +[INFO] +[INFO] -----< cz.habarta.typescript-generator:typescript-generator-core >------ +[INFO] Building typescript-generator-core 1.12-SNAPSHOT +[INFO] --------------------------------[ jar ]--------------------------------- +[INFO] +[INFO] >>> nondex-maven-plugin:1.1.2:nondex (default-cli) > test-compile @ typescript-generator-core >>> +[INFO] +[INFO] --- maven-jaxb2-plugin:0.13.1:generate (generate) @ typescript-generator-core --- +[INFO] Up-to-date check for source resources [[file:/home/codebind/typescript-generator/typescript-generator-core/src/main/schema/javadoc.xsd, file:/home/codebind/typescript-generator/typescript-generator-core/pom.xml]] and target resources [[file:/home/codebind/typescript-generator/typescript-generator-core/target/generated-sources/xjc/META-INF/sun-jaxb.episode, file:/home/codebind/typescript-generator/typescript-generator-core/target/generated-sources/xjc/cz/habarta/typescript/generator/xmldoclet/Annotation.java, file:/home/codebind/typescript-generator/typescript-generator-core/target/generated-sources/xjc/cz/habarta/typescript/generator/xmldoclet/TypeInfo.java, file:/home/codebind/typescript-generator/typescript-generator-core/target/generated-sources/xjc/cz/habarta/typescript/generator/xmldoclet/Method.java, file:/home/codebind/typescript-generator/typescript-generator-core/target/generated-sources/xjc/cz/habarta/typescript/generator/xmldoclet/TagInfo.java, file:/home/codebind/typescript-generator/typescript-generator-core/target/generated-sources/xjc/cz/habarta/typescript/generator/xmldoclet/Wildcard.java, file:/home/codebind/typescript-generator/typescript-generator-core/target/generated-sources/xjc/cz/habarta/typescript/generator/xmldoclet/Constructor.java, file:/home/codebind/typescript-generator/typescript-generator-core/target/generated-sources/xjc/cz/habarta/typescript/generator/xmldoclet/ObjectFactory.java, file:/home/codebind/typescript-generator/typescript-generator-core/target/generated-sources/xjc/cz/habarta/typescript/generator/xmldoclet/Interface.java, file:/home/codebind/typescript-generator/typescript-generator-core/target/generated-sources/xjc/cz/habarta/typescript/generator/xmldoclet/Package.java, file:/home/codebind/typescript-generator/typescript-generator-core/target/generated-sources/xjc/cz/habarta/typescript/generator/xmldoclet/AnnotationElement.java, file:/home/codebind/typescript-generator/typescript-generator-core/target/generated-sources/xjc/cz/habarta/typescript/generator/xmldoclet/Field.java, file:/home/codebind/typescript-generator/typescript-generator-core/target/generated-sources/xjc/cz/habarta/typescript/generator/xmldoclet/Class.java, file:/home/codebind/typescript-generator/typescript-generator-core/target/generated-sources/xjc/cz/habarta/typescript/generator/xmldoclet/EnumConstant.java, file:/home/codebind/typescript-generator/typescript-generator-core/target/generated-sources/xjc/cz/habarta/typescript/generator/xmldoclet/TypeParameter.java, file:/home/codebind/typescript-generator/typescript-generator-core/target/generated-sources/xjc/cz/habarta/typescript/generator/xmldoclet/AnnotationInstance.java, file:/home/codebind/typescript-generator/typescript-generator-core/target/generated-sources/xjc/cz/habarta/typescript/generator/xmldoclet/MethodParameter.java, file:/home/codebind/typescript-generator/typescript-generator-core/target/generated-sources/xjc/cz/habarta/typescript/generator/xmldoclet/AnnotationArgument.java, file:/home/codebind/typescript-generator/typescript-generator-core/target/generated-sources/xjc/cz/habarta/typescript/generator/xmldoclet/Root.java, file:/home/codebind/typescript-generator/typescript-generator-core/target/generated-sources/xjc/cz/habarta/typescript/generator/xmldoclet/Enum.java]]. +[INFO] Latest timestamp of the source resources is [2025-06-09 22:52:29.575], earliest timestamp of the target resources is [2025-06-12 23:53:30.524]. +[INFO] Sources are up-to-date, XJC will be skipped. +[INFO] +[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ typescript-generator-core --- +[INFO] Using 'UTF-8' encoding to copy filtered resources. +[INFO] skip non existing resourceDirectory /home/codebind/typescript-generator/typescript-generator-core/src/main/resources +[INFO] Copying 1 resource +[INFO] +[INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ typescript-generator-core --- +[INFO] Nothing to compile - all classes are up to date +[INFO] +[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ typescript-generator-core --- +[INFO] Using 'UTF-8' encoding to copy filtered resources. +[INFO] skip non existing resourceDirectory /home/codebind/typescript-generator/typescript-generator-core/src/test/resources +[INFO] +[INFO] --- maven-compiler-plugin:3.2:testCompile (default-testCompile) @ typescript-generator-core --- +[INFO] Nothing to compile - all classes are up to date +[INFO] +[INFO] <<< nondex-maven-plugin:1.1.2:nondex (default-cli) < test-compile @ typescript-generator-core <<< +[INFO] +[INFO] +[INFO] --- nondex-maven-plugin:1.1.2:nondex (default-cli) @ typescript-generator-core --- +INFO: The original argline is: +INFO: Adding NonDex argLine to existing argLine specified by the project +CONFIG: nondexFilter=.* +nondexMode=FULL +nondexSeed=933178 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=.nondex +nondexExecid=clean_GyvSK4Xwy4H9HUditlSHBhatfjlDQQUoYQ8wEPMUGXk= +nondexLogging=CONFIG +test= +[INFO] Surefire report directory: /home/codebind/typescript-generator/typescript-generator-core/.nondex/clean_GyvSK4Xwy4H9HUditlSHBhatfjlDQQUoYQ8wEPMUGXk= + +------------------------------------------------------- + T E S T S +------------------------------------------------------- +Running cz.habarta.typescript.generator.TaggedUnionsTest +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IShape2' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CSquare2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.289 sec - in cz.habarta.typescript.generator.TaggedUnionsTest + +Results : + +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0 + +INFO: Adding excluded groups to newly created one +INFO: Adding NonDex argLine to existing argLine specified by the project +CONFIG: nondexFilter=.* +nondexMode=FULL +nondexSeed=933178 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=GXR8QbYgG9NPBO9QGwkzJBn1Lkpslu9zZcXWYMBU= +nondexLogging=CONFIG +test= +[INFO] Surefire report directory: /home/codebind/typescript-generator/typescript-generator-core/.nondex/GXR8QbYgG9NPBO9QGwkzJBn1Lkpslu9zZcXWYMBU= +[INFO] parallel='none', perCoreThreadCount=true, threadCount=0, useUnlimitedThreads=false, threadCountSuites=0, threadCountClasses=0, threadCountMethods=0, parallelOptimized=true + +------------------------------------------------------- + T E S T S +------------------------------------------------------- +Running cz.habarta.typescript.generator.TaggedUnionsTest +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IShape2' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CSquare2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.242 sec <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.24 sec <<< FAILURE! +org.junit.ComparisonFailure: expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:140) + + +Results : + +Failed tests: + TaggedUnionsTest.testTaggedUnionsWithInterfaces:140 expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0 + +INFO: Surefire failed when running tests for GXR8QbYgG9NPBO9QGwkzJBn1Lkpslu9zZcXWYMBU= +INFO: Adding excluded groups to newly created one +INFO: Adding NonDex argLine to existing argLine specified by the project +CONFIG: nondexFilter=.* +nondexMode=FULL +nondexSeed=974622 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=LAIj60x90aXyBkt8KDEcLIfWlHerOdtUEmmRlpSeDGg= +nondexLogging=CONFIG +test= +[INFO] Surefire report directory: /home/codebind/typescript-generator/typescript-generator-core/.nondex/LAIj60x90aXyBkt8KDEcLIfWlHerOdtUEmmRlpSeDGg= +[INFO] parallel='none', perCoreThreadCount=true, threadCount=0, useUnlimitedThreads=false, threadCountSuites=0, threadCountClasses=0, threadCountMethods=0, parallelOptimized=true + +------------------------------------------------------- + T E S T S +------------------------------------------------------- +Running cz.habarta.typescript.generator.TaggedUnionsTest +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IShape2' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CSquare2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.196 sec - in cz.habarta.typescript.generator.TaggedUnionsTest + +Results : + +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0 + +INFO: Adding excluded groups to newly created one +INFO: Adding NonDex argLine to existing argLine specified by the project +CONFIG: nondexFilter=.* +nondexMode=FULL +nondexSeed=1016066 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=yXE5ZS2VfsR2hPf2CB2XOSMnTRkJs+4ncWnR+4wFMg= +nondexLogging=CONFIG +test= +[INFO] Surefire report directory: /home/codebind/typescript-generator/typescript-generator-core/.nondex/yXE5ZS2VfsR2hPf2CB2XOSMnTRkJs+4ncWnR+4wFMg= +[INFO] parallel='none', perCoreThreadCount=true, threadCount=0, useUnlimitedThreads=false, threadCountSuites=0, threadCountClasses=0, threadCountMethods=0, parallelOptimized=true + +------------------------------------------------------- + T E S T S +------------------------------------------------------- +Running cz.habarta.typescript.generator.TaggedUnionsTest +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IShape2' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CSquare2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.309 sec <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.308 sec <<< FAILURE! +org.junit.ComparisonFailure: expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:140) + + +Results : + +Failed tests: + TaggedUnionsTest.testTaggedUnionsWithInterfaces:140 expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0 + +INFO: Surefire failed when running tests for yXE5ZS2VfsR2hPf2CB2XOSMnTRkJs+4ncWnR+4wFMg= +INFO: Adding excluded groups to newly created one +INFO: Adding NonDex argLine to existing argLine specified by the project +CONFIG: nondexFilter=.* +nondexMode=FULL +nondexSeed=1057510 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=fvRAMK5JdZp93WO+88UTF7Nl4ENif5reU5Ws5jv0L0= +nondexLogging=CONFIG +test= +[INFO] Surefire report directory: /home/codebind/typescript-generator/typescript-generator-core/.nondex/fvRAMK5JdZp93WO+88UTF7Nl4ENif5reU5Ws5jv0L0= +[INFO] parallel='none', perCoreThreadCount=true, threadCount=0, useUnlimitedThreads=false, threadCountSuites=0, threadCountClasses=0, threadCountMethods=0, parallelOptimized=true + +------------------------------------------------------- + T E S T S +------------------------------------------------------- +Running cz.habarta.typescript.generator.TaggedUnionsTest +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IShape2' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CSquare2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.193 sec <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.193 sec <<< FAILURE! +org.junit.ComparisonFailure: expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:140) + + +Results : + +Failed tests: + TaggedUnionsTest.testTaggedUnionsWithInterfaces:140 expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0 + +INFO: Surefire failed when running tests for fvRAMK5JdZp93WO+88UTF7Nl4ENif5reU5Ws5jv0L0= +INFO: Adding excluded groups to newly created one +INFO: Adding NonDex argLine to existing argLine specified by the project +CONFIG: nondexFilter=.* +nondexMode=FULL +nondexSeed=1098954 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=vhzXxFAMNHliF5sz7KauZqYi30nbMUKREvXhnzW2vk= +nondexLogging=CONFIG +test= +[INFO] Surefire report directory: /home/codebind/typescript-generator/typescript-generator-core/.nondex/vhzXxFAMNHliF5sz7KauZqYi30nbMUKREvXhnzW2vk= +[INFO] parallel='none', perCoreThreadCount=true, threadCount=0, useUnlimitedThreads=false, threadCountSuites=0, threadCountClasses=0, threadCountMethods=0, parallelOptimized=true + +------------------------------------------------------- + T E S T S +------------------------------------------------------- +Running cz.habarta.typescript.generator.TaggedUnionsTest +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IShape2' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CSquare2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.167 sec - in cz.habarta.typescript.generator.TaggedUnionsTest + +Results : + +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0 + +INFO: Adding excluded groups to newly created one +INFO: Adding NonDex argLine to existing argLine specified by the project +CONFIG: nondexFilter=.* +nondexMode=FULL +nondexSeed=1140398 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=69gDDGHRpC9cGEey526m8mEVSop9bkDeB+10gYQNA2A= +nondexLogging=CONFIG +test= +[INFO] Surefire report directory: /home/codebind/typescript-generator/typescript-generator-core/.nondex/69gDDGHRpC9cGEey526m8mEVSop9bkDeB+10gYQNA2A= +[INFO] parallel='none', perCoreThreadCount=true, threadCount=0, useUnlimitedThreads=false, threadCountSuites=0, threadCountClasses=0, threadCountMethods=0, parallelOptimized=true + +------------------------------------------------------- + T E S T S +------------------------------------------------------- +Running cz.habarta.typescript.generator.TaggedUnionsTest +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IShape2' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CSquare2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.298 sec - in cz.habarta.typescript.generator.TaggedUnionsTest + +Results : + +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0 + +INFO: Adding excluded groups to newly created one +INFO: Adding NonDex argLine to existing argLine specified by the project +CONFIG: nondexFilter=.* +nondexMode=FULL +nondexSeed=1181842 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=vey1yLBh2UihjgIh+tsPKM92HP0CvfxywMkB1Fczno= +nondexLogging=CONFIG +test= +[INFO] Surefire report directory: /home/codebind/typescript-generator/typescript-generator-core/.nondex/vey1yLBh2UihjgIh+tsPKM92HP0CvfxywMkB1Fczno= +[INFO] parallel='none', perCoreThreadCount=true, threadCount=0, useUnlimitedThreads=false, threadCountSuites=0, threadCountClasses=0, threadCountMethods=0, parallelOptimized=true + +------------------------------------------------------- + T E S T S +------------------------------------------------------- +Running cz.habarta.typescript.generator.TaggedUnionsTest +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IShape2' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CSquare2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.184 sec - in cz.habarta.typescript.generator.TaggedUnionsTest + +Results : + +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0 + +INFO: Adding excluded groups to newly created one +INFO: Adding NonDex argLine to existing argLine specified by the project +CONFIG: nondexFilter=.* +nondexMode=FULL +nondexSeed=1223286 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=BOb1PiPcagkjM2zzp3wJU9h+QrYzuRvc3pRB5rArK0= +nondexLogging=CONFIG +test= +[INFO] Surefire report directory: /home/codebind/typescript-generator/typescript-generator-core/.nondex/BOb1PiPcagkjM2zzp3wJU9h+QrYzuRvc3pRB5rArK0= +[INFO] parallel='none', perCoreThreadCount=true, threadCount=0, useUnlimitedThreads=false, threadCountSuites=0, threadCountClasses=0, threadCountMethods=0, parallelOptimized=true + +------------------------------------------------------- + T E S T S +------------------------------------------------------- +Running cz.habarta.typescript.generator.TaggedUnionsTest +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IShape2' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CSquare2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.14 sec <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.14 sec <<< FAILURE! +org.junit.ComparisonFailure: expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:140) + + +Results : + +Failed tests: + TaggedUnionsTest.testTaggedUnionsWithInterfaces:140 expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0 + +INFO: Surefire failed when running tests for BOb1PiPcagkjM2zzp3wJU9h+QrYzuRvc3pRB5rArK0= +INFO: Adding excluded groups to newly created one +INFO: Adding NonDex argLine to existing argLine specified by the project +CONFIG: nondexFilter=.* +nondexMode=FULL +nondexSeed=1264730 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=3DiG69cvUmPc15eg3d5hKcQXVSLdGcLNn+KEvxQZR4E= +nondexLogging=CONFIG +test= +[INFO] Surefire report directory: /home/codebind/typescript-generator/typescript-generator-core/.nondex/3DiG69cvUmPc15eg3d5hKcQXVSLdGcLNn+KEvxQZR4E= +[INFO] parallel='none', perCoreThreadCount=true, threadCount=0, useUnlimitedThreads=false, threadCountSuites=0, threadCountClasses=0, threadCountMethods=0, parallelOptimized=true + +------------------------------------------------------- + T E S T S +------------------------------------------------------- +Running cz.habarta.typescript.generator.TaggedUnionsTest +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IShape2' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CSquare2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.187 sec - in cz.habarta.typescript.generator.TaggedUnionsTest + +Results : + +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0 + +INFO: Adding excluded groups to newly created one +INFO: Adding NonDex argLine to existing argLine specified by the project +CONFIG: nondexFilter=.* +nondexMode=FULL +nondexSeed=1306174 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=7mtByFrMjHZdcc6+umWMG63B0z+YLGb19GWqQHft0= +nondexLogging=CONFIG +test= +[INFO] Surefire report directory: /home/codebind/typescript-generator/typescript-generator-core/.nondex/7mtByFrMjHZdcc6+umWMG63B0z+YLGb19GWqQHft0= +[INFO] parallel='none', perCoreThreadCount=true, threadCount=0, useUnlimitedThreads=false, threadCountSuites=0, threadCountClasses=0, threadCountMethods=0, parallelOptimized=true + +------------------------------------------------------- + T E S T S +------------------------------------------------------- +Running cz.habarta.typescript.generator.TaggedUnionsTest +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IShape2' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CSquare2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.176 sec <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.172 sec <<< FAILURE! +org.junit.ComparisonFailure: expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:140) + + +Results : + +Failed tests: + TaggedUnionsTest.testTaggedUnionsWithInterfaces:140 expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0 + +INFO: Surefire failed when running tests for 7mtByFrMjHZdcc6+umWMG63B0z+YLGb19GWqQHft0= +[INFO] NonDex SUMMARY: +[INFO] ********* +[INFO] mvn nondex:nondex -DnondexFilter='.*' -DnondexMode=FULL -DnondexSeed=933178 -DnondexStart=0 -DnondexEnd=9223372036854775807 -DnondexPrintstack=false -DnondexDir="/home/codebind/typescript-generator/typescript-generator-core/.nondex" -DnondexJarDir="/home/codebind/typescript-generator/typescript-generator-core/.nondex" -DnondexExecid=GXR8QbYgG9NPBO9QGwkzJBn1Lkpslu9zZcXWYMBU= -DnondexLogging=CONFIG +[WARNING] cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces +[INFO] ********* +[INFO] ********* +[INFO] mvn nondex:nondex -DnondexFilter='.*' -DnondexMode=FULL -DnondexSeed=974622 -DnondexStart=0 -DnondexEnd=9223372036854775807 -DnondexPrintstack=false -DnondexDir="/home/codebind/typescript-generator/typescript-generator-core/.nondex" -DnondexJarDir="/home/codebind/typescript-generator/typescript-generator-core/.nondex" -DnondexExecid=LAIj60x90aXyBkt8KDEcLIfWlHerOdtUEmmRlpSeDGg= -DnondexLogging=CONFIG +[INFO] No Test Failed with this configuration. +[INFO] ********* +[INFO] ********* +[INFO] mvn nondex:nondex -DnondexFilter='.*' -DnondexMode=FULL -DnondexSeed=1016066 -DnondexStart=0 -DnondexEnd=9223372036854775807 -DnondexPrintstack=false -DnondexDir="/home/codebind/typescript-generator/typescript-generator-core/.nondex" -DnondexJarDir="/home/codebind/typescript-generator/typescript-generator-core/.nondex" -DnondexExecid=yXE5ZS2VfsR2hPf2CB2XOSMnTRkJs+4ncWnR+4wFMg= -DnondexLogging=CONFIG +[WARNING] cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces +[INFO] ********* +[INFO] ********* +[INFO] mvn nondex:nondex -DnondexFilter='.*' -DnondexMode=FULL -DnondexSeed=1057510 -DnondexStart=0 -DnondexEnd=9223372036854775807 -DnondexPrintstack=false -DnondexDir="/home/codebind/typescript-generator/typescript-generator-core/.nondex" -DnondexJarDir="/home/codebind/typescript-generator/typescript-generator-core/.nondex" -DnondexExecid=fvRAMK5JdZp93WO+88UTF7Nl4ENif5reU5Ws5jv0L0= -DnondexLogging=CONFIG +[WARNING] cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces +[INFO] ********* +[INFO] ********* +[INFO] mvn nondex:nondex -DnondexFilter='.*' -DnondexMode=FULL -DnondexSeed=1098954 -DnondexStart=0 -DnondexEnd=9223372036854775807 -DnondexPrintstack=false -DnondexDir="/home/codebind/typescript-generator/typescript-generator-core/.nondex" -DnondexJarDir="/home/codebind/typescript-generator/typescript-generator-core/.nondex" -DnondexExecid=vhzXxFAMNHliF5sz7KauZqYi30nbMUKREvXhnzW2vk= -DnondexLogging=CONFIG +[INFO] No Test Failed with this configuration. +[INFO] ********* +[INFO] ********* +[INFO] mvn nondex:nondex -DnondexFilter='.*' -DnondexMode=FULL -DnondexSeed=1140398 -DnondexStart=0 -DnondexEnd=9223372036854775807 -DnondexPrintstack=false -DnondexDir="/home/codebind/typescript-generator/typescript-generator-core/.nondex" -DnondexJarDir="/home/codebind/typescript-generator/typescript-generator-core/.nondex" -DnondexExecid=69gDDGHRpC9cGEey526m8mEVSop9bkDeB+10gYQNA2A= -DnondexLogging=CONFIG +[INFO] No Test Failed with this configuration. +[INFO] ********* +[INFO] ********* +[INFO] mvn nondex:nondex -DnondexFilter='.*' -DnondexMode=FULL -DnondexSeed=1181842 -DnondexStart=0 -DnondexEnd=9223372036854775807 -DnondexPrintstack=false -DnondexDir="/home/codebind/typescript-generator/typescript-generator-core/.nondex" -DnondexJarDir="/home/codebind/typescript-generator/typescript-generator-core/.nondex" -DnondexExecid=vey1yLBh2UihjgIh+tsPKM92HP0CvfxywMkB1Fczno= -DnondexLogging=CONFIG +[INFO] No Test Failed with this configuration. +[INFO] ********* +[INFO] ********* +[INFO] mvn nondex:nondex -DnondexFilter='.*' -DnondexMode=FULL -DnondexSeed=1223286 -DnondexStart=0 -DnondexEnd=9223372036854775807 -DnondexPrintstack=false -DnondexDir="/home/codebind/typescript-generator/typescript-generator-core/.nondex" -DnondexJarDir="/home/codebind/typescript-generator/typescript-generator-core/.nondex" -DnondexExecid=BOb1PiPcagkjM2zzp3wJU9h+QrYzuRvc3pRB5rArK0= -DnondexLogging=CONFIG +[WARNING] cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces +[INFO] ********* +[INFO] ********* +[INFO] mvn nondex:nondex -DnondexFilter='.*' -DnondexMode=FULL -DnondexSeed=1264730 -DnondexStart=0 -DnondexEnd=9223372036854775807 -DnondexPrintstack=false -DnondexDir="/home/codebind/typescript-generator/typescript-generator-core/.nondex" -DnondexJarDir="/home/codebind/typescript-generator/typescript-generator-core/.nondex" -DnondexExecid=3DiG69cvUmPc15eg3d5hKcQXVSLdGcLNn+KEvxQZR4E= -DnondexLogging=CONFIG +[INFO] No Test Failed with this configuration. +[INFO] ********* +[INFO] ********* +[INFO] mvn nondex:nondex -DnondexFilter='.*' -DnondexMode=FULL -DnondexSeed=1306174 -DnondexStart=0 -DnondexEnd=9223372036854775807 -DnondexPrintstack=false -DnondexDir="/home/codebind/typescript-generator/typescript-generator-core/.nondex" -DnondexJarDir="/home/codebind/typescript-generator/typescript-generator-core/.nondex" -DnondexExecid=7mtByFrMjHZdcc6+umWMG63B0z+YLGb19GWqQHft0= -DnondexLogging=CONFIG +[WARNING] cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces +[INFO] ********* +[INFO] Across all seeds: +[INFO] cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces +[INFO] Test results can be found at: +[INFO] file:///home/codebind/typescript-generator/typescript-generator-core/.nondex/GXR8QbYgG9NPBO9QGwkzJBn1Lkpslu9zZcXWYMBU=/test_results.html +[INFO] [NonDex] The id of this run is: GXR8QbYgG9NPBO9QGwkzJBn1Lkpslu9zZcXWYMBU= +[INFO] ------------------------------------------------------------------------ +[INFO] BUILD FAILURE +[INFO] ------------------------------------------------------------------------ +[INFO] Total time: 7.534 s +[INFO] Finished at: 2025-06-17T21:23:34Z +[INFO] ------------------------------------------------------------------------ +[ERROR] Failed to execute goal edu.illinois:nondex-maven-plugin:1.1.2:nondex (default-cli) on project typescript-generator-core: Unable to execute mojo: There are test failures. +[ERROR] +[ERROR] Please refer to /home/codebind/typescript-generator/typescript-generator-core/.nondex/GXR8QbYgG9NPBO9QGwkzJBn1Lkpslu9zZcXWYMBU= for the individual test results. +[ERROR] -> [Help 1] +[ERROR] +[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. +[ERROR] Re-run Maven using the -X switch to enable full debug logging. +[ERROR] +[ERROR] For more information about the errors and possible solutions, please read the following articles: +[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException diff --git a/typescript-generator-core/.nondex/+2sU28J3NAmNvh7V4xItX85MQXRcu3ITlPnhGVFye24=.run b/typescript-generator-core/.nondex/+2sU28J3NAmNvh7V4xItX85MQXRcu3ITlPnhGVFye24=.run new file mode 100644 index 000000000..cc953cc92 --- /dev/null +++ b/typescript-generator-core/.nondex/+2sU28J3NAmNvh7V4xItX85MQXRcu3ITlPnhGVFye24=.run @@ -0,0 +1,4 @@ ++2sU28J3NAmNvh7V4xItX85MQXRcu3ITlPnhGVFye24= +h53UqbwkR+QMutXTU1IOPz4TrwdbROiaAfLCcQeKMxk= +bgdJQJVi9b1nwgMWj2YOdOG0KtKY+vNf+nDXExqjD9I= +clean_FIsxSQPKuKLTHl7E5aM62wOgus7wMBzao5R5ArhwYY= diff --git a/typescript-generator-core/.nondex/+2sU28J3NAmNvh7V4xItX85MQXRcu3ITlPnhGVFye24=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/+2sU28J3NAmNvh7V4xItX85MQXRcu3ITlPnhGVFye24=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..8c1fcd556 --- /dev/null +++ b/typescript-generator-core/.nondex/+2sU28J3NAmNvh7V4xItX85MQXRcu3ITlPnhGVFye24=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,132 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:210) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/+2sU28J3NAmNvh7V4xItX85MQXRcu3ITlPnhGVFye24=/config b/typescript-generator-core/.nondex/+2sU28J3NAmNvh7V4xItX85MQXRcu3ITlPnhGVFye24=/config new file mode 100644 index 000000000..4fa9ce285 --- /dev/null +++ b/typescript-generator-core/.nondex/+2sU28J3NAmNvh7V4xItX85MQXRcu3ITlPnhGVFye24=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=933178 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=+2sU28J3NAmNvh7V4xItX85MQXRcu3ITlPnhGVFye24= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/+2sU28J3NAmNvh7V4xItX85MQXRcu3ITlPnhGVFye24=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/+2sU28J3NAmNvh7V4xItX85MQXRcu3ITlPnhGVFye24=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..bfe2f54e9 --- /dev/null +++ b/typescript-generator-core/.nondex/+2sU28J3NAmNvh7V4xItX85MQXRcu3ITlPnhGVFye24=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,56 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.225 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.219 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:210) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/+2sU28J3NAmNvh7V4xItX85MQXRcu3ITlPnhGVFye24=/failures b/typescript-generator-core/.nondex/+2sU28J3NAmNvh7V4xItX85MQXRcu3ITlPnhGVFye24=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/+2sU28J3NAmNvh7V4xItX85MQXRcu3ITlPnhGVFye24=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/+2sU28J3NAmNvh7V4xItX85MQXRcu3ITlPnhGVFye24=/invocations b/typescript-generator-core/.nondex/+2sU28J3NAmNvh7V4xItX85MQXRcu3ITlPnhGVFye24=/invocations new file mode 100644 index 000000000..7ad7d1da8 --- /dev/null +++ b/typescript-generator-core/.nondex/+2sU28J3NAmNvh7V4xItX85MQXRcu3ITlPnhGVFye24=/invocations @@ -0,0 +1,2 @@ +COUNT:67 +SHUFFLES:67 diff --git a/typescript-generator-core/.nondex/+2sU28J3NAmNvh7V4xItX85MQXRcu3ITlPnhGVFye24=/test_results.html b/typescript-generator-core/.nondex/+2sU28J3NAmNvh7V4xItX85MQXRcu3ITlPnhGVFye24=/test_results.html new file mode 100644 index 000000000..cc9aae726 --- /dev/null +++ b/typescript-generator-core/.nondex/+2sU28J3NAmNvh7V4xItX85MQXRcu3ITlPnhGVFye24=/test_results.html @@ -0,0 +1 @@ +Test Results
Test Name9331789746221016066
cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces
\ No newline at end of file diff --git a/typescript-generator-core/.nondex/+H3FYTfyNm1oJxRXHTuPcKihld7qZFhTd4UOICFm40=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/+H3FYTfyNm1oJxRXHTuPcKihld7qZFhTd4UOICFm40=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..f45384436 --- /dev/null +++ b/typescript-generator-core/.nondex/+H3FYTfyNm1oJxRXHTuPcKihld7qZFhTd4UOICFm40=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/+H3FYTfyNm1oJxRXHTuPcKihld7qZFhTd4UOICFm40=/config b/typescript-generator-core/.nondex/+H3FYTfyNm1oJxRXHTuPcKihld7qZFhTd4UOICFm40=/config new file mode 100644 index 000000000..154fc24b8 --- /dev/null +++ b/typescript-generator-core/.nondex/+H3FYTfyNm1oJxRXHTuPcKihld7qZFhTd4UOICFm40=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=3834258 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=+H3FYTfyNm1oJxRXHTuPcKihld7qZFhTd4UOICFm40= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/+H3FYTfyNm1oJxRXHTuPcKihld7qZFhTd4UOICFm40=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/+H3FYTfyNm1oJxRXHTuPcKihld7qZFhTd4UOICFm40=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..8811a846e --- /dev/null +++ b/typescript-generator-core/.nondex/+H3FYTfyNm1oJxRXHTuPcKihld7qZFhTd4UOICFm40=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.173 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.172 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/+H3FYTfyNm1oJxRXHTuPcKihld7qZFhTd4UOICFm40=/failures b/typescript-generator-core/.nondex/+H3FYTfyNm1oJxRXHTuPcKihld7qZFhTd4UOICFm40=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/+H3FYTfyNm1oJxRXHTuPcKihld7qZFhTd4UOICFm40=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/+H3FYTfyNm1oJxRXHTuPcKihld7qZFhTd4UOICFm40=/invocations b/typescript-generator-core/.nondex/+H3FYTfyNm1oJxRXHTuPcKihld7qZFhTd4UOICFm40=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/+H3FYTfyNm1oJxRXHTuPcKihld7qZFhTd4UOICFm40=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/+yAUA9TT+GGdzIQVioGw+2qRl0m0UwdnD575yG14=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/+yAUA9TT+GGdzIQVioGw+2qRl0m0UwdnD575yG14=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..7f904a03b --- /dev/null +++ b/typescript-generator-core/.nondex/+yAUA9TT+GGdzIQVioGw+2qRl0m0UwdnD575yG14=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/+yAUA9TT+GGdzIQVioGw+2qRl0m0UwdnD575yG14=/config b/typescript-generator-core/.nondex/+yAUA9TT+GGdzIQVioGw+2qRl0m0UwdnD575yG14=/config new file mode 100644 index 000000000..5cf8e9241 --- /dev/null +++ b/typescript-generator-core/.nondex/+yAUA9TT+GGdzIQVioGw+2qRl0m0UwdnD575yG14=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=2135054 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=+yAUA9TT+GGdzIQVioGw+2qRl0m0UwdnD575yG14= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/+yAUA9TT+GGdzIQVioGw+2qRl0m0UwdnD575yG14=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/+yAUA9TT+GGdzIQVioGw+2qRl0m0UwdnD575yG14=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..2701b2771 --- /dev/null +++ b/typescript-generator-core/.nondex/+yAUA9TT+GGdzIQVioGw+2qRl0m0UwdnD575yG14=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.235 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/+yAUA9TT+GGdzIQVioGw+2qRl0m0UwdnD575yG14=/failures b/typescript-generator-core/.nondex/+yAUA9TT+GGdzIQVioGw+2qRl0m0UwdnD575yG14=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/+yAUA9TT+GGdzIQVioGw+2qRl0m0UwdnD575yG14=/invocations b/typescript-generator-core/.nondex/+yAUA9TT+GGdzIQVioGw+2qRl0m0UwdnD575yG14=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/+yAUA9TT+GGdzIQVioGw+2qRl0m0UwdnD575yG14=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/0EBlSJdryUbO77gIRxlVPFONnwwwhl2AM+94fIwrE=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/0EBlSJdryUbO77gIRxlVPFONnwwwhl2AM+94fIwrE=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..162edcae9 --- /dev/null +++ b/typescript-generator-core/.nondex/0EBlSJdryUbO77gIRxlVPFONnwwwhl2AM+94fIwrE=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/0EBlSJdryUbO77gIRxlVPFONnwwwhl2AM+94fIwrE=/config b/typescript-generator-core/.nondex/0EBlSJdryUbO77gIRxlVPFONnwwwhl2AM+94fIwrE=/config new file mode 100644 index 000000000..d42ce3ad8 --- /dev/null +++ b/typescript-generator-core/.nondex/0EBlSJdryUbO77gIRxlVPFONnwwwhl2AM+94fIwrE=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=3461262 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=0EBlSJdryUbO77gIRxlVPFONnwwwhl2AM+94fIwrE= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/0EBlSJdryUbO77gIRxlVPFONnwwwhl2AM+94fIwrE=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/0EBlSJdryUbO77gIRxlVPFONnwwwhl2AM+94fIwrE=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..08cf44d8f --- /dev/null +++ b/typescript-generator-core/.nondex/0EBlSJdryUbO77gIRxlVPFONnwwwhl2AM+94fIwrE=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.209 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.205 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/0EBlSJdryUbO77gIRxlVPFONnwwwhl2AM+94fIwrE=/failures b/typescript-generator-core/.nondex/0EBlSJdryUbO77gIRxlVPFONnwwwhl2AM+94fIwrE=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/0EBlSJdryUbO77gIRxlVPFONnwwwhl2AM+94fIwrE=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/0EBlSJdryUbO77gIRxlVPFONnwwwhl2AM+94fIwrE=/invocations b/typescript-generator-core/.nondex/0EBlSJdryUbO77gIRxlVPFONnwwwhl2AM+94fIwrE=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/0EBlSJdryUbO77gIRxlVPFONnwwwhl2AM+94fIwrE=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/0GsHKdGU2zzfw9zTWUpOy1uhUiFaQfbpOkXVTciAbPc=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/0GsHKdGU2zzfw9zTWUpOy1uhUiFaQfbpOkXVTciAbPc=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..b46cc11ef --- /dev/null +++ b/typescript-generator-core/.nondex/0GsHKdGU2zzfw9zTWUpOy1uhUiFaQfbpOkXVTciAbPc=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/0GsHKdGU2zzfw9zTWUpOy1uhUiFaQfbpOkXVTciAbPc=/config b/typescript-generator-core/.nondex/0GsHKdGU2zzfw9zTWUpOy1uhUiFaQfbpOkXVTciAbPc=/config new file mode 100644 index 000000000..bfa91794b --- /dev/null +++ b/typescript-generator-core/.nondex/0GsHKdGU2zzfw9zTWUpOy1uhUiFaQfbpOkXVTciAbPc=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=3005378 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=0GsHKdGU2zzfw9zTWUpOy1uhUiFaQfbpOkXVTciAbPc= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/0GsHKdGU2zzfw9zTWUpOy1uhUiFaQfbpOkXVTciAbPc=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/0GsHKdGU2zzfw9zTWUpOy1uhUiFaQfbpOkXVTciAbPc=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..17d1f9edf --- /dev/null +++ b/typescript-generator-core/.nondex/0GsHKdGU2zzfw9zTWUpOy1uhUiFaQfbpOkXVTciAbPc=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.26 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/0GsHKdGU2zzfw9zTWUpOy1uhUiFaQfbpOkXVTciAbPc=/failures b/typescript-generator-core/.nondex/0GsHKdGU2zzfw9zTWUpOy1uhUiFaQfbpOkXVTciAbPc=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/0GsHKdGU2zzfw9zTWUpOy1uhUiFaQfbpOkXVTciAbPc=/invocations b/typescript-generator-core/.nondex/0GsHKdGU2zzfw9zTWUpOy1uhUiFaQfbpOkXVTciAbPc=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/0GsHKdGU2zzfw9zTWUpOy1uhUiFaQfbpOkXVTciAbPc=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/0gjIslGtQq35hFRgCqZK89yjDdrZWVkkEmhl8Oci7xs=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/0gjIslGtQq35hFRgCqZK89yjDdrZWVkkEmhl8Oci7xs=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..d28fb4d4a --- /dev/null +++ b/typescript-generator-core/.nondex/0gjIslGtQq35hFRgCqZK89yjDdrZWVkkEmhl8Oci7xs=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/0gjIslGtQq35hFRgCqZK89yjDdrZWVkkEmhl8Oci7xs=/config b/typescript-generator-core/.nondex/0gjIslGtQq35hFRgCqZK89yjDdrZWVkkEmhl8Oci7xs=/config new file mode 100644 index 000000000..8b15df648 --- /dev/null +++ b/typescript-generator-core/.nondex/0gjIslGtQq35hFRgCqZK89yjDdrZWVkkEmhl8Oci7xs=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=4663138 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=0gjIslGtQq35hFRgCqZK89yjDdrZWVkkEmhl8Oci7xs= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/0gjIslGtQq35hFRgCqZK89yjDdrZWVkkEmhl8Oci7xs=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/0gjIslGtQq35hFRgCqZK89yjDdrZWVkkEmhl8Oci7xs=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..3173259aa --- /dev/null +++ b/typescript-generator-core/.nondex/0gjIslGtQq35hFRgCqZK89yjDdrZWVkkEmhl8Oci7xs=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.269 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.247 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/0gjIslGtQq35hFRgCqZK89yjDdrZWVkkEmhl8Oci7xs=/failures b/typescript-generator-core/.nondex/0gjIslGtQq35hFRgCqZK89yjDdrZWVkkEmhl8Oci7xs=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/0gjIslGtQq35hFRgCqZK89yjDdrZWVkkEmhl8Oci7xs=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/0gjIslGtQq35hFRgCqZK89yjDdrZWVkkEmhl8Oci7xs=/invocations b/typescript-generator-core/.nondex/0gjIslGtQq35hFRgCqZK89yjDdrZWVkkEmhl8Oci7xs=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/0gjIslGtQq35hFRgCqZK89yjDdrZWVkkEmhl8Oci7xs=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/1GHfCkjDMIoCrPZt2ILQWn1AgxjIuFuO90JyuJN880=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/1GHfCkjDMIoCrPZt2ILQWn1AgxjIuFuO90JyuJN880=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..d3fe53ba3 --- /dev/null +++ b/typescript-generator-core/.nondex/1GHfCkjDMIoCrPZt2ILQWn1AgxjIuFuO90JyuJN880=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/1GHfCkjDMIoCrPZt2ILQWn1AgxjIuFuO90JyuJN880=/config b/typescript-generator-core/.nondex/1GHfCkjDMIoCrPZt2ILQWn1AgxjIuFuO90JyuJN880=/config new file mode 100644 index 000000000..38e07cd4e --- /dev/null +++ b/typescript-generator-core/.nondex/1GHfCkjDMIoCrPZt2ILQWn1AgxjIuFuO90JyuJN880=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1637726 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=1GHfCkjDMIoCrPZt2ILQWn1AgxjIuFuO90JyuJN880= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/1GHfCkjDMIoCrPZt2ILQWn1AgxjIuFuO90JyuJN880=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/1GHfCkjDMIoCrPZt2ILQWn1AgxjIuFuO90JyuJN880=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..c3cc3f72d --- /dev/null +++ b/typescript-generator-core/.nondex/1GHfCkjDMIoCrPZt2ILQWn1AgxjIuFuO90JyuJN880=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.218 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/1GHfCkjDMIoCrPZt2ILQWn1AgxjIuFuO90JyuJN880=/failures b/typescript-generator-core/.nondex/1GHfCkjDMIoCrPZt2ILQWn1AgxjIuFuO90JyuJN880=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/1GHfCkjDMIoCrPZt2ILQWn1AgxjIuFuO90JyuJN880=/invocations b/typescript-generator-core/.nondex/1GHfCkjDMIoCrPZt2ILQWn1AgxjIuFuO90JyuJN880=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/1GHfCkjDMIoCrPZt2ILQWn1AgxjIuFuO90JyuJN880=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/1Jdfzoc6s599xPbTmuNKboNmo4qpBDfIuTIj31lzOIs=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/1Jdfzoc6s599xPbTmuNKboNmo4qpBDfIuTIj31lzOIs=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..d485c47c5 --- /dev/null +++ b/typescript-generator-core/.nondex/1Jdfzoc6s599xPbTmuNKboNmo4qpBDfIuTIj31lzOIs=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/1Jdfzoc6s599xPbTmuNKboNmo4qpBDfIuTIj31lzOIs=/config b/typescript-generator-core/.nondex/1Jdfzoc6s599xPbTmuNKboNmo4qpBDfIuTIj31lzOIs=/config new file mode 100644 index 000000000..40655ad9a --- /dev/null +++ b/typescript-generator-core/.nondex/1Jdfzoc6s599xPbTmuNKboNmo4qpBDfIuTIj31lzOIs=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=974622 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=1Jdfzoc6s599xPbTmuNKboNmo4qpBDfIuTIj31lzOIs= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/1Jdfzoc6s599xPbTmuNKboNmo4qpBDfIuTIj31lzOIs=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/1Jdfzoc6s599xPbTmuNKboNmo4qpBDfIuTIj31lzOIs=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..fe31f657c --- /dev/null +++ b/typescript-generator-core/.nondex/1Jdfzoc6s599xPbTmuNKboNmo4qpBDfIuTIj31lzOIs=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.201 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/1Jdfzoc6s599xPbTmuNKboNmo4qpBDfIuTIj31lzOIs=/failures b/typescript-generator-core/.nondex/1Jdfzoc6s599xPbTmuNKboNmo4qpBDfIuTIj31lzOIs=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/1Jdfzoc6s599xPbTmuNKboNmo4qpBDfIuTIj31lzOIs=/invocations b/typescript-generator-core/.nondex/1Jdfzoc6s599xPbTmuNKboNmo4qpBDfIuTIj31lzOIs=/invocations new file mode 100644 index 000000000..7ad7d1da8 --- /dev/null +++ b/typescript-generator-core/.nondex/1Jdfzoc6s599xPbTmuNKboNmo4qpBDfIuTIj31lzOIs=/invocations @@ -0,0 +1,2 @@ +COUNT:67 +SHUFFLES:67 diff --git a/typescript-generator-core/.nondex/1Pv+t+IolLj7ELbIXhaD0tdFhALAwQOcxOWrPjJkQfg=/config b/typescript-generator-core/.nondex/1Pv+t+IolLj7ELbIXhaD0tdFhALAwQOcxOWrPjJkQfg=/config new file mode 100644 index 000000000..7adcfb6a8 --- /dev/null +++ b/typescript-generator-core/.nondex/1Pv+t+IolLj7ELbIXhaD0tdFhALAwQOcxOWrPjJkQfg=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1057510 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=1Pv+t+IolLj7ELbIXhaD0tdFhALAwQOcxOWrPjJkQfg= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/1Pv+t+IolLj7ELbIXhaD0tdFhALAwQOcxOWrPjJkQfg=/failures b/typescript-generator-core/.nondex/1Pv+t+IolLj7ELbIXhaD0tdFhALAwQOcxOWrPjJkQfg=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/1Pv+t+IolLj7ELbIXhaD0tdFhALAwQOcxOWrPjJkQfg=/invocations b/typescript-generator-core/.nondex/1Pv+t+IolLj7ELbIXhaD0tdFhALAwQOcxOWrPjJkQfg=/invocations new file mode 100644 index 000000000..c164bf6ef --- /dev/null +++ b/typescript-generator-core/.nondex/1Pv+t+IolLj7ELbIXhaD0tdFhALAwQOcxOWrPjJkQfg=/invocations @@ -0,0 +1,2 @@ +COUNT:16 +SHUFFLES:16 diff --git a/typescript-generator-core/.nondex/1Xqy8A9eg+P0RgRzLFkl1x1Azm2OeoxNdDJFlVvN8Sw=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/1Xqy8A9eg+P0RgRzLFkl1x1Azm2OeoxNdDJFlVvN8Sw=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..13ef4ff5c --- /dev/null +++ b/typescript-generator-core/.nondex/1Xqy8A9eg+P0RgRzLFkl1x1Azm2OeoxNdDJFlVvN8Sw=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/1Xqy8A9eg+P0RgRzLFkl1x1Azm2OeoxNdDJFlVvN8Sw=/config b/typescript-generator-core/.nondex/1Xqy8A9eg+P0RgRzLFkl1x1Azm2OeoxNdDJFlVvN8Sw=/config new file mode 100644 index 000000000..3b8129fe4 --- /dev/null +++ b/typescript-generator-core/.nondex/1Xqy8A9eg+P0RgRzLFkl1x1Azm2OeoxNdDJFlVvN8Sw=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1016066 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=1Xqy8A9eg+P0RgRzLFkl1x1Azm2OeoxNdDJFlVvN8Sw= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/1Xqy8A9eg+P0RgRzLFkl1x1Azm2OeoxNdDJFlVvN8Sw=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/1Xqy8A9eg+P0RgRzLFkl1x1Azm2OeoxNdDJFlVvN8Sw=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..a88f6b4fb --- /dev/null +++ b/typescript-generator-core/.nondex/1Xqy8A9eg+P0RgRzLFkl1x1Azm2OeoxNdDJFlVvN8Sw=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.155 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/1Xqy8A9eg+P0RgRzLFkl1x1Azm2OeoxNdDJFlVvN8Sw=/failures b/typescript-generator-core/.nondex/1Xqy8A9eg+P0RgRzLFkl1x1Azm2OeoxNdDJFlVvN8Sw=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/1Xqy8A9eg+P0RgRzLFkl1x1Azm2OeoxNdDJFlVvN8Sw=/invocations b/typescript-generator-core/.nondex/1Xqy8A9eg+P0RgRzLFkl1x1Azm2OeoxNdDJFlVvN8Sw=/invocations new file mode 100644 index 000000000..7ad7d1da8 --- /dev/null +++ b/typescript-generator-core/.nondex/1Xqy8A9eg+P0RgRzLFkl1x1Azm2OeoxNdDJFlVvN8Sw=/invocations @@ -0,0 +1,2 @@ +COUNT:67 +SHUFFLES:67 diff --git a/typescript-generator-core/.nondex/1iHUmiw7GGS4MRmPGfeZBG61u5Cogg2PzwyRd1pKWqY=.run b/typescript-generator-core/.nondex/1iHUmiw7GGS4MRmPGfeZBG61u5Cogg2PzwyRd1pKWqY=.run new file mode 100644 index 000000000..cd0cb4ee9 --- /dev/null +++ b/typescript-generator-core/.nondex/1iHUmiw7GGS4MRmPGfeZBG61u5Cogg2PzwyRd1pKWqY=.run @@ -0,0 +1,4 @@ +1iHUmiw7GGS4MRmPGfeZBG61u5Cogg2PzwyRd1pKWqY= +nl08VQ3K3k03jdQ5g1D7gcTqQlSIKsb2Y3bVrfQ93g= +ArmFzuXEJnaiQrX43FkYWMX23sBHnVKXbIDQyxA0lo= +clean_pQuy69+Bz1DUWWcS1r9Uv3vQoDg8WNloIKryWkpvPb0= diff --git a/typescript-generator-core/.nondex/1iHUmiw7GGS4MRmPGfeZBG61u5Cogg2PzwyRd1pKWqY=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/1iHUmiw7GGS4MRmPGfeZBG61u5Cogg2PzwyRd1pKWqY=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..4ee4efe26 --- /dev/null +++ b/typescript-generator-core/.nondex/1iHUmiw7GGS4MRmPGfeZBG61u5Cogg2PzwyRd1pKWqY=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,553 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:< +interface I[NamedQuadrilateral3 extends INamedShape3, IQuadrilateral3 { + kind: "rectangle"; +} + +interface INamedShape3 extends IShape3 { + kind: "circle" | "rectangle"; + name: string; +} + +interface IShape3 { + kind: "circle" | "rectangle"; +} + +interface ICircle3 extends INamedShape3 { + kind: "circle"; +} + +interface IRectangle3 extends INamedQuadrilateral3 { + kind: "rectangle"]; +} + +interface IQuad...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithOverlappingInterfaces(TaggedUnionsTest.java:289) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$ICircle3' used in 'IShape3.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$INamedQuadrilateral3' used in 'IRectangle3.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$INamedShape3' used in 'ICircle3.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral3' used in 'INamedQuadrilateral3.' +]]> + + + but was:<...ngle"; +} + +interface [IQuadrilateral2 extends IShape2 { + kind: "square" | "rectangle"; +} + +interface CSquare2 extends IQuadrilateral2 { + kind: "square"; + size: number; +} + +interface CRectangle2 extends IQuadrilateral2 { + kind: "rectangle"; + width: number; + height: number; +} + +interface CCircle2 extends IShape2 { + kind: "circle"; + radius: number]; +} + +type IShape2Uni...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:253) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + + + + but was:< +interface [Circle extends Shape { + kind: "circle"; + radius: number; +} + +interface Square extends Shape { + kind: "square"; + size: number; +} + +interface Shape { + kind: "square" | "rectangle" | "circle"; +} + +interface Geometry { + shapes: Shape[]; +} + +interface Rectangle extends Shape { + kind: "rectangle"; + width: number; + height]: number; +} +> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsDisabled(TaggedUnionsTest.java:324) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$Rectangle' used in 'Shape.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$Circle' used in 'Shape.' +]]> + + + + but was:< +interface Diamond[B1 extends DiamondA { + kind: "b1" | "c"; + b1: string; +} + +interface DiamondA { + kind: "b1" | "c" | "b2"; + a: string; +} + +interface DiamondC extends DiamondB1, DiamondB2 { + kind: "c"; + c: string; +} + +interface DiamondB2 extends DiamondA { + kind: "b2" | "c"; + b2]: string; +} + +type Di...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithDiamond(TaggedUnionsTest.java:356) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$DiamondB2' used in 'DiamondA.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$DiamondC' used in 'DiamondA.' +]]> + + + + + but was:< +interface [Shape { + kind: "square" | "rectangle" | "circle"; +} + +interface Circle extends Shape { + kind: "circle"; + radius: number; +} + +interface Square extends Shape { + kind: "square"; + size: number; +} + +interface Geometry { + shapes: ShapeUnion[]; +} + +interface Rectangle extends Shape { + kind: "rectangle"; + height: number; + width]: number; +} + +type Sh...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnions(TaggedUnionsTest.java:217) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$Rectangle' used in 'Shape.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$Circle' used in 'Shape.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/1iHUmiw7GGS4MRmPGfeZBG61u5Cogg2PzwyRd1pKWqY=/config b/typescript-generator-core/.nondex/1iHUmiw7GGS4MRmPGfeZBG61u5Cogg2PzwyRd1pKWqY=/config new file mode 100644 index 000000000..3cdb3819d --- /dev/null +++ b/typescript-generator-core/.nondex/1iHUmiw7GGS4MRmPGfeZBG61u5Cogg2PzwyRd1pKWqY=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=933178 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=1iHUmiw7GGS4MRmPGfeZBG61u5Cogg2PzwyRd1pKWqY= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/1iHUmiw7GGS4MRmPGfeZBG61u5Cogg2PzwyRd1pKWqY=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/1iHUmiw7GGS4MRmPGfeZBG61u5Cogg2PzwyRd1pKWqY=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..c113a925c --- /dev/null +++ b/typescript-generator-core/.nondex/1iHUmiw7GGS4MRmPGfeZBG61u5Cogg2PzwyRd1pKWqY=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,444 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 10, Failures: 5, Errors: 0, Skipped: 0, Time elapsed: 0.435 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithOverlappingInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.266 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:< +interface I[Shape3 { + kind: "circle" | "rectangle"; +} + +interface IRectangle3 extends INamedQuadrilateral3 { + kind: "rectangle"; +} + +interface ICircle3 extends INamedShape3 { + kind: "circle"; +} + +interface INamedQuadrilateral3 extends INamedShape3, IQuadrilateral3 { + kind: "rectangle"; +} + +interface INamedShape3 extends IShape3 { + kind: "circle" | "rectangle"; + name: string]; +} + +interface IQuad...> but was:< +interface I[NamedQuadrilateral3 extends INamedShape3, IQuadrilateral3 { + kind: "rectangle"; +} + +interface INamedShape3 extends IShape3 { + kind: "circle" | "rectangle"; + name: string; +} + +interface IShape3 { + kind: "circle" | "rectangle"; +} + +interface ICircle3 extends INamedShape3 { + kind: "circle"; +} + +interface IRectangle3 extends INamedQuadrilateral3 { + kind: "rectangle"]; +} + +interface IQuad...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithOverlappingInterfaces(TaggedUnionsTest.java:289) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.038 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...ngle"; +} + +interface [CSquare2 extends IQuadrilateral2 { + kind: "square"; + size: number; +} + +interface CRectangle2 extends IQuadrilateral2 { + kind: "rectangle"; + width: number; + height: number; +} + +interface CCircle2 extends IShape2 { + kind: "circle"; + radius: number; +} + +interface IQuadrilateral2 extends IShape2 { + kind: "square" | "rectangle"]; +} + +type IShape2Uni...> but was:<...ngle"; +} + +interface [IQuadrilateral2 extends IShape2 { + kind: "square" | "rectangle"; +} + +interface CSquare2 extends IQuadrilateral2 { + kind: "square"; + size: number; +} + +interface CRectangle2 extends IQuadrilateral2 { + kind: "rectangle"; + width: number; + height: number; +} + +interface CCircle2 extends IShape2 { + kind: "circle"; + radius: number]; +} + +type IShape2Uni...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:253) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + +testTaggedUnionsDisabled(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.004 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:< +interface [Geometry { + shapes: Shape[]; +} + +interface Shape { + kind: "square" | "rectangle" | "circle"; +} + +interface Square extends Shape { + kind: "square"; + size: number; +} + +interface Rectangle extends Shape { + kind: "rectangle"; + width: number; + height: number; +} + +interface Circle extends Shape { + kind: "circle"; + radius]: number; +} +> but was:< +interface [Circle extends Shape { + kind: "circle"; + radius: number; +} + +interface Square extends Shape { + kind: "square"; + size: number; +} + +interface Shape { + kind: "square" | "rectangle" | "circle"; +} + +interface Geometry { + shapes: Shape[]; +} + +interface Rectangle extends Shape { + kind: "rectangle"; + width: number; + height]: number; +} +> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsDisabled(TaggedUnionsTest.java:324) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + +testTaggedUnionsWithDiamond(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.027 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:< +interface Diamond[A { + kind: "b1" | "c" | "b2"; + a: string; +} + +interface DiamondB1 extends DiamondA { + kind: "b1" | "c"; + b1: string; +} + +interface DiamondB2 extends DiamondA { + kind: "b2" | "c"; + b2: string; +} + +interface DiamondC extends DiamondB1, DiamondB2 { + kind: "c"; + c]: string; +} + +type Di...> but was:< +interface Diamond[B1 extends DiamondA { + kind: "b1" | "c"; + b1: string; +} + +interface DiamondA { + kind: "b1" | "c" | "b2"; + a: string; +} + +interface DiamondC extends DiamondB1, DiamondB2 { + kind: "c"; + c: string; +} + +interface DiamondB2 extends DiamondA { + kind: "b2" | "c"; + b2]: string; +} + +type Di...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithDiamond(TaggedUnionsTest.java:356) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + +testTaggedUnions(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.001 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:< +interface [Geometry { + shapes: ShapeUnion[]; +} + +interface Shape { + kind: "square" | "rectangle" | "circle"; +} + +interface Square extends Shape { + kind: "square"; + size: number; +} + +interface Rectangle extends Shape { + kind: "rectangle"; + width: number; + height: number; +} + +interface Circle extends Shape { + kind: "circle"; + radius]: number; +} + +type Sh...> but was:< +interface [Shape { + kind: "square" | "rectangle" | "circle"; +} + +interface Circle extends Shape { + kind: "circle"; + radius: number; +} + +interface Square extends Shape { + kind: "square"; + size: number; +} + +interface Geometry { + shapes: ShapeUnion[]; +} + +interface Rectangle extends Shape { + kind: "rectangle"; + height: number; + width]: number; +} + +type Sh...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnions(TaggedUnionsTest.java:217) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/1iHUmiw7GGS4MRmPGfeZBG61u5Cogg2PzwyRd1pKWqY=/failures b/typescript-generator-core/.nondex/1iHUmiw7GGS4MRmPGfeZBG61u5Cogg2PzwyRd1pKWqY=/failures new file mode 100644 index 000000000..99d22be1b --- /dev/null +++ b/typescript-generator-core/.nondex/1iHUmiw7GGS4MRmPGfeZBG61u5Cogg2PzwyRd1pKWqY=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithDiamond diff --git a/typescript-generator-core/.nondex/1iHUmiw7GGS4MRmPGfeZBG61u5Cogg2PzwyRd1pKWqY=/invocations b/typescript-generator-core/.nondex/1iHUmiw7GGS4MRmPGfeZBG61u5Cogg2PzwyRd1pKWqY=/invocations new file mode 100644 index 000000000..8e8192df3 --- /dev/null +++ b/typescript-generator-core/.nondex/1iHUmiw7GGS4MRmPGfeZBG61u5Cogg2PzwyRd1pKWqY=/invocations @@ -0,0 +1,2 @@ +COUNT:178 +SHUFFLES:178 diff --git a/typescript-generator-core/.nondex/1iHUmiw7GGS4MRmPGfeZBG61u5Cogg2PzwyRd1pKWqY=/test_results.html b/typescript-generator-core/.nondex/1iHUmiw7GGS4MRmPGfeZBG61u5Cogg2PzwyRd1pKWqY=/test_results.html new file mode 100644 index 000000000..3c3270b8e --- /dev/null +++ b/typescript-generator-core/.nondex/1iHUmiw7GGS4MRmPGfeZBG61u5Cogg2PzwyRd1pKWqY=/test_results.html @@ -0,0 +1 @@ +Test Results
Test Name9331789746221016066
cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithDiamond
\ No newline at end of file diff --git a/typescript-generator-core/.nondex/1qoQMpVZcK1Hf7p7hlYGQrNefCogHGHWGnM4gjjhZ8w=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/1qoQMpVZcK1Hf7p7hlYGQrNefCogHGHWGnM4gjjhZ8w=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..5ae961cc7 --- /dev/null +++ b/typescript-generator-core/.nondex/1qoQMpVZcK1Hf7p7hlYGQrNefCogHGHWGnM4gjjhZ8w=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/1qoQMpVZcK1Hf7p7hlYGQrNefCogHGHWGnM4gjjhZ8w=/config b/typescript-generator-core/.nondex/1qoQMpVZcK1Hf7p7hlYGQrNefCogHGHWGnM4gjjhZ8w=/config new file mode 100644 index 000000000..1fa5b60ef --- /dev/null +++ b/typescript-generator-core/.nondex/1qoQMpVZcK1Hf7p7hlYGQrNefCogHGHWGnM4gjjhZ8w=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1016066 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=1qoQMpVZcK1Hf7p7hlYGQrNefCogHGHWGnM4gjjhZ8w= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/1qoQMpVZcK1Hf7p7hlYGQrNefCogHGHWGnM4gjjhZ8w=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/1qoQMpVZcK1Hf7p7hlYGQrNefCogHGHWGnM4gjjhZ8w=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..367a69e38 --- /dev/null +++ b/typescript-generator-core/.nondex/1qoQMpVZcK1Hf7p7hlYGQrNefCogHGHWGnM4gjjhZ8w=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.138 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/1qoQMpVZcK1Hf7p7hlYGQrNefCogHGHWGnM4gjjhZ8w=/failures b/typescript-generator-core/.nondex/1qoQMpVZcK1Hf7p7hlYGQrNefCogHGHWGnM4gjjhZ8w=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/1qoQMpVZcK1Hf7p7hlYGQrNefCogHGHWGnM4gjjhZ8w=/invocations b/typescript-generator-core/.nondex/1qoQMpVZcK1Hf7p7hlYGQrNefCogHGHWGnM4gjjhZ8w=/invocations new file mode 100644 index 000000000..7ad7d1da8 --- /dev/null +++ b/typescript-generator-core/.nondex/1qoQMpVZcK1Hf7p7hlYGQrNefCogHGHWGnM4gjjhZ8w=/invocations @@ -0,0 +1,2 @@ +COUNT:67 +SHUFFLES:67 diff --git a/typescript-generator-core/.nondex/1yCUzaN9w0TGCM2DlgVBab3KLWnOTswja11UEGlGPhU=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/1yCUzaN9w0TGCM2DlgVBab3KLWnOTswja11UEGlGPhU=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..ca8997d31 --- /dev/null +++ b/typescript-generator-core/.nondex/1yCUzaN9w0TGCM2DlgVBab3KLWnOTswja11UEGlGPhU=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/1yCUzaN9w0TGCM2DlgVBab3KLWnOTswja11UEGlGPhU=/config b/typescript-generator-core/.nondex/1yCUzaN9w0TGCM2DlgVBab3KLWnOTswja11UEGlGPhU=/config new file mode 100644 index 000000000..9189aed23 --- /dev/null +++ b/typescript-generator-core/.nondex/1yCUzaN9w0TGCM2DlgVBab3KLWnOTswja11UEGlGPhU=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1306174 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=1yCUzaN9w0TGCM2DlgVBab3KLWnOTswja11UEGlGPhU= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/1yCUzaN9w0TGCM2DlgVBab3KLWnOTswja11UEGlGPhU=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/1yCUzaN9w0TGCM2DlgVBab3KLWnOTswja11UEGlGPhU=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..d4f325410 --- /dev/null +++ b/typescript-generator-core/.nondex/1yCUzaN9w0TGCM2DlgVBab3KLWnOTswja11UEGlGPhU=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.203 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/1yCUzaN9w0TGCM2DlgVBab3KLWnOTswja11UEGlGPhU=/failures b/typescript-generator-core/.nondex/1yCUzaN9w0TGCM2DlgVBab3KLWnOTswja11UEGlGPhU=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/1yCUzaN9w0TGCM2DlgVBab3KLWnOTswja11UEGlGPhU=/invocations b/typescript-generator-core/.nondex/1yCUzaN9w0TGCM2DlgVBab3KLWnOTswja11UEGlGPhU=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/1yCUzaN9w0TGCM2DlgVBab3KLWnOTswja11UEGlGPhU=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/262WbjcUDSN8SChUg1254qlcqapLMjYTOeoQmbS3D9c=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/262WbjcUDSN8SChUg1254qlcqapLMjYTOeoQmbS3D9c=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..b1844af11 --- /dev/null +++ b/typescript-generator-core/.nondex/262WbjcUDSN8SChUg1254qlcqapLMjYTOeoQmbS3D9c=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/262WbjcUDSN8SChUg1254qlcqapLMjYTOeoQmbS3D9c=/config b/typescript-generator-core/.nondex/262WbjcUDSN8SChUg1254qlcqapLMjYTOeoQmbS3D9c=/config new file mode 100644 index 000000000..ff22e81bc --- /dev/null +++ b/typescript-generator-core/.nondex/262WbjcUDSN8SChUg1254qlcqapLMjYTOeoQmbS3D9c=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=3627038 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=262WbjcUDSN8SChUg1254qlcqapLMjYTOeoQmbS3D9c= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/262WbjcUDSN8SChUg1254qlcqapLMjYTOeoQmbS3D9c=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/262WbjcUDSN8SChUg1254qlcqapLMjYTOeoQmbS3D9c=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..d57a9f605 --- /dev/null +++ b/typescript-generator-core/.nondex/262WbjcUDSN8SChUg1254qlcqapLMjYTOeoQmbS3D9c=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.209 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/262WbjcUDSN8SChUg1254qlcqapLMjYTOeoQmbS3D9c=/failures b/typescript-generator-core/.nondex/262WbjcUDSN8SChUg1254qlcqapLMjYTOeoQmbS3D9c=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/262WbjcUDSN8SChUg1254qlcqapLMjYTOeoQmbS3D9c=/invocations b/typescript-generator-core/.nondex/262WbjcUDSN8SChUg1254qlcqapLMjYTOeoQmbS3D9c=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/262WbjcUDSN8SChUg1254qlcqapLMjYTOeoQmbS3D9c=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/2I2ip0HCohnVIQMWTBRF9WS+atFeo6IP8glTdS4z8=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/2I2ip0HCohnVIQMWTBRF9WS+atFeo6IP8glTdS4z8=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..fdcdd93f0 --- /dev/null +++ b/typescript-generator-core/.nondex/2I2ip0HCohnVIQMWTBRF9WS+atFeo6IP8glTdS4z8=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/2I2ip0HCohnVIQMWTBRF9WS+atFeo6IP8glTdS4z8=/config b/typescript-generator-core/.nondex/2I2ip0HCohnVIQMWTBRF9WS+atFeo6IP8glTdS4z8=/config new file mode 100644 index 000000000..630c217c7 --- /dev/null +++ b/typescript-generator-core/.nondex/2I2ip0HCohnVIQMWTBRF9WS+atFeo6IP8glTdS4z8=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1016066 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=2I2ip0HCohnVIQMWTBRF9WS+atFeo6IP8glTdS4z8= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/2I2ip0HCohnVIQMWTBRF9WS+atFeo6IP8glTdS4z8=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/2I2ip0HCohnVIQMWTBRF9WS+atFeo6IP8glTdS4z8=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..0f23c1ac1 --- /dev/null +++ b/typescript-generator-core/.nondex/2I2ip0HCohnVIQMWTBRF9WS+atFeo6IP8glTdS4z8=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.205 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.201 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/2I2ip0HCohnVIQMWTBRF9WS+atFeo6IP8glTdS4z8=/failures b/typescript-generator-core/.nondex/2I2ip0HCohnVIQMWTBRF9WS+atFeo6IP8glTdS4z8=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/2I2ip0HCohnVIQMWTBRF9WS+atFeo6IP8glTdS4z8=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/2I2ip0HCohnVIQMWTBRF9WS+atFeo6IP8glTdS4z8=/invocations b/typescript-generator-core/.nondex/2I2ip0HCohnVIQMWTBRF9WS+atFeo6IP8glTdS4z8=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/2I2ip0HCohnVIQMWTBRF9WS+atFeo6IP8glTdS4z8=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/2j5wep7zgh0nCftkXUPVwmMxPOvWAl6IMKu1Ti6O42k=/config b/typescript-generator-core/.nondex/2j5wep7zgh0nCftkXUPVwmMxPOvWAl6IMKu1Ti6O42k=/config new file mode 100644 index 000000000..6e92ab5ac --- /dev/null +++ b/typescript-generator-core/.nondex/2j5wep7zgh0nCftkXUPVwmMxPOvWAl6IMKu1Ti6O42k=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1181842 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=2j5wep7zgh0nCftkXUPVwmMxPOvWAl6IMKu1Ti6O42k= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/2j5wep7zgh0nCftkXUPVwmMxPOvWAl6IMKu1Ti6O42k=/failures b/typescript-generator-core/.nondex/2j5wep7zgh0nCftkXUPVwmMxPOvWAl6IMKu1Ti6O42k=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/2j5wep7zgh0nCftkXUPVwmMxPOvWAl6IMKu1Ti6O42k=/invocations b/typescript-generator-core/.nondex/2j5wep7zgh0nCftkXUPVwmMxPOvWAl6IMKu1Ti6O42k=/invocations new file mode 100644 index 000000000..c164bf6ef --- /dev/null +++ b/typescript-generator-core/.nondex/2j5wep7zgh0nCftkXUPVwmMxPOvWAl6IMKu1Ti6O42k=/invocations @@ -0,0 +1,2 @@ +COUNT:16 +SHUFFLES:16 diff --git a/typescript-generator-core/.nondex/2zFHusL3cgYqJzpFofxhe9VbXpymE+d0lWdGBD1fDKE=/config b/typescript-generator-core/.nondex/2zFHusL3cgYqJzpFofxhe9VbXpymE+d0lWdGBD1fDKE=/config new file mode 100644 index 000000000..daea36317 --- /dev/null +++ b/typescript-generator-core/.nondex/2zFHusL3cgYqJzpFofxhe9VbXpymE+d0lWdGBD1fDKE=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1306174 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=2zFHusL3cgYqJzpFofxhe9VbXpymE+d0lWdGBD1fDKE= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/2zFHusL3cgYqJzpFofxhe9VbXpymE+d0lWdGBD1fDKE=/failures b/typescript-generator-core/.nondex/2zFHusL3cgYqJzpFofxhe9VbXpymE+d0lWdGBD1fDKE=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/2zFHusL3cgYqJzpFofxhe9VbXpymE+d0lWdGBD1fDKE=/invocations b/typescript-generator-core/.nondex/2zFHusL3cgYqJzpFofxhe9VbXpymE+d0lWdGBD1fDKE=/invocations new file mode 100644 index 000000000..c164bf6ef --- /dev/null +++ b/typescript-generator-core/.nondex/2zFHusL3cgYqJzpFofxhe9VbXpymE+d0lWdGBD1fDKE=/invocations @@ -0,0 +1,2 @@ +COUNT:16 +SHUFFLES:16 diff --git a/typescript-generator-core/.nondex/2zmozzltoEU1WJrg8SsE4dGsULb8S+Lx3RIigIFfeA=/config b/typescript-generator-core/.nondex/2zmozzltoEU1WJrg8SsE4dGsULb8S+Lx3RIigIFfeA=/config new file mode 100644 index 000000000..45ce1578b --- /dev/null +++ b/typescript-generator-core/.nondex/2zmozzltoEU1WJrg8SsE4dGsULb8S+Lx3RIigIFfeA=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1264730 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=2zmozzltoEU1WJrg8SsE4dGsULb8S+Lx3RIigIFfeA= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/2zmozzltoEU1WJrg8SsE4dGsULb8S+Lx3RIigIFfeA=/failures b/typescript-generator-core/.nondex/2zmozzltoEU1WJrg8SsE4dGsULb8S+Lx3RIigIFfeA=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/2zmozzltoEU1WJrg8SsE4dGsULb8S+Lx3RIigIFfeA=/invocations b/typescript-generator-core/.nondex/2zmozzltoEU1WJrg8SsE4dGsULb8S+Lx3RIigIFfeA=/invocations new file mode 100644 index 000000000..c164bf6ef --- /dev/null +++ b/typescript-generator-core/.nondex/2zmozzltoEU1WJrg8SsE4dGsULb8S+Lx3RIigIFfeA=/invocations @@ -0,0 +1,2 @@ +COUNT:16 +SHUFFLES:16 diff --git a/typescript-generator-core/.nondex/35+v7gCBPk3DtUwnQ8fe6KX1z0si+NYUxys6wodjsLU=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/35+v7gCBPk3DtUwnQ8fe6KX1z0si+NYUxys6wodjsLU=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..c209ec1d8 --- /dev/null +++ b/typescript-generator-core/.nondex/35+v7gCBPk3DtUwnQ8fe6KX1z0si+NYUxys6wodjsLU=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/35+v7gCBPk3DtUwnQ8fe6KX1z0si+NYUxys6wodjsLU=/config b/typescript-generator-core/.nondex/35+v7gCBPk3DtUwnQ8fe6KX1z0si+NYUxys6wodjsLU=/config new file mode 100644 index 000000000..d002bf1a3 --- /dev/null +++ b/typescript-generator-core/.nondex/35+v7gCBPk3DtUwnQ8fe6KX1z0si+NYUxys6wodjsLU=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1927834 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=35+v7gCBPk3DtUwnQ8fe6KX1z0si+NYUxys6wodjsLU= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/35+v7gCBPk3DtUwnQ8fe6KX1z0si+NYUxys6wodjsLU=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/35+v7gCBPk3DtUwnQ8fe6KX1z0si+NYUxys6wodjsLU=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..e59b8c890 --- /dev/null +++ b/typescript-generator-core/.nondex/35+v7gCBPk3DtUwnQ8fe6KX1z0si+NYUxys6wodjsLU=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.181 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.181 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/35+v7gCBPk3DtUwnQ8fe6KX1z0si+NYUxys6wodjsLU=/failures b/typescript-generator-core/.nondex/35+v7gCBPk3DtUwnQ8fe6KX1z0si+NYUxys6wodjsLU=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/35+v7gCBPk3DtUwnQ8fe6KX1z0si+NYUxys6wodjsLU=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/35+v7gCBPk3DtUwnQ8fe6KX1z0si+NYUxys6wodjsLU=/invocations b/typescript-generator-core/.nondex/35+v7gCBPk3DtUwnQ8fe6KX1z0si+NYUxys6wodjsLU=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/35+v7gCBPk3DtUwnQ8fe6KX1z0si+NYUxys6wodjsLU=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/3AhA4z+r7csV555QbOgdHOR6vd4I1W+a+CI+7M5CVw=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/3AhA4z+r7csV555QbOgdHOR6vd4I1W+a+CI+7M5CVw=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..c913cd706 --- /dev/null +++ b/typescript-generator-core/.nondex/3AhA4z+r7csV555QbOgdHOR6vd4I1W+a+CI+7M5CVw=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/3AhA4z+r7csV555QbOgdHOR6vd4I1W+a+CI+7M5CVw=/config b/typescript-generator-core/.nondex/3AhA4z+r7csV555QbOgdHOR6vd4I1W+a+CI+7M5CVw=/config new file mode 100644 index 000000000..e21d949f8 --- /dev/null +++ b/typescript-generator-core/.nondex/3AhA4z+r7csV555QbOgdHOR6vd4I1W+a+CI+7M5CVw=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=2176498 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=3AhA4z+r7csV555QbOgdHOR6vd4I1W+a+CI+7M5CVw= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/3AhA4z+r7csV555QbOgdHOR6vd4I1W+a+CI+7M5CVw=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/3AhA4z+r7csV555QbOgdHOR6vd4I1W+a+CI+7M5CVw=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..732eead21 --- /dev/null +++ b/typescript-generator-core/.nondex/3AhA4z+r7csV555QbOgdHOR6vd4I1W+a+CI+7M5CVw=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.278 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.269 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/3AhA4z+r7csV555QbOgdHOR6vd4I1W+a+CI+7M5CVw=/failures b/typescript-generator-core/.nondex/3AhA4z+r7csV555QbOgdHOR6vd4I1W+a+CI+7M5CVw=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/3AhA4z+r7csV555QbOgdHOR6vd4I1W+a+CI+7M5CVw=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/3AhA4z+r7csV555QbOgdHOR6vd4I1W+a+CI+7M5CVw=/invocations b/typescript-generator-core/.nondex/3AhA4z+r7csV555QbOgdHOR6vd4I1W+a+CI+7M5CVw=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/3AhA4z+r7csV555QbOgdHOR6vd4I1W+a+CI+7M5CVw=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/3DiG69cvUmPc15eg3d5hKcQXVSLdGcLNn+KEvxQZR4E=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/3DiG69cvUmPc15eg3d5hKcQXVSLdGcLNn+KEvxQZR4E=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..c16c35f03 --- /dev/null +++ b/typescript-generator-core/.nondex/3DiG69cvUmPc15eg3d5hKcQXVSLdGcLNn+KEvxQZR4E=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,70 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/3DiG69cvUmPc15eg3d5hKcQXVSLdGcLNn+KEvxQZR4E=/config b/typescript-generator-core/.nondex/3DiG69cvUmPc15eg3d5hKcQXVSLdGcLNn+KEvxQZR4E=/config new file mode 100644 index 000000000..c422d50d5 --- /dev/null +++ b/typescript-generator-core/.nondex/3DiG69cvUmPc15eg3d5hKcQXVSLdGcLNn+KEvxQZR4E=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1264730 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=3DiG69cvUmPc15eg3d5hKcQXVSLdGcLNn+KEvxQZR4E= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/3DiG69cvUmPc15eg3d5hKcQXVSLdGcLNn+KEvxQZR4E=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/3DiG69cvUmPc15eg3d5hKcQXVSLdGcLNn+KEvxQZR4E=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..ef4881312 --- /dev/null +++ b/typescript-generator-core/.nondex/3DiG69cvUmPc15eg3d5hKcQXVSLdGcLNn+KEvxQZR4E=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.187 sec - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/3DiG69cvUmPc15eg3d5hKcQXVSLdGcLNn+KEvxQZR4E=/failures b/typescript-generator-core/.nondex/3DiG69cvUmPc15eg3d5hKcQXVSLdGcLNn+KEvxQZR4E=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/3DiG69cvUmPc15eg3d5hKcQXVSLdGcLNn+KEvxQZR4E=/invocations b/typescript-generator-core/.nondex/3DiG69cvUmPc15eg3d5hKcQXVSLdGcLNn+KEvxQZR4E=/invocations new file mode 100644 index 000000000..11ff8fe83 --- /dev/null +++ b/typescript-generator-core/.nondex/3DiG69cvUmPc15eg3d5hKcQXVSLdGcLNn+KEvxQZR4E=/invocations @@ -0,0 +1,2 @@ +COUNT:61 +SHUFFLES:61 diff --git a/typescript-generator-core/.nondex/3PdyDZo5vzFteYaI++wCkBWSkFfAPjtb3MM0eSDbu8s=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/3PdyDZo5vzFteYaI++wCkBWSkFfAPjtb3MM0eSDbu8s=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..777b8b075 --- /dev/null +++ b/typescript-generator-core/.nondex/3PdyDZo5vzFteYaI++wCkBWSkFfAPjtb3MM0eSDbu8s=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/3PdyDZo5vzFteYaI++wCkBWSkFfAPjtb3MM0eSDbu8s=/config b/typescript-generator-core/.nondex/3PdyDZo5vzFteYaI++wCkBWSkFfAPjtb3MM0eSDbu8s=/config new file mode 100644 index 000000000..07bf88c97 --- /dev/null +++ b/typescript-generator-core/.nondex/3PdyDZo5vzFteYaI++wCkBWSkFfAPjtb3MM0eSDbu8s=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1430506 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=3PdyDZo5vzFteYaI++wCkBWSkFfAPjtb3MM0eSDbu8s= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/3PdyDZo5vzFteYaI++wCkBWSkFfAPjtb3MM0eSDbu8s=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/3PdyDZo5vzFteYaI++wCkBWSkFfAPjtb3MM0eSDbu8s=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..b9ab1a544 --- /dev/null +++ b/typescript-generator-core/.nondex/3PdyDZo5vzFteYaI++wCkBWSkFfAPjtb3MM0eSDbu8s=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.218 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.214 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/3PdyDZo5vzFteYaI++wCkBWSkFfAPjtb3MM0eSDbu8s=/failures b/typescript-generator-core/.nondex/3PdyDZo5vzFteYaI++wCkBWSkFfAPjtb3MM0eSDbu8s=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/3PdyDZo5vzFteYaI++wCkBWSkFfAPjtb3MM0eSDbu8s=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/3PdyDZo5vzFteYaI++wCkBWSkFfAPjtb3MM0eSDbu8s=/invocations b/typescript-generator-core/.nondex/3PdyDZo5vzFteYaI++wCkBWSkFfAPjtb3MM0eSDbu8s=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/3PdyDZo5vzFteYaI++wCkBWSkFfAPjtb3MM0eSDbu8s=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/3RVW5DebHklgMEW9xPlql9q1WUyA2EPB1WdRzsg4dyw=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/3RVW5DebHklgMEW9xPlql9q1WUyA2EPB1WdRzsg4dyw=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..a00e21588 --- /dev/null +++ b/typescript-generator-core/.nondex/3RVW5DebHklgMEW9xPlql9q1WUyA2EPB1WdRzsg4dyw=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/3RVW5DebHklgMEW9xPlql9q1WUyA2EPB1WdRzsg4dyw=/config b/typescript-generator-core/.nondex/3RVW5DebHklgMEW9xPlql9q1WUyA2EPB1WdRzsg4dyw=/config new file mode 100644 index 000000000..84377271b --- /dev/null +++ b/typescript-generator-core/.nondex/3RVW5DebHklgMEW9xPlql9q1WUyA2EPB1WdRzsg4dyw=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=4124366 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=3RVW5DebHklgMEW9xPlql9q1WUyA2EPB1WdRzsg4dyw= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/3RVW5DebHklgMEW9xPlql9q1WUyA2EPB1WdRzsg4dyw=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/3RVW5DebHklgMEW9xPlql9q1WUyA2EPB1WdRzsg4dyw=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..25aa5d49b --- /dev/null +++ b/typescript-generator-core/.nondex/3RVW5DebHklgMEW9xPlql9q1WUyA2EPB1WdRzsg4dyw=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.198 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.197 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/3RVW5DebHklgMEW9xPlql9q1WUyA2EPB1WdRzsg4dyw=/failures b/typescript-generator-core/.nondex/3RVW5DebHklgMEW9xPlql9q1WUyA2EPB1WdRzsg4dyw=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/3RVW5DebHklgMEW9xPlql9q1WUyA2EPB1WdRzsg4dyw=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/3RVW5DebHklgMEW9xPlql9q1WUyA2EPB1WdRzsg4dyw=/invocations b/typescript-generator-core/.nondex/3RVW5DebHklgMEW9xPlql9q1WUyA2EPB1WdRzsg4dyw=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/3RVW5DebHklgMEW9xPlql9q1WUyA2EPB1WdRzsg4dyw=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/3cs3rYcYgZewzwEllULwtJRnQsYqVkVHFnAynezzzU=.run b/typescript-generator-core/.nondex/3cs3rYcYgZewzwEllULwtJRnQsYqVkVHFnAynezzzU=.run new file mode 100644 index 000000000..c5ef682a0 --- /dev/null +++ b/typescript-generator-core/.nondex/3cs3rYcYgZewzwEllULwtJRnQsYqVkVHFnAynezzzU=.run @@ -0,0 +1,4 @@ +3cs3rYcYgZewzwEllULwtJRnQsYqVkVHFnAynezzzU= +9eKk6Q66V0ETER5S0BKYonX0DjcWjCPI9P13WSu0m1c= +zQexJU38cAKBLwUWUhRrueCAcGV3Jil9N6vglQFfzdU= +clean_m4jWgZjNaikLda8Fil7W7MzK4iCnCxqg02fI9A9Ptg= diff --git a/typescript-generator-core/.nondex/3cs3rYcYgZewzwEllULwtJRnQsYqVkVHFnAynezzzU=/config b/typescript-generator-core/.nondex/3cs3rYcYgZewzwEllULwtJRnQsYqVkVHFnAynezzzU=/config new file mode 100644 index 000000000..e8e387957 --- /dev/null +++ b/typescript-generator-core/.nondex/3cs3rYcYgZewzwEllULwtJRnQsYqVkVHFnAynezzzU=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=933178 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=3cs3rYcYgZewzwEllULwtJRnQsYqVkVHFnAynezzzU= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/3cs3rYcYgZewzwEllULwtJRnQsYqVkVHFnAynezzzU=/failures b/typescript-generator-core/.nondex/3cs3rYcYgZewzwEllULwtJRnQsYqVkVHFnAynezzzU=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/3cs3rYcYgZewzwEllULwtJRnQsYqVkVHFnAynezzzU=/invocations b/typescript-generator-core/.nondex/3cs3rYcYgZewzwEllULwtJRnQsYqVkVHFnAynezzzU=/invocations new file mode 100644 index 000000000..c164bf6ef --- /dev/null +++ b/typescript-generator-core/.nondex/3cs3rYcYgZewzwEllULwtJRnQsYqVkVHFnAynezzzU=/invocations @@ -0,0 +1,2 @@ +COUNT:16 +SHUFFLES:16 diff --git a/typescript-generator-core/.nondex/3cs3rYcYgZewzwEllULwtJRnQsYqVkVHFnAynezzzU=/test_results.html b/typescript-generator-core/.nondex/3cs3rYcYgZewzwEllULwtJRnQsYqVkVHFnAynezzzU=/test_results.html new file mode 100644 index 000000000..ee93290bb --- /dev/null +++ b/typescript-generator-core/.nondex/3cs3rYcYgZewzwEllULwtJRnQsYqVkVHFnAynezzzU=/test_results.html @@ -0,0 +1 @@ +Test Results
Test Name9331789746221016066
\ No newline at end of file diff --git a/typescript-generator-core/.nondex/3qNsvNxLxWzI3GcVDi1w84ujLreDsMI1Xju+eJ+KyWE=/config b/typescript-generator-core/.nondex/3qNsvNxLxWzI3GcVDi1w84ujLreDsMI1Xju+eJ+KyWE=/config new file mode 100644 index 000000000..7ff3dfa5d --- /dev/null +++ b/typescript-generator-core/.nondex/3qNsvNxLxWzI3GcVDi1w84ujLreDsMI1Xju+eJ+KyWE=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1098954 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=3qNsvNxLxWzI3GcVDi1w84ujLreDsMI1Xju+eJ+KyWE= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/3qNsvNxLxWzI3GcVDi1w84ujLreDsMI1Xju+eJ+KyWE=/failures b/typescript-generator-core/.nondex/3qNsvNxLxWzI3GcVDi1w84ujLreDsMI1Xju+eJ+KyWE=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/3qNsvNxLxWzI3GcVDi1w84ujLreDsMI1Xju+eJ+KyWE=/invocations b/typescript-generator-core/.nondex/3qNsvNxLxWzI3GcVDi1w84ujLreDsMI1Xju+eJ+KyWE=/invocations new file mode 100644 index 000000000..c164bf6ef --- /dev/null +++ b/typescript-generator-core/.nondex/3qNsvNxLxWzI3GcVDi1w84ujLreDsMI1Xju+eJ+KyWE=/invocations @@ -0,0 +1,2 @@ +COUNT:16 +SHUFFLES:16 diff --git a/typescript-generator-core/.nondex/3vet9cPtEGshpkW+aaxCJHs97C0Wo22yCvk3ObKOo=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/3vet9cPtEGshpkW+aaxCJHs97C0Wo22yCvk3ObKOo=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..26e2ed239 --- /dev/null +++ b/typescript-generator-core/.nondex/3vet9cPtEGshpkW+aaxCJHs97C0Wo22yCvk3ObKOo=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/3vet9cPtEGshpkW+aaxCJHs97C0Wo22yCvk3ObKOo=/config b/typescript-generator-core/.nondex/3vet9cPtEGshpkW+aaxCJHs97C0Wo22yCvk3ObKOo=/config new file mode 100644 index 000000000..ac86cccf7 --- /dev/null +++ b/typescript-generator-core/.nondex/3vet9cPtEGshpkW+aaxCJHs97C0Wo22yCvk3ObKOo=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1803502 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=3vet9cPtEGshpkW+aaxCJHs97C0Wo22yCvk3ObKOo= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/3vet9cPtEGshpkW+aaxCJHs97C0Wo22yCvk3ObKOo=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/3vet9cPtEGshpkW+aaxCJHs97C0Wo22yCvk3ObKOo=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..e9bfab952 --- /dev/null +++ b/typescript-generator-core/.nondex/3vet9cPtEGshpkW+aaxCJHs97C0Wo22yCvk3ObKOo=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.212 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.211 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/3vet9cPtEGshpkW+aaxCJHs97C0Wo22yCvk3ObKOo=/failures b/typescript-generator-core/.nondex/3vet9cPtEGshpkW+aaxCJHs97C0Wo22yCvk3ObKOo=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/3vet9cPtEGshpkW+aaxCJHs97C0Wo22yCvk3ObKOo=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/3vet9cPtEGshpkW+aaxCJHs97C0Wo22yCvk3ObKOo=/invocations b/typescript-generator-core/.nondex/3vet9cPtEGshpkW+aaxCJHs97C0Wo22yCvk3ObKOo=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/3vet9cPtEGshpkW+aaxCJHs97C0Wo22yCvk3ObKOo=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/4dY0VkajY4d55ePTEc3SxKNKSFRQu9K5s1Wrr2IIVC4=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/4dY0VkajY4d55ePTEc3SxKNKSFRQu9K5s1Wrr2IIVC4=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..d854b3eb9 --- /dev/null +++ b/typescript-generator-core/.nondex/4dY0VkajY4d55ePTEc3SxKNKSFRQu9K5s1Wrr2IIVC4=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/4dY0VkajY4d55ePTEc3SxKNKSFRQu9K5s1Wrr2IIVC4=/config b/typescript-generator-core/.nondex/4dY0VkajY4d55ePTEc3SxKNKSFRQu9K5s1Wrr2IIVC4=/config new file mode 100644 index 000000000..261f59496 --- /dev/null +++ b/typescript-generator-core/.nondex/4dY0VkajY4d55ePTEc3SxKNKSFRQu9K5s1Wrr2IIVC4=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=4455918 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=4dY0VkajY4d55ePTEc3SxKNKSFRQu9K5s1Wrr2IIVC4= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/4dY0VkajY4d55ePTEc3SxKNKSFRQu9K5s1Wrr2IIVC4=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/4dY0VkajY4d55ePTEc3SxKNKSFRQu9K5s1Wrr2IIVC4=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..5ee84116b --- /dev/null +++ b/typescript-generator-core/.nondex/4dY0VkajY4d55ePTEc3SxKNKSFRQu9K5s1Wrr2IIVC4=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.233 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/4dY0VkajY4d55ePTEc3SxKNKSFRQu9K5s1Wrr2IIVC4=/failures b/typescript-generator-core/.nondex/4dY0VkajY4d55ePTEc3SxKNKSFRQu9K5s1Wrr2IIVC4=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/4dY0VkajY4d55ePTEc3SxKNKSFRQu9K5s1Wrr2IIVC4=/invocations b/typescript-generator-core/.nondex/4dY0VkajY4d55ePTEc3SxKNKSFRQu9K5s1Wrr2IIVC4=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/4dY0VkajY4d55ePTEc3SxKNKSFRQu9K5s1Wrr2IIVC4=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/4netE3uan0B1s4a4oT30ceTv6kLFCSWEBccMh22cms=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/4netE3uan0B1s4a4oT30ceTv6kLFCSWEBccMh22cms=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..19a6b46a9 --- /dev/null +++ b/typescript-generator-core/.nondex/4netE3uan0B1s4a4oT30ceTv6kLFCSWEBccMh22cms=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/4netE3uan0B1s4a4oT30ceTv6kLFCSWEBccMh22cms=/config b/typescript-generator-core/.nondex/4netE3uan0B1s4a4oT30ceTv6kLFCSWEBccMh22cms=/config new file mode 100644 index 000000000..0210b6a9c --- /dev/null +++ b/typescript-generator-core/.nondex/4netE3uan0B1s4a4oT30ceTv6kLFCSWEBccMh22cms=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=3502706 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=4netE3uan0B1s4a4oT30ceTv6kLFCSWEBccMh22cms= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/4netE3uan0B1s4a4oT30ceTv6kLFCSWEBccMh22cms=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/4netE3uan0B1s4a4oT30ceTv6kLFCSWEBccMh22cms=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..d57a9f605 --- /dev/null +++ b/typescript-generator-core/.nondex/4netE3uan0B1s4a4oT30ceTv6kLFCSWEBccMh22cms=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.209 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/4netE3uan0B1s4a4oT30ceTv6kLFCSWEBccMh22cms=/failures b/typescript-generator-core/.nondex/4netE3uan0B1s4a4oT30ceTv6kLFCSWEBccMh22cms=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/4netE3uan0B1s4a4oT30ceTv6kLFCSWEBccMh22cms=/invocations b/typescript-generator-core/.nondex/4netE3uan0B1s4a4oT30ceTv6kLFCSWEBccMh22cms=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/4netE3uan0B1s4a4oT30ceTv6kLFCSWEBccMh22cms=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/4pFgnLLI5xkmcvKT7RSP6Poqq5UOFmLi6eLZIriUhl8=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/4pFgnLLI5xkmcvKT7RSP6Poqq5UOFmLi6eLZIriUhl8=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..8d2081358 --- /dev/null +++ b/typescript-generator-core/.nondex/4pFgnLLI5xkmcvKT7RSP6Poqq5UOFmLi6eLZIriUhl8=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/4pFgnLLI5xkmcvKT7RSP6Poqq5UOFmLi6eLZIriUhl8=/config b/typescript-generator-core/.nondex/4pFgnLLI5xkmcvKT7RSP6Poqq5UOFmLi6eLZIriUhl8=/config new file mode 100644 index 000000000..f282f9a6e --- /dev/null +++ b/typescript-generator-core/.nondex/4pFgnLLI5xkmcvKT7RSP6Poqq5UOFmLi6eLZIriUhl8=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=4580250 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=4pFgnLLI5xkmcvKT7RSP6Poqq5UOFmLi6eLZIriUhl8= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/4pFgnLLI5xkmcvKT7RSP6Poqq5UOFmLi6eLZIriUhl8=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/4pFgnLLI5xkmcvKT7RSP6Poqq5UOFmLi6eLZIriUhl8=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..a1968a5db --- /dev/null +++ b/typescript-generator-core/.nondex/4pFgnLLI5xkmcvKT7RSP6Poqq5UOFmLi6eLZIriUhl8=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.208 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/4pFgnLLI5xkmcvKT7RSP6Poqq5UOFmLi6eLZIriUhl8=/failures b/typescript-generator-core/.nondex/4pFgnLLI5xkmcvKT7RSP6Poqq5UOFmLi6eLZIriUhl8=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/4pFgnLLI5xkmcvKT7RSP6Poqq5UOFmLi6eLZIriUhl8=/invocations b/typescript-generator-core/.nondex/4pFgnLLI5xkmcvKT7RSP6Poqq5UOFmLi6eLZIriUhl8=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/4pFgnLLI5xkmcvKT7RSP6Poqq5UOFmLi6eLZIriUhl8=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/52Evj7+qyqCEh62cijiApwreoVyiBWDJh58x6VLVYC4=.run b/typescript-generator-core/.nondex/52Evj7+qyqCEh62cijiApwreoVyiBWDJh58x6VLVYC4=.run new file mode 100644 index 000000000..c4629f369 --- /dev/null +++ b/typescript-generator-core/.nondex/52Evj7+qyqCEh62cijiApwreoVyiBWDJh58x6VLVYC4=.run @@ -0,0 +1,4 @@ +52Evj7+qyqCEh62cijiApwreoVyiBWDJh58x6VLVYC4= +xGbMEYEgS1wEFrp7tZQHP09gPFkl4eEg3wfnIVvpGrQ= +Nrmn5Kyu2hhH0KPH3UTvekg7a7nqA2K7HcihIpMLg= +clean_bZVYXFRgSXjhemOzZern8zBB+NZqJ6SXAZx4S1hCsBQ= diff --git a/typescript-generator-core/.nondex/52Evj7+qyqCEh62cijiApwreoVyiBWDJh58x6VLVYC4=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/52Evj7+qyqCEh62cijiApwreoVyiBWDJh58x6VLVYC4=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..2a576bf64 --- /dev/null +++ b/typescript-generator-core/.nondex/52Evj7+qyqCEh62cijiApwreoVyiBWDJh58x6VLVYC4=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,69 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/52Evj7+qyqCEh62cijiApwreoVyiBWDJh58x6VLVYC4=/config b/typescript-generator-core/.nondex/52Evj7+qyqCEh62cijiApwreoVyiBWDJh58x6VLVYC4=/config new file mode 100644 index 000000000..ea6a270f6 --- /dev/null +++ b/typescript-generator-core/.nondex/52Evj7+qyqCEh62cijiApwreoVyiBWDJh58x6VLVYC4=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=933178 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=52Evj7+qyqCEh62cijiApwreoVyiBWDJh58x6VLVYC4= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/52Evj7+qyqCEh62cijiApwreoVyiBWDJh58x6VLVYC4=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/52Evj7+qyqCEh62cijiApwreoVyiBWDJh58x6VLVYC4=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..15bcfd36f --- /dev/null +++ b/typescript-generator-core/.nondex/52Evj7+qyqCEh62cijiApwreoVyiBWDJh58x6VLVYC4=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.132 sec - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/52Evj7+qyqCEh62cijiApwreoVyiBWDJh58x6VLVYC4=/failures b/typescript-generator-core/.nondex/52Evj7+qyqCEh62cijiApwreoVyiBWDJh58x6VLVYC4=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/52Evj7+qyqCEh62cijiApwreoVyiBWDJh58x6VLVYC4=/invocations b/typescript-generator-core/.nondex/52Evj7+qyqCEh62cijiApwreoVyiBWDJh58x6VLVYC4=/invocations new file mode 100644 index 000000000..e412a9f93 --- /dev/null +++ b/typescript-generator-core/.nondex/52Evj7+qyqCEh62cijiApwreoVyiBWDJh58x6VLVYC4=/invocations @@ -0,0 +1,2 @@ +COUNT:59 +SHUFFLES:59 diff --git a/typescript-generator-core/.nondex/52Evj7+qyqCEh62cijiApwreoVyiBWDJh58x6VLVYC4=/test_results.html b/typescript-generator-core/.nondex/52Evj7+qyqCEh62cijiApwreoVyiBWDJh58x6VLVYC4=/test_results.html new file mode 100644 index 000000000..0fa307d30 --- /dev/null +++ b/typescript-generator-core/.nondex/52Evj7+qyqCEh62cijiApwreoVyiBWDJh58x6VLVYC4=/test_results.html @@ -0,0 +1 @@ +Test Results
Test Name9331789746221016066
cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces
\ No newline at end of file diff --git a/typescript-generator-core/.nondex/5BsPbNZO+n87uZ+XYLPP4keLGN5yLeXxt5vDP4YPM4=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/5BsPbNZO+n87uZ+XYLPP4keLGN5yLeXxt5vDP4YPM4=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..262c5caf0 --- /dev/null +++ b/typescript-generator-core/.nondex/5BsPbNZO+n87uZ+XYLPP4keLGN5yLeXxt5vDP4YPM4=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/5BsPbNZO+n87uZ+XYLPP4keLGN5yLeXxt5vDP4YPM4=/config b/typescript-generator-core/.nondex/5BsPbNZO+n87uZ+XYLPP4keLGN5yLeXxt5vDP4YPM4=/config new file mode 100644 index 000000000..7ae1126d9 --- /dev/null +++ b/typescript-generator-core/.nondex/5BsPbNZO+n87uZ+XYLPP4keLGN5yLeXxt5vDP4YPM4=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1969278 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=5BsPbNZO+n87uZ+XYLPP4keLGN5yLeXxt5vDP4YPM4= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/5BsPbNZO+n87uZ+XYLPP4keLGN5yLeXxt5vDP4YPM4=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/5BsPbNZO+n87uZ+XYLPP4keLGN5yLeXxt5vDP4YPM4=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..827b4aa7c --- /dev/null +++ b/typescript-generator-core/.nondex/5BsPbNZO+n87uZ+XYLPP4keLGN5yLeXxt5vDP4YPM4=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.207 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.203 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/5BsPbNZO+n87uZ+XYLPP4keLGN5yLeXxt5vDP4YPM4=/failures b/typescript-generator-core/.nondex/5BsPbNZO+n87uZ+XYLPP4keLGN5yLeXxt5vDP4YPM4=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/5BsPbNZO+n87uZ+XYLPP4keLGN5yLeXxt5vDP4YPM4=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/5BsPbNZO+n87uZ+XYLPP4keLGN5yLeXxt5vDP4YPM4=/invocations b/typescript-generator-core/.nondex/5BsPbNZO+n87uZ+XYLPP4keLGN5yLeXxt5vDP4YPM4=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/5BsPbNZO+n87uZ+XYLPP4keLGN5yLeXxt5vDP4YPM4=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/5DJQZ25nYzfEWYFKOTHWJdsxu7ZqgrwXDiGgOondRa0=/config b/typescript-generator-core/.nondex/5DJQZ25nYzfEWYFKOTHWJdsxu7ZqgrwXDiGgOondRa0=/config new file mode 100644 index 000000000..c8f09cf12 --- /dev/null +++ b/typescript-generator-core/.nondex/5DJQZ25nYzfEWYFKOTHWJdsxu7ZqgrwXDiGgOondRa0=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=974622 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=5DJQZ25nYzfEWYFKOTHWJdsxu7ZqgrwXDiGgOondRa0= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/5DJQZ25nYzfEWYFKOTHWJdsxu7ZqgrwXDiGgOondRa0=/failures b/typescript-generator-core/.nondex/5DJQZ25nYzfEWYFKOTHWJdsxu7ZqgrwXDiGgOondRa0=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/5DJQZ25nYzfEWYFKOTHWJdsxu7ZqgrwXDiGgOondRa0=/invocations b/typescript-generator-core/.nondex/5DJQZ25nYzfEWYFKOTHWJdsxu7ZqgrwXDiGgOondRa0=/invocations new file mode 100644 index 000000000..c164bf6ef --- /dev/null +++ b/typescript-generator-core/.nondex/5DJQZ25nYzfEWYFKOTHWJdsxu7ZqgrwXDiGgOondRa0=/invocations @@ -0,0 +1,2 @@ +COUNT:16 +SHUFFLES:16 diff --git a/typescript-generator-core/.nondex/5Dzelxb5TKy88zovJbTb5bRe9nlaQxXGJLLSWKmJYAw=/config b/typescript-generator-core/.nondex/5Dzelxb5TKy88zovJbTb5bRe9nlaQxXGJLLSWKmJYAw=/config new file mode 100644 index 000000000..54b29fe20 --- /dev/null +++ b/typescript-generator-core/.nondex/5Dzelxb5TKy88zovJbTb5bRe9nlaQxXGJLLSWKmJYAw=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1016066 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=5Dzelxb5TKy88zovJbTb5bRe9nlaQxXGJLLSWKmJYAw= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/5Dzelxb5TKy88zovJbTb5bRe9nlaQxXGJLLSWKmJYAw=/failures b/typescript-generator-core/.nondex/5Dzelxb5TKy88zovJbTb5bRe9nlaQxXGJLLSWKmJYAw=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/5Dzelxb5TKy88zovJbTb5bRe9nlaQxXGJLLSWKmJYAw=/invocations b/typescript-generator-core/.nondex/5Dzelxb5TKy88zovJbTb5bRe9nlaQxXGJLLSWKmJYAw=/invocations new file mode 100644 index 000000000..c164bf6ef --- /dev/null +++ b/typescript-generator-core/.nondex/5Dzelxb5TKy88zovJbTb5bRe9nlaQxXGJLLSWKmJYAw=/invocations @@ -0,0 +1,2 @@ +COUNT:16 +SHUFFLES:16 diff --git a/typescript-generator-core/.nondex/5PywmylO9KED3bISqf6T674WAMJMMpAjOrT0FzJDaNg=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/5PywmylO9KED3bISqf6T674WAMJMMpAjOrT0FzJDaNg=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..1200dd438 --- /dev/null +++ b/typescript-generator-core/.nondex/5PywmylO9KED3bISqf6T674WAMJMMpAjOrT0FzJDaNg=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/5PywmylO9KED3bISqf6T674WAMJMMpAjOrT0FzJDaNg=/config b/typescript-generator-core/.nondex/5PywmylO9KED3bISqf6T674WAMJMMpAjOrT0FzJDaNg=/config new file mode 100644 index 000000000..eb756548c --- /dev/null +++ b/typescript-generator-core/.nondex/5PywmylO9KED3bISqf6T674WAMJMMpAjOrT0FzJDaNg=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=3419818 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=5PywmylO9KED3bISqf6T674WAMJMMpAjOrT0FzJDaNg= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/5PywmylO9KED3bISqf6T674WAMJMMpAjOrT0FzJDaNg=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/5PywmylO9KED3bISqf6T674WAMJMMpAjOrT0FzJDaNg=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..39ff8f506 --- /dev/null +++ b/typescript-generator-core/.nondex/5PywmylO9KED3bISqf6T674WAMJMMpAjOrT0FzJDaNg=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.207 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.207 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/5PywmylO9KED3bISqf6T674WAMJMMpAjOrT0FzJDaNg=/failures b/typescript-generator-core/.nondex/5PywmylO9KED3bISqf6T674WAMJMMpAjOrT0FzJDaNg=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/5PywmylO9KED3bISqf6T674WAMJMMpAjOrT0FzJDaNg=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/5PywmylO9KED3bISqf6T674WAMJMMpAjOrT0FzJDaNg=/invocations b/typescript-generator-core/.nondex/5PywmylO9KED3bISqf6T674WAMJMMpAjOrT0FzJDaNg=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/5PywmylO9KED3bISqf6T674WAMJMMpAjOrT0FzJDaNg=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/5UlZAGgUU7OjteizQSh179pZBMLqpmKVi0jcsfScyy4=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/5UlZAGgUU7OjteizQSh179pZBMLqpmKVi0jcsfScyy4=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..9a1d354ad --- /dev/null +++ b/typescript-generator-core/.nondex/5UlZAGgUU7OjteizQSh179pZBMLqpmKVi0jcsfScyy4=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/5UlZAGgUU7OjteizQSh179pZBMLqpmKVi0jcsfScyy4=/config b/typescript-generator-core/.nondex/5UlZAGgUU7OjteizQSh179pZBMLqpmKVi0jcsfScyy4=/config new file mode 100644 index 000000000..ff9170291 --- /dev/null +++ b/typescript-generator-core/.nondex/5UlZAGgUU7OjteizQSh179pZBMLqpmKVi0jcsfScyy4=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=3917146 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=5UlZAGgUU7OjteizQSh179pZBMLqpmKVi0jcsfScyy4= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/5UlZAGgUU7OjteizQSh179pZBMLqpmKVi0jcsfScyy4=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/5UlZAGgUU7OjteizQSh179pZBMLqpmKVi0jcsfScyy4=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..bb621f0fa --- /dev/null +++ b/typescript-generator-core/.nondex/5UlZAGgUU7OjteizQSh179pZBMLqpmKVi0jcsfScyy4=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.268 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/5UlZAGgUU7OjteizQSh179pZBMLqpmKVi0jcsfScyy4=/failures b/typescript-generator-core/.nondex/5UlZAGgUU7OjteizQSh179pZBMLqpmKVi0jcsfScyy4=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/5UlZAGgUU7OjteizQSh179pZBMLqpmKVi0jcsfScyy4=/invocations b/typescript-generator-core/.nondex/5UlZAGgUU7OjteizQSh179pZBMLqpmKVi0jcsfScyy4=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/5UlZAGgUU7OjteizQSh179pZBMLqpmKVi0jcsfScyy4=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/5Ur+E2mMywI7alSvcstjzSqTAkVsV9vUf8W6p3zNkY8=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/5Ur+E2mMywI7alSvcstjzSqTAkVsV9vUf8W6p3zNkY8=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..cc08960d9 --- /dev/null +++ b/typescript-generator-core/.nondex/5Ur+E2mMywI7alSvcstjzSqTAkVsV9vUf8W6p3zNkY8=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/5Ur+E2mMywI7alSvcstjzSqTAkVsV9vUf8W6p3zNkY8=/config b/typescript-generator-core/.nondex/5Ur+E2mMywI7alSvcstjzSqTAkVsV9vUf8W6p3zNkY8=/config new file mode 100644 index 000000000..6f5bece03 --- /dev/null +++ b/typescript-generator-core/.nondex/5Ur+E2mMywI7alSvcstjzSqTAkVsV9vUf8W6p3zNkY8=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=3875702 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=5Ur+E2mMywI7alSvcstjzSqTAkVsV9vUf8W6p3zNkY8= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/5Ur+E2mMywI7alSvcstjzSqTAkVsV9vUf8W6p3zNkY8=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/5Ur+E2mMywI7alSvcstjzSqTAkVsV9vUf8W6p3zNkY8=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..d481805f8 --- /dev/null +++ b/typescript-generator-core/.nondex/5Ur+E2mMywI7alSvcstjzSqTAkVsV9vUf8W6p3zNkY8=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.241 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/5Ur+E2mMywI7alSvcstjzSqTAkVsV9vUf8W6p3zNkY8=/failures b/typescript-generator-core/.nondex/5Ur+E2mMywI7alSvcstjzSqTAkVsV9vUf8W6p3zNkY8=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/5Ur+E2mMywI7alSvcstjzSqTAkVsV9vUf8W6p3zNkY8=/invocations b/typescript-generator-core/.nondex/5Ur+E2mMywI7alSvcstjzSqTAkVsV9vUf8W6p3zNkY8=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/5Ur+E2mMywI7alSvcstjzSqTAkVsV9vUf8W6p3zNkY8=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/5VGgB78Lgn+s+1MQk9phLAcUSAVarkGdNn90bdXgeI=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/5VGgB78Lgn+s+1MQk9phLAcUSAVarkGdNn90bdXgeI=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..892413c60 --- /dev/null +++ b/typescript-generator-core/.nondex/5VGgB78Lgn+s+1MQk9phLAcUSAVarkGdNn90bdXgeI=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/5VGgB78Lgn+s+1MQk9phLAcUSAVarkGdNn90bdXgeI=/config b/typescript-generator-core/.nondex/5VGgB78Lgn+s+1MQk9phLAcUSAVarkGdNn90bdXgeI=/config new file mode 100644 index 000000000..72859b540 --- /dev/null +++ b/typescript-generator-core/.nondex/5VGgB78Lgn+s+1MQk9phLAcUSAVarkGdNn90bdXgeI=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=2425162 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=5VGgB78Lgn+s+1MQk9phLAcUSAVarkGdNn90bdXgeI= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/5VGgB78Lgn+s+1MQk9phLAcUSAVarkGdNn90bdXgeI=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/5VGgB78Lgn+s+1MQk9phLAcUSAVarkGdNn90bdXgeI=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..1d0d430e7 --- /dev/null +++ b/typescript-generator-core/.nondex/5VGgB78Lgn+s+1MQk9phLAcUSAVarkGdNn90bdXgeI=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.274 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/5VGgB78Lgn+s+1MQk9phLAcUSAVarkGdNn90bdXgeI=/failures b/typescript-generator-core/.nondex/5VGgB78Lgn+s+1MQk9phLAcUSAVarkGdNn90bdXgeI=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/5VGgB78Lgn+s+1MQk9phLAcUSAVarkGdNn90bdXgeI=/invocations b/typescript-generator-core/.nondex/5VGgB78Lgn+s+1MQk9phLAcUSAVarkGdNn90bdXgeI=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/5VGgB78Lgn+s+1MQk9phLAcUSAVarkGdNn90bdXgeI=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/5eHj8KgbGdG+I8toHyMwHVlny5krmoOhthWWiToQOgA=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/5eHj8KgbGdG+I8toHyMwHVlny5krmoOhthWWiToQOgA=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..36d13b74a --- /dev/null +++ b/typescript-generator-core/.nondex/5eHj8KgbGdG+I8toHyMwHVlny5krmoOhthWWiToQOgA=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/5eHj8KgbGdG+I8toHyMwHVlny5krmoOhthWWiToQOgA=/config b/typescript-generator-core/.nondex/5eHj8KgbGdG+I8toHyMwHVlny5krmoOhthWWiToQOgA=/config new file mode 100644 index 000000000..74bae2a36 --- /dev/null +++ b/typescript-generator-core/.nondex/5eHj8KgbGdG+I8toHyMwHVlny5krmoOhthWWiToQOgA=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=2881046 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=5eHj8KgbGdG+I8toHyMwHVlny5krmoOhthWWiToQOgA= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/5eHj8KgbGdG+I8toHyMwHVlny5krmoOhthWWiToQOgA=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/5eHj8KgbGdG+I8toHyMwHVlny5krmoOhthWWiToQOgA=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..94284e197 --- /dev/null +++ b/typescript-generator-core/.nondex/5eHj8KgbGdG+I8toHyMwHVlny5krmoOhthWWiToQOgA=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.257 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.257 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/5eHj8KgbGdG+I8toHyMwHVlny5krmoOhthWWiToQOgA=/failures b/typescript-generator-core/.nondex/5eHj8KgbGdG+I8toHyMwHVlny5krmoOhthWWiToQOgA=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/5eHj8KgbGdG+I8toHyMwHVlny5krmoOhthWWiToQOgA=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/5eHj8KgbGdG+I8toHyMwHVlny5krmoOhthWWiToQOgA=/invocations b/typescript-generator-core/.nondex/5eHj8KgbGdG+I8toHyMwHVlny5krmoOhthWWiToQOgA=/invocations new file mode 100644 index 000000000..ba445629d --- /dev/null +++ b/typescript-generator-core/.nondex/5eHj8KgbGdG+I8toHyMwHVlny5krmoOhthWWiToQOgA=/invocations @@ -0,0 +1,2 @@ +COUNT:154 +SHUFFLES:154 diff --git a/typescript-generator-core/.nondex/5trHt9OHFBJ6w4Y9xiskZWwwnos5A4Jyolz0s5gSjA=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/5trHt9OHFBJ6w4Y9xiskZWwwnos5A4Jyolz0s5gSjA=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..4c897478c --- /dev/null +++ b/typescript-generator-core/.nondex/5trHt9OHFBJ6w4Y9xiskZWwwnos5A4Jyolz0s5gSjA=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/5trHt9OHFBJ6w4Y9xiskZWwwnos5A4Jyolz0s5gSjA=/config b/typescript-generator-core/.nondex/5trHt9OHFBJ6w4Y9xiskZWwwnos5A4Jyolz0s5gSjA=/config new file mode 100644 index 000000000..6785a33f1 --- /dev/null +++ b/typescript-generator-core/.nondex/5trHt9OHFBJ6w4Y9xiskZWwwnos5A4Jyolz0s5gSjA=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1844946 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=5trHt9OHFBJ6w4Y9xiskZWwwnos5A4Jyolz0s5gSjA= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/5trHt9OHFBJ6w4Y9xiskZWwwnos5A4Jyolz0s5gSjA=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/5trHt9OHFBJ6w4Y9xiskZWwwnos5A4Jyolz0s5gSjA=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..ed63b5d7f --- /dev/null +++ b/typescript-generator-core/.nondex/5trHt9OHFBJ6w4Y9xiskZWwwnos5A4Jyolz0s5gSjA=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.269 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.267 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/5trHt9OHFBJ6w4Y9xiskZWwwnos5A4Jyolz0s5gSjA=/failures b/typescript-generator-core/.nondex/5trHt9OHFBJ6w4Y9xiskZWwwnos5A4Jyolz0s5gSjA=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/5trHt9OHFBJ6w4Y9xiskZWwwnos5A4Jyolz0s5gSjA=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/5trHt9OHFBJ6w4Y9xiskZWwwnos5A4Jyolz0s5gSjA=/invocations b/typescript-generator-core/.nondex/5trHt9OHFBJ6w4Y9xiskZWwwnos5A4Jyolz0s5gSjA=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/5trHt9OHFBJ6w4Y9xiskZWwwnos5A4Jyolz0s5gSjA=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/60edUpbR0xQGw9nb3S1ST6LjHXZ7XfQPuF+jp1REf4=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/60edUpbR0xQGw9nb3S1ST6LjHXZ7XfQPuF+jp1REf4=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..54adeeb92 --- /dev/null +++ b/typescript-generator-core/.nondex/60edUpbR0xQGw9nb3S1ST6LjHXZ7XfQPuF+jp1REf4=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/60edUpbR0xQGw9nb3S1ST6LjHXZ7XfQPuF+jp1REf4=/config b/typescript-generator-core/.nondex/60edUpbR0xQGw9nb3S1ST6LjHXZ7XfQPuF+jp1REf4=/config new file mode 100644 index 000000000..18e85f5ef --- /dev/null +++ b/typescript-generator-core/.nondex/60edUpbR0xQGw9nb3S1ST6LjHXZ7XfQPuF+jp1REf4=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=2052166 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=60edUpbR0xQGw9nb3S1ST6LjHXZ7XfQPuF+jp1REf4= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/60edUpbR0xQGw9nb3S1ST6LjHXZ7XfQPuF+jp1REf4=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/60edUpbR0xQGw9nb3S1ST6LjHXZ7XfQPuF+jp1REf4=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..5ee84116b --- /dev/null +++ b/typescript-generator-core/.nondex/60edUpbR0xQGw9nb3S1ST6LjHXZ7XfQPuF+jp1REf4=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.233 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/60edUpbR0xQGw9nb3S1ST6LjHXZ7XfQPuF+jp1REf4=/failures b/typescript-generator-core/.nondex/60edUpbR0xQGw9nb3S1ST6LjHXZ7XfQPuF+jp1REf4=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/60edUpbR0xQGw9nb3S1ST6LjHXZ7XfQPuF+jp1REf4=/invocations b/typescript-generator-core/.nondex/60edUpbR0xQGw9nb3S1ST6LjHXZ7XfQPuF+jp1REf4=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/60edUpbR0xQGw9nb3S1ST6LjHXZ7XfQPuF+jp1REf4=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/63PSWlUbwN95vqhtb5PAam+GIMbUdOdozMlvSQYHUw=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/63PSWlUbwN95vqhtb5PAam+GIMbUdOdozMlvSQYHUw=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..df9855799 --- /dev/null +++ b/typescript-generator-core/.nondex/63PSWlUbwN95vqhtb5PAam+GIMbUdOdozMlvSQYHUw=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/63PSWlUbwN95vqhtb5PAam+GIMbUdOdozMlvSQYHUw=/config b/typescript-generator-core/.nondex/63PSWlUbwN95vqhtb5PAam+GIMbUdOdozMlvSQYHUw=/config new file mode 100644 index 000000000..47e7973f9 --- /dev/null +++ b/typescript-generator-core/.nondex/63PSWlUbwN95vqhtb5PAam+GIMbUdOdozMlvSQYHUw=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=2425162 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=63PSWlUbwN95vqhtb5PAam+GIMbUdOdozMlvSQYHUw= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/63PSWlUbwN95vqhtb5PAam+GIMbUdOdozMlvSQYHUw=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/63PSWlUbwN95vqhtb5PAam+GIMbUdOdozMlvSQYHUw=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..565b27d56 --- /dev/null +++ b/typescript-generator-core/.nondex/63PSWlUbwN95vqhtb5PAam+GIMbUdOdozMlvSQYHUw=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.194 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/63PSWlUbwN95vqhtb5PAam+GIMbUdOdozMlvSQYHUw=/failures b/typescript-generator-core/.nondex/63PSWlUbwN95vqhtb5PAam+GIMbUdOdozMlvSQYHUw=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/63PSWlUbwN95vqhtb5PAam+GIMbUdOdozMlvSQYHUw=/invocations b/typescript-generator-core/.nondex/63PSWlUbwN95vqhtb5PAam+GIMbUdOdozMlvSQYHUw=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/63PSWlUbwN95vqhtb5PAam+GIMbUdOdozMlvSQYHUw=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/65GUtakmV+w1qizUsFw4DfGOUBGMk4P5iN9ymjH98=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/65GUtakmV+w1qizUsFw4DfGOUBGMk4P5iN9ymjH98=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..6ac4bbc28 --- /dev/null +++ b/typescript-generator-core/.nondex/65GUtakmV+w1qizUsFw4DfGOUBGMk4P5iN9ymjH98=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/65GUtakmV+w1qizUsFw4DfGOUBGMk4P5iN9ymjH98=/config b/typescript-generator-core/.nondex/65GUtakmV+w1qizUsFw4DfGOUBGMk4P5iN9ymjH98=/config new file mode 100644 index 000000000..07afc16a5 --- /dev/null +++ b/typescript-generator-core/.nondex/65GUtakmV+w1qizUsFw4DfGOUBGMk4P5iN9ymjH98=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=2673826 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=65GUtakmV+w1qizUsFw4DfGOUBGMk4P5iN9ymjH98= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/65GUtakmV+w1qizUsFw4DfGOUBGMk4P5iN9ymjH98=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/65GUtakmV+w1qizUsFw4DfGOUBGMk4P5iN9ymjH98=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..38868e88e --- /dev/null +++ b/typescript-generator-core/.nondex/65GUtakmV+w1qizUsFw4DfGOUBGMk4P5iN9ymjH98=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.234 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.234 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/65GUtakmV+w1qizUsFw4DfGOUBGMk4P5iN9ymjH98=/failures b/typescript-generator-core/.nondex/65GUtakmV+w1qizUsFw4DfGOUBGMk4P5iN9ymjH98=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/65GUtakmV+w1qizUsFw4DfGOUBGMk4P5iN9ymjH98=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/65GUtakmV+w1qizUsFw4DfGOUBGMk4P5iN9ymjH98=/invocations b/typescript-generator-core/.nondex/65GUtakmV+w1qizUsFw4DfGOUBGMk4P5iN9ymjH98=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/65GUtakmV+w1qizUsFw4DfGOUBGMk4P5iN9ymjH98=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/69gDDGHRpC9cGEey526m8mEVSop9bkDeB+10gYQNA2A=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/69gDDGHRpC9cGEey526m8mEVSop9bkDeB+10gYQNA2A=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..09da41d99 --- /dev/null +++ b/typescript-generator-core/.nondex/69gDDGHRpC9cGEey526m8mEVSop9bkDeB+10gYQNA2A=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,70 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/69gDDGHRpC9cGEey526m8mEVSop9bkDeB+10gYQNA2A=/config b/typescript-generator-core/.nondex/69gDDGHRpC9cGEey526m8mEVSop9bkDeB+10gYQNA2A=/config new file mode 100644 index 000000000..6d7e5ffcc --- /dev/null +++ b/typescript-generator-core/.nondex/69gDDGHRpC9cGEey526m8mEVSop9bkDeB+10gYQNA2A=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1140398 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=69gDDGHRpC9cGEey526m8mEVSop9bkDeB+10gYQNA2A= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/69gDDGHRpC9cGEey526m8mEVSop9bkDeB+10gYQNA2A=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/69gDDGHRpC9cGEey526m8mEVSop9bkDeB+10gYQNA2A=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..3b0f580d0 --- /dev/null +++ b/typescript-generator-core/.nondex/69gDDGHRpC9cGEey526m8mEVSop9bkDeB+10gYQNA2A=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.298 sec - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/69gDDGHRpC9cGEey526m8mEVSop9bkDeB+10gYQNA2A=/failures b/typescript-generator-core/.nondex/69gDDGHRpC9cGEey526m8mEVSop9bkDeB+10gYQNA2A=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/69gDDGHRpC9cGEey526m8mEVSop9bkDeB+10gYQNA2A=/invocations b/typescript-generator-core/.nondex/69gDDGHRpC9cGEey526m8mEVSop9bkDeB+10gYQNA2A=/invocations new file mode 100644 index 000000000..11ff8fe83 --- /dev/null +++ b/typescript-generator-core/.nondex/69gDDGHRpC9cGEey526m8mEVSop9bkDeB+10gYQNA2A=/invocations @@ -0,0 +1,2 @@ +COUNT:61 +SHUFFLES:61 diff --git a/typescript-generator-core/.nondex/6Noc3VFPRE4+GqNJHSJ+5B9C734fpLafs1eJBBItOo=/config b/typescript-generator-core/.nondex/6Noc3VFPRE4+GqNJHSJ+5B9C734fpLafs1eJBBItOo=/config new file mode 100644 index 000000000..61b241d44 --- /dev/null +++ b/typescript-generator-core/.nondex/6Noc3VFPRE4+GqNJHSJ+5B9C734fpLafs1eJBBItOo=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1140398 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=6Noc3VFPRE4+GqNJHSJ+5B9C734fpLafs1eJBBItOo= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/6Noc3VFPRE4+GqNJHSJ+5B9C734fpLafs1eJBBItOo=/failures b/typescript-generator-core/.nondex/6Noc3VFPRE4+GqNJHSJ+5B9C734fpLafs1eJBBItOo=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/6Noc3VFPRE4+GqNJHSJ+5B9C734fpLafs1eJBBItOo=/invocations b/typescript-generator-core/.nondex/6Noc3VFPRE4+GqNJHSJ+5B9C734fpLafs1eJBBItOo=/invocations new file mode 100644 index 000000000..c164bf6ef --- /dev/null +++ b/typescript-generator-core/.nondex/6Noc3VFPRE4+GqNJHSJ+5B9C734fpLafs1eJBBItOo=/invocations @@ -0,0 +1,2 @@ +COUNT:16 +SHUFFLES:16 diff --git a/typescript-generator-core/.nondex/7AcfVCK9xqHCn8a6ojyL2MoCDI1tg5RacbLH8Fv8Ac=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/7AcfVCK9xqHCn8a6ojyL2MoCDI1tg5RacbLH8Fv8Ac=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..59af729d7 --- /dev/null +++ b/typescript-generator-core/.nondex/7AcfVCK9xqHCn8a6ojyL2MoCDI1tg5RacbLH8Fv8Ac=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/7AcfVCK9xqHCn8a6ojyL2MoCDI1tg5RacbLH8Fv8Ac=/config b/typescript-generator-core/.nondex/7AcfVCK9xqHCn8a6ojyL2MoCDI1tg5RacbLH8Fv8Ac=/config new file mode 100644 index 000000000..72d2c4ced --- /dev/null +++ b/typescript-generator-core/.nondex/7AcfVCK9xqHCn8a6ojyL2MoCDI1tg5RacbLH8Fv8Ac=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=974622 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=7AcfVCK9xqHCn8a6ojyL2MoCDI1tg5RacbLH8Fv8Ac= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/7AcfVCK9xqHCn8a6ojyL2MoCDI1tg5RacbLH8Fv8Ac=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/7AcfVCK9xqHCn8a6ojyL2MoCDI1tg5RacbLH8Fv8Ac=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..f7f358114 --- /dev/null +++ b/typescript-generator-core/.nondex/7AcfVCK9xqHCn8a6ojyL2MoCDI1tg5RacbLH8Fv8Ac=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.174 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/7AcfVCK9xqHCn8a6ojyL2MoCDI1tg5RacbLH8Fv8Ac=/failures b/typescript-generator-core/.nondex/7AcfVCK9xqHCn8a6ojyL2MoCDI1tg5RacbLH8Fv8Ac=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/7AcfVCK9xqHCn8a6ojyL2MoCDI1tg5RacbLH8Fv8Ac=/invocations b/typescript-generator-core/.nondex/7AcfVCK9xqHCn8a6ojyL2MoCDI1tg5RacbLH8Fv8Ac=/invocations new file mode 100644 index 000000000..7ad7d1da8 --- /dev/null +++ b/typescript-generator-core/.nondex/7AcfVCK9xqHCn8a6ojyL2MoCDI1tg5RacbLH8Fv8Ac=/invocations @@ -0,0 +1,2 @@ +COUNT:67 +SHUFFLES:67 diff --git a/typescript-generator-core/.nondex/7FOygE1nTOp7rEKg8kHsTIWUi4qRZ0Tgxs8hemn4sc=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/7FOygE1nTOp7rEKg8kHsTIWUi4qRZ0Tgxs8hemn4sc=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..e45a61d65 --- /dev/null +++ b/typescript-generator-core/.nondex/7FOygE1nTOp7rEKg8kHsTIWUi4qRZ0Tgxs8hemn4sc=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/7FOygE1nTOp7rEKg8kHsTIWUi4qRZ0Tgxs8hemn4sc=/config b/typescript-generator-core/.nondex/7FOygE1nTOp7rEKg8kHsTIWUi4qRZ0Tgxs8hemn4sc=/config new file mode 100644 index 000000000..eefd652d2 --- /dev/null +++ b/typescript-generator-core/.nondex/7FOygE1nTOp7rEKg8kHsTIWUi4qRZ0Tgxs8hemn4sc=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=3336930 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=7FOygE1nTOp7rEKg8kHsTIWUi4qRZ0Tgxs8hemn4sc= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/7FOygE1nTOp7rEKg8kHsTIWUi4qRZ0Tgxs8hemn4sc=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/7FOygE1nTOp7rEKg8kHsTIWUi4qRZ0Tgxs8hemn4sc=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..90ed138f8 --- /dev/null +++ b/typescript-generator-core/.nondex/7FOygE1nTOp7rEKg8kHsTIWUi4qRZ0Tgxs8hemn4sc=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.215 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/7FOygE1nTOp7rEKg8kHsTIWUi4qRZ0Tgxs8hemn4sc=/failures b/typescript-generator-core/.nondex/7FOygE1nTOp7rEKg8kHsTIWUi4qRZ0Tgxs8hemn4sc=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/7FOygE1nTOp7rEKg8kHsTIWUi4qRZ0Tgxs8hemn4sc=/invocations b/typescript-generator-core/.nondex/7FOygE1nTOp7rEKg8kHsTIWUi4qRZ0Tgxs8hemn4sc=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/7FOygE1nTOp7rEKg8kHsTIWUi4qRZ0Tgxs8hemn4sc=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/7ICuaQ9RkoK5qygRTLTU1JWXQofYq0pYK+UldlDb9w=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/7ICuaQ9RkoK5qygRTLTU1JWXQofYq0pYK+UldlDb9w=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..1070dd998 --- /dev/null +++ b/typescript-generator-core/.nondex/7ICuaQ9RkoK5qygRTLTU1JWXQofYq0pYK+UldlDb9w=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/7ICuaQ9RkoK5qygRTLTU1JWXQofYq0pYK+UldlDb9w=/config b/typescript-generator-core/.nondex/7ICuaQ9RkoK5qygRTLTU1JWXQofYq0pYK+UldlDb9w=/config new file mode 100644 index 000000000..b14373dc6 --- /dev/null +++ b/typescript-generator-core/.nondex/7ICuaQ9RkoK5qygRTLTU1JWXQofYq0pYK+UldlDb9w=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=3751370 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=7ICuaQ9RkoK5qygRTLTU1JWXQofYq0pYK+UldlDb9w= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/7ICuaQ9RkoK5qygRTLTU1JWXQofYq0pYK+UldlDb9w=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/7ICuaQ9RkoK5qygRTLTU1JWXQofYq0pYK+UldlDb9w=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..0d1d64a87 --- /dev/null +++ b/typescript-generator-core/.nondex/7ICuaQ9RkoK5qygRTLTU1JWXQofYq0pYK+UldlDb9w=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.23 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.229 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/7ICuaQ9RkoK5qygRTLTU1JWXQofYq0pYK+UldlDb9w=/failures b/typescript-generator-core/.nondex/7ICuaQ9RkoK5qygRTLTU1JWXQofYq0pYK+UldlDb9w=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/7ICuaQ9RkoK5qygRTLTU1JWXQofYq0pYK+UldlDb9w=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/7ICuaQ9RkoK5qygRTLTU1JWXQofYq0pYK+UldlDb9w=/invocations b/typescript-generator-core/.nondex/7ICuaQ9RkoK5qygRTLTU1JWXQofYq0pYK+UldlDb9w=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/7ICuaQ9RkoK5qygRTLTU1JWXQofYq0pYK+UldlDb9w=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/7OzaSMfmpXVM1zk3luoL6y8CKvPYCzxChI03YUsY2I=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/7OzaSMfmpXVM1zk3luoL6y8CKvPYCzxChI03YUsY2I=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..b67c5a5cd --- /dev/null +++ b/typescript-generator-core/.nondex/7OzaSMfmpXVM1zk3luoL6y8CKvPYCzxChI03YUsY2I=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/7OzaSMfmpXVM1zk3luoL6y8CKvPYCzxChI03YUsY2I=/config b/typescript-generator-core/.nondex/7OzaSMfmpXVM1zk3luoL6y8CKvPYCzxChI03YUsY2I=/config new file mode 100644 index 000000000..8c98b95a5 --- /dev/null +++ b/typescript-generator-core/.nondex/7OzaSMfmpXVM1zk3luoL6y8CKvPYCzxChI03YUsY2I=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=4082922 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=7OzaSMfmpXVM1zk3luoL6y8CKvPYCzxChI03YUsY2I= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/7OzaSMfmpXVM1zk3luoL6y8CKvPYCzxChI03YUsY2I=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/7OzaSMfmpXVM1zk3luoL6y8CKvPYCzxChI03YUsY2I=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..168c94957 --- /dev/null +++ b/typescript-generator-core/.nondex/7OzaSMfmpXVM1zk3luoL6y8CKvPYCzxChI03YUsY2I=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.197 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/7OzaSMfmpXVM1zk3luoL6y8CKvPYCzxChI03YUsY2I=/failures b/typescript-generator-core/.nondex/7OzaSMfmpXVM1zk3luoL6y8CKvPYCzxChI03YUsY2I=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/7OzaSMfmpXVM1zk3luoL6y8CKvPYCzxChI03YUsY2I=/invocations b/typescript-generator-core/.nondex/7OzaSMfmpXVM1zk3luoL6y8CKvPYCzxChI03YUsY2I=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/7OzaSMfmpXVM1zk3luoL6y8CKvPYCzxChI03YUsY2I=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/7XWJvizucQ61rHcWURmjJAMNDrcfgZxiwAgYxOqXTA=.run b/typescript-generator-core/.nondex/7XWJvizucQ61rHcWURmjJAMNDrcfgZxiwAgYxOqXTA=.run new file mode 100644 index 000000000..8bd03b233 --- /dev/null +++ b/typescript-generator-core/.nondex/7XWJvizucQ61rHcWURmjJAMNDrcfgZxiwAgYxOqXTA=.run @@ -0,0 +1,4 @@ +7XWJvizucQ61rHcWURmjJAMNDrcfgZxiwAgYxOqXTA= +DzmLfVNjtaW9b3MQrV0c7bfj7XqPXOTqj8A9wcC7Xg= +wGsghiSC7lq8ernpxgkVVUsX9O3gBnAZZoKWUEXA= +clean_+d2u5WHHkMDsWqYzDQM8kQ8bXFY7d+XRFbeBhEeQgwc= diff --git a/typescript-generator-core/.nondex/7XWJvizucQ61rHcWURmjJAMNDrcfgZxiwAgYxOqXTA=/config b/typescript-generator-core/.nondex/7XWJvizucQ61rHcWURmjJAMNDrcfgZxiwAgYxOqXTA=/config new file mode 100644 index 000000000..97620e58d --- /dev/null +++ b/typescript-generator-core/.nondex/7XWJvizucQ61rHcWURmjJAMNDrcfgZxiwAgYxOqXTA=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=933178 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=7XWJvizucQ61rHcWURmjJAMNDrcfgZxiwAgYxOqXTA= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/7XWJvizucQ61rHcWURmjJAMNDrcfgZxiwAgYxOqXTA=/failures b/typescript-generator-core/.nondex/7XWJvizucQ61rHcWURmjJAMNDrcfgZxiwAgYxOqXTA=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/7XWJvizucQ61rHcWURmjJAMNDrcfgZxiwAgYxOqXTA=/invocations b/typescript-generator-core/.nondex/7XWJvizucQ61rHcWURmjJAMNDrcfgZxiwAgYxOqXTA=/invocations new file mode 100644 index 000000000..c164bf6ef --- /dev/null +++ b/typescript-generator-core/.nondex/7XWJvizucQ61rHcWURmjJAMNDrcfgZxiwAgYxOqXTA=/invocations @@ -0,0 +1,2 @@ +COUNT:16 +SHUFFLES:16 diff --git a/typescript-generator-core/.nondex/7XWJvizucQ61rHcWURmjJAMNDrcfgZxiwAgYxOqXTA=/test_results.html b/typescript-generator-core/.nondex/7XWJvizucQ61rHcWURmjJAMNDrcfgZxiwAgYxOqXTA=/test_results.html new file mode 100644 index 000000000..ee93290bb --- /dev/null +++ b/typescript-generator-core/.nondex/7XWJvizucQ61rHcWURmjJAMNDrcfgZxiwAgYxOqXTA=/test_results.html @@ -0,0 +1 @@ +Test Results
Test Name9331789746221016066
\ No newline at end of file diff --git a/typescript-generator-core/.nondex/7mtByFrMjHZdcc6+umWMG63B0z+YLGb19GWqQHft0=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/7mtByFrMjHZdcc6+umWMG63B0z+YLGb19GWqQHft0=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..b1f4114f7 --- /dev/null +++ b/typescript-generator-core/.nondex/7mtByFrMjHZdcc6+umWMG63B0z+YLGb19GWqQHft0=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,92 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:140) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/7mtByFrMjHZdcc6+umWMG63B0z+YLGb19GWqQHft0=/config b/typescript-generator-core/.nondex/7mtByFrMjHZdcc6+umWMG63B0z+YLGb19GWqQHft0=/config new file mode 100644 index 000000000..eb48f7e46 --- /dev/null +++ b/typescript-generator-core/.nondex/7mtByFrMjHZdcc6+umWMG63B0z+YLGb19GWqQHft0=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1306174 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=7mtByFrMjHZdcc6+umWMG63B0z+YLGb19GWqQHft0= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/7mtByFrMjHZdcc6+umWMG63B0z+YLGb19GWqQHft0=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/7mtByFrMjHZdcc6+umWMG63B0z+YLGb19GWqQHft0=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..3a7df84cf --- /dev/null +++ b/typescript-generator-core/.nondex/7mtByFrMjHZdcc6+umWMG63B0z+YLGb19GWqQHft0=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,20 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.176 sec <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.172 sec <<< FAILURE! +org.junit.ComparisonFailure: expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:140) + diff --git a/typescript-generator-core/.nondex/7mtByFrMjHZdcc6+umWMG63B0z+YLGb19GWqQHft0=/failures b/typescript-generator-core/.nondex/7mtByFrMjHZdcc6+umWMG63B0z+YLGb19GWqQHft0=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/7mtByFrMjHZdcc6+umWMG63B0z+YLGb19GWqQHft0=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/7mtByFrMjHZdcc6+umWMG63B0z+YLGb19GWqQHft0=/invocations b/typescript-generator-core/.nondex/7mtByFrMjHZdcc6+umWMG63B0z+YLGb19GWqQHft0=/invocations new file mode 100644 index 000000000..11ff8fe83 --- /dev/null +++ b/typescript-generator-core/.nondex/7mtByFrMjHZdcc6+umWMG63B0z+YLGb19GWqQHft0=/invocations @@ -0,0 +1,2 @@ +COUNT:61 +SHUFFLES:61 diff --git a/typescript-generator-core/.nondex/7qzF+a71bggwvNePzitde5tbtuWgJLWrVRdUT8+efgE=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/7qzF+a71bggwvNePzitde5tbtuWgJLWrVRdUT8+efgE=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..322e31842 --- /dev/null +++ b/typescript-generator-core/.nondex/7qzF+a71bggwvNePzitde5tbtuWgJLWrVRdUT8+efgE=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/7qzF+a71bggwvNePzitde5tbtuWgJLWrVRdUT8+efgE=/config b/typescript-generator-core/.nondex/7qzF+a71bggwvNePzitde5tbtuWgJLWrVRdUT8+efgE=/config new file mode 100644 index 000000000..d4c56f348 --- /dev/null +++ b/typescript-generator-core/.nondex/7qzF+a71bggwvNePzitde5tbtuWgJLWrVRdUT8+efgE=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=2963934 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=7qzF+a71bggwvNePzitde5tbtuWgJLWrVRdUT8+efgE= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/7qzF+a71bggwvNePzitde5tbtuWgJLWrVRdUT8+efgE=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/7qzF+a71bggwvNePzitde5tbtuWgJLWrVRdUT8+efgE=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..5e1237b2f --- /dev/null +++ b/typescript-generator-core/.nondex/7qzF+a71bggwvNePzitde5tbtuWgJLWrVRdUT8+efgE=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.25 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.248 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/7qzF+a71bggwvNePzitde5tbtuWgJLWrVRdUT8+efgE=/failures b/typescript-generator-core/.nondex/7qzF+a71bggwvNePzitde5tbtuWgJLWrVRdUT8+efgE=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/7qzF+a71bggwvNePzitde5tbtuWgJLWrVRdUT8+efgE=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/7qzF+a71bggwvNePzitde5tbtuWgJLWrVRdUT8+efgE=/invocations b/typescript-generator-core/.nondex/7qzF+a71bggwvNePzitde5tbtuWgJLWrVRdUT8+efgE=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/7qzF+a71bggwvNePzitde5tbtuWgJLWrVRdUT8+efgE=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/7zF3rTx5ZnNHfiA7Xl8cQA78Y8GDTDmh1hZ9kknSZAw=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/7zF3rTx5ZnNHfiA7Xl8cQA78Y8GDTDmh1hZ9kknSZAw=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..34ebcb39e --- /dev/null +++ b/typescript-generator-core/.nondex/7zF3rTx5ZnNHfiA7Xl8cQA78Y8GDTDmh1hZ9kknSZAw=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/7zF3rTx5ZnNHfiA7Xl8cQA78Y8GDTDmh1hZ9kknSZAw=/config b/typescript-generator-core/.nondex/7zF3rTx5ZnNHfiA7Xl8cQA78Y8GDTDmh1hZ9kknSZAw=/config new file mode 100644 index 000000000..f95643426 --- /dev/null +++ b/typescript-generator-core/.nondex/7zF3rTx5ZnNHfiA7Xl8cQA78Y8GDTDmh1hZ9kknSZAw=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=4663138 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=7zF3rTx5ZnNHfiA7Xl8cQA78Y8GDTDmh1hZ9kknSZAw= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/7zF3rTx5ZnNHfiA7Xl8cQA78Y8GDTDmh1hZ9kknSZAw=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/7zF3rTx5ZnNHfiA7Xl8cQA78Y8GDTDmh1hZ9kknSZAw=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..e0a9140a5 --- /dev/null +++ b/typescript-generator-core/.nondex/7zF3rTx5ZnNHfiA7Xl8cQA78Y8GDTDmh1hZ9kknSZAw=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.289 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.289 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/7zF3rTx5ZnNHfiA7Xl8cQA78Y8GDTDmh1hZ9kknSZAw=/failures b/typescript-generator-core/.nondex/7zF3rTx5ZnNHfiA7Xl8cQA78Y8GDTDmh1hZ9kknSZAw=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/7zF3rTx5ZnNHfiA7Xl8cQA78Y8GDTDmh1hZ9kknSZAw=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/7zF3rTx5ZnNHfiA7Xl8cQA78Y8GDTDmh1hZ9kknSZAw=/invocations b/typescript-generator-core/.nondex/7zF3rTx5ZnNHfiA7Xl8cQA78Y8GDTDmh1hZ9kknSZAw=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/7zF3rTx5ZnNHfiA7Xl8cQA78Y8GDTDmh1hZ9kknSZAw=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/8B1yJFEk9jZKVLuH+JP8xr0wglLuFcXYoubh6guPMsQ=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/8B1yJFEk9jZKVLuH+JP8xr0wglLuFcXYoubh6guPMsQ=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..0d74d9315 --- /dev/null +++ b/typescript-generator-core/.nondex/8B1yJFEk9jZKVLuH+JP8xr0wglLuFcXYoubh6guPMsQ=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/8B1yJFEk9jZKVLuH+JP8xr0wglLuFcXYoubh6guPMsQ=/config b/typescript-generator-core/.nondex/8B1yJFEk9jZKVLuH+JP8xr0wglLuFcXYoubh6guPMsQ=/config new file mode 100644 index 000000000..ae3d11289 --- /dev/null +++ b/typescript-generator-core/.nondex/8B1yJFEk9jZKVLuH+JP8xr0wglLuFcXYoubh6guPMsQ=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1057510 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=8B1yJFEk9jZKVLuH+JP8xr0wglLuFcXYoubh6guPMsQ= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/8B1yJFEk9jZKVLuH+JP8xr0wglLuFcXYoubh6guPMsQ=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/8B1yJFEk9jZKVLuH+JP8xr0wglLuFcXYoubh6guPMsQ=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..344b05cbe --- /dev/null +++ b/typescript-generator-core/.nondex/8B1yJFEk9jZKVLuH+JP8xr0wglLuFcXYoubh6guPMsQ=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.266 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/8B1yJFEk9jZKVLuH+JP8xr0wglLuFcXYoubh6guPMsQ=/failures b/typescript-generator-core/.nondex/8B1yJFEk9jZKVLuH+JP8xr0wglLuFcXYoubh6guPMsQ=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/8B1yJFEk9jZKVLuH+JP8xr0wglLuFcXYoubh6guPMsQ=/invocations b/typescript-generator-core/.nondex/8B1yJFEk9jZKVLuH+JP8xr0wglLuFcXYoubh6guPMsQ=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/8B1yJFEk9jZKVLuH+JP8xr0wglLuFcXYoubh6guPMsQ=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/8FN19nsAcCs60eXzBIDDwLKp1KvBDc4oqUP110bI4=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/8FN19nsAcCs60eXzBIDDwLKp1KvBDc4oqUP110bI4=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..b23581f2a --- /dev/null +++ b/typescript-generator-core/.nondex/8FN19nsAcCs60eXzBIDDwLKp1KvBDc4oqUP110bI4=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/8FN19nsAcCs60eXzBIDDwLKp1KvBDc4oqUP110bI4=/config b/typescript-generator-core/.nondex/8FN19nsAcCs60eXzBIDDwLKp1KvBDc4oqUP110bI4=/config new file mode 100644 index 000000000..62ccf44b5 --- /dev/null +++ b/typescript-generator-core/.nondex/8FN19nsAcCs60eXzBIDDwLKp1KvBDc4oqUP110bI4=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1679170 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=8FN19nsAcCs60eXzBIDDwLKp1KvBDc4oqUP110bI4= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/8FN19nsAcCs60eXzBIDDwLKp1KvBDc4oqUP110bI4=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/8FN19nsAcCs60eXzBIDDwLKp1KvBDc4oqUP110bI4=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..edd8e6ee2 --- /dev/null +++ b/typescript-generator-core/.nondex/8FN19nsAcCs60eXzBIDDwLKp1KvBDc4oqUP110bI4=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.244 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.241 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/8FN19nsAcCs60eXzBIDDwLKp1KvBDc4oqUP110bI4=/failures b/typescript-generator-core/.nondex/8FN19nsAcCs60eXzBIDDwLKp1KvBDc4oqUP110bI4=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/8FN19nsAcCs60eXzBIDDwLKp1KvBDc4oqUP110bI4=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/8FN19nsAcCs60eXzBIDDwLKp1KvBDc4oqUP110bI4=/invocations b/typescript-generator-core/.nondex/8FN19nsAcCs60eXzBIDDwLKp1KvBDc4oqUP110bI4=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/8FN19nsAcCs60eXzBIDDwLKp1KvBDc4oqUP110bI4=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/8Fq4QzCNczLlVLbExsYRpOnh9L2HIpC5vItCYF1ndg=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/8Fq4QzCNczLlVLbExsYRpOnh9L2HIpC5vItCYF1ndg=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..3061746ee --- /dev/null +++ b/typescript-generator-core/.nondex/8Fq4QzCNczLlVLbExsYRpOnh9L2HIpC5vItCYF1ndg=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/8Fq4QzCNczLlVLbExsYRpOnh9L2HIpC5vItCYF1ndg=/config b/typescript-generator-core/.nondex/8Fq4QzCNczLlVLbExsYRpOnh9L2HIpC5vItCYF1ndg=/config new file mode 100644 index 000000000..a76b28ac1 --- /dev/null +++ b/typescript-generator-core/.nondex/8Fq4QzCNczLlVLbExsYRpOnh9L2HIpC5vItCYF1ndg=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=4373030 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=8Fq4QzCNczLlVLbExsYRpOnh9L2HIpC5vItCYF1ndg= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/8Fq4QzCNczLlVLbExsYRpOnh9L2HIpC5vItCYF1ndg=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/8Fq4QzCNczLlVLbExsYRpOnh9L2HIpC5vItCYF1ndg=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..9c987aa3c --- /dev/null +++ b/typescript-generator-core/.nondex/8Fq4QzCNczLlVLbExsYRpOnh9L2HIpC5vItCYF1ndg=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.221 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/8Fq4QzCNczLlVLbExsYRpOnh9L2HIpC5vItCYF1ndg=/failures b/typescript-generator-core/.nondex/8Fq4QzCNczLlVLbExsYRpOnh9L2HIpC5vItCYF1ndg=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/8Fq4QzCNczLlVLbExsYRpOnh9L2HIpC5vItCYF1ndg=/invocations b/typescript-generator-core/.nondex/8Fq4QzCNczLlVLbExsYRpOnh9L2HIpC5vItCYF1ndg=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/8Fq4QzCNczLlVLbExsYRpOnh9L2HIpC5vItCYF1ndg=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/8HC+GbfwNGz1j4dpK9cEuZ9wbEK1ufr4XcMqw+petMM=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/8HC+GbfwNGz1j4dpK9cEuZ9wbEK1ufr4XcMqw+petMM=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..18ad444d0 --- /dev/null +++ b/typescript-generator-core/.nondex/8HC+GbfwNGz1j4dpK9cEuZ9wbEK1ufr4XcMqw+petMM=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,176 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:< +interface [CCircle2 extends IShape2 { + kind: "circle"; + radius: number; +} + +interface CRectangle2 extends IQuadrilateral2 { + kind: "rectangle"; + width: number; + height: number; +} + +interface IQuadrilateral2 extends IShape2 { + kind: "square" | "rectangle"; +} + +interface IShape2 { + kind: "circle" | "square" | "rectangle"; +} + +interface CSquare2 extends IQuadrilateral2 { + kind: "square"; + size: number]; +} + +type IShape2Uni...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/8HC+GbfwNGz1j4dpK9cEuZ9wbEK1ufr4XcMqw+petMM=/config b/typescript-generator-core/.nondex/8HC+GbfwNGz1j4dpK9cEuZ9wbEK1ufr4XcMqw+petMM=/config new file mode 100644 index 000000000..94634e3b8 --- /dev/null +++ b/typescript-generator-core/.nondex/8HC+GbfwNGz1j4dpK9cEuZ9wbEK1ufr4XcMqw+petMM=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1140398 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=8HC+GbfwNGz1j4dpK9cEuZ9wbEK1ufr4XcMqw+petMM= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/8HC+GbfwNGz1j4dpK9cEuZ9wbEK1ufr4XcMqw+petMM=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/8HC+GbfwNGz1j4dpK9cEuZ9wbEK1ufr4XcMqw+petMM=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..f417de142 --- /dev/null +++ b/typescript-generator-core/.nondex/8HC+GbfwNGz1j4dpK9cEuZ9wbEK1ufr4XcMqw+petMM=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,100 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.235 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.232 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:< +interface [IShape2 { + kind: "circle" | "square" | "rectangle"; +} + +interface CSquare2 extends IQuadrilateral2 { + kind: "square"; + size: number; +} + +interface CRectangle2 extends IQuadrilateral2 { + kind: "rectangle"; + width: number; + height: number; +} + +interface CCircle2 extends IShape2 { + kind: "circle"; + radius: number; +} + +interface IQuadrilateral2 extends IShape2 { + kind: "square" | "rectangle"]; +} + +type IShape2Uni...> but was:< +interface [CCircle2 extends IShape2 { + kind: "circle"; + radius: number; +} + +interface CRectangle2 extends IQuadrilateral2 { + kind: "rectangle"; + width: number; + height: number; +} + +interface IQuadrilateral2 extends IShape2 { + kind: "square" | "rectangle"; +} + +interface IShape2 { + kind: "circle" | "square" | "rectangle"; +} + +interface CSquare2 extends IQuadrilateral2 { + kind: "square"; + size: number]; +} + +type IShape2Uni...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/8HC+GbfwNGz1j4dpK9cEuZ9wbEK1ufr4XcMqw+petMM=/failures b/typescript-generator-core/.nondex/8HC+GbfwNGz1j4dpK9cEuZ9wbEK1ufr4XcMqw+petMM=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/8HC+GbfwNGz1j4dpK9cEuZ9wbEK1ufr4XcMqw+petMM=/invocations b/typescript-generator-core/.nondex/8HC+GbfwNGz1j4dpK9cEuZ9wbEK1ufr4XcMqw+petMM=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/8HC+GbfwNGz1j4dpK9cEuZ9wbEK1ufr4XcMqw+petMM=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/8IYfEHzeoRdGF9+im9XncjRUTZjaP4hjtkNUR5NPs=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/8IYfEHzeoRdGF9+im9XncjRUTZjaP4hjtkNUR5NPs=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..f5b4e62c9 --- /dev/null +++ b/typescript-generator-core/.nondex/8IYfEHzeoRdGF9+im9XncjRUTZjaP4hjtkNUR5NPs=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,176 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:< +interface [CCircle2 extends IShape2 { + kind: "circle"; + radius: number; +} + +interface CRectangle2 extends IQuadrilateral2 { + kind: "rectangle"; + width: number; + height: number; +} + +interface IQuadrilateral2 extends IShape2 { + kind: "square" | "rectangle"; +} + +interface IShape2 { + kind: "circle" | "square" | "rectangle"; +} + +interface CSquare2 extends IQuadrilateral2 { + kind: "square"; + size: number]; +} + +type IShape2Uni...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/8IYfEHzeoRdGF9+im9XncjRUTZjaP4hjtkNUR5NPs=/config b/typescript-generator-core/.nondex/8IYfEHzeoRdGF9+im9XncjRUTZjaP4hjtkNUR5NPs=/config new file mode 100644 index 000000000..bc2dffed5 --- /dev/null +++ b/typescript-generator-core/.nondex/8IYfEHzeoRdGF9+im9XncjRUTZjaP4hjtkNUR5NPs=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1057510 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=8IYfEHzeoRdGF9+im9XncjRUTZjaP4hjtkNUR5NPs= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/8IYfEHzeoRdGF9+im9XncjRUTZjaP4hjtkNUR5NPs=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/8IYfEHzeoRdGF9+im9XncjRUTZjaP4hjtkNUR5NPs=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..7c030a50c --- /dev/null +++ b/typescript-generator-core/.nondex/8IYfEHzeoRdGF9+im9XncjRUTZjaP4hjtkNUR5NPs=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,100 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.233 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.232 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:< +interface [IShape2 { + kind: "circle" | "square" | "rectangle"; +} + +interface CSquare2 extends IQuadrilateral2 { + kind: "square"; + size: number; +} + +interface CRectangle2 extends IQuadrilateral2 { + kind: "rectangle"; + width: number; + height: number; +} + +interface CCircle2 extends IShape2 { + kind: "circle"; + radius: number; +} + +interface IQuadrilateral2 extends IShape2 { + kind: "square" | "rectangle"]; +} + +type IShape2Uni...> but was:< +interface [CCircle2 extends IShape2 { + kind: "circle"; + radius: number; +} + +interface CRectangle2 extends IQuadrilateral2 { + kind: "rectangle"; + width: number; + height: number; +} + +interface IQuadrilateral2 extends IShape2 { + kind: "square" | "rectangle"; +} + +interface IShape2 { + kind: "circle" | "square" | "rectangle"; +} + +interface CSquare2 extends IQuadrilateral2 { + kind: "square"; + size: number]; +} + +type IShape2Uni...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/8IYfEHzeoRdGF9+im9XncjRUTZjaP4hjtkNUR5NPs=/failures b/typescript-generator-core/.nondex/8IYfEHzeoRdGF9+im9XncjRUTZjaP4hjtkNUR5NPs=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/8IYfEHzeoRdGF9+im9XncjRUTZjaP4hjtkNUR5NPs=/invocations b/typescript-generator-core/.nondex/8IYfEHzeoRdGF9+im9XncjRUTZjaP4hjtkNUR5NPs=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/8IYfEHzeoRdGF9+im9XncjRUTZjaP4hjtkNUR5NPs=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/8J0OsaN6I+HKKrBOi8akQokOKhIJo5PBMgnMredXrc=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/8J0OsaN6I+HKKrBOi8akQokOKhIJo5PBMgnMredXrc=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..1c51bc8e6 --- /dev/null +++ b/typescript-generator-core/.nondex/8J0OsaN6I+HKKrBOi8akQokOKhIJo5PBMgnMredXrc=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/8J0OsaN6I+HKKrBOi8akQokOKhIJo5PBMgnMredXrc=/config b/typescript-generator-core/.nondex/8J0OsaN6I+HKKrBOi8akQokOKhIJo5PBMgnMredXrc=/config new file mode 100644 index 000000000..ccb98c8eb --- /dev/null +++ b/typescript-generator-core/.nondex/8J0OsaN6I+HKKrBOi8akQokOKhIJo5PBMgnMredXrc=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=4953246 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=8J0OsaN6I+HKKrBOi8akQokOKhIJo5PBMgnMredXrc= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/8J0OsaN6I+HKKrBOi8akQokOKhIJo5PBMgnMredXrc=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/8J0OsaN6I+HKKrBOi8akQokOKhIJo5PBMgnMredXrc=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..7fbef1090 --- /dev/null +++ b/typescript-generator-core/.nondex/8J0OsaN6I+HKKrBOi8akQokOKhIJo5PBMgnMredXrc=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.256 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.255 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/8J0OsaN6I+HKKrBOi8akQokOKhIJo5PBMgnMredXrc=/failures b/typescript-generator-core/.nondex/8J0OsaN6I+HKKrBOi8akQokOKhIJo5PBMgnMredXrc=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/8J0OsaN6I+HKKrBOi8akQokOKhIJo5PBMgnMredXrc=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/8J0OsaN6I+HKKrBOi8akQokOKhIJo5PBMgnMredXrc=/invocations b/typescript-generator-core/.nondex/8J0OsaN6I+HKKrBOi8akQokOKhIJo5PBMgnMredXrc=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/8J0OsaN6I+HKKrBOi8akQokOKhIJo5PBMgnMredXrc=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/8K8KzaDhtOvUOelG+yWTCzTSrv6dHHIn0vBUvL4hw=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/8K8KzaDhtOvUOelG+yWTCzTSrv6dHHIn0vBUvL4hw=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..5228ad706 --- /dev/null +++ b/typescript-generator-core/.nondex/8K8KzaDhtOvUOelG+yWTCzTSrv6dHHIn0vBUvL4hw=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/8K8KzaDhtOvUOelG+yWTCzTSrv6dHHIn0vBUvL4hw=/config b/typescript-generator-core/.nondex/8K8KzaDhtOvUOelG+yWTCzTSrv6dHHIn0vBUvL4hw=/config new file mode 100644 index 000000000..af29d7bb9 --- /dev/null +++ b/typescript-generator-core/.nondex/8K8KzaDhtOvUOelG+yWTCzTSrv6dHHIn0vBUvL4hw=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1098954 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=8K8KzaDhtOvUOelG+yWTCzTSrv6dHHIn0vBUvL4hw= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/8K8KzaDhtOvUOelG+yWTCzTSrv6dHHIn0vBUvL4hw=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/8K8KzaDhtOvUOelG+yWTCzTSrv6dHHIn0vBUvL4hw=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..ac9f730c6 --- /dev/null +++ b/typescript-generator-core/.nondex/8K8KzaDhtOvUOelG+yWTCzTSrv6dHHIn0vBUvL4hw=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.241 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.24 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/8K8KzaDhtOvUOelG+yWTCzTSrv6dHHIn0vBUvL4hw=/failures b/typescript-generator-core/.nondex/8K8KzaDhtOvUOelG+yWTCzTSrv6dHHIn0vBUvL4hw=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/8K8KzaDhtOvUOelG+yWTCzTSrv6dHHIn0vBUvL4hw=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/8K8KzaDhtOvUOelG+yWTCzTSrv6dHHIn0vBUvL4hw=/invocations b/typescript-generator-core/.nondex/8K8KzaDhtOvUOelG+yWTCzTSrv6dHHIn0vBUvL4hw=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/8K8KzaDhtOvUOelG+yWTCzTSrv6dHHIn0vBUvL4hw=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/8QE1Mn5QDWaPpZY4k+w2a4hw5HHxfZjJPhTZ5JFWQQ=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/8QE1Mn5QDWaPpZY4k+w2a4hw5HHxfZjJPhTZ5JFWQQ=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..bf4018b3c --- /dev/null +++ b/typescript-generator-core/.nondex/8QE1Mn5QDWaPpZY4k+w2a4hw5HHxfZjJPhTZ5JFWQQ=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/8QE1Mn5QDWaPpZY4k+w2a4hw5HHxfZjJPhTZ5JFWQQ=/config b/typescript-generator-core/.nondex/8QE1Mn5QDWaPpZY4k+w2a4hw5HHxfZjJPhTZ5JFWQQ=/config new file mode 100644 index 000000000..df170954f --- /dev/null +++ b/typescript-generator-core/.nondex/8QE1Mn5QDWaPpZY4k+w2a4hw5HHxfZjJPhTZ5JFWQQ=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1389062 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=8QE1Mn5QDWaPpZY4k+w2a4hw5HHxfZjJPhTZ5JFWQQ= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/8QE1Mn5QDWaPpZY4k+w2a4hw5HHxfZjJPhTZ5JFWQQ=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/8QE1Mn5QDWaPpZY4k+w2a4hw5HHxfZjJPhTZ5JFWQQ=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..1ce9055ee --- /dev/null +++ b/typescript-generator-core/.nondex/8QE1Mn5QDWaPpZY4k+w2a4hw5HHxfZjJPhTZ5JFWQQ=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.162 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.161 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/8QE1Mn5QDWaPpZY4k+w2a4hw5HHxfZjJPhTZ5JFWQQ=/failures b/typescript-generator-core/.nondex/8QE1Mn5QDWaPpZY4k+w2a4hw5HHxfZjJPhTZ5JFWQQ=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/8QE1Mn5QDWaPpZY4k+w2a4hw5HHxfZjJPhTZ5JFWQQ=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/8QE1Mn5QDWaPpZY4k+w2a4hw5HHxfZjJPhTZ5JFWQQ=/invocations b/typescript-generator-core/.nondex/8QE1Mn5QDWaPpZY4k+w2a4hw5HHxfZjJPhTZ5JFWQQ=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/8QE1Mn5QDWaPpZY4k+w2a4hw5HHxfZjJPhTZ5JFWQQ=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/8bNeXuKMr9sFgRAPI6cXID98ezrudXm2sKSIriCIw=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/8bNeXuKMr9sFgRAPI6cXID98ezrudXm2sKSIriCIw=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..defa40853 --- /dev/null +++ b/typescript-generator-core/.nondex/8bNeXuKMr9sFgRAPI6cXID98ezrudXm2sKSIriCIw=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/8bNeXuKMr9sFgRAPI6cXID98ezrudXm2sKSIriCIw=/config b/typescript-generator-core/.nondex/8bNeXuKMr9sFgRAPI6cXID98ezrudXm2sKSIriCIw=/config new file mode 100644 index 000000000..24714b610 --- /dev/null +++ b/typescript-generator-core/.nondex/8bNeXuKMr9sFgRAPI6cXID98ezrudXm2sKSIriCIw=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=4911802 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=8bNeXuKMr9sFgRAPI6cXID98ezrudXm2sKSIriCIw= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/8bNeXuKMr9sFgRAPI6cXID98ezrudXm2sKSIriCIw=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/8bNeXuKMr9sFgRAPI6cXID98ezrudXm2sKSIriCIw=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..48a623984 --- /dev/null +++ b/typescript-generator-core/.nondex/8bNeXuKMr9sFgRAPI6cXID98ezrudXm2sKSIriCIw=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.244 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/8bNeXuKMr9sFgRAPI6cXID98ezrudXm2sKSIriCIw=/failures b/typescript-generator-core/.nondex/8bNeXuKMr9sFgRAPI6cXID98ezrudXm2sKSIriCIw=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/8bNeXuKMr9sFgRAPI6cXID98ezrudXm2sKSIriCIw=/invocations b/typescript-generator-core/.nondex/8bNeXuKMr9sFgRAPI6cXID98ezrudXm2sKSIriCIw=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/8bNeXuKMr9sFgRAPI6cXID98ezrudXm2sKSIriCIw=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/8mozoi4dXGwewS6KsOh+MPiliEIUozY3i4SsSAq2Js=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/8mozoi4dXGwewS6KsOh+MPiliEIUozY3i4SsSAq2Js=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..082af5f63 --- /dev/null +++ b/typescript-generator-core/.nondex/8mozoi4dXGwewS6KsOh+MPiliEIUozY3i4SsSAq2Js=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/8mozoi4dXGwewS6KsOh+MPiliEIUozY3i4SsSAq2Js=/config b/typescript-generator-core/.nondex/8mozoi4dXGwewS6KsOh+MPiliEIUozY3i4SsSAq2Js=/config new file mode 100644 index 000000000..72e6b7067 --- /dev/null +++ b/typescript-generator-core/.nondex/8mozoi4dXGwewS6KsOh+MPiliEIUozY3i4SsSAq2Js=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=4414474 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=8mozoi4dXGwewS6KsOh+MPiliEIUozY3i4SsSAq2Js= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/8mozoi4dXGwewS6KsOh+MPiliEIUozY3i4SsSAq2Js=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/8mozoi4dXGwewS6KsOh+MPiliEIUozY3i4SsSAq2Js=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..ef8407480 --- /dev/null +++ b/typescript-generator-core/.nondex/8mozoi4dXGwewS6KsOh+MPiliEIUozY3i4SsSAq2Js=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.242 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.209 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/8mozoi4dXGwewS6KsOh+MPiliEIUozY3i4SsSAq2Js=/failures b/typescript-generator-core/.nondex/8mozoi4dXGwewS6KsOh+MPiliEIUozY3i4SsSAq2Js=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/8mozoi4dXGwewS6KsOh+MPiliEIUozY3i4SsSAq2Js=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/8mozoi4dXGwewS6KsOh+MPiliEIUozY3i4SsSAq2Js=/invocations b/typescript-generator-core/.nondex/8mozoi4dXGwewS6KsOh+MPiliEIUozY3i4SsSAq2Js=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/8mozoi4dXGwewS6KsOh+MPiliEIUozY3i4SsSAq2Js=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/8r3SbvL5kghRDQLyOk+ihvOiz9lCG5n62N7aQmfqWUQ=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/8r3SbvL5kghRDQLyOk+ihvOiz9lCG5n62N7aQmfqWUQ=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..a2eb67d49 --- /dev/null +++ b/typescript-generator-core/.nondex/8r3SbvL5kghRDQLyOk+ihvOiz9lCG5n62N7aQmfqWUQ=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,69 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/8r3SbvL5kghRDQLyOk+ihvOiz9lCG5n62N7aQmfqWUQ=/config b/typescript-generator-core/.nondex/8r3SbvL5kghRDQLyOk+ihvOiz9lCG5n62N7aQmfqWUQ=/config new file mode 100644 index 000000000..b6632249e --- /dev/null +++ b/typescript-generator-core/.nondex/8r3SbvL5kghRDQLyOk+ihvOiz9lCG5n62N7aQmfqWUQ=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=974622 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=8r3SbvL5kghRDQLyOk+ihvOiz9lCG5n62N7aQmfqWUQ= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/8r3SbvL5kghRDQLyOk+ihvOiz9lCG5n62N7aQmfqWUQ=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/8r3SbvL5kghRDQLyOk+ihvOiz9lCG5n62N7aQmfqWUQ=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..d54290cea --- /dev/null +++ b/typescript-generator-core/.nondex/8r3SbvL5kghRDQLyOk+ihvOiz9lCG5n62N7aQmfqWUQ=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.188 sec - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/8r3SbvL5kghRDQLyOk+ihvOiz9lCG5n62N7aQmfqWUQ=/failures b/typescript-generator-core/.nondex/8r3SbvL5kghRDQLyOk+ihvOiz9lCG5n62N7aQmfqWUQ=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/8r3SbvL5kghRDQLyOk+ihvOiz9lCG5n62N7aQmfqWUQ=/invocations b/typescript-generator-core/.nondex/8r3SbvL5kghRDQLyOk+ihvOiz9lCG5n62N7aQmfqWUQ=/invocations new file mode 100644 index 000000000..11ff8fe83 --- /dev/null +++ b/typescript-generator-core/.nondex/8r3SbvL5kghRDQLyOk+ihvOiz9lCG5n62N7aQmfqWUQ=/invocations @@ -0,0 +1,2 @@ +COUNT:61 +SHUFFLES:61 diff --git a/typescript-generator-core/.nondex/955n1FRphAiBo7Zyn7FeZsWqpqtXc2Ld0TKBGmKt0MY=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/955n1FRphAiBo7Zyn7FeZsWqpqtXc2Ld0TKBGmKt0MY=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..f0a3fa413 --- /dev/null +++ b/typescript-generator-core/.nondex/955n1FRphAiBo7Zyn7FeZsWqpqtXc2Ld0TKBGmKt0MY=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/955n1FRphAiBo7Zyn7FeZsWqpqtXc2Ld0TKBGmKt0MY=/config b/typescript-generator-core/.nondex/955n1FRphAiBo7Zyn7FeZsWqpqtXc2Ld0TKBGmKt0MY=/config new file mode 100644 index 000000000..60e41ab77 --- /dev/null +++ b/typescript-generator-core/.nondex/955n1FRphAiBo7Zyn7FeZsWqpqtXc2Ld0TKBGmKt0MY=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=3088266 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=955n1FRphAiBo7Zyn7FeZsWqpqtXc2Ld0TKBGmKt0MY= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/955n1FRphAiBo7Zyn7FeZsWqpqtXc2Ld0TKBGmKt0MY=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/955n1FRphAiBo7Zyn7FeZsWqpqtXc2Ld0TKBGmKt0MY=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..05c56824e --- /dev/null +++ b/typescript-generator-core/.nondex/955n1FRphAiBo7Zyn7FeZsWqpqtXc2Ld0TKBGmKt0MY=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.257 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/955n1FRphAiBo7Zyn7FeZsWqpqtXc2Ld0TKBGmKt0MY=/failures b/typescript-generator-core/.nondex/955n1FRphAiBo7Zyn7FeZsWqpqtXc2Ld0TKBGmKt0MY=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/955n1FRphAiBo7Zyn7FeZsWqpqtXc2Ld0TKBGmKt0MY=/invocations b/typescript-generator-core/.nondex/955n1FRphAiBo7Zyn7FeZsWqpqtXc2Ld0TKBGmKt0MY=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/955n1FRphAiBo7Zyn7FeZsWqpqtXc2Ld0TKBGmKt0MY=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/9eKk6Q66V0ETER5S0BKYonX0DjcWjCPI9P13WSu0m1c=/config b/typescript-generator-core/.nondex/9eKk6Q66V0ETER5S0BKYonX0DjcWjCPI9P13WSu0m1c=/config new file mode 100644 index 000000000..b9a764ea6 --- /dev/null +++ b/typescript-generator-core/.nondex/9eKk6Q66V0ETER5S0BKYonX0DjcWjCPI9P13WSu0m1c=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=974622 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=9eKk6Q66V0ETER5S0BKYonX0DjcWjCPI9P13WSu0m1c= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/9eKk6Q66V0ETER5S0BKYonX0DjcWjCPI9P13WSu0m1c=/failures b/typescript-generator-core/.nondex/9eKk6Q66V0ETER5S0BKYonX0DjcWjCPI9P13WSu0m1c=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/9eKk6Q66V0ETER5S0BKYonX0DjcWjCPI9P13WSu0m1c=/invocations b/typescript-generator-core/.nondex/9eKk6Q66V0ETER5S0BKYonX0DjcWjCPI9P13WSu0m1c=/invocations new file mode 100644 index 000000000..c164bf6ef --- /dev/null +++ b/typescript-generator-core/.nondex/9eKk6Q66V0ETER5S0BKYonX0DjcWjCPI9P13WSu0m1c=/invocations @@ -0,0 +1,2 @@ +COUNT:16 +SHUFFLES:16 diff --git a/typescript-generator-core/.nondex/9iD3YTGq0kBNCcfBbiJuSIskJF9p2EjlyUoimNmJDS0=.run b/typescript-generator-core/.nondex/9iD3YTGq0kBNCcfBbiJuSIskJF9p2EjlyUoimNmJDS0=.run new file mode 100644 index 000000000..13a817cb6 --- /dev/null +++ b/typescript-generator-core/.nondex/9iD3YTGq0kBNCcfBbiJuSIskJF9p2EjlyUoimNmJDS0=.run @@ -0,0 +1,4 @@ +9iD3YTGq0kBNCcfBbiJuSIskJF9p2EjlyUoimNmJDS0= +Padc0IgDGi2ElTtavVheW4dcpFOWPZZ6LI7M6pBQXvw= +1qoQMpVZcK1Hf7p7hlYGQrNefCogHGHWGnM4gjjhZ8w= +clean_NvlEOT0SzW+8Ulpm1q6VElBrTfdPEwJi3TL+HZDuc= diff --git a/typescript-generator-core/.nondex/9iD3YTGq0kBNCcfBbiJuSIskJF9p2EjlyUoimNmJDS0=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/9iD3YTGq0kBNCcfBbiJuSIskJF9p2EjlyUoimNmJDS0=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..aa359ca96 --- /dev/null +++ b/typescript-generator-core/.nondex/9iD3YTGq0kBNCcfBbiJuSIskJF9p2EjlyUoimNmJDS0=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,132 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:210) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/9iD3YTGq0kBNCcfBbiJuSIskJF9p2EjlyUoimNmJDS0=/config b/typescript-generator-core/.nondex/9iD3YTGq0kBNCcfBbiJuSIskJF9p2EjlyUoimNmJDS0=/config new file mode 100644 index 000000000..05fbfec89 --- /dev/null +++ b/typescript-generator-core/.nondex/9iD3YTGq0kBNCcfBbiJuSIskJF9p2EjlyUoimNmJDS0=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=933178 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=9iD3YTGq0kBNCcfBbiJuSIskJF9p2EjlyUoimNmJDS0= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/9iD3YTGq0kBNCcfBbiJuSIskJF9p2EjlyUoimNmJDS0=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/9iD3YTGq0kBNCcfBbiJuSIskJF9p2EjlyUoimNmJDS0=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..8d355d92b --- /dev/null +++ b/typescript-generator-core/.nondex/9iD3YTGq0kBNCcfBbiJuSIskJF9p2EjlyUoimNmJDS0=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,56 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.167 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.14 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:210) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/9iD3YTGq0kBNCcfBbiJuSIskJF9p2EjlyUoimNmJDS0=/failures b/typescript-generator-core/.nondex/9iD3YTGq0kBNCcfBbiJuSIskJF9p2EjlyUoimNmJDS0=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/9iD3YTGq0kBNCcfBbiJuSIskJF9p2EjlyUoimNmJDS0=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/9iD3YTGq0kBNCcfBbiJuSIskJF9p2EjlyUoimNmJDS0=/invocations b/typescript-generator-core/.nondex/9iD3YTGq0kBNCcfBbiJuSIskJF9p2EjlyUoimNmJDS0=/invocations new file mode 100644 index 000000000..7ad7d1da8 --- /dev/null +++ b/typescript-generator-core/.nondex/9iD3YTGq0kBNCcfBbiJuSIskJF9p2EjlyUoimNmJDS0=/invocations @@ -0,0 +1,2 @@ +COUNT:67 +SHUFFLES:67 diff --git a/typescript-generator-core/.nondex/9iD3YTGq0kBNCcfBbiJuSIskJF9p2EjlyUoimNmJDS0=/test_results.html b/typescript-generator-core/.nondex/9iD3YTGq0kBNCcfBbiJuSIskJF9p2EjlyUoimNmJDS0=/test_results.html new file mode 100644 index 000000000..cc9aae726 --- /dev/null +++ b/typescript-generator-core/.nondex/9iD3YTGq0kBNCcfBbiJuSIskJF9p2EjlyUoimNmJDS0=/test_results.html @@ -0,0 +1 @@ +Test Results
Test Name9331789746221016066
cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces
\ No newline at end of file diff --git a/typescript-generator-core/.nondex/9mx7dcyQ3hfdNj0OTm7CWYtO8EzA089D4SqWo540efc=/config b/typescript-generator-core/.nondex/9mx7dcyQ3hfdNj0OTm7CWYtO8EzA089D4SqWo540efc=/config new file mode 100644 index 000000000..59c297206 --- /dev/null +++ b/typescript-generator-core/.nondex/9mx7dcyQ3hfdNj0OTm7CWYtO8EzA089D4SqWo540efc=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=974622 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=9mx7dcyQ3hfdNj0OTm7CWYtO8EzA089D4SqWo540efc= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/9mx7dcyQ3hfdNj0OTm7CWYtO8EzA089D4SqWo540efc=/failures b/typescript-generator-core/.nondex/9mx7dcyQ3hfdNj0OTm7CWYtO8EzA089D4SqWo540efc=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/9mx7dcyQ3hfdNj0OTm7CWYtO8EzA089D4SqWo540efc=/invocations b/typescript-generator-core/.nondex/9mx7dcyQ3hfdNj0OTm7CWYtO8EzA089D4SqWo540efc=/invocations new file mode 100644 index 000000000..c164bf6ef --- /dev/null +++ b/typescript-generator-core/.nondex/9mx7dcyQ3hfdNj0OTm7CWYtO8EzA089D4SqWo540efc=/invocations @@ -0,0 +1,2 @@ +COUNT:16 +SHUFFLES:16 diff --git a/typescript-generator-core/.nondex/A9owVc6ItAdDqyNI8JZCtM2++qDPiaOF9k6n+hXFco=/config b/typescript-generator-core/.nondex/A9owVc6ItAdDqyNI8JZCtM2++qDPiaOF9k6n+hXFco=/config new file mode 100644 index 000000000..8bcff0da2 --- /dev/null +++ b/typescript-generator-core/.nondex/A9owVc6ItAdDqyNI8JZCtM2++qDPiaOF9k6n+hXFco=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1057510 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=A9owVc6ItAdDqyNI8JZCtM2++qDPiaOF9k6n+hXFco= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/A9owVc6ItAdDqyNI8JZCtM2++qDPiaOF9k6n+hXFco=/failures b/typescript-generator-core/.nondex/A9owVc6ItAdDqyNI8JZCtM2++qDPiaOF9k6n+hXFco=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/A9owVc6ItAdDqyNI8JZCtM2++qDPiaOF9k6n+hXFco=/invocations b/typescript-generator-core/.nondex/A9owVc6ItAdDqyNI8JZCtM2++qDPiaOF9k6n+hXFco=/invocations new file mode 100644 index 000000000..c164bf6ef --- /dev/null +++ b/typescript-generator-core/.nondex/A9owVc6ItAdDqyNI8JZCtM2++qDPiaOF9k6n+hXFco=/invocations @@ -0,0 +1,2 @@ +COUNT:16 +SHUFFLES:16 diff --git a/typescript-generator-core/.nondex/Aba3AvYYOWwf0sm5A0G8hK3XLqo3oSGtHtc3vQLs=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/Aba3AvYYOWwf0sm5A0G8hK3XLqo3oSGtHtc3vQLs=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..410987255 --- /dev/null +++ b/typescript-generator-core/.nondex/Aba3AvYYOWwf0sm5A0G8hK3XLqo3oSGtHtc3vQLs=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/Aba3AvYYOWwf0sm5A0G8hK3XLqo3oSGtHtc3vQLs=/config b/typescript-generator-core/.nondex/Aba3AvYYOWwf0sm5A0G8hK3XLqo3oSGtHtc3vQLs=/config new file mode 100644 index 000000000..6f03e721a --- /dev/null +++ b/typescript-generator-core/.nondex/Aba3AvYYOWwf0sm5A0G8hK3XLqo3oSGtHtc3vQLs=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=4746026 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=Aba3AvYYOWwf0sm5A0G8hK3XLqo3oSGtHtc3vQLs= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/Aba3AvYYOWwf0sm5A0G8hK3XLqo3oSGtHtc3vQLs=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/Aba3AvYYOWwf0sm5A0G8hK3XLqo3oSGtHtc3vQLs=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..ec9ee3247 --- /dev/null +++ b/typescript-generator-core/.nondex/Aba3AvYYOWwf0sm5A0G8hK3XLqo3oSGtHtc3vQLs=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.248 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/Aba3AvYYOWwf0sm5A0G8hK3XLqo3oSGtHtc3vQLs=/failures b/typescript-generator-core/.nondex/Aba3AvYYOWwf0sm5A0G8hK3XLqo3oSGtHtc3vQLs=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/Aba3AvYYOWwf0sm5A0G8hK3XLqo3oSGtHtc3vQLs=/invocations b/typescript-generator-core/.nondex/Aba3AvYYOWwf0sm5A0G8hK3XLqo3oSGtHtc3vQLs=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/Aba3AvYYOWwf0sm5A0G8hK3XLqo3oSGtHtc3vQLs=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/AeTDzd1CDmITl0M6oNHazMmMnvGf55QyqMdVt+35n+0=.run b/typescript-generator-core/.nondex/AeTDzd1CDmITl0M6oNHazMmMnvGf55QyqMdVt+35n+0=.run new file mode 100644 index 000000000..78c2a2c5e --- /dev/null +++ b/typescript-generator-core/.nondex/AeTDzd1CDmITl0M6oNHazMmMnvGf55QyqMdVt+35n+0=.run @@ -0,0 +1,101 @@ +AeTDzd1CDmITl0M6oNHazMmMnvGf55QyqMdVt+35n+0= +g7Wr39pm3CNj+Bj7LkTpWqLmNe6PAb2vBGAEQH4sAxo= +j6kwc6DVB1GU8gQbhPVHDr47qw62eoCzXSu41fDe+f0= +8B1yJFEk9jZKVLuH+JP8xr0wglLuFcXYoubh6guPMsQ= +8K8KzaDhtOvUOelG+yWTCzTSrv6dHHIn0vBUvL4hw= +yDBxqDeCRNFI+IWhRH8QliRjIEVVcyJaMtCYK+vo8Q= +W3euA0U4EAAFzL2PmVz2aY3EM6T6Hagcoud6eVSHnk= +TSYncvAVOglvEwmVc3pLt8o4yt4XO7xzEMW7IqQR6pM= +fniZj6NpiZdaNJduAwVqZmrX4rl1vzbaHFSBYOwnYA= +WBmteo4Do1ihDGkDphcmRR+rASNr2vgQNKl7bMMjbdY= +rjKVSsCKFaBahSFxiOb43ggGws0QCvOPmDTnBJNDs= +t9bZkram7RMlOYrOYM722fLSFwLPyynX12cXkXvvKI= +XDUUcKXOfgni9NZsKW7loYYLsksvQpVW7Tzmi7VQF1s= +GHKlkXhUdCuEVBx9Z4UcosUI38UwxLdJbleGPoAZ8w0= +cX31VTooHKi8dognq+gFGAkt0XmCriMdMLPBVbmHCo= +sgkStn4LXRSScWQmILsCyvkT0VR+5+FGNOSWoMggcu8= +SPZEOoEQwvhdkU4YnZoi7EkXsgHMrvYydNoy+nNi2dY= +1GHfCkjDMIoCrPZt2ILQWn1AgxjIuFuO90JyuJN880= +8FN19nsAcCs60eXzBIDDwLKp1KvBDc4oqUP110bI4= +EtdBtX7TVVvyRSfD3+R90NcRrD81FdpaKTIomgACyE8= +o0X8pAzfBPLHp3ezv0WUuD+WMrRaJeX1utLXBgmTNs= +3vet9cPtEGshpkW+aaxCJHs97C0Wo22yCvk3ObKOo= +5trHt9OHFBJ6w4Y9xiskZWwwnos5A4Jyolz0s5gSjA= +QDjjU5JyPn90jZfWdhX+UCzUeoTuWW8AmuUn5vNajgo= +35+v7gCBPk3DtUwnQ8fe6KX1z0si+NYUxys6wodjsLU= +5BsPbNZO+n87uZ+XYLPP4keLGN5yLeXxt5vDP4YPM4= +kz3ssDk0E677q6uZqAjxRdV4YwYGux3mTB32fwmZtgU= +qowbSmdtOtM8yu7La9U8+MA4FqjTAn3g9GI1VcWDb0= +kLbxLZL1eZ0oh7S00lXmvOZQhSy2KGPZSAksjv9fqE= ++yAUA9TT+GGdzIQVioGw+2qRl0m0UwdnD575yG14= +jnbYNO1HWorJSaEJwcez2CDcGDW4Xf8iM5yaxG7kw= +lhkLa52rcKWOdQ3jqQOTq+NORykJ3Dd1ew6fJzq8IvE= +vhe2I0u7V9IPzzUpkbAx+JUstGvNZ+FkrCb4b1XrNI= +Je6CqdhP9sDX1PH3Qdj4FfDgNtZrABZiQ9W7xBuczU= +GU1JcEIcyZljL3kchfIiZf7xSSYlDhOOfEDZZYLO+I= +qohQaQPOyEgveYTve5uiaRL36u62rRh7kfuRj4zBxM= +5VGgB78Lgn+s+1MQk9phLAcUSAVarkGdNn90bdXgeI= +RhJi70hg02uLPxJ+PFyzVL4kt+iZj2O2e+QX3FhZf9c= +YX6zNM3Sn9gHo2i5p+hWzyldNaQc+KchqY780Udb2E= +Zjg5SqzB3sYeaZXa74Z7kZTUBqqvFnrJ4C290Nr9ajQ= +oa+7V6J44lBL67Tbec1lPRGpqG7wUgLJjyVh8mlTtA= +Zp6A4hPfZOyw+uq5CpoFwuigrMDw6cmgvoqYYijohM= +65GUtakmV+w1qizUsFw4DfGOUBGMk4P5iN9ymjH98= +kSwJKtMeRrzNjRCEYb3eNrBasaA3gWZBEp1ku3AFnk8= +M191iQ2ZcBkAGwURZRixPSPmVb+Am3LAtkEwxozKzY= +mIujf6f84vuNmWpLnW0yu71VjkQ8RlgUtLZf1pby60I= +VLepjReKAxDbcBq5jfCCBN8zjJ9OJcJ28mq3HJ01LHA= +5eHj8KgbGdG+I8toHyMwHVlny5krmoOhthWWiToQOgA= +B3vco84ge0XHSvPPS86B30rRd8HYxTmAZCxbAML4= +bI3uvT5p0UsjZpdXznS5jzg84c7oaJP0Xa5duLLgaY= +ld9CFeq7llByjs60VLcbSHcfQaZdK8NFr4cN6Kjnc= +zG4EHfI1oF4KsSkVHaOOW0f7pqoxpIJhbXgfpNskTs= +955n1FRphAiBo7Zyn7FeZsWqpqtXc2Ld0TKBGmKt0MY= +hv0GrKvkMxBAxtJzvULcQgekx+QQsQiLkTBKUa7QEg= +ZGU8Sm3S8xGsj451Df77VgRoTsMbMyOJPt1lNNseFQ= +MxOcC++geg9Vp99YwGC8bHIFQKlomiV5m4WDCIascq8= +mTscHKE8BTWohL0mNtaAyPC+ljpVYabcyxsnHaBnzE= +eiKdzh5r0Ok2EzblscI2mCKjSOiLBDDm5LbisUOeQwM= +l4L1eCtqjTQY0u1DzpDYE1bK+x1A3eDlmihYXmZ7eNc= +NDoKA3gEXnGIsEu8bFZvv67ay4E4QTJHOYlyfobHEDE= +LKM7Uj0OdX5f+qM8EmS8j47+NEAE0flJvoPLR72pD8= +0EBlSJdryUbO77gIRxlVPFONnwwwhl2AM+94fIwrE= +4netE3uan0B1s4a4oT30ceTv6kLFCSWEBccMh22cms= +fedRkVg7ghHeaQfD4DMgXq0GWnpxUvamZvm17UevHI= +wCfa4cAjZpJslhSIdLr1wpbTDhAujoGdFFjNhVPfY= +262WbjcUDSN8SChUg1254qlcqapLMjYTOeoQmbS3D9c= +Kughq47STNT9dSrSs6oj0a8Y2rW3JyCB3KSXxkoEI84= +stH7eR2Cxd2XWWLAZr4rxqQY+AscZ30paNfIIFRk5w= +7ICuaQ9RkoK5qygRTLTU1JWXQofYq0pYK+UldlDb9w= +R+x465bloZpgxZGJBFAd2r4NLvcqNZ7guIG3tGIcPQ= +ZBLoDg3n09Df9zmV9rXrWtZzIlygXGNiuSkyyobBBY= +5Ur+E2mMywI7alSvcstjzSqTAkVsV9vUf8W6p3zNkY8= +fIsj3S8dqFnT+j2YDlEobQxsUPwVYnwGGu8WiQM1Stw= +LnLjln762rciAq70CqeT3v1K4AoLic80CSQMuKruDik= +zVbeC0GqBbLpNC4DaaBXbi1FoyMkNtliiWlZ1fIpVHg= +LUFh8lm3RhUH+xMs4lVEW30xe4xWHavuZLn8VKktjhk= +eIoV3U0P175RLgKpe+w+QLWtEs73dpmZt7hGuP1+NI= +3RVW5DebHklgMEW9xPlql9q1WUyA2EPB1WdRzsg4dyw= +tgXxYFZsKPgy0cLRDmVBsoZG0bW4hJMzZ8YrylvxhM= +PEGbcLDf+ylpR3wWsMauML3zYBpMGxU4AUYGAz76rf8= +m0ErkZirxP0fRuJSS8twjZN1jwB6FRiu9Nj+aW8Cv38= +cjz01dCsgsBItuwBcWcCKLfamVsEeopZJWb81yUUEmw= +Zpujzf4XwNeSYbPHSYqrbVZjvwRhJqUqh1nQWL2ijtk= +8Fq4QzCNczLlVLbExsYRpOnh9L2HIpC5vItCYF1ndg= +8mozoi4dXGwewS6KsOh+MPiliEIUozY3i4SsSAq2Js= +4dY0VkajY4d55ePTEc3SxKNKSFRQu9K5s1Wrr2IIVC4= +I8Qj0Wzcl3lgLx8gPE280SXsSKFF1LTQqeTvHSkZMeA= +skO6l3jHNj2yM61NBW3ojBtS9Cg7sDpBpDqKlIv0M= +4pFgnLLI5xkmcvKT7RSP6Poqq5UOFmLi6eLZIriUhl8= +xYKFI4WetJWxtJP0TaiT2zBTqaAjc+WbJvN40u+VjBc= +0gjIslGtQq35hFRgCqZK89yjDdrZWVkkEmhl8Oci7xs= +zUL+vDwu8TOwwn50UJpbIZDUNJ5PXGYAyoLkT7ekBho= +UkMMeWwOhUtfcyGxkelUydHIXzNgWArHYiRaUDfiyI= +TWahiDh0QC13ML1bfp6u+ptTeC5qHDh2RViJrG0kFfQ= +bBT5FnGjo6ilWpSwnE4WLB9nks5lrM1Fvfom0KIokvY= +uP+gJXw5iCTnnb03M3KBTRYoBS55AjR5uTB76nkT2TA= +kYFQGEsVcS6Qa70HRoPpkHXmvaq7aaJuOrmOeQ4jnY= +KoC8uNg+o+Dcs6Gvyb7+8sZDlCmPAoOKquNaoPFPkU= +n6st68nqRSKeqOQ+7xqDvMz2k3+yAcpiIETdA2mOTc= +VQ7nDEx4qplQe6edQOkSHjSNrJVWfil+Jufb52BSBs= +clean_0G2qSfiUGndKmJTJSkbyJ1rXC2ty5gw9NGDLVYCA+BA= diff --git a/typescript-generator-core/.nondex/AeTDzd1CDmITl0M6oNHazMmMnvGf55QyqMdVt+35n+0=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/AeTDzd1CDmITl0M6oNHazMmMnvGf55QyqMdVt+35n+0=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..72623c22e --- /dev/null +++ b/typescript-generator-core/.nondex/AeTDzd1CDmITl0M6oNHazMmMnvGf55QyqMdVt+35n+0=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/AeTDzd1CDmITl0M6oNHazMmMnvGf55QyqMdVt+35n+0=/config b/typescript-generator-core/.nondex/AeTDzd1CDmITl0M6oNHazMmMnvGf55QyqMdVt+35n+0=/config new file mode 100644 index 000000000..71973ca82 --- /dev/null +++ b/typescript-generator-core/.nondex/AeTDzd1CDmITl0M6oNHazMmMnvGf55QyqMdVt+35n+0=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=933178 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=AeTDzd1CDmITl0M6oNHazMmMnvGf55QyqMdVt+35n+0= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/AeTDzd1CDmITl0M6oNHazMmMnvGf55QyqMdVt+35n+0=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/AeTDzd1CDmITl0M6oNHazMmMnvGf55QyqMdVt+35n+0=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..763fb2a90 --- /dev/null +++ b/typescript-generator-core/.nondex/AeTDzd1CDmITl0M6oNHazMmMnvGf55QyqMdVt+35n+0=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.281 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/AeTDzd1CDmITl0M6oNHazMmMnvGf55QyqMdVt+35n+0=/failures b/typescript-generator-core/.nondex/AeTDzd1CDmITl0M6oNHazMmMnvGf55QyqMdVt+35n+0=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/AeTDzd1CDmITl0M6oNHazMmMnvGf55QyqMdVt+35n+0=/invocations b/typescript-generator-core/.nondex/AeTDzd1CDmITl0M6oNHazMmMnvGf55QyqMdVt+35n+0=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/AeTDzd1CDmITl0M6oNHazMmMnvGf55QyqMdVt+35n+0=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/AeTDzd1CDmITl0M6oNHazMmMnvGf55QyqMdVt+35n+0=/test_results.html b/typescript-generator-core/.nondex/AeTDzd1CDmITl0M6oNHazMmMnvGf55QyqMdVt+35n+0=/test_results.html new file mode 100644 index 000000000..c1ab2c3a2 --- /dev/null +++ b/typescript-generator-core/.nondex/AeTDzd1CDmITl0M6oNHazMmMnvGf55QyqMdVt+35n+0=/test_results.html @@ -0,0 +1 @@ +Test Results
Test Name93317897462210160661057510109895411403981181842122328612647301306174134761813890621430506147195015133941554838159628216377261679170172061417620581803502184494618863901927834196927820107222052166209361021350542176498221794222593862300830234227423837182425162246660625080502549494259093826323822673826271527027567142798158283960228810462922490296393430053783046822308826631297103171154321259832540423295486333693033783743419818346126235027063544150358559436270383668482370992637513703792814383425838757023917146395859040000344041478408292241243664165810420725442486984290142433158643730304414474445591844973624538806458025046216944663138470458247460264787470482891448703584911802495324649946905036134
cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces
\ No newline at end of file diff --git a/typescript-generator-core/.nondex/ArmFzuXEJnaiQrX43FkYWMX23sBHnVKXbIDQyxA0lo=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/ArmFzuXEJnaiQrX43FkYWMX23sBHnVKXbIDQyxA0lo=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..97ef8ef32 --- /dev/null +++ b/typescript-generator-core/.nondex/ArmFzuXEJnaiQrX43FkYWMX23sBHnVKXbIDQyxA0lo=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,553 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:< +interface I[NamedQuadrilateral3 extends INamedShape3, IQuadrilateral3 { + kind: "rectangle"; +} + +interface INamedShape3 extends IShape3 { + kind: "circle" | "rectangle"; + name: string; +} + +interface IShape3 { + kind: "circle" | "rectangle"; +} + +interface ICircle3 extends INamedShape3 { + kind: "circle"; +} + +interface IRectangle3 extends INamedQuadrilateral3 { + kind: "rectangle"]; +} + +interface IQuad...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithOverlappingInterfaces(TaggedUnionsTest.java:289) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$ICircle3' used in 'IShape3.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$INamedQuadrilateral3' used in 'IRectangle3.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$INamedShape3' used in 'ICircle3.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral3' used in 'INamedQuadrilateral3.' +]]> + + + but was:<...ngle"; +} + +interface [IQuadrilateral2 extends IShape2 { + kind: "square" | "rectangle"; +} + +interface CSquare2 extends IQuadrilateral2 { + kind: "square"; + size: number; +} + +interface CRectangle2 extends IQuadrilateral2 { + kind: "rectangle"; + height: number; + width: number; +} + +interface CCircle2 extends IShape2 { + kind: "circle"; + radius: number]; +} + +type IShape2Uni...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:253) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + + + + but was:< +interface [Circle extends Shape { + kind: "circle"; + radius: number; +} + +interface Square extends Shape { + kind: "square"; + size: number; +} + +interface Shape { + kind: "square" | "rectangle" | "circle"; +} + +interface Geometry { + shapes: Shape[]; +} + +interface Rectangle extends Shape { + kind: "rectangle"; + width: number; + height]: number; +} +> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsDisabled(TaggedUnionsTest.java:324) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$Rectangle' used in 'Shape.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$Circle' used in 'Shape.' +]]> + + + + but was:< +interface Diamond[B1 extends DiamondA { + kind: "b1" | "c"; + b1: string; +} + +interface DiamondA { + kind: "b1" | "c" | "b2"; + a: string; +} + +interface DiamondC extends DiamondB1, DiamondB2 { + kind: "c"; + c: string; +} + +interface DiamondB2 extends DiamondA { + kind: "b2" | "c"; + b2]: string; +} + +type Di...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithDiamond(TaggedUnionsTest.java:356) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$DiamondB2' used in 'DiamondA.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$DiamondC' used in 'DiamondA.' +]]> + + + + + but was:< +interface [Shape { + kind: "square" | "rectangle" | "circle"; +} + +interface Circle extends Shape { + kind: "circle"; + radius: number; +} + +interface Square extends Shape { + kind: "square"; + size: number; +} + +interface Geometry { + shapes: ShapeUnion[]; +} + +interface Rectangle extends Shape { + kind: "rectangle"; + height: number; + width]: number; +} + +type Sh...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnions(TaggedUnionsTest.java:217) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$Rectangle' used in 'Shape.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$Circle' used in 'Shape.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/ArmFzuXEJnaiQrX43FkYWMX23sBHnVKXbIDQyxA0lo=/config b/typescript-generator-core/.nondex/ArmFzuXEJnaiQrX43FkYWMX23sBHnVKXbIDQyxA0lo=/config new file mode 100644 index 000000000..4c3db7b2d --- /dev/null +++ b/typescript-generator-core/.nondex/ArmFzuXEJnaiQrX43FkYWMX23sBHnVKXbIDQyxA0lo=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1016066 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=ArmFzuXEJnaiQrX43FkYWMX23sBHnVKXbIDQyxA0lo= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/ArmFzuXEJnaiQrX43FkYWMX23sBHnVKXbIDQyxA0lo=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/ArmFzuXEJnaiQrX43FkYWMX23sBHnVKXbIDQyxA0lo=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..ac3a38bee --- /dev/null +++ b/typescript-generator-core/.nondex/ArmFzuXEJnaiQrX43FkYWMX23sBHnVKXbIDQyxA0lo=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,444 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 10, Failures: 5, Errors: 0, Skipped: 0, Time elapsed: 0.35 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithOverlappingInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.205 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:< +interface I[Shape3 { + kind: "circle" | "rectangle"; +} + +interface IRectangle3 extends INamedQuadrilateral3 { + kind: "rectangle"; +} + +interface ICircle3 extends INamedShape3 { + kind: "circle"; +} + +interface INamedQuadrilateral3 extends INamedShape3, IQuadrilateral3 { + kind: "rectangle"; +} + +interface INamedShape3 extends IShape3 { + kind: "circle" | "rectangle"; + name: string]; +} + +interface IQuad...> but was:< +interface I[NamedQuadrilateral3 extends INamedShape3, IQuadrilateral3 { + kind: "rectangle"; +} + +interface INamedShape3 extends IShape3 { + kind: "circle" | "rectangle"; + name: string; +} + +interface IShape3 { + kind: "circle" | "rectangle"; +} + +interface ICircle3 extends INamedShape3 { + kind: "circle"; +} + +interface IRectangle3 extends INamedQuadrilateral3 { + kind: "rectangle"]; +} + +interface IQuad...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithOverlappingInterfaces(TaggedUnionsTest.java:289) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.032 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...ngle"; +} + +interface [CSquare2 extends IQuadrilateral2 { + kind: "square"; + size: number; +} + +interface CRectangle2 extends IQuadrilateral2 { + kind: "rectangle"; + width: number; + height: number; +} + +interface CCircle2 extends IShape2 { + kind: "circle"; + radius: number; +} + +interface IQuadrilateral2 extends IShape2 { + kind: "square" | "rectangle"]; +} + +type IShape2Uni...> but was:<...ngle"; +} + +interface [IQuadrilateral2 extends IShape2 { + kind: "square" | "rectangle"; +} + +interface CSquare2 extends IQuadrilateral2 { + kind: "square"; + size: number; +} + +interface CRectangle2 extends IQuadrilateral2 { + kind: "rectangle"; + height: number; + width: number; +} + +interface CCircle2 extends IShape2 { + kind: "circle"; + radius: number]; +} + +type IShape2Uni...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:253) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + +testTaggedUnionsDisabled(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.007 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:< +interface [Geometry { + shapes: Shape[]; +} + +interface Shape { + kind: "square" | "rectangle" | "circle"; +} + +interface Square extends Shape { + kind: "square"; + size: number; +} + +interface Rectangle extends Shape { + kind: "rectangle"; + width: number; + height: number; +} + +interface Circle extends Shape { + kind: "circle"; + radius]: number; +} +> but was:< +interface [Circle extends Shape { + kind: "circle"; + radius: number; +} + +interface Square extends Shape { + kind: "square"; + size: number; +} + +interface Shape { + kind: "square" | "rectangle" | "circle"; +} + +interface Geometry { + shapes: Shape[]; +} + +interface Rectangle extends Shape { + kind: "rectangle"; + width: number; + height]: number; +} +> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsDisabled(TaggedUnionsTest.java:324) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + +testTaggedUnionsWithDiamond(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:< +interface Diamond[A { + kind: "b1" | "c" | "b2"; + a: string; +} + +interface DiamondB1 extends DiamondA { + kind: "b1" | "c"; + b1: string; +} + +interface DiamondB2 extends DiamondA { + kind: "b2" | "c"; + b2: string; +} + +interface DiamondC extends DiamondB1, DiamondB2 { + kind: "c"; + c]: string; +} + +type Di...> but was:< +interface Diamond[B1 extends DiamondA { + kind: "b1" | "c"; + b1: string; +} + +interface DiamondA { + kind: "b1" | "c" | "b2"; + a: string; +} + +interface DiamondC extends DiamondB1, DiamondB2 { + kind: "c"; + c: string; +} + +interface DiamondB2 extends DiamondA { + kind: "b2" | "c"; + b2]: string; +} + +type Di...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithDiamond(TaggedUnionsTest.java:356) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + +testTaggedUnions(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.008 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:< +interface [Geometry { + shapes: ShapeUnion[]; +} + +interface Shape { + kind: "square" | "rectangle" | "circle"; +} + +interface Square extends Shape { + kind: "square"; + size: number; +} + +interface Rectangle extends Shape { + kind: "rectangle"; + width: number; + height: number; +} + +interface Circle extends Shape { + kind: "circle"; + radius]: number; +} + +type Sh...> but was:< +interface [Shape { + kind: "square" | "rectangle" | "circle"; +} + +interface Circle extends Shape { + kind: "circle"; + radius: number; +} + +interface Square extends Shape { + kind: "square"; + size: number; +} + +interface Geometry { + shapes: ShapeUnion[]; +} + +interface Rectangle extends Shape { + kind: "rectangle"; + height: number; + width]: number; +} + +type Sh...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnions(TaggedUnionsTest.java:217) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/ArmFzuXEJnaiQrX43FkYWMX23sBHnVKXbIDQyxA0lo=/failures b/typescript-generator-core/.nondex/ArmFzuXEJnaiQrX43FkYWMX23sBHnVKXbIDQyxA0lo=/failures new file mode 100644 index 000000000..99d22be1b --- /dev/null +++ b/typescript-generator-core/.nondex/ArmFzuXEJnaiQrX43FkYWMX23sBHnVKXbIDQyxA0lo=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithDiamond diff --git a/typescript-generator-core/.nondex/ArmFzuXEJnaiQrX43FkYWMX23sBHnVKXbIDQyxA0lo=/invocations b/typescript-generator-core/.nondex/ArmFzuXEJnaiQrX43FkYWMX23sBHnVKXbIDQyxA0lo=/invocations new file mode 100644 index 000000000..8e8192df3 --- /dev/null +++ b/typescript-generator-core/.nondex/ArmFzuXEJnaiQrX43FkYWMX23sBHnVKXbIDQyxA0lo=/invocations @@ -0,0 +1,2 @@ +COUNT:178 +SHUFFLES:178 diff --git a/typescript-generator-core/.nondex/B3vco84ge0XHSvPPS86B30rRd8HYxTmAZCxbAML4=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/B3vco84ge0XHSvPPS86B30rRd8HYxTmAZCxbAML4=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..e09ae142b --- /dev/null +++ b/typescript-generator-core/.nondex/B3vco84ge0XHSvPPS86B30rRd8HYxTmAZCxbAML4=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/B3vco84ge0XHSvPPS86B30rRd8HYxTmAZCxbAML4=/config b/typescript-generator-core/.nondex/B3vco84ge0XHSvPPS86B30rRd8HYxTmAZCxbAML4=/config new file mode 100644 index 000000000..c7412e657 --- /dev/null +++ b/typescript-generator-core/.nondex/B3vco84ge0XHSvPPS86B30rRd8HYxTmAZCxbAML4=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=2922490 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=B3vco84ge0XHSvPPS86B30rRd8HYxTmAZCxbAML4= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/B3vco84ge0XHSvPPS86B30rRd8HYxTmAZCxbAML4=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/B3vco84ge0XHSvPPS86B30rRd8HYxTmAZCxbAML4=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..2c96fecb6 --- /dev/null +++ b/typescript-generator-core/.nondex/B3vco84ge0XHSvPPS86B30rRd8HYxTmAZCxbAML4=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.214 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.194 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/B3vco84ge0XHSvPPS86B30rRd8HYxTmAZCxbAML4=/failures b/typescript-generator-core/.nondex/B3vco84ge0XHSvPPS86B30rRd8HYxTmAZCxbAML4=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/B3vco84ge0XHSvPPS86B30rRd8HYxTmAZCxbAML4=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/B3vco84ge0XHSvPPS86B30rRd8HYxTmAZCxbAML4=/invocations b/typescript-generator-core/.nondex/B3vco84ge0XHSvPPS86B30rRd8HYxTmAZCxbAML4=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/B3vco84ge0XHSvPPS86B30rRd8HYxTmAZCxbAML4=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/BOb1PiPcagkjM2zzp3wJU9h+QrYzuRvc3pRB5rArK0=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/BOb1PiPcagkjM2zzp3wJU9h+QrYzuRvc3pRB5rArK0=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..cd14533f6 --- /dev/null +++ b/typescript-generator-core/.nondex/BOb1PiPcagkjM2zzp3wJU9h+QrYzuRvc3pRB5rArK0=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,92 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:140) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/BOb1PiPcagkjM2zzp3wJU9h+QrYzuRvc3pRB5rArK0=/config b/typescript-generator-core/.nondex/BOb1PiPcagkjM2zzp3wJU9h+QrYzuRvc3pRB5rArK0=/config new file mode 100644 index 000000000..b9de05f02 --- /dev/null +++ b/typescript-generator-core/.nondex/BOb1PiPcagkjM2zzp3wJU9h+QrYzuRvc3pRB5rArK0=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1223286 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=BOb1PiPcagkjM2zzp3wJU9h+QrYzuRvc3pRB5rArK0= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/BOb1PiPcagkjM2zzp3wJU9h+QrYzuRvc3pRB5rArK0=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/BOb1PiPcagkjM2zzp3wJU9h+QrYzuRvc3pRB5rArK0=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..4c07fdbba --- /dev/null +++ b/typescript-generator-core/.nondex/BOb1PiPcagkjM2zzp3wJU9h+QrYzuRvc3pRB5rArK0=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,20 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.14 sec <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.14 sec <<< FAILURE! +org.junit.ComparisonFailure: expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:140) + diff --git a/typescript-generator-core/.nondex/BOb1PiPcagkjM2zzp3wJU9h+QrYzuRvc3pRB5rArK0=/failures b/typescript-generator-core/.nondex/BOb1PiPcagkjM2zzp3wJU9h+QrYzuRvc3pRB5rArK0=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/BOb1PiPcagkjM2zzp3wJU9h+QrYzuRvc3pRB5rArK0=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/BOb1PiPcagkjM2zzp3wJU9h+QrYzuRvc3pRB5rArK0=/invocations b/typescript-generator-core/.nondex/BOb1PiPcagkjM2zzp3wJU9h+QrYzuRvc3pRB5rArK0=/invocations new file mode 100644 index 000000000..11ff8fe83 --- /dev/null +++ b/typescript-generator-core/.nondex/BOb1PiPcagkjM2zzp3wJU9h+QrYzuRvc3pRB5rArK0=/invocations @@ -0,0 +1,2 @@ +COUNT:61 +SHUFFLES:61 diff --git a/typescript-generator-core/.nondex/BepmogpPeY6Rhwktn6YmiDlaJGz51V80PQdmu3J4Q=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/BepmogpPeY6Rhwktn6YmiDlaJGz51V80PQdmu3J4Q=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..6d3d06570 --- /dev/null +++ b/typescript-generator-core/.nondex/BepmogpPeY6Rhwktn6YmiDlaJGz51V80PQdmu3J4Q=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/BepmogpPeY6Rhwktn6YmiDlaJGz51V80PQdmu3J4Q=/config b/typescript-generator-core/.nondex/BepmogpPeY6Rhwktn6YmiDlaJGz51V80PQdmu3J4Q=/config new file mode 100644 index 000000000..2c226245f --- /dev/null +++ b/typescript-generator-core/.nondex/BepmogpPeY6Rhwktn6YmiDlaJGz51V80PQdmu3J4Q=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=2922490 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=BepmogpPeY6Rhwktn6YmiDlaJGz51V80PQdmu3J4Q= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/BepmogpPeY6Rhwktn6YmiDlaJGz51V80PQdmu3J4Q=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/BepmogpPeY6Rhwktn6YmiDlaJGz51V80PQdmu3J4Q=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..94284e197 --- /dev/null +++ b/typescript-generator-core/.nondex/BepmogpPeY6Rhwktn6YmiDlaJGz51V80PQdmu3J4Q=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.257 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.257 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/BepmogpPeY6Rhwktn6YmiDlaJGz51V80PQdmu3J4Q=/failures b/typescript-generator-core/.nondex/BepmogpPeY6Rhwktn6YmiDlaJGz51V80PQdmu3J4Q=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/BepmogpPeY6Rhwktn6YmiDlaJGz51V80PQdmu3J4Q=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/BepmogpPeY6Rhwktn6YmiDlaJGz51V80PQdmu3J4Q=/invocations b/typescript-generator-core/.nondex/BepmogpPeY6Rhwktn6YmiDlaJGz51V80PQdmu3J4Q=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/BepmogpPeY6Rhwktn6YmiDlaJGz51V80PQdmu3J4Q=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/BsvNkTNuv7IOgUJAIn6dHWxfx0kYH2JZ6m7AW0rzw=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/BsvNkTNuv7IOgUJAIn6dHWxfx0kYH2JZ6m7AW0rzw=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..e406ef8c2 --- /dev/null +++ b/typescript-generator-core/.nondex/BsvNkTNuv7IOgUJAIn6dHWxfx0kYH2JZ6m7AW0rzw=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/BsvNkTNuv7IOgUJAIn6dHWxfx0kYH2JZ6m7AW0rzw=/config b/typescript-generator-core/.nondex/BsvNkTNuv7IOgUJAIn6dHWxfx0kYH2JZ6m7AW0rzw=/config new file mode 100644 index 000000000..f8bb7bcef --- /dev/null +++ b/typescript-generator-core/.nondex/BsvNkTNuv7IOgUJAIn6dHWxfx0kYH2JZ6m7AW0rzw=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=4870358 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=BsvNkTNuv7IOgUJAIn6dHWxfx0kYH2JZ6m7AW0rzw= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/BsvNkTNuv7IOgUJAIn6dHWxfx0kYH2JZ6m7AW0rzw=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/BsvNkTNuv7IOgUJAIn6dHWxfx0kYH2JZ6m7AW0rzw=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..4d2ef4572 --- /dev/null +++ b/typescript-generator-core/.nondex/BsvNkTNuv7IOgUJAIn6dHWxfx0kYH2JZ6m7AW0rzw=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.33 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/BsvNkTNuv7IOgUJAIn6dHWxfx0kYH2JZ6m7AW0rzw=/failures b/typescript-generator-core/.nondex/BsvNkTNuv7IOgUJAIn6dHWxfx0kYH2JZ6m7AW0rzw=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/BsvNkTNuv7IOgUJAIn6dHWxfx0kYH2JZ6m7AW0rzw=/invocations b/typescript-generator-core/.nondex/BsvNkTNuv7IOgUJAIn6dHWxfx0kYH2JZ6m7AW0rzw=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/BsvNkTNuv7IOgUJAIn6dHWxfx0kYH2JZ6m7AW0rzw=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/CL+uvsn6YwNypzeM09oUgmkMpknQCAMFhinXHWQLs=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/CL+uvsn6YwNypzeM09oUgmkMpknQCAMFhinXHWQLs=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..8adc6813e --- /dev/null +++ b/typescript-generator-core/.nondex/CL+uvsn6YwNypzeM09oUgmkMpknQCAMFhinXHWQLs=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/CL+uvsn6YwNypzeM09oUgmkMpknQCAMFhinXHWQLs=/config b/typescript-generator-core/.nondex/CL+uvsn6YwNypzeM09oUgmkMpknQCAMFhinXHWQLs=/config new file mode 100644 index 000000000..d02ff9962 --- /dev/null +++ b/typescript-generator-core/.nondex/CL+uvsn6YwNypzeM09oUgmkMpknQCAMFhinXHWQLs=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1471950 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=CL+uvsn6YwNypzeM09oUgmkMpknQCAMFhinXHWQLs= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/CL+uvsn6YwNypzeM09oUgmkMpknQCAMFhinXHWQLs=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/CL+uvsn6YwNypzeM09oUgmkMpknQCAMFhinXHWQLs=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..97e0d5b6a --- /dev/null +++ b/typescript-generator-core/.nondex/CL+uvsn6YwNypzeM09oUgmkMpknQCAMFhinXHWQLs=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.196 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/CL+uvsn6YwNypzeM09oUgmkMpknQCAMFhinXHWQLs=/failures b/typescript-generator-core/.nondex/CL+uvsn6YwNypzeM09oUgmkMpknQCAMFhinXHWQLs=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/CL+uvsn6YwNypzeM09oUgmkMpknQCAMFhinXHWQLs=/invocations b/typescript-generator-core/.nondex/CL+uvsn6YwNypzeM09oUgmkMpknQCAMFhinXHWQLs=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/CL+uvsn6YwNypzeM09oUgmkMpknQCAMFhinXHWQLs=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/Ce6KMIBdhCnnbcheAL9ioq+8Djpt+NazeoXx0QZo6j0=/config b/typescript-generator-core/.nondex/Ce6KMIBdhCnnbcheAL9ioq+8Djpt+NazeoXx0QZo6j0=/config new file mode 100644 index 000000000..5aa138d14 --- /dev/null +++ b/typescript-generator-core/.nondex/Ce6KMIBdhCnnbcheAL9ioq+8Djpt+NazeoXx0QZo6j0=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=974622 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=Ce6KMIBdhCnnbcheAL9ioq+8Djpt+NazeoXx0QZo6j0= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/Ce6KMIBdhCnnbcheAL9ioq+8Djpt+NazeoXx0QZo6j0=/failures b/typescript-generator-core/.nondex/Ce6KMIBdhCnnbcheAL9ioq+8Djpt+NazeoXx0QZo6j0=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/Ce6KMIBdhCnnbcheAL9ioq+8Djpt+NazeoXx0QZo6j0=/invocations b/typescript-generator-core/.nondex/Ce6KMIBdhCnnbcheAL9ioq+8Djpt+NazeoXx0QZo6j0=/invocations new file mode 100644 index 000000000..c164bf6ef --- /dev/null +++ b/typescript-generator-core/.nondex/Ce6KMIBdhCnnbcheAL9ioq+8Djpt+NazeoXx0QZo6j0=/invocations @@ -0,0 +1,2 @@ +COUNT:16 +SHUFFLES:16 diff --git a/typescript-generator-core/.nondex/DzmLfVNjtaW9b3MQrV0c7bfj7XqPXOTqj8A9wcC7Xg=/config b/typescript-generator-core/.nondex/DzmLfVNjtaW9b3MQrV0c7bfj7XqPXOTqj8A9wcC7Xg=/config new file mode 100644 index 000000000..62bb9a339 --- /dev/null +++ b/typescript-generator-core/.nondex/DzmLfVNjtaW9b3MQrV0c7bfj7XqPXOTqj8A9wcC7Xg=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=974622 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=DzmLfVNjtaW9b3MQrV0c7bfj7XqPXOTqj8A9wcC7Xg= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/DzmLfVNjtaW9b3MQrV0c7bfj7XqPXOTqj8A9wcC7Xg=/failures b/typescript-generator-core/.nondex/DzmLfVNjtaW9b3MQrV0c7bfj7XqPXOTqj8A9wcC7Xg=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/DzmLfVNjtaW9b3MQrV0c7bfj7XqPXOTqj8A9wcC7Xg=/invocations b/typescript-generator-core/.nondex/DzmLfVNjtaW9b3MQrV0c7bfj7XqPXOTqj8A9wcC7Xg=/invocations new file mode 100644 index 000000000..c164bf6ef --- /dev/null +++ b/typescript-generator-core/.nondex/DzmLfVNjtaW9b3MQrV0c7bfj7XqPXOTqj8A9wcC7Xg=/invocations @@ -0,0 +1,2 @@ +COUNT:16 +SHUFFLES:16 diff --git a/typescript-generator-core/.nondex/E7mHWKKZZsrtsazxIcCfX1nI4ycuT7JXf+EwM+sSqo=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/E7mHWKKZZsrtsazxIcCfX1nI4ycuT7JXf+EwM+sSqo=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..403f05a2c --- /dev/null +++ b/typescript-generator-core/.nondex/E7mHWKKZZsrtsazxIcCfX1nI4ycuT7JXf+EwM+sSqo=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/E7mHWKKZZsrtsazxIcCfX1nI4ycuT7JXf+EwM+sSqo=/config b/typescript-generator-core/.nondex/E7mHWKKZZsrtsazxIcCfX1nI4ycuT7JXf+EwM+sSqo=/config new file mode 100644 index 000000000..d918ee5c8 --- /dev/null +++ b/typescript-generator-core/.nondex/E7mHWKKZZsrtsazxIcCfX1nI4ycuT7JXf+EwM+sSqo=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=4165810 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=E7mHWKKZZsrtsazxIcCfX1nI4ycuT7JXf+EwM+sSqo= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/E7mHWKKZZsrtsazxIcCfX1nI4ycuT7JXf+EwM+sSqo=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/E7mHWKKZZsrtsazxIcCfX1nI4ycuT7JXf+EwM+sSqo=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..f7037cc98 --- /dev/null +++ b/typescript-generator-core/.nondex/E7mHWKKZZsrtsazxIcCfX1nI4ycuT7JXf+EwM+sSqo=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.229 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.227 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/E7mHWKKZZsrtsazxIcCfX1nI4ycuT7JXf+EwM+sSqo=/failures b/typescript-generator-core/.nondex/E7mHWKKZZsrtsazxIcCfX1nI4ycuT7JXf+EwM+sSqo=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/E7mHWKKZZsrtsazxIcCfX1nI4ycuT7JXf+EwM+sSqo=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/E7mHWKKZZsrtsazxIcCfX1nI4ycuT7JXf+EwM+sSqo=/invocations b/typescript-generator-core/.nondex/E7mHWKKZZsrtsazxIcCfX1nI4ycuT7JXf+EwM+sSqo=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/E7mHWKKZZsrtsazxIcCfX1nI4ycuT7JXf+EwM+sSqo=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/EKbrs3uSFnpOAJAlRfJ3MUzbvKx8ndwHspe3dVj6ns=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/EKbrs3uSFnpOAJAlRfJ3MUzbvKx8ndwHspe3dVj6ns=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..2c7f83e03 --- /dev/null +++ b/typescript-generator-core/.nondex/EKbrs3uSFnpOAJAlRfJ3MUzbvKx8ndwHspe3dVj6ns=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/EKbrs3uSFnpOAJAlRfJ3MUzbvKx8ndwHspe3dVj6ns=/config b/typescript-generator-core/.nondex/EKbrs3uSFnpOAJAlRfJ3MUzbvKx8ndwHspe3dVj6ns=/config new file mode 100644 index 000000000..db3533a4b --- /dev/null +++ b/typescript-generator-core/.nondex/EKbrs3uSFnpOAJAlRfJ3MUzbvKx8ndwHspe3dVj6ns=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=4248698 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=EKbrs3uSFnpOAJAlRfJ3MUzbvKx8ndwHspe3dVj6ns= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/EKbrs3uSFnpOAJAlRfJ3MUzbvKx8ndwHspe3dVj6ns=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/EKbrs3uSFnpOAJAlRfJ3MUzbvKx8ndwHspe3dVj6ns=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..0d34477bd --- /dev/null +++ b/typescript-generator-core/.nondex/EKbrs3uSFnpOAJAlRfJ3MUzbvKx8ndwHspe3dVj6ns=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.196 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.195 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/EKbrs3uSFnpOAJAlRfJ3MUzbvKx8ndwHspe3dVj6ns=/failures b/typescript-generator-core/.nondex/EKbrs3uSFnpOAJAlRfJ3MUzbvKx8ndwHspe3dVj6ns=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/EKbrs3uSFnpOAJAlRfJ3MUzbvKx8ndwHspe3dVj6ns=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/EKbrs3uSFnpOAJAlRfJ3MUzbvKx8ndwHspe3dVj6ns=/invocations b/typescript-generator-core/.nondex/EKbrs3uSFnpOAJAlRfJ3MUzbvKx8ndwHspe3dVj6ns=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/EKbrs3uSFnpOAJAlRfJ3MUzbvKx8ndwHspe3dVj6ns=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/EgzPWQQwEchOXb7zdnlIF0GCdM7yV6dI7NJoMpmDSg=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/EgzPWQQwEchOXb7zdnlIF0GCdM7yV6dI7NJoMpmDSg=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..53591d352 --- /dev/null +++ b/typescript-generator-core/.nondex/EgzPWQQwEchOXb7zdnlIF0GCdM7yV6dI7NJoMpmDSg=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/EgzPWQQwEchOXb7zdnlIF0GCdM7yV6dI7NJoMpmDSg=/config b/typescript-generator-core/.nondex/EgzPWQQwEchOXb7zdnlIF0GCdM7yV6dI7NJoMpmDSg=/config new file mode 100644 index 000000000..eb6627ac9 --- /dev/null +++ b/typescript-generator-core/.nondex/EgzPWQQwEchOXb7zdnlIF0GCdM7yV6dI7NJoMpmDSg=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=3378374 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=EgzPWQQwEchOXb7zdnlIF0GCdM7yV6dI7NJoMpmDSg= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/EgzPWQQwEchOXb7zdnlIF0GCdM7yV6dI7NJoMpmDSg=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/EgzPWQQwEchOXb7zdnlIF0GCdM7yV6dI7NJoMpmDSg=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..eb84a7f54 --- /dev/null +++ b/typescript-generator-core/.nondex/EgzPWQQwEchOXb7zdnlIF0GCdM7yV6dI7NJoMpmDSg=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.257 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.256 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/EgzPWQQwEchOXb7zdnlIF0GCdM7yV6dI7NJoMpmDSg=/failures b/typescript-generator-core/.nondex/EgzPWQQwEchOXb7zdnlIF0GCdM7yV6dI7NJoMpmDSg=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/EgzPWQQwEchOXb7zdnlIF0GCdM7yV6dI7NJoMpmDSg=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/EgzPWQQwEchOXb7zdnlIF0GCdM7yV6dI7NJoMpmDSg=/invocations b/typescript-generator-core/.nondex/EgzPWQQwEchOXb7zdnlIF0GCdM7yV6dI7NJoMpmDSg=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/EgzPWQQwEchOXb7zdnlIF0GCdM7yV6dI7NJoMpmDSg=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/EjXx8R4lLhO9NldcCNYzMUmB9aZBidGHUSEbW5KwFxs=/config b/typescript-generator-core/.nondex/EjXx8R4lLhO9NldcCNYzMUmB9aZBidGHUSEbW5KwFxs=/config new file mode 100644 index 000000000..b6f9d4167 --- /dev/null +++ b/typescript-generator-core/.nondex/EjXx8R4lLhO9NldcCNYzMUmB9aZBidGHUSEbW5KwFxs=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1223286 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=EjXx8R4lLhO9NldcCNYzMUmB9aZBidGHUSEbW5KwFxs= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/EjXx8R4lLhO9NldcCNYzMUmB9aZBidGHUSEbW5KwFxs=/failures b/typescript-generator-core/.nondex/EjXx8R4lLhO9NldcCNYzMUmB9aZBidGHUSEbW5KwFxs=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/EjXx8R4lLhO9NldcCNYzMUmB9aZBidGHUSEbW5KwFxs=/invocations b/typescript-generator-core/.nondex/EjXx8R4lLhO9NldcCNYzMUmB9aZBidGHUSEbW5KwFxs=/invocations new file mode 100644 index 000000000..c164bf6ef --- /dev/null +++ b/typescript-generator-core/.nondex/EjXx8R4lLhO9NldcCNYzMUmB9aZBidGHUSEbW5KwFxs=/invocations @@ -0,0 +1,2 @@ +COUNT:16 +SHUFFLES:16 diff --git a/typescript-generator-core/.nondex/EtdBtX7TVVvyRSfD3+R90NcRrD81FdpaKTIomgACyE8=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/EtdBtX7TVVvyRSfD3+R90NcRrD81FdpaKTIomgACyE8=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..32a2d9dfb --- /dev/null +++ b/typescript-generator-core/.nondex/EtdBtX7TVVvyRSfD3+R90NcRrD81FdpaKTIomgACyE8=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/EtdBtX7TVVvyRSfD3+R90NcRrD81FdpaKTIomgACyE8=/config b/typescript-generator-core/.nondex/EtdBtX7TVVvyRSfD3+R90NcRrD81FdpaKTIomgACyE8=/config new file mode 100644 index 000000000..9bc93d141 --- /dev/null +++ b/typescript-generator-core/.nondex/EtdBtX7TVVvyRSfD3+R90NcRrD81FdpaKTIomgACyE8=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1720614 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=EtdBtX7TVVvyRSfD3+R90NcRrD81FdpaKTIomgACyE8= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/EtdBtX7TVVvyRSfD3+R90NcRrD81FdpaKTIomgACyE8=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/EtdBtX7TVVvyRSfD3+R90NcRrD81FdpaKTIomgACyE8=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..963472eff --- /dev/null +++ b/typescript-generator-core/.nondex/EtdBtX7TVVvyRSfD3+R90NcRrD81FdpaKTIomgACyE8=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.225 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/EtdBtX7TVVvyRSfD3+R90NcRrD81FdpaKTIomgACyE8=/failures b/typescript-generator-core/.nondex/EtdBtX7TVVvyRSfD3+R90NcRrD81FdpaKTIomgACyE8=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/EtdBtX7TVVvyRSfD3+R90NcRrD81FdpaKTIomgACyE8=/invocations b/typescript-generator-core/.nondex/EtdBtX7TVVvyRSfD3+R90NcRrD81FdpaKTIomgACyE8=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/EtdBtX7TVVvyRSfD3+R90NcRrD81FdpaKTIomgACyE8=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/EvJWT9dLolyEVGuEB4nibuIBRslkENkuL4QA4nKtDCQ=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/EvJWT9dLolyEVGuEB4nibuIBRslkENkuL4QA4nKtDCQ=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..619b95bff --- /dev/null +++ b/typescript-generator-core/.nondex/EvJWT9dLolyEVGuEB4nibuIBRslkENkuL4QA4nKtDCQ=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,176 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:< +interface [CCircle2 extends IShape2 { + kind: "circle"; + radius: number; +} + +interface CRectangle2 extends IQuadrilateral2 { + kind: "rectangle"; + height: number; + width: number; +} + +interface IQuadrilateral2 extends IShape2 { + kind: "square" | "rectangle"; +} + +interface IShape2 { + kind: "circle" | "square" | "rectangle"; +} + +interface CSquare2 extends IQuadrilateral2 { + kind: "square"; + size: number]; +} + +type IShape2Uni...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/EvJWT9dLolyEVGuEB4nibuIBRslkENkuL4QA4nKtDCQ=/config b/typescript-generator-core/.nondex/EvJWT9dLolyEVGuEB4nibuIBRslkENkuL4QA4nKtDCQ=/config new file mode 100644 index 000000000..868b17c54 --- /dev/null +++ b/typescript-generator-core/.nondex/EvJWT9dLolyEVGuEB4nibuIBRslkENkuL4QA4nKtDCQ=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1098954 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=EvJWT9dLolyEVGuEB4nibuIBRslkENkuL4QA4nKtDCQ= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/EvJWT9dLolyEVGuEB4nibuIBRslkENkuL4QA4nKtDCQ=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/EvJWT9dLolyEVGuEB4nibuIBRslkENkuL4QA4nKtDCQ=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..2e40184e3 --- /dev/null +++ b/typescript-generator-core/.nondex/EvJWT9dLolyEVGuEB4nibuIBRslkENkuL4QA4nKtDCQ=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,100 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.212 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.211 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:< +interface [IShape2 { + kind: "circle" | "square" | "rectangle"; +} + +interface CSquare2 extends IQuadrilateral2 { + kind: "square"; + size: number; +} + +interface CRectangle2 extends IQuadrilateral2 { + kind: "rectangle"; + width: number; + height: number; +} + +interface CCircle2 extends IShape2 { + kind: "circle"; + radius: number; +} + +interface IQuadrilateral2 extends IShape2 { + kind: "square" | "rectangle"]; +} + +type IShape2Uni...> but was:< +interface [CCircle2 extends IShape2 { + kind: "circle"; + radius: number; +} + +interface CRectangle2 extends IQuadrilateral2 { + kind: "rectangle"; + height: number; + width: number; +} + +interface IQuadrilateral2 extends IShape2 { + kind: "square" | "rectangle"; +} + +interface IShape2 { + kind: "circle" | "square" | "rectangle"; +} + +interface CSquare2 extends IQuadrilateral2 { + kind: "square"; + size: number]; +} + +type IShape2Uni...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/EvJWT9dLolyEVGuEB4nibuIBRslkENkuL4QA4nKtDCQ=/failures b/typescript-generator-core/.nondex/EvJWT9dLolyEVGuEB4nibuIBRslkENkuL4QA4nKtDCQ=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/EvJWT9dLolyEVGuEB4nibuIBRslkENkuL4QA4nKtDCQ=/invocations b/typescript-generator-core/.nondex/EvJWT9dLolyEVGuEB4nibuIBRslkENkuL4QA4nKtDCQ=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/EvJWT9dLolyEVGuEB4nibuIBRslkENkuL4QA4nKtDCQ=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/F+rhLkrgml33Hsb5+ATdWmISSmx1KsFwcbG7FDLitvE=/config b/typescript-generator-core/.nondex/F+rhLkrgml33Hsb5+ATdWmISSmx1KsFwcbG7FDLitvE=/config new file mode 100644 index 000000000..3b09dc092 --- /dev/null +++ b/typescript-generator-core/.nondex/F+rhLkrgml33Hsb5+ATdWmISSmx1KsFwcbG7FDLitvE=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=974622 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=F+rhLkrgml33Hsb5+ATdWmISSmx1KsFwcbG7FDLitvE= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/F+rhLkrgml33Hsb5+ATdWmISSmx1KsFwcbG7FDLitvE=/failures b/typescript-generator-core/.nondex/F+rhLkrgml33Hsb5+ATdWmISSmx1KsFwcbG7FDLitvE=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/F+rhLkrgml33Hsb5+ATdWmISSmx1KsFwcbG7FDLitvE=/invocations b/typescript-generator-core/.nondex/F+rhLkrgml33Hsb5+ATdWmISSmx1KsFwcbG7FDLitvE=/invocations new file mode 100644 index 000000000..c164bf6ef --- /dev/null +++ b/typescript-generator-core/.nondex/F+rhLkrgml33Hsb5+ATdWmISSmx1KsFwcbG7FDLitvE=/invocations @@ -0,0 +1,2 @@ +COUNT:16 +SHUFFLES:16 diff --git a/typescript-generator-core/.nondex/FRuz6vAgVSQoS9M+lQRBuGt5qAujBbFkDl3ouiTOV88=/failures b/typescript-generator-core/.nondex/FRuz6vAgVSQoS9M+lQRBuGt5qAujBbFkDl3ouiTOV88=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/FtnL+eUO41htP4b2wgb48Q00cJPRcI1B6KhaA25kUqM=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/FtnL+eUO41htP4b2wgb48Q00cJPRcI1B6KhaA25kUqM=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..ac70b0ac2 --- /dev/null +++ b/typescript-generator-core/.nondex/FtnL+eUO41htP4b2wgb48Q00cJPRcI1B6KhaA25kUqM=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/FtnL+eUO41htP4b2wgb48Q00cJPRcI1B6KhaA25kUqM=/config b/typescript-generator-core/.nondex/FtnL+eUO41htP4b2wgb48Q00cJPRcI1B6KhaA25kUqM=/config new file mode 100644 index 000000000..01f95dbd4 --- /dev/null +++ b/typescript-generator-core/.nondex/FtnL+eUO41htP4b2wgb48Q00cJPRcI1B6KhaA25kUqM=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1264730 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=FtnL+eUO41htP4b2wgb48Q00cJPRcI1B6KhaA25kUqM= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/FtnL+eUO41htP4b2wgb48Q00cJPRcI1B6KhaA25kUqM=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/FtnL+eUO41htP4b2wgb48Q00cJPRcI1B6KhaA25kUqM=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..9eb8cd369 --- /dev/null +++ b/typescript-generator-core/.nondex/FtnL+eUO41htP4b2wgb48Q00cJPRcI1B6KhaA25kUqM=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.184 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/FtnL+eUO41htP4b2wgb48Q00cJPRcI1B6KhaA25kUqM=/failures b/typescript-generator-core/.nondex/FtnL+eUO41htP4b2wgb48Q00cJPRcI1B6KhaA25kUqM=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/FtnL+eUO41htP4b2wgb48Q00cJPRcI1B6KhaA25kUqM=/invocations b/typescript-generator-core/.nondex/FtnL+eUO41htP4b2wgb48Q00cJPRcI1B6KhaA25kUqM=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/FtnL+eUO41htP4b2wgb48Q00cJPRcI1B6KhaA25kUqM=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/GHKlkXhUdCuEVBx9Z4UcosUI38UwxLdJbleGPoAZ8w0=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/GHKlkXhUdCuEVBx9Z4UcosUI38UwxLdJbleGPoAZ8w0=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..e4d859ad4 --- /dev/null +++ b/typescript-generator-core/.nondex/GHKlkXhUdCuEVBx9Z4UcosUI38UwxLdJbleGPoAZ8w0=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/GHKlkXhUdCuEVBx9Z4UcosUI38UwxLdJbleGPoAZ8w0=/config b/typescript-generator-core/.nondex/GHKlkXhUdCuEVBx9Z4UcosUI38UwxLdJbleGPoAZ8w0=/config new file mode 100644 index 000000000..f696b1629 --- /dev/null +++ b/typescript-generator-core/.nondex/GHKlkXhUdCuEVBx9Z4UcosUI38UwxLdJbleGPoAZ8w0=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1471950 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=GHKlkXhUdCuEVBx9Z4UcosUI38UwxLdJbleGPoAZ8w0= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/GHKlkXhUdCuEVBx9Z4UcosUI38UwxLdJbleGPoAZ8w0=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/GHKlkXhUdCuEVBx9Z4UcosUI38UwxLdJbleGPoAZ8w0=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..3c607ad50 --- /dev/null +++ b/typescript-generator-core/.nondex/GHKlkXhUdCuEVBx9Z4UcosUI38UwxLdJbleGPoAZ8w0=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.21 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/GHKlkXhUdCuEVBx9Z4UcosUI38UwxLdJbleGPoAZ8w0=/failures b/typescript-generator-core/.nondex/GHKlkXhUdCuEVBx9Z4UcosUI38UwxLdJbleGPoAZ8w0=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/GHKlkXhUdCuEVBx9Z4UcosUI38UwxLdJbleGPoAZ8w0=/invocations b/typescript-generator-core/.nondex/GHKlkXhUdCuEVBx9Z4UcosUI38UwxLdJbleGPoAZ8w0=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/GHKlkXhUdCuEVBx9Z4UcosUI38UwxLdJbleGPoAZ8w0=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/GU1JcEIcyZljL3kchfIiZf7xSSYlDhOOfEDZZYLO+I=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/GU1JcEIcyZljL3kchfIiZf7xSSYlDhOOfEDZZYLO+I=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..c2838e0d6 --- /dev/null +++ b/typescript-generator-core/.nondex/GU1JcEIcyZljL3kchfIiZf7xSSYlDhOOfEDZZYLO+I=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/GU1JcEIcyZljL3kchfIiZf7xSSYlDhOOfEDZZYLO+I=/config b/typescript-generator-core/.nondex/GU1JcEIcyZljL3kchfIiZf7xSSYlDhOOfEDZZYLO+I=/config new file mode 100644 index 000000000..114330955 --- /dev/null +++ b/typescript-generator-core/.nondex/GU1JcEIcyZljL3kchfIiZf7xSSYlDhOOfEDZZYLO+I=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=2342274 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=GU1JcEIcyZljL3kchfIiZf7xSSYlDhOOfEDZZYLO+I= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/GU1JcEIcyZljL3kchfIiZf7xSSYlDhOOfEDZZYLO+I=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/GU1JcEIcyZljL3kchfIiZf7xSSYlDhOOfEDZZYLO+I=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..271347722 --- /dev/null +++ b/typescript-generator-core/.nondex/GU1JcEIcyZljL3kchfIiZf7xSSYlDhOOfEDZZYLO+I=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.271 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.247 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/GU1JcEIcyZljL3kchfIiZf7xSSYlDhOOfEDZZYLO+I=/failures b/typescript-generator-core/.nondex/GU1JcEIcyZljL3kchfIiZf7xSSYlDhOOfEDZZYLO+I=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/GU1JcEIcyZljL3kchfIiZf7xSSYlDhOOfEDZZYLO+I=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/GU1JcEIcyZljL3kchfIiZf7xSSYlDhOOfEDZZYLO+I=/invocations b/typescript-generator-core/.nondex/GU1JcEIcyZljL3kchfIiZf7xSSYlDhOOfEDZZYLO+I=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/GU1JcEIcyZljL3kchfIiZf7xSSYlDhOOfEDZZYLO+I=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/GW5iW0gmfn902WlpVfe9sprZKsAlOEcmT3uT0jqvMSQ=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/GW5iW0gmfn902WlpVfe9sprZKsAlOEcmT3uT0jqvMSQ=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..f52d4dab0 --- /dev/null +++ b/typescript-generator-core/.nondex/GW5iW0gmfn902WlpVfe9sprZKsAlOEcmT3uT0jqvMSQ=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/GW5iW0gmfn902WlpVfe9sprZKsAlOEcmT3uT0jqvMSQ=/config b/typescript-generator-core/.nondex/GW5iW0gmfn902WlpVfe9sprZKsAlOEcmT3uT0jqvMSQ=/config new file mode 100644 index 000000000..fcc06a1f5 --- /dev/null +++ b/typescript-generator-core/.nondex/GW5iW0gmfn902WlpVfe9sprZKsAlOEcmT3uT0jqvMSQ=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=2549494 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=GW5iW0gmfn902WlpVfe9sprZKsAlOEcmT3uT0jqvMSQ= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/GW5iW0gmfn902WlpVfe9sprZKsAlOEcmT3uT0jqvMSQ=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/GW5iW0gmfn902WlpVfe9sprZKsAlOEcmT3uT0jqvMSQ=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..5ee84116b --- /dev/null +++ b/typescript-generator-core/.nondex/GW5iW0gmfn902WlpVfe9sprZKsAlOEcmT3uT0jqvMSQ=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.233 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/GW5iW0gmfn902WlpVfe9sprZKsAlOEcmT3uT0jqvMSQ=/failures b/typescript-generator-core/.nondex/GW5iW0gmfn902WlpVfe9sprZKsAlOEcmT3uT0jqvMSQ=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/GW5iW0gmfn902WlpVfe9sprZKsAlOEcmT3uT0jqvMSQ=/invocations b/typescript-generator-core/.nondex/GW5iW0gmfn902WlpVfe9sprZKsAlOEcmT3uT0jqvMSQ=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/GW5iW0gmfn902WlpVfe9sprZKsAlOEcmT3uT0jqvMSQ=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/GXR8QbYgG9NPBO9QGwkzJBn1Lkpslu9zZcXWYMBU=.run b/typescript-generator-core/.nondex/GXR8QbYgG9NPBO9QGwkzJBn1Lkpslu9zZcXWYMBU=.run new file mode 100644 index 000000000..215563073 --- /dev/null +++ b/typescript-generator-core/.nondex/GXR8QbYgG9NPBO9QGwkzJBn1Lkpslu9zZcXWYMBU=.run @@ -0,0 +1,11 @@ +GXR8QbYgG9NPBO9QGwkzJBn1Lkpslu9zZcXWYMBU= +LAIj60x90aXyBkt8KDEcLIfWlHerOdtUEmmRlpSeDGg= +yXE5ZS2VfsR2hPf2CB2XOSMnTRkJs+4ncWnR+4wFMg= +fvRAMK5JdZp93WO+88UTF7Nl4ENif5reU5Ws5jv0L0= +vhzXxFAMNHliF5sz7KauZqYi30nbMUKREvXhnzW2vk= +69gDDGHRpC9cGEey526m8mEVSop9bkDeB+10gYQNA2A= +vey1yLBh2UihjgIh+tsPKM92HP0CvfxywMkB1Fczno= +BOb1PiPcagkjM2zzp3wJU9h+QrYzuRvc3pRB5rArK0= +3DiG69cvUmPc15eg3d5hKcQXVSLdGcLNn+KEvxQZR4E= +7mtByFrMjHZdcc6+umWMG63B0z+YLGb19GWqQHft0= +clean_GyvSK4Xwy4H9HUditlSHBhatfjlDQQUoYQ8wEPMUGXk= diff --git a/typescript-generator-core/.nondex/GXR8QbYgG9NPBO9QGwkzJBn1Lkpslu9zZcXWYMBU=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/GXR8QbYgG9NPBO9QGwkzJBn1Lkpslu9zZcXWYMBU=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..21eb33a6e --- /dev/null +++ b/typescript-generator-core/.nondex/GXR8QbYgG9NPBO9QGwkzJBn1Lkpslu9zZcXWYMBU=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,92 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:140) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/GXR8QbYgG9NPBO9QGwkzJBn1Lkpslu9zZcXWYMBU=/config b/typescript-generator-core/.nondex/GXR8QbYgG9NPBO9QGwkzJBn1Lkpslu9zZcXWYMBU=/config new file mode 100644 index 000000000..0c7c01efa --- /dev/null +++ b/typescript-generator-core/.nondex/GXR8QbYgG9NPBO9QGwkzJBn1Lkpslu9zZcXWYMBU=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=933178 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=GXR8QbYgG9NPBO9QGwkzJBn1Lkpslu9zZcXWYMBU= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/GXR8QbYgG9NPBO9QGwkzJBn1Lkpslu9zZcXWYMBU=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/GXR8QbYgG9NPBO9QGwkzJBn1Lkpslu9zZcXWYMBU=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..f52c95abe --- /dev/null +++ b/typescript-generator-core/.nondex/GXR8QbYgG9NPBO9QGwkzJBn1Lkpslu9zZcXWYMBU=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,20 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.242 sec <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.24 sec <<< FAILURE! +org.junit.ComparisonFailure: expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:140) + diff --git a/typescript-generator-core/.nondex/GXR8QbYgG9NPBO9QGwkzJBn1Lkpslu9zZcXWYMBU=/failures b/typescript-generator-core/.nondex/GXR8QbYgG9NPBO9QGwkzJBn1Lkpslu9zZcXWYMBU=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/GXR8QbYgG9NPBO9QGwkzJBn1Lkpslu9zZcXWYMBU=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/GXR8QbYgG9NPBO9QGwkzJBn1Lkpslu9zZcXWYMBU=/invocations b/typescript-generator-core/.nondex/GXR8QbYgG9NPBO9QGwkzJBn1Lkpslu9zZcXWYMBU=/invocations new file mode 100644 index 000000000..11ff8fe83 --- /dev/null +++ b/typescript-generator-core/.nondex/GXR8QbYgG9NPBO9QGwkzJBn1Lkpslu9zZcXWYMBU=/invocations @@ -0,0 +1,2 @@ +COUNT:61 +SHUFFLES:61 diff --git a/typescript-generator-core/.nondex/GXR8QbYgG9NPBO9QGwkzJBn1Lkpslu9zZcXWYMBU=/test_results.html b/typescript-generator-core/.nondex/GXR8QbYgG9NPBO9QGwkzJBn1Lkpslu9zZcXWYMBU=/test_results.html new file mode 100644 index 000000000..d2d121686 --- /dev/null +++ b/typescript-generator-core/.nondex/GXR8QbYgG9NPBO9QGwkzJBn1Lkpslu9zZcXWYMBU=/test_results.html @@ -0,0 +1 @@ +Test Results
Test Name93317897462210160661057510109895411403981181842122328612647301306174
cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces
\ No newline at end of file diff --git a/typescript-generator-core/.nondex/H4R6EOha9EQCVR+hF4FKNirZQuNhUiMp1Zs5zHuwq60=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/H4R6EOha9EQCVR+hF4FKNirZQuNhUiMp1Zs5zHuwq60=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..b962657ba --- /dev/null +++ b/typescript-generator-core/.nondex/H4R6EOha9EQCVR+hF4FKNirZQuNhUiMp1Zs5zHuwq60=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,69 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/H4R6EOha9EQCVR+hF4FKNirZQuNhUiMp1Zs5zHuwq60=/config b/typescript-generator-core/.nondex/H4R6EOha9EQCVR+hF4FKNirZQuNhUiMp1Zs5zHuwq60=/config new file mode 100644 index 000000000..1691c15cf --- /dev/null +++ b/typescript-generator-core/.nondex/H4R6EOha9EQCVR+hF4FKNirZQuNhUiMp1Zs5zHuwq60=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=974622 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=H4R6EOha9EQCVR+hF4FKNirZQuNhUiMp1Zs5zHuwq60= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/H4R6EOha9EQCVR+hF4FKNirZQuNhUiMp1Zs5zHuwq60=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/H4R6EOha9EQCVR+hF4FKNirZQuNhUiMp1Zs5zHuwq60=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..ab7beec7b --- /dev/null +++ b/typescript-generator-core/.nondex/H4R6EOha9EQCVR+hF4FKNirZQuNhUiMp1Zs5zHuwq60=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.129 sec - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/H4R6EOha9EQCVR+hF4FKNirZQuNhUiMp1Zs5zHuwq60=/failures b/typescript-generator-core/.nondex/H4R6EOha9EQCVR+hF4FKNirZQuNhUiMp1Zs5zHuwq60=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/H4R6EOha9EQCVR+hF4FKNirZQuNhUiMp1Zs5zHuwq60=/invocations b/typescript-generator-core/.nondex/H4R6EOha9EQCVR+hF4FKNirZQuNhUiMp1Zs5zHuwq60=/invocations new file mode 100644 index 000000000..e066c9f34 --- /dev/null +++ b/typescript-generator-core/.nondex/H4R6EOha9EQCVR+hF4FKNirZQuNhUiMp1Zs5zHuwq60=/invocations @@ -0,0 +1,2 @@ +COUNT:57 +SHUFFLES:57 diff --git a/typescript-generator-core/.nondex/HkGtTWcm0T7iItq2i9JOODEhuCHQDnUHWHKjSRekthw=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/HkGtTWcm0T7iItq2i9JOODEhuCHQDnUHWHKjSRekthw=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..915d568b8 --- /dev/null +++ b/typescript-generator-core/.nondex/HkGtTWcm0T7iItq2i9JOODEhuCHQDnUHWHKjSRekthw=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/HkGtTWcm0T7iItq2i9JOODEhuCHQDnUHWHKjSRekthw=/config b/typescript-generator-core/.nondex/HkGtTWcm0T7iItq2i9JOODEhuCHQDnUHWHKjSRekthw=/config new file mode 100644 index 000000000..e38990311 --- /dev/null +++ b/typescript-generator-core/.nondex/HkGtTWcm0T7iItq2i9JOODEhuCHQDnUHWHKjSRekthw=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1596282 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=HkGtTWcm0T7iItq2i9JOODEhuCHQDnUHWHKjSRekthw= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/HkGtTWcm0T7iItq2i9JOODEhuCHQDnUHWHKjSRekthw=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/HkGtTWcm0T7iItq2i9JOODEhuCHQDnUHWHKjSRekthw=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..cbc81fcc8 --- /dev/null +++ b/typescript-generator-core/.nondex/HkGtTWcm0T7iItq2i9JOODEhuCHQDnUHWHKjSRekthw=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.239 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.239 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/HkGtTWcm0T7iItq2i9JOODEhuCHQDnUHWHKjSRekthw=/failures b/typescript-generator-core/.nondex/HkGtTWcm0T7iItq2i9JOODEhuCHQDnUHWHKjSRekthw=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/HkGtTWcm0T7iItq2i9JOODEhuCHQDnUHWHKjSRekthw=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/HkGtTWcm0T7iItq2i9JOODEhuCHQDnUHWHKjSRekthw=/invocations b/typescript-generator-core/.nondex/HkGtTWcm0T7iItq2i9JOODEhuCHQDnUHWHKjSRekthw=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/HkGtTWcm0T7iItq2i9JOODEhuCHQDnUHWHKjSRekthw=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/I8Qj0Wzcl3lgLx8gPE280SXsSKFF1LTQqeTvHSkZMeA=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/I8Qj0Wzcl3lgLx8gPE280SXsSKFF1LTQqeTvHSkZMeA=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..50d6491e0 --- /dev/null +++ b/typescript-generator-core/.nondex/I8Qj0Wzcl3lgLx8gPE280SXsSKFF1LTQqeTvHSkZMeA=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/I8Qj0Wzcl3lgLx8gPE280SXsSKFF1LTQqeTvHSkZMeA=/config b/typescript-generator-core/.nondex/I8Qj0Wzcl3lgLx8gPE280SXsSKFF1LTQqeTvHSkZMeA=/config new file mode 100644 index 000000000..634a7f447 --- /dev/null +++ b/typescript-generator-core/.nondex/I8Qj0Wzcl3lgLx8gPE280SXsSKFF1LTQqeTvHSkZMeA=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=4497362 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=I8Qj0Wzcl3lgLx8gPE280SXsSKFF1LTQqeTvHSkZMeA= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/I8Qj0Wzcl3lgLx8gPE280SXsSKFF1LTQqeTvHSkZMeA=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/I8Qj0Wzcl3lgLx8gPE280SXsSKFF1LTQqeTvHSkZMeA=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..9600932e4 --- /dev/null +++ b/typescript-generator-core/.nondex/I8Qj0Wzcl3lgLx8gPE280SXsSKFF1LTQqeTvHSkZMeA=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.254 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.253 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/I8Qj0Wzcl3lgLx8gPE280SXsSKFF1LTQqeTvHSkZMeA=/failures b/typescript-generator-core/.nondex/I8Qj0Wzcl3lgLx8gPE280SXsSKFF1LTQqeTvHSkZMeA=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/I8Qj0Wzcl3lgLx8gPE280SXsSKFF1LTQqeTvHSkZMeA=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/I8Qj0Wzcl3lgLx8gPE280SXsSKFF1LTQqeTvHSkZMeA=/invocations b/typescript-generator-core/.nondex/I8Qj0Wzcl3lgLx8gPE280SXsSKFF1LTQqeTvHSkZMeA=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/I8Qj0Wzcl3lgLx8gPE280SXsSKFF1LTQqeTvHSkZMeA=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/IBNm7zJDFUPCkT7VKJX557BaGwRicCed5WB4SFL9tvg=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/IBNm7zJDFUPCkT7VKJX557BaGwRicCed5WB4SFL9tvg=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..d4255e031 --- /dev/null +++ b/typescript-generator-core/.nondex/IBNm7zJDFUPCkT7VKJX557BaGwRicCed5WB4SFL9tvg=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,176 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:< +interface [CSquare2 extends IQuadrilateral2 { + kind: "square"; + size: number; +} + +interface IShape2 { + kind: "circle" | "square" | "rectangle"; +} + +interface IQuadrilateral2 extends IShape2 { + kind: "square" | "rectangle"; +} + +interface CCircle2 extends IShape2 { + kind: "circle"; + radius: number; +} + +interface CRectangle2 extends IQuadrilateral2 { + kind: "rectangle"; + width: number; + height: number]; +} + +type IShape2Uni...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/IBNm7zJDFUPCkT7VKJX557BaGwRicCed5WB4SFL9tvg=/config b/typescript-generator-core/.nondex/IBNm7zJDFUPCkT7VKJX557BaGwRicCed5WB4SFL9tvg=/config new file mode 100644 index 000000000..81e605c41 --- /dev/null +++ b/typescript-generator-core/.nondex/IBNm7zJDFUPCkT7VKJX557BaGwRicCed5WB4SFL9tvg=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1306174 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=IBNm7zJDFUPCkT7VKJX557BaGwRicCed5WB4SFL9tvg= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/IBNm7zJDFUPCkT7VKJX557BaGwRicCed5WB4SFL9tvg=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/IBNm7zJDFUPCkT7VKJX557BaGwRicCed5WB4SFL9tvg=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..3efa5cddd --- /dev/null +++ b/typescript-generator-core/.nondex/IBNm7zJDFUPCkT7VKJX557BaGwRicCed5WB4SFL9tvg=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,100 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.198 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.198 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:< +interface [IShape2 { + kind: "circle" | "square" | "rectangle"; +} + +interface CSquare2 extends IQuadrilateral2 { + kind: "square"; + size: number; +} + +interface CRectangle2 extends IQuadrilateral2 { + kind: "rectangle"; + width: number; + height: number; +} + +interface CCircle2 extends IShape2 { + kind: "circle"; + radius: number; +} + +interface IQuadrilateral2 extends IShape2 { + kind: "square" | "rectangle"]; +} + +type IShape2Uni...> but was:< +interface [CSquare2 extends IQuadrilateral2 { + kind: "square"; + size: number; +} + +interface IShape2 { + kind: "circle" | "square" | "rectangle"; +} + +interface IQuadrilateral2 extends IShape2 { + kind: "square" | "rectangle"; +} + +interface CCircle2 extends IShape2 { + kind: "circle"; + radius: number; +} + +interface CRectangle2 extends IQuadrilateral2 { + kind: "rectangle"; + width: number; + height: number]; +} + +type IShape2Uni...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/IBNm7zJDFUPCkT7VKJX557BaGwRicCed5WB4SFL9tvg=/failures b/typescript-generator-core/.nondex/IBNm7zJDFUPCkT7VKJX557BaGwRicCed5WB4SFL9tvg=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/IBNm7zJDFUPCkT7VKJX557BaGwRicCed5WB4SFL9tvg=/invocations b/typescript-generator-core/.nondex/IBNm7zJDFUPCkT7VKJX557BaGwRicCed5WB4SFL9tvg=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/IBNm7zJDFUPCkT7VKJX557BaGwRicCed5WB4SFL9tvg=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/IT0cCQ8ko6ru0x1FA+yYVZ2UPkfRV7h3ENa4mkT+Yyc=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/IT0cCQ8ko6ru0x1FA+yYVZ2UPkfRV7h3ENa4mkT+Yyc=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..fb46e9b9b --- /dev/null +++ b/typescript-generator-core/.nondex/IT0cCQ8ko6ru0x1FA+yYVZ2UPkfRV7h3ENa4mkT+Yyc=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/IT0cCQ8ko6ru0x1FA+yYVZ2UPkfRV7h3ENa4mkT+Yyc=/config b/typescript-generator-core/.nondex/IT0cCQ8ko6ru0x1FA+yYVZ2UPkfRV7h3ENa4mkT+Yyc=/config new file mode 100644 index 000000000..966b0608c --- /dev/null +++ b/typescript-generator-core/.nondex/IT0cCQ8ko6ru0x1FA+yYVZ2UPkfRV7h3ENa4mkT+Yyc=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1720614 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=IT0cCQ8ko6ru0x1FA+yYVZ2UPkfRV7h3ENa4mkT+Yyc= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/IT0cCQ8ko6ru0x1FA+yYVZ2UPkfRV7h3ENa4mkT+Yyc=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/IT0cCQ8ko6ru0x1FA+yYVZ2UPkfRV7h3ENa4mkT+Yyc=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..adb4ddbbe --- /dev/null +++ b/typescript-generator-core/.nondex/IT0cCQ8ko6ru0x1FA+yYVZ2UPkfRV7h3ENa4mkT+Yyc=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.219 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/IT0cCQ8ko6ru0x1FA+yYVZ2UPkfRV7h3ENa4mkT+Yyc=/failures b/typescript-generator-core/.nondex/IT0cCQ8ko6ru0x1FA+yYVZ2UPkfRV7h3ENa4mkT+Yyc=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/IT0cCQ8ko6ru0x1FA+yYVZ2UPkfRV7h3ENa4mkT+Yyc=/invocations b/typescript-generator-core/.nondex/IT0cCQ8ko6ru0x1FA+yYVZ2UPkfRV7h3ENa4mkT+Yyc=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/IT0cCQ8ko6ru0x1FA+yYVZ2UPkfRV7h3ENa4mkT+Yyc=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/Je6CqdhP9sDX1PH3Qdj4FfDgNtZrABZiQ9W7xBuczU=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/Je6CqdhP9sDX1PH3Qdj4FfDgNtZrABZiQ9W7xBuczU=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..6a9555fcb --- /dev/null +++ b/typescript-generator-core/.nondex/Je6CqdhP9sDX1PH3Qdj4FfDgNtZrABZiQ9W7xBuczU=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/Je6CqdhP9sDX1PH3Qdj4FfDgNtZrABZiQ9W7xBuczU=/config b/typescript-generator-core/.nondex/Je6CqdhP9sDX1PH3Qdj4FfDgNtZrABZiQ9W7xBuczU=/config new file mode 100644 index 000000000..605396247 --- /dev/null +++ b/typescript-generator-core/.nondex/Je6CqdhP9sDX1PH3Qdj4FfDgNtZrABZiQ9W7xBuczU=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=2300830 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=Je6CqdhP9sDX1PH3Qdj4FfDgNtZrABZiQ9W7xBuczU= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/Je6CqdhP9sDX1PH3Qdj4FfDgNtZrABZiQ9W7xBuczU=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/Je6CqdhP9sDX1PH3Qdj4FfDgNtZrABZiQ9W7xBuczU=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..7cfd0eb3d --- /dev/null +++ b/typescript-generator-core/.nondex/Je6CqdhP9sDX1PH3Qdj4FfDgNtZrABZiQ9W7xBuczU=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.218 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.216 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/Je6CqdhP9sDX1PH3Qdj4FfDgNtZrABZiQ9W7xBuczU=/failures b/typescript-generator-core/.nondex/Je6CqdhP9sDX1PH3Qdj4FfDgNtZrABZiQ9W7xBuczU=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/Je6CqdhP9sDX1PH3Qdj4FfDgNtZrABZiQ9W7xBuczU=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/Je6CqdhP9sDX1PH3Qdj4FfDgNtZrABZiQ9W7xBuczU=/invocations b/typescript-generator-core/.nondex/Je6CqdhP9sDX1PH3Qdj4FfDgNtZrABZiQ9W7xBuczU=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/Je6CqdhP9sDX1PH3Qdj4FfDgNtZrABZiQ9W7xBuczU=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/JtyyMxYVnv04QZJD7ZE60t9whx2veUJxpvrkTQ6YQ=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/JtyyMxYVnv04QZJD7ZE60t9whx2veUJxpvrkTQ6YQ=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..7bcc5193a --- /dev/null +++ b/typescript-generator-core/.nondex/JtyyMxYVnv04QZJD7ZE60t9whx2veUJxpvrkTQ6YQ=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/JtyyMxYVnv04QZJD7ZE60t9whx2veUJxpvrkTQ6YQ=/config b/typescript-generator-core/.nondex/JtyyMxYVnv04QZJD7ZE60t9whx2veUJxpvrkTQ6YQ=/config new file mode 100644 index 000000000..47d831a37 --- /dev/null +++ b/typescript-generator-core/.nondex/JtyyMxYVnv04QZJD7ZE60t9whx2veUJxpvrkTQ6YQ=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1844946 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=JtyyMxYVnv04QZJD7ZE60t9whx2veUJxpvrkTQ6YQ= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/JtyyMxYVnv04QZJD7ZE60t9whx2veUJxpvrkTQ6YQ=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/JtyyMxYVnv04QZJD7ZE60t9whx2veUJxpvrkTQ6YQ=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..4ed75d988 --- /dev/null +++ b/typescript-generator-core/.nondex/JtyyMxYVnv04QZJD7ZE60t9whx2veUJxpvrkTQ6YQ=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.214 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.21 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/JtyyMxYVnv04QZJD7ZE60t9whx2veUJxpvrkTQ6YQ=/failures b/typescript-generator-core/.nondex/JtyyMxYVnv04QZJD7ZE60t9whx2veUJxpvrkTQ6YQ=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/JtyyMxYVnv04QZJD7ZE60t9whx2veUJxpvrkTQ6YQ=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/JtyyMxYVnv04QZJD7ZE60t9whx2veUJxpvrkTQ6YQ=/invocations b/typescript-generator-core/.nondex/JtyyMxYVnv04QZJD7ZE60t9whx2veUJxpvrkTQ6YQ=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/JtyyMxYVnv04QZJD7ZE60t9whx2veUJxpvrkTQ6YQ=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/K8hhZr8Db1M6v4gwKM2j1Mhv64s9Z7ajYXTcQurFScw=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/K8hhZr8Db1M6v4gwKM2j1Mhv64s9Z7ajYXTcQurFScw=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..5dced11a1 --- /dev/null +++ b/typescript-generator-core/.nondex/K8hhZr8Db1M6v4gwKM2j1Mhv64s9Z7ajYXTcQurFScw=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/K8hhZr8Db1M6v4gwKM2j1Mhv64s9Z7ajYXTcQurFScw=/config b/typescript-generator-core/.nondex/K8hhZr8Db1M6v4gwKM2j1Mhv64s9Z7ajYXTcQurFScw=/config new file mode 100644 index 000000000..57de9380d --- /dev/null +++ b/typescript-generator-core/.nondex/K8hhZr8Db1M6v4gwKM2j1Mhv64s9Z7ajYXTcQurFScw=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=4041478 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=K8hhZr8Db1M6v4gwKM2j1Mhv64s9Z7ajYXTcQurFScw= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/K8hhZr8Db1M6v4gwKM2j1Mhv64s9Z7ajYXTcQurFScw=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/K8hhZr8Db1M6v4gwKM2j1Mhv64s9Z7ajYXTcQurFScw=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..a45ce5814 --- /dev/null +++ b/typescript-generator-core/.nondex/K8hhZr8Db1M6v4gwKM2j1Mhv64s9Z7ajYXTcQurFScw=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.233 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.232 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/K8hhZr8Db1M6v4gwKM2j1Mhv64s9Z7ajYXTcQurFScw=/failures b/typescript-generator-core/.nondex/K8hhZr8Db1M6v4gwKM2j1Mhv64s9Z7ajYXTcQurFScw=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/K8hhZr8Db1M6v4gwKM2j1Mhv64s9Z7ajYXTcQurFScw=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/K8hhZr8Db1M6v4gwKM2j1Mhv64s9Z7ajYXTcQurFScw=/invocations b/typescript-generator-core/.nondex/K8hhZr8Db1M6v4gwKM2j1Mhv64s9Z7ajYXTcQurFScw=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/K8hhZr8Db1M6v4gwKM2j1Mhv64s9Z7ajYXTcQurFScw=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/KSOBk9yoTH14wiOH2foXliLIAUbivc4x0N9TKXKhjqc=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/KSOBk9yoTH14wiOH2foXliLIAUbivc4x0N9TKXKhjqc=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..985a1c881 --- /dev/null +++ b/typescript-generator-core/.nondex/KSOBk9yoTH14wiOH2foXliLIAUbivc4x0N9TKXKhjqc=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/KSOBk9yoTH14wiOH2foXliLIAUbivc4x0N9TKXKhjqc=/config b/typescript-generator-core/.nondex/KSOBk9yoTH14wiOH2foXliLIAUbivc4x0N9TKXKhjqc=/config new file mode 100644 index 000000000..abd01e6f8 --- /dev/null +++ b/typescript-generator-core/.nondex/KSOBk9yoTH14wiOH2foXliLIAUbivc4x0N9TKXKhjqc=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=974622 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=KSOBk9yoTH14wiOH2foXliLIAUbivc4x0N9TKXKhjqc= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/KSOBk9yoTH14wiOH2foXliLIAUbivc4x0N9TKXKhjqc=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/KSOBk9yoTH14wiOH2foXliLIAUbivc4x0N9TKXKhjqc=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..d57a9f605 --- /dev/null +++ b/typescript-generator-core/.nondex/KSOBk9yoTH14wiOH2foXliLIAUbivc4x0N9TKXKhjqc=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.209 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/KSOBk9yoTH14wiOH2foXliLIAUbivc4x0N9TKXKhjqc=/failures b/typescript-generator-core/.nondex/KSOBk9yoTH14wiOH2foXliLIAUbivc4x0N9TKXKhjqc=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/KSOBk9yoTH14wiOH2foXliLIAUbivc4x0N9TKXKhjqc=/invocations b/typescript-generator-core/.nondex/KSOBk9yoTH14wiOH2foXliLIAUbivc4x0N9TKXKhjqc=/invocations new file mode 100644 index 000000000..7ad7d1da8 --- /dev/null +++ b/typescript-generator-core/.nondex/KSOBk9yoTH14wiOH2foXliLIAUbivc4x0N9TKXKhjqc=/invocations @@ -0,0 +1,2 @@ +COUNT:67 +SHUFFLES:67 diff --git a/typescript-generator-core/.nondex/KoC8uNg+o+Dcs6Gvyb7+8sZDlCmPAoOKquNaoPFPkU=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/KoC8uNg+o+Dcs6Gvyb7+8sZDlCmPAoOKquNaoPFPkU=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..51ef5a7ef --- /dev/null +++ b/typescript-generator-core/.nondex/KoC8uNg+o+Dcs6Gvyb7+8sZDlCmPAoOKquNaoPFPkU=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/KoC8uNg+o+Dcs6Gvyb7+8sZDlCmPAoOKquNaoPFPkU=/config b/typescript-generator-core/.nondex/KoC8uNg+o+Dcs6Gvyb7+8sZDlCmPAoOKquNaoPFPkU=/config new file mode 100644 index 000000000..b65fc23e2 --- /dev/null +++ b/typescript-generator-core/.nondex/KoC8uNg+o+Dcs6Gvyb7+8sZDlCmPAoOKquNaoPFPkU=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=4953246 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=KoC8uNg+o+Dcs6Gvyb7+8sZDlCmPAoOKquNaoPFPkU= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/KoC8uNg+o+Dcs6Gvyb7+8sZDlCmPAoOKquNaoPFPkU=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/KoC8uNg+o+Dcs6Gvyb7+8sZDlCmPAoOKquNaoPFPkU=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..81b8deb63 --- /dev/null +++ b/typescript-generator-core/.nondex/KoC8uNg+o+Dcs6Gvyb7+8sZDlCmPAoOKquNaoPFPkU=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.232 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.231 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/KoC8uNg+o+Dcs6Gvyb7+8sZDlCmPAoOKquNaoPFPkU=/failures b/typescript-generator-core/.nondex/KoC8uNg+o+Dcs6Gvyb7+8sZDlCmPAoOKquNaoPFPkU=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/KoC8uNg+o+Dcs6Gvyb7+8sZDlCmPAoOKquNaoPFPkU=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/KoC8uNg+o+Dcs6Gvyb7+8sZDlCmPAoOKquNaoPFPkU=/invocations b/typescript-generator-core/.nondex/KoC8uNg+o+Dcs6Gvyb7+8sZDlCmPAoOKquNaoPFPkU=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/KoC8uNg+o+Dcs6Gvyb7+8sZDlCmPAoOKquNaoPFPkU=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/Kt+vu6ZIJ0eob5HJFfKkNHJeKira+YoVmqkFOD1TbZg=.run b/typescript-generator-core/.nondex/Kt+vu6ZIJ0eob5HJFfKkNHJeKira+YoVmqkFOD1TbZg=.run new file mode 100644 index 000000000..2dca8a099 --- /dev/null +++ b/typescript-generator-core/.nondex/Kt+vu6ZIJ0eob5HJFfKkNHJeKira+YoVmqkFOD1TbZg=.run @@ -0,0 +1,4 @@ +Kt+vu6ZIJ0eob5HJFfKkNHJeKira+YoVmqkFOD1TbZg= +9mx7dcyQ3hfdNj0OTm7CWYtO8EzA089D4SqWo540efc= +O2KJzZO6CFetkVn+CTwtDnz5AEGPNGM7IqXBqtyAUbM= +clean_P+uJj8AGHaFrlLBOBqwFWtqxofedDNclEppo7d3jOQ= diff --git a/typescript-generator-core/.nondex/Kt+vu6ZIJ0eob5HJFfKkNHJeKira+YoVmqkFOD1TbZg=/config b/typescript-generator-core/.nondex/Kt+vu6ZIJ0eob5HJFfKkNHJeKira+YoVmqkFOD1TbZg=/config new file mode 100644 index 000000000..fd59f9e85 --- /dev/null +++ b/typescript-generator-core/.nondex/Kt+vu6ZIJ0eob5HJFfKkNHJeKira+YoVmqkFOD1TbZg=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=933178 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=Kt+vu6ZIJ0eob5HJFfKkNHJeKira+YoVmqkFOD1TbZg= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/Kt+vu6ZIJ0eob5HJFfKkNHJeKira+YoVmqkFOD1TbZg=/failures b/typescript-generator-core/.nondex/Kt+vu6ZIJ0eob5HJFfKkNHJeKira+YoVmqkFOD1TbZg=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/Kt+vu6ZIJ0eob5HJFfKkNHJeKira+YoVmqkFOD1TbZg=/invocations b/typescript-generator-core/.nondex/Kt+vu6ZIJ0eob5HJFfKkNHJeKira+YoVmqkFOD1TbZg=/invocations new file mode 100644 index 000000000..c164bf6ef --- /dev/null +++ b/typescript-generator-core/.nondex/Kt+vu6ZIJ0eob5HJFfKkNHJeKira+YoVmqkFOD1TbZg=/invocations @@ -0,0 +1,2 @@ +COUNT:16 +SHUFFLES:16 diff --git a/typescript-generator-core/.nondex/Kt+vu6ZIJ0eob5HJFfKkNHJeKira+YoVmqkFOD1TbZg=/test_results.html b/typescript-generator-core/.nondex/Kt+vu6ZIJ0eob5HJFfKkNHJeKira+YoVmqkFOD1TbZg=/test_results.html new file mode 100644 index 000000000..ee93290bb --- /dev/null +++ b/typescript-generator-core/.nondex/Kt+vu6ZIJ0eob5HJFfKkNHJeKira+YoVmqkFOD1TbZg=/test_results.html @@ -0,0 +1 @@ +Test Results
Test Name9331789746221016066
\ No newline at end of file diff --git a/typescript-generator-core/.nondex/Kughq47STNT9dSrSs6oj0a8Y2rW3JyCB3KSXxkoEI84=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/Kughq47STNT9dSrSs6oj0a8Y2rW3JyCB3KSXxkoEI84=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..d3c3101ee --- /dev/null +++ b/typescript-generator-core/.nondex/Kughq47STNT9dSrSs6oj0a8Y2rW3JyCB3KSXxkoEI84=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/Kughq47STNT9dSrSs6oj0a8Y2rW3JyCB3KSXxkoEI84=/config b/typescript-generator-core/.nondex/Kughq47STNT9dSrSs6oj0a8Y2rW3JyCB3KSXxkoEI84=/config new file mode 100644 index 000000000..122d8d2fc --- /dev/null +++ b/typescript-generator-core/.nondex/Kughq47STNT9dSrSs6oj0a8Y2rW3JyCB3KSXxkoEI84=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=3668482 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=Kughq47STNT9dSrSs6oj0a8Y2rW3JyCB3KSXxkoEI84= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/Kughq47STNT9dSrSs6oj0a8Y2rW3JyCB3KSXxkoEI84=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/Kughq47STNT9dSrSs6oj0a8Y2rW3JyCB3KSXxkoEI84=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..66aae9f6c --- /dev/null +++ b/typescript-generator-core/.nondex/Kughq47STNT9dSrSs6oj0a8Y2rW3JyCB3KSXxkoEI84=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.239 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/Kughq47STNT9dSrSs6oj0a8Y2rW3JyCB3KSXxkoEI84=/failures b/typescript-generator-core/.nondex/Kughq47STNT9dSrSs6oj0a8Y2rW3JyCB3KSXxkoEI84=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/Kughq47STNT9dSrSs6oj0a8Y2rW3JyCB3KSXxkoEI84=/invocations b/typescript-generator-core/.nondex/Kughq47STNT9dSrSs6oj0a8Y2rW3JyCB3KSXxkoEI84=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/Kughq47STNT9dSrSs6oj0a8Y2rW3JyCB3KSXxkoEI84=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/LAIj60x90aXyBkt8KDEcLIfWlHerOdtUEmmRlpSeDGg=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/LAIj60x90aXyBkt8KDEcLIfWlHerOdtUEmmRlpSeDGg=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..d2c2dae39 --- /dev/null +++ b/typescript-generator-core/.nondex/LAIj60x90aXyBkt8KDEcLIfWlHerOdtUEmmRlpSeDGg=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,70 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/LAIj60x90aXyBkt8KDEcLIfWlHerOdtUEmmRlpSeDGg=/config b/typescript-generator-core/.nondex/LAIj60x90aXyBkt8KDEcLIfWlHerOdtUEmmRlpSeDGg=/config new file mode 100644 index 000000000..845b7d66f --- /dev/null +++ b/typescript-generator-core/.nondex/LAIj60x90aXyBkt8KDEcLIfWlHerOdtUEmmRlpSeDGg=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=974622 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=LAIj60x90aXyBkt8KDEcLIfWlHerOdtUEmmRlpSeDGg= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/LAIj60x90aXyBkt8KDEcLIfWlHerOdtUEmmRlpSeDGg=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/LAIj60x90aXyBkt8KDEcLIfWlHerOdtUEmmRlpSeDGg=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..50cea75a7 --- /dev/null +++ b/typescript-generator-core/.nondex/LAIj60x90aXyBkt8KDEcLIfWlHerOdtUEmmRlpSeDGg=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.196 sec - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/LAIj60x90aXyBkt8KDEcLIfWlHerOdtUEmmRlpSeDGg=/failures b/typescript-generator-core/.nondex/LAIj60x90aXyBkt8KDEcLIfWlHerOdtUEmmRlpSeDGg=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/LAIj60x90aXyBkt8KDEcLIfWlHerOdtUEmmRlpSeDGg=/invocations b/typescript-generator-core/.nondex/LAIj60x90aXyBkt8KDEcLIfWlHerOdtUEmmRlpSeDGg=/invocations new file mode 100644 index 000000000..11ff8fe83 --- /dev/null +++ b/typescript-generator-core/.nondex/LAIj60x90aXyBkt8KDEcLIfWlHerOdtUEmmRlpSeDGg=/invocations @@ -0,0 +1,2 @@ +COUNT:61 +SHUFFLES:61 diff --git a/typescript-generator-core/.nondex/LATEST b/typescript-generator-core/.nondex/LATEST new file mode 100644 index 000000000..215563073 --- /dev/null +++ b/typescript-generator-core/.nondex/LATEST @@ -0,0 +1,11 @@ +GXR8QbYgG9NPBO9QGwkzJBn1Lkpslu9zZcXWYMBU= +LAIj60x90aXyBkt8KDEcLIfWlHerOdtUEmmRlpSeDGg= +yXE5ZS2VfsR2hPf2CB2XOSMnTRkJs+4ncWnR+4wFMg= +fvRAMK5JdZp93WO+88UTF7Nl4ENif5reU5Ws5jv0L0= +vhzXxFAMNHliF5sz7KauZqYi30nbMUKREvXhnzW2vk= +69gDDGHRpC9cGEey526m8mEVSop9bkDeB+10gYQNA2A= +vey1yLBh2UihjgIh+tsPKM92HP0CvfxywMkB1Fczno= +BOb1PiPcagkjM2zzp3wJU9h+QrYzuRvc3pRB5rArK0= +3DiG69cvUmPc15eg3d5hKcQXVSLdGcLNn+KEvxQZR4E= +7mtByFrMjHZdcc6+umWMG63B0z+YLGb19GWqQHft0= +clean_GyvSK4Xwy4H9HUditlSHBhatfjlDQQUoYQ8wEPMUGXk= diff --git a/typescript-generator-core/.nondex/LKM7Uj0OdX5f+qM8EmS8j47+NEAE0flJvoPLR72pD8=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/LKM7Uj0OdX5f+qM8EmS8j47+NEAE0flJvoPLR72pD8=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..2a0e622ba --- /dev/null +++ b/typescript-generator-core/.nondex/LKM7Uj0OdX5f+qM8EmS8j47+NEAE0flJvoPLR72pD8=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/LKM7Uj0OdX5f+qM8EmS8j47+NEAE0flJvoPLR72pD8=/config b/typescript-generator-core/.nondex/LKM7Uj0OdX5f+qM8EmS8j47+NEAE0flJvoPLR72pD8=/config new file mode 100644 index 000000000..cb262ae99 --- /dev/null +++ b/typescript-generator-core/.nondex/LKM7Uj0OdX5f+qM8EmS8j47+NEAE0flJvoPLR72pD8=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=3419818 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=LKM7Uj0OdX5f+qM8EmS8j47+NEAE0flJvoPLR72pD8= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/LKM7Uj0OdX5f+qM8EmS8j47+NEAE0flJvoPLR72pD8=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/LKM7Uj0OdX5f+qM8EmS8j47+NEAE0flJvoPLR72pD8=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..2ee89da33 --- /dev/null +++ b/typescript-generator-core/.nondex/LKM7Uj0OdX5f+qM8EmS8j47+NEAE0flJvoPLR72pD8=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.195 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.193 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/LKM7Uj0OdX5f+qM8EmS8j47+NEAE0flJvoPLR72pD8=/failures b/typescript-generator-core/.nondex/LKM7Uj0OdX5f+qM8EmS8j47+NEAE0flJvoPLR72pD8=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/LKM7Uj0OdX5f+qM8EmS8j47+NEAE0flJvoPLR72pD8=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/LKM7Uj0OdX5f+qM8EmS8j47+NEAE0flJvoPLR72pD8=/invocations b/typescript-generator-core/.nondex/LKM7Uj0OdX5f+qM8EmS8j47+NEAE0flJvoPLR72pD8=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/LKM7Uj0OdX5f+qM8EmS8j47+NEAE0flJvoPLR72pD8=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/LU+YGB+xF8USB5hZ4AOgsh0sXVxV93lNZOeeON+0Pg=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/LU+YGB+xF8USB5hZ4AOgsh0sXVxV93lNZOeeON+0Pg=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..dff6e745d --- /dev/null +++ b/typescript-generator-core/.nondex/LU+YGB+xF8USB5hZ4AOgsh0sXVxV93lNZOeeON+0Pg=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/LU+YGB+xF8USB5hZ4AOgsh0sXVxV93lNZOeeON+0Pg=/config b/typescript-generator-core/.nondex/LU+YGB+xF8USB5hZ4AOgsh0sXVxV93lNZOeeON+0Pg=/config new file mode 100644 index 000000000..24dd12c79 --- /dev/null +++ b/typescript-generator-core/.nondex/LU+YGB+xF8USB5hZ4AOgsh0sXVxV93lNZOeeON+0Pg=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1969278 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=LU+YGB+xF8USB5hZ4AOgsh0sXVxV93lNZOeeON+0Pg= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/LU+YGB+xF8USB5hZ4AOgsh0sXVxV93lNZOeeON+0Pg=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/LU+YGB+xF8USB5hZ4AOgsh0sXVxV93lNZOeeON+0Pg=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..fcbbbc862 --- /dev/null +++ b/typescript-generator-core/.nondex/LU+YGB+xF8USB5hZ4AOgsh0sXVxV93lNZOeeON+0Pg=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.206 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.202 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/LU+YGB+xF8USB5hZ4AOgsh0sXVxV93lNZOeeON+0Pg=/failures b/typescript-generator-core/.nondex/LU+YGB+xF8USB5hZ4AOgsh0sXVxV93lNZOeeON+0Pg=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/LU+YGB+xF8USB5hZ4AOgsh0sXVxV93lNZOeeON+0Pg=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/LU+YGB+xF8USB5hZ4AOgsh0sXVxV93lNZOeeON+0Pg=/invocations b/typescript-generator-core/.nondex/LU+YGB+xF8USB5hZ4AOgsh0sXVxV93lNZOeeON+0Pg=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/LU+YGB+xF8USB5hZ4AOgsh0sXVxV93lNZOeeON+0Pg=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/LUFh8lm3RhUH+xMs4lVEW30xe4xWHavuZLn8VKktjhk=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/LUFh8lm3RhUH+xMs4lVEW30xe4xWHavuZLn8VKktjhk=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..abcbd8c48 --- /dev/null +++ b/typescript-generator-core/.nondex/LUFh8lm3RhUH+xMs4lVEW30xe4xWHavuZLn8VKktjhk=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/LUFh8lm3RhUH+xMs4lVEW30xe4xWHavuZLn8VKktjhk=/config b/typescript-generator-core/.nondex/LUFh8lm3RhUH+xMs4lVEW30xe4xWHavuZLn8VKktjhk=/config new file mode 100644 index 000000000..62dd058e0 --- /dev/null +++ b/typescript-generator-core/.nondex/LUFh8lm3RhUH+xMs4lVEW30xe4xWHavuZLn8VKktjhk=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=4041478 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=LUFh8lm3RhUH+xMs4lVEW30xe4xWHavuZLn8VKktjhk= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/LUFh8lm3RhUH+xMs4lVEW30xe4xWHavuZLn8VKktjhk=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/LUFh8lm3RhUH+xMs4lVEW30xe4xWHavuZLn8VKktjhk=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..add779aba --- /dev/null +++ b/typescript-generator-core/.nondex/LUFh8lm3RhUH+xMs4lVEW30xe4xWHavuZLn8VKktjhk=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.287 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.287 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/LUFh8lm3RhUH+xMs4lVEW30xe4xWHavuZLn8VKktjhk=/failures b/typescript-generator-core/.nondex/LUFh8lm3RhUH+xMs4lVEW30xe4xWHavuZLn8VKktjhk=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/LUFh8lm3RhUH+xMs4lVEW30xe4xWHavuZLn8VKktjhk=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/LUFh8lm3RhUH+xMs4lVEW30xe4xWHavuZLn8VKktjhk=/invocations b/typescript-generator-core/.nondex/LUFh8lm3RhUH+xMs4lVEW30xe4xWHavuZLn8VKktjhk=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/LUFh8lm3RhUH+xMs4lVEW30xe4xWHavuZLn8VKktjhk=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/Lgn1QP2LLVv29vX1vg1D5qM+fUs7kKGgvpEbgl6lU0=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/Lgn1QP2LLVv29vX1vg1D5qM+fUs7kKGgvpEbgl6lU0=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..5751179bf --- /dev/null +++ b/typescript-generator-core/.nondex/Lgn1QP2LLVv29vX1vg1D5qM+fUs7kKGgvpEbgl6lU0=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/Lgn1QP2LLVv29vX1vg1D5qM+fUs7kKGgvpEbgl6lU0=/config b/typescript-generator-core/.nondex/Lgn1QP2LLVv29vX1vg1D5qM+fUs7kKGgvpEbgl6lU0=/config new file mode 100644 index 000000000..eb01308fa --- /dev/null +++ b/typescript-generator-core/.nondex/Lgn1QP2LLVv29vX1vg1D5qM+fUs7kKGgvpEbgl6lU0=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=2508050 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=Lgn1QP2LLVv29vX1vg1D5qM+fUs7kKGgvpEbgl6lU0= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/Lgn1QP2LLVv29vX1vg1D5qM+fUs7kKGgvpEbgl6lU0=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/Lgn1QP2LLVv29vX1vg1D5qM+fUs7kKGgvpEbgl6lU0=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..5ee84116b --- /dev/null +++ b/typescript-generator-core/.nondex/Lgn1QP2LLVv29vX1vg1D5qM+fUs7kKGgvpEbgl6lU0=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.233 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/Lgn1QP2LLVv29vX1vg1D5qM+fUs7kKGgvpEbgl6lU0=/failures b/typescript-generator-core/.nondex/Lgn1QP2LLVv29vX1vg1D5qM+fUs7kKGgvpEbgl6lU0=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/Lgn1QP2LLVv29vX1vg1D5qM+fUs7kKGgvpEbgl6lU0=/invocations b/typescript-generator-core/.nondex/Lgn1QP2LLVv29vX1vg1D5qM+fUs7kKGgvpEbgl6lU0=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/Lgn1QP2LLVv29vX1vg1D5qM+fUs7kKGgvpEbgl6lU0=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/LnLjln762rciAq70CqeT3v1K4AoLic80CSQMuKruDik=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/LnLjln762rciAq70CqeT3v1K4AoLic80CSQMuKruDik=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..3bda27bec --- /dev/null +++ b/typescript-generator-core/.nondex/LnLjln762rciAq70CqeT3v1K4AoLic80CSQMuKruDik=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/LnLjln762rciAq70CqeT3v1K4AoLic80CSQMuKruDik=/config b/typescript-generator-core/.nondex/LnLjln762rciAq70CqeT3v1K4AoLic80CSQMuKruDik=/config new file mode 100644 index 000000000..8f76afbca --- /dev/null +++ b/typescript-generator-core/.nondex/LnLjln762rciAq70CqeT3v1K4AoLic80CSQMuKruDik=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=3958590 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=LnLjln762rciAq70CqeT3v1K4AoLic80CSQMuKruDik= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/LnLjln762rciAq70CqeT3v1K4AoLic80CSQMuKruDik=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/LnLjln762rciAq70CqeT3v1K4AoLic80CSQMuKruDik=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..bba1b48c2 --- /dev/null +++ b/typescript-generator-core/.nondex/LnLjln762rciAq70CqeT3v1K4AoLic80CSQMuKruDik=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.379 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.377 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/LnLjln762rciAq70CqeT3v1K4AoLic80CSQMuKruDik=/failures b/typescript-generator-core/.nondex/LnLjln762rciAq70CqeT3v1K4AoLic80CSQMuKruDik=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/LnLjln762rciAq70CqeT3v1K4AoLic80CSQMuKruDik=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/LnLjln762rciAq70CqeT3v1K4AoLic80CSQMuKruDik=/invocations b/typescript-generator-core/.nondex/LnLjln762rciAq70CqeT3v1K4AoLic80CSQMuKruDik=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/LnLjln762rciAq70CqeT3v1K4AoLic80CSQMuKruDik=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/LwbJJRSCrijAjatFVBBsMUYss8p94uLCtVo4ycnDuGo=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/LwbJJRSCrijAjatFVBBsMUYss8p94uLCtVo4ycnDuGo=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..6fa2bf42b --- /dev/null +++ b/typescript-generator-core/.nondex/LwbJJRSCrijAjatFVBBsMUYss8p94uLCtVo4ycnDuGo=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/LwbJJRSCrijAjatFVBBsMUYss8p94uLCtVo4ycnDuGo=/config b/typescript-generator-core/.nondex/LwbJJRSCrijAjatFVBBsMUYss8p94uLCtVo4ycnDuGo=/config new file mode 100644 index 000000000..985c7d866 --- /dev/null +++ b/typescript-generator-core/.nondex/LwbJJRSCrijAjatFVBBsMUYss8p94uLCtVo4ycnDuGo=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1886390 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=LwbJJRSCrijAjatFVBBsMUYss8p94uLCtVo4ycnDuGo= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/LwbJJRSCrijAjatFVBBsMUYss8p94uLCtVo4ycnDuGo=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/LwbJJRSCrijAjatFVBBsMUYss8p94uLCtVo4ycnDuGo=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..3c607ad50 --- /dev/null +++ b/typescript-generator-core/.nondex/LwbJJRSCrijAjatFVBBsMUYss8p94uLCtVo4ycnDuGo=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.21 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/LwbJJRSCrijAjatFVBBsMUYss8p94uLCtVo4ycnDuGo=/failures b/typescript-generator-core/.nondex/LwbJJRSCrijAjatFVBBsMUYss8p94uLCtVo4ycnDuGo=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/LwbJJRSCrijAjatFVBBsMUYss8p94uLCtVo4ycnDuGo=/invocations b/typescript-generator-core/.nondex/LwbJJRSCrijAjatFVBBsMUYss8p94uLCtVo4ycnDuGo=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/LwbJJRSCrijAjatFVBBsMUYss8p94uLCtVo4ycnDuGo=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/M191iQ2ZcBkAGwURZRixPSPmVb+Am3LAtkEwxozKzY=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/M191iQ2ZcBkAGwURZRixPSPmVb+Am3LAtkEwxozKzY=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..f87a5921f --- /dev/null +++ b/typescript-generator-core/.nondex/M191iQ2ZcBkAGwURZRixPSPmVb+Am3LAtkEwxozKzY=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/M191iQ2ZcBkAGwURZRixPSPmVb+Am3LAtkEwxozKzY=/config b/typescript-generator-core/.nondex/M191iQ2ZcBkAGwURZRixPSPmVb+Am3LAtkEwxozKzY=/config new file mode 100644 index 000000000..7f4316cf7 --- /dev/null +++ b/typescript-generator-core/.nondex/M191iQ2ZcBkAGwURZRixPSPmVb+Am3LAtkEwxozKzY=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=2756714 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=M191iQ2ZcBkAGwURZRixPSPmVb+Am3LAtkEwxozKzY= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/M191iQ2ZcBkAGwURZRixPSPmVb+Am3LAtkEwxozKzY=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/M191iQ2ZcBkAGwURZRixPSPmVb+Am3LAtkEwxozKzY=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..3e026901f --- /dev/null +++ b/typescript-generator-core/.nondex/M191iQ2ZcBkAGwURZRixPSPmVb+Am3LAtkEwxozKzY=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.223 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/M191iQ2ZcBkAGwURZRixPSPmVb+Am3LAtkEwxozKzY=/failures b/typescript-generator-core/.nondex/M191iQ2ZcBkAGwURZRixPSPmVb+Am3LAtkEwxozKzY=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/M191iQ2ZcBkAGwURZRixPSPmVb+Am3LAtkEwxozKzY=/invocations b/typescript-generator-core/.nondex/M191iQ2ZcBkAGwURZRixPSPmVb+Am3LAtkEwxozKzY=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/M191iQ2ZcBkAGwURZRixPSPmVb+Am3LAtkEwxozKzY=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/MFLnhmtH71o+NGZNA8Zp+s678squ4OSN6TKXsGV7MGg=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/MFLnhmtH71o+NGZNA8Zp+s678squ4OSN6TKXsGV7MGg=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..c38f36fbe --- /dev/null +++ b/typescript-generator-core/.nondex/MFLnhmtH71o+NGZNA8Zp+s678squ4OSN6TKXsGV7MGg=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/MFLnhmtH71o+NGZNA8Zp+s678squ4OSN6TKXsGV7MGg=/config b/typescript-generator-core/.nondex/MFLnhmtH71o+NGZNA8Zp+s678squ4OSN6TKXsGV7MGg=/config new file mode 100644 index 000000000..320a2efc8 --- /dev/null +++ b/typescript-generator-core/.nondex/MFLnhmtH71o+NGZNA8Zp+s678squ4OSN6TKXsGV7MGg=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1016066 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=MFLnhmtH71o+NGZNA8Zp+s678squ4OSN6TKXsGV7MGg= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/MFLnhmtH71o+NGZNA8Zp+s678squ4OSN6TKXsGV7MGg=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/MFLnhmtH71o+NGZNA8Zp+s678squ4OSN6TKXsGV7MGg=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..ac7ce22d5 --- /dev/null +++ b/typescript-generator-core/.nondex/MFLnhmtH71o+NGZNA8Zp+s678squ4OSN6TKXsGV7MGg=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.166 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/MFLnhmtH71o+NGZNA8Zp+s678squ4OSN6TKXsGV7MGg=/failures b/typescript-generator-core/.nondex/MFLnhmtH71o+NGZNA8Zp+s678squ4OSN6TKXsGV7MGg=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/MFLnhmtH71o+NGZNA8Zp+s678squ4OSN6TKXsGV7MGg=/invocations b/typescript-generator-core/.nondex/MFLnhmtH71o+NGZNA8Zp+s678squ4OSN6TKXsGV7MGg=/invocations new file mode 100644 index 000000000..7ad7d1da8 --- /dev/null +++ b/typescript-generator-core/.nondex/MFLnhmtH71o+NGZNA8Zp+s678squ4OSN6TKXsGV7MGg=/invocations @@ -0,0 +1,2 @@ +COUNT:67 +SHUFFLES:67 diff --git a/typescript-generator-core/.nondex/MxOcC++geg9Vp99YwGC8bHIFQKlomiV5m4WDCIascq8=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/MxOcC++geg9Vp99YwGC8bHIFQKlomiV5m4WDCIascq8=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..5b1cd01ca --- /dev/null +++ b/typescript-generator-core/.nondex/MxOcC++geg9Vp99YwGC8bHIFQKlomiV5m4WDCIascq8=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/MxOcC++geg9Vp99YwGC8bHIFQKlomiV5m4WDCIascq8=/config b/typescript-generator-core/.nondex/MxOcC++geg9Vp99YwGC8bHIFQKlomiV5m4WDCIascq8=/config new file mode 100644 index 000000000..bacf5b93f --- /dev/null +++ b/typescript-generator-core/.nondex/MxOcC++geg9Vp99YwGC8bHIFQKlomiV5m4WDCIascq8=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=3212598 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=MxOcC++geg9Vp99YwGC8bHIFQKlomiV5m4WDCIascq8= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/MxOcC++geg9Vp99YwGC8bHIFQKlomiV5m4WDCIascq8=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/MxOcC++geg9Vp99YwGC8bHIFQKlomiV5m4WDCIascq8=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..7efdb902f --- /dev/null +++ b/typescript-generator-core/.nondex/MxOcC++geg9Vp99YwGC8bHIFQKlomiV5m4WDCIascq8=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.236 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/MxOcC++geg9Vp99YwGC8bHIFQKlomiV5m4WDCIascq8=/failures b/typescript-generator-core/.nondex/MxOcC++geg9Vp99YwGC8bHIFQKlomiV5m4WDCIascq8=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/MxOcC++geg9Vp99YwGC8bHIFQKlomiV5m4WDCIascq8=/invocations b/typescript-generator-core/.nondex/MxOcC++geg9Vp99YwGC8bHIFQKlomiV5m4WDCIascq8=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/MxOcC++geg9Vp99YwGC8bHIFQKlomiV5m4WDCIascq8=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/N+6hwpfHq8XySXGZSw8C5ZKqJG+0qOi4AQkW+3kgY=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/N+6hwpfHq8XySXGZSw8C5ZKqJG+0qOi4AQkW+3kgY=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..c2352553a --- /dev/null +++ b/typescript-generator-core/.nondex/N+6hwpfHq8XySXGZSw8C5ZKqJG+0qOi4AQkW+3kgY=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/N+6hwpfHq8XySXGZSw8C5ZKqJG+0qOi4AQkW+3kgY=/config b/typescript-generator-core/.nondex/N+6hwpfHq8XySXGZSw8C5ZKqJG+0qOi4AQkW+3kgY=/config new file mode 100644 index 000000000..f0b13aa11 --- /dev/null +++ b/typescript-generator-core/.nondex/N+6hwpfHq8XySXGZSw8C5ZKqJG+0qOi4AQkW+3kgY=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=974622 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=N+6hwpfHq8XySXGZSw8C5ZKqJG+0qOi4AQkW+3kgY= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/N+6hwpfHq8XySXGZSw8C5ZKqJG+0qOi4AQkW+3kgY=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/N+6hwpfHq8XySXGZSw8C5ZKqJG+0qOi4AQkW+3kgY=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..a84a432e9 --- /dev/null +++ b/typescript-generator-core/.nondex/N+6hwpfHq8XySXGZSw8C5ZKqJG+0qOi4AQkW+3kgY=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.16 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/N+6hwpfHq8XySXGZSw8C5ZKqJG+0qOi4AQkW+3kgY=/failures b/typescript-generator-core/.nondex/N+6hwpfHq8XySXGZSw8C5ZKqJG+0qOi4AQkW+3kgY=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/N+6hwpfHq8XySXGZSw8C5ZKqJG+0qOi4AQkW+3kgY=/invocations b/typescript-generator-core/.nondex/N+6hwpfHq8XySXGZSw8C5ZKqJG+0qOi4AQkW+3kgY=/invocations new file mode 100644 index 000000000..7ad7d1da8 --- /dev/null +++ b/typescript-generator-core/.nondex/N+6hwpfHq8XySXGZSw8C5ZKqJG+0qOi4AQkW+3kgY=/invocations @@ -0,0 +1,2 @@ +COUNT:67 +SHUFFLES:67 diff --git a/typescript-generator-core/.nondex/NCe83z0b5x2rGbV3xGTLwLGl7D3FuHOIUOAVIw+Vdo=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/NCe83z0b5x2rGbV3xGTLwLGl7D3FuHOIUOAVIw+Vdo=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..39fdbd908 --- /dev/null +++ b/typescript-generator-core/.nondex/NCe83z0b5x2rGbV3xGTLwLGl7D3FuHOIUOAVIw+Vdo=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/NCe83z0b5x2rGbV3xGTLwLGl7D3FuHOIUOAVIw+Vdo=/config b/typescript-generator-core/.nondex/NCe83z0b5x2rGbV3xGTLwLGl7D3FuHOIUOAVIw+Vdo=/config new file mode 100644 index 000000000..5878ccfef --- /dev/null +++ b/typescript-generator-core/.nondex/NCe83z0b5x2rGbV3xGTLwLGl7D3FuHOIUOAVIw+Vdo=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=2798158 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=NCe83z0b5x2rGbV3xGTLwLGl7D3FuHOIUOAVIw+Vdo= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/NCe83z0b5x2rGbV3xGTLwLGl7D3FuHOIUOAVIw+Vdo=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/NCe83z0b5x2rGbV3xGTLwLGl7D3FuHOIUOAVIw+Vdo=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..561896334 --- /dev/null +++ b/typescript-generator-core/.nondex/NCe83z0b5x2rGbV3xGTLwLGl7D3FuHOIUOAVIw+Vdo=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.323 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.322 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/NCe83z0b5x2rGbV3xGTLwLGl7D3FuHOIUOAVIw+Vdo=/failures b/typescript-generator-core/.nondex/NCe83z0b5x2rGbV3xGTLwLGl7D3FuHOIUOAVIw+Vdo=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/NCe83z0b5x2rGbV3xGTLwLGl7D3FuHOIUOAVIw+Vdo=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/NCe83z0b5x2rGbV3xGTLwLGl7D3FuHOIUOAVIw+Vdo=/invocations b/typescript-generator-core/.nondex/NCe83z0b5x2rGbV3xGTLwLGl7D3FuHOIUOAVIw+Vdo=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/NCe83z0b5x2rGbV3xGTLwLGl7D3FuHOIUOAVIw+Vdo=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/NDoKA3gEXnGIsEu8bFZvv67ay4E4QTJHOYlyfobHEDE=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/NDoKA3gEXnGIsEu8bFZvv67ay4E4QTJHOYlyfobHEDE=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..c7b2eaef6 --- /dev/null +++ b/typescript-generator-core/.nondex/NDoKA3gEXnGIsEu8bFZvv67ay4E4QTJHOYlyfobHEDE=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/NDoKA3gEXnGIsEu8bFZvv67ay4E4QTJHOYlyfobHEDE=/config b/typescript-generator-core/.nondex/NDoKA3gEXnGIsEu8bFZvv67ay4E4QTJHOYlyfobHEDE=/config new file mode 100644 index 000000000..b4124fe1f --- /dev/null +++ b/typescript-generator-core/.nondex/NDoKA3gEXnGIsEu8bFZvv67ay4E4QTJHOYlyfobHEDE=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=3378374 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=NDoKA3gEXnGIsEu8bFZvv67ay4E4QTJHOYlyfobHEDE= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/NDoKA3gEXnGIsEu8bFZvv67ay4E4QTJHOYlyfobHEDE=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/NDoKA3gEXnGIsEu8bFZvv67ay4E4QTJHOYlyfobHEDE=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..bc0585e7c --- /dev/null +++ b/typescript-generator-core/.nondex/NDoKA3gEXnGIsEu8bFZvv67ay4E4QTJHOYlyfobHEDE=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.23 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.228 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/NDoKA3gEXnGIsEu8bFZvv67ay4E4QTJHOYlyfobHEDE=/failures b/typescript-generator-core/.nondex/NDoKA3gEXnGIsEu8bFZvv67ay4E4QTJHOYlyfobHEDE=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/NDoKA3gEXnGIsEu8bFZvv67ay4E4QTJHOYlyfobHEDE=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/NDoKA3gEXnGIsEu8bFZvv67ay4E4QTJHOYlyfobHEDE=/invocations b/typescript-generator-core/.nondex/NDoKA3gEXnGIsEu8bFZvv67ay4E4QTJHOYlyfobHEDE=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/NDoKA3gEXnGIsEu8bFZvv67ay4E4QTJHOYlyfobHEDE=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/NeH7o96P0iOZWIVwDKhHkdLs5u4GEVJCPqGoHfCYo=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/NeH7o96P0iOZWIVwDKhHkdLs5u4GEVJCPqGoHfCYo=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..1b106a235 --- /dev/null +++ b/typescript-generator-core/.nondex/NeH7o96P0iOZWIVwDKhHkdLs5u4GEVJCPqGoHfCYo=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/NeH7o96P0iOZWIVwDKhHkdLs5u4GEVJCPqGoHfCYo=/config b/typescript-generator-core/.nondex/NeH7o96P0iOZWIVwDKhHkdLs5u4GEVJCPqGoHfCYo=/config new file mode 100644 index 000000000..4f89085ca --- /dev/null +++ b/typescript-generator-core/.nondex/NeH7o96P0iOZWIVwDKhHkdLs5u4GEVJCPqGoHfCYo=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=4704582 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=NeH7o96P0iOZWIVwDKhHkdLs5u4GEVJCPqGoHfCYo= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/NeH7o96P0iOZWIVwDKhHkdLs5u4GEVJCPqGoHfCYo=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/NeH7o96P0iOZWIVwDKhHkdLs5u4GEVJCPqGoHfCYo=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..bcb00ef79 --- /dev/null +++ b/typescript-generator-core/.nondex/NeH7o96P0iOZWIVwDKhHkdLs5u4GEVJCPqGoHfCYo=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.231 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.228 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/NeH7o96P0iOZWIVwDKhHkdLs5u4GEVJCPqGoHfCYo=/failures b/typescript-generator-core/.nondex/NeH7o96P0iOZWIVwDKhHkdLs5u4GEVJCPqGoHfCYo=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/NeH7o96P0iOZWIVwDKhHkdLs5u4GEVJCPqGoHfCYo=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/NeH7o96P0iOZWIVwDKhHkdLs5u4GEVJCPqGoHfCYo=/invocations b/typescript-generator-core/.nondex/NeH7o96P0iOZWIVwDKhHkdLs5u4GEVJCPqGoHfCYo=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/NeH7o96P0iOZWIVwDKhHkdLs5u4GEVJCPqGoHfCYo=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/NexkTaOYVBgoXgdppoWKuji8qsSKnXAlPAd1FpUIeEE=/config b/typescript-generator-core/.nondex/NexkTaOYVBgoXgdppoWKuji8qsSKnXAlPAd1FpUIeEE=/config new file mode 100644 index 000000000..76ff5c279 --- /dev/null +++ b/typescript-generator-core/.nondex/NexkTaOYVBgoXgdppoWKuji8qsSKnXAlPAd1FpUIeEE=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1306174 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=NexkTaOYVBgoXgdppoWKuji8qsSKnXAlPAd1FpUIeEE= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/NexkTaOYVBgoXgdppoWKuji8qsSKnXAlPAd1FpUIeEE=/failures b/typescript-generator-core/.nondex/NexkTaOYVBgoXgdppoWKuji8qsSKnXAlPAd1FpUIeEE=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/NexkTaOYVBgoXgdppoWKuji8qsSKnXAlPAd1FpUIeEE=/invocations b/typescript-generator-core/.nondex/NexkTaOYVBgoXgdppoWKuji8qsSKnXAlPAd1FpUIeEE=/invocations new file mode 100644 index 000000000..c164bf6ef --- /dev/null +++ b/typescript-generator-core/.nondex/NexkTaOYVBgoXgdppoWKuji8qsSKnXAlPAd1FpUIeEE=/invocations @@ -0,0 +1,2 @@ +COUNT:16 +SHUFFLES:16 diff --git a/typescript-generator-core/.nondex/NgOg+zPyThIu4WM8quC+0Ijby4wIY1MBLMEDkYUC8=.run b/typescript-generator-core/.nondex/NgOg+zPyThIu4WM8quC+0Ijby4wIY1MBLMEDkYUC8=.run new file mode 100644 index 000000000..44bcd8e1d --- /dev/null +++ b/typescript-generator-core/.nondex/NgOg+zPyThIu4WM8quC+0Ijby4wIY1MBLMEDkYUC8=.run @@ -0,0 +1,4 @@ +NgOg+zPyThIu4WM8quC+0Ijby4wIY1MBLMEDkYUC8= +H4R6EOha9EQCVR+hF4FKNirZQuNhUiMp1Zs5zHuwq60= +uLjDBHC0c7JnQwINxAiXb23mu1DigjXDL9240GDDA= +clean_440tfCmPm7QYPWbKp81rvCPtNpw2X+mKG4pjwMrtQUY= diff --git a/typescript-generator-core/.nondex/NgOg+zPyThIu4WM8quC+0Ijby4wIY1MBLMEDkYUC8=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/NgOg+zPyThIu4WM8quC+0Ijby4wIY1MBLMEDkYUC8=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..c4d121d61 --- /dev/null +++ b/typescript-generator-core/.nondex/NgOg+zPyThIu4WM8quC+0Ijby4wIY1MBLMEDkYUC8=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:140) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/NgOg+zPyThIu4WM8quC+0Ijby4wIY1MBLMEDkYUC8=/config b/typescript-generator-core/.nondex/NgOg+zPyThIu4WM8quC+0Ijby4wIY1MBLMEDkYUC8=/config new file mode 100644 index 000000000..a0051e02c --- /dev/null +++ b/typescript-generator-core/.nondex/NgOg+zPyThIu4WM8quC+0Ijby4wIY1MBLMEDkYUC8=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=933178 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=NgOg+zPyThIu4WM8quC+0Ijby4wIY1MBLMEDkYUC8= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/NgOg+zPyThIu4WM8quC+0Ijby4wIY1MBLMEDkYUC8=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/NgOg+zPyThIu4WM8quC+0Ijby4wIY1MBLMEDkYUC8=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..9518a0018 --- /dev/null +++ b/typescript-generator-core/.nondex/NgOg+zPyThIu4WM8quC+0Ijby4wIY1MBLMEDkYUC8=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,20 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.161 sec <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.159 sec <<< FAILURE! +org.junit.ComparisonFailure: expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:140) + diff --git a/typescript-generator-core/.nondex/NgOg+zPyThIu4WM8quC+0Ijby4wIY1MBLMEDkYUC8=/failures b/typescript-generator-core/.nondex/NgOg+zPyThIu4WM8quC+0Ijby4wIY1MBLMEDkYUC8=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/NgOg+zPyThIu4WM8quC+0Ijby4wIY1MBLMEDkYUC8=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/NgOg+zPyThIu4WM8quC+0Ijby4wIY1MBLMEDkYUC8=/invocations b/typescript-generator-core/.nondex/NgOg+zPyThIu4WM8quC+0Ijby4wIY1MBLMEDkYUC8=/invocations new file mode 100644 index 000000000..e066c9f34 --- /dev/null +++ b/typescript-generator-core/.nondex/NgOg+zPyThIu4WM8quC+0Ijby4wIY1MBLMEDkYUC8=/invocations @@ -0,0 +1,2 @@ +COUNT:57 +SHUFFLES:57 diff --git a/typescript-generator-core/.nondex/NgOg+zPyThIu4WM8quC+0Ijby4wIY1MBLMEDkYUC8=/test_results.html b/typescript-generator-core/.nondex/NgOg+zPyThIu4WM8quC+0Ijby4wIY1MBLMEDkYUC8=/test_results.html new file mode 100644 index 000000000..a94e71794 --- /dev/null +++ b/typescript-generator-core/.nondex/NgOg+zPyThIu4WM8quC+0Ijby4wIY1MBLMEDkYUC8=/test_results.html @@ -0,0 +1 @@ +Test Results
Test Name9331789746221016066
cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces
\ No newline at end of file diff --git a/typescript-generator-core/.nondex/Nrmn5Kyu2hhH0KPH3UTvekg7a7nqA2K7HcihIpMLg=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/Nrmn5Kyu2hhH0KPH3UTvekg7a7nqA2K7HcihIpMLg=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..a793cee3f --- /dev/null +++ b/typescript-generator-core/.nondex/Nrmn5Kyu2hhH0KPH3UTvekg7a7nqA2K7HcihIpMLg=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,69 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/Nrmn5Kyu2hhH0KPH3UTvekg7a7nqA2K7HcihIpMLg=/config b/typescript-generator-core/.nondex/Nrmn5Kyu2hhH0KPH3UTvekg7a7nqA2K7HcihIpMLg=/config new file mode 100644 index 000000000..8d11f5fb1 --- /dev/null +++ b/typescript-generator-core/.nondex/Nrmn5Kyu2hhH0KPH3UTvekg7a7nqA2K7HcihIpMLg=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1016066 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=Nrmn5Kyu2hhH0KPH3UTvekg7a7nqA2K7HcihIpMLg= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/Nrmn5Kyu2hhH0KPH3UTvekg7a7nqA2K7HcihIpMLg=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/Nrmn5Kyu2hhH0KPH3UTvekg7a7nqA2K7HcihIpMLg=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..936b9489f --- /dev/null +++ b/typescript-generator-core/.nondex/Nrmn5Kyu2hhH0KPH3UTvekg7a7nqA2K7HcihIpMLg=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.211 sec - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/Nrmn5Kyu2hhH0KPH3UTvekg7a7nqA2K7HcihIpMLg=/failures b/typescript-generator-core/.nondex/Nrmn5Kyu2hhH0KPH3UTvekg7a7nqA2K7HcihIpMLg=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/Nrmn5Kyu2hhH0KPH3UTvekg7a7nqA2K7HcihIpMLg=/invocations b/typescript-generator-core/.nondex/Nrmn5Kyu2hhH0KPH3UTvekg7a7nqA2K7HcihIpMLg=/invocations new file mode 100644 index 000000000..e412a9f93 --- /dev/null +++ b/typescript-generator-core/.nondex/Nrmn5Kyu2hhH0KPH3UTvekg7a7nqA2K7HcihIpMLg=/invocations @@ -0,0 +1,2 @@ +COUNT:59 +SHUFFLES:59 diff --git a/typescript-generator-core/.nondex/O2KJzZO6CFetkVn+CTwtDnz5AEGPNGM7IqXBqtyAUbM=/config b/typescript-generator-core/.nondex/O2KJzZO6CFetkVn+CTwtDnz5AEGPNGM7IqXBqtyAUbM=/config new file mode 100644 index 000000000..f9f18c46b --- /dev/null +++ b/typescript-generator-core/.nondex/O2KJzZO6CFetkVn+CTwtDnz5AEGPNGM7IqXBqtyAUbM=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1016066 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=O2KJzZO6CFetkVn+CTwtDnz5AEGPNGM7IqXBqtyAUbM= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/O2KJzZO6CFetkVn+CTwtDnz5AEGPNGM7IqXBqtyAUbM=/failures b/typescript-generator-core/.nondex/O2KJzZO6CFetkVn+CTwtDnz5AEGPNGM7IqXBqtyAUbM=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/O2KJzZO6CFetkVn+CTwtDnz5AEGPNGM7IqXBqtyAUbM=/invocations b/typescript-generator-core/.nondex/O2KJzZO6CFetkVn+CTwtDnz5AEGPNGM7IqXBqtyAUbM=/invocations new file mode 100644 index 000000000..c164bf6ef --- /dev/null +++ b/typescript-generator-core/.nondex/O2KJzZO6CFetkVn+CTwtDnz5AEGPNGM7IqXBqtyAUbM=/invocations @@ -0,0 +1,2 @@ +COUNT:16 +SHUFFLES:16 diff --git a/typescript-generator-core/.nondex/OBq25VADCzYuZyiSxcSezEwGRBHE7eIgi7t0oywrH4M=.run b/typescript-generator-core/.nondex/OBq25VADCzYuZyiSxcSezEwGRBHE7eIgi7t0oywrH4M=.run new file mode 100644 index 000000000..400ea2942 --- /dev/null +++ b/typescript-generator-core/.nondex/OBq25VADCzYuZyiSxcSezEwGRBHE7eIgi7t0oywrH4M=.run @@ -0,0 +1,4 @@ +OBq25VADCzYuZyiSxcSezEwGRBHE7eIgi7t0oywrH4M= +t8YP6TrylCoyp9f0H1vINgUIkBIa9SabLcDaQT0Arww= +WJguSD1PwRtXguNQpCGK+L6Uit9y9Y8oIPvfZh6gv8= +clean_+4l0NvapCpKuBwUvtpXsdJin3mz+6mZkRgLldNxsM= diff --git a/typescript-generator-core/.nondex/OBq25VADCzYuZyiSxcSezEwGRBHE7eIgi7t0oywrH4M=/failures b/typescript-generator-core/.nondex/OBq25VADCzYuZyiSxcSezEwGRBHE7eIgi7t0oywrH4M=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/OBq25VADCzYuZyiSxcSezEwGRBHE7eIgi7t0oywrH4M=/test_results.html b/typescript-generator-core/.nondex/OBq25VADCzYuZyiSxcSezEwGRBHE7eIgi7t0oywrH4M=/test_results.html new file mode 100644 index 000000000..ee93290bb --- /dev/null +++ b/typescript-generator-core/.nondex/OBq25VADCzYuZyiSxcSezEwGRBHE7eIgi7t0oywrH4M=/test_results.html @@ -0,0 +1 @@ +Test Results
Test Name9331789746221016066
\ No newline at end of file diff --git a/typescript-generator-core/.nondex/OVxcNLHDJoCxI1SOvgPIJnPLm+m5a7mvoCsjQaBMd00=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/OVxcNLHDJoCxI1SOvgPIJnPLm+m5a7mvoCsjQaBMd00=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..3f6022eb3 --- /dev/null +++ b/typescript-generator-core/.nondex/OVxcNLHDJoCxI1SOvgPIJnPLm+m5a7mvoCsjQaBMd00=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/OVxcNLHDJoCxI1SOvgPIJnPLm+m5a7mvoCsjQaBMd00=/config b/typescript-generator-core/.nondex/OVxcNLHDJoCxI1SOvgPIJnPLm+m5a7mvoCsjQaBMd00=/config new file mode 100644 index 000000000..94a4f5ac6 --- /dev/null +++ b/typescript-generator-core/.nondex/OVxcNLHDJoCxI1SOvgPIJnPLm+m5a7mvoCsjQaBMd00=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=2881046 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=OVxcNLHDJoCxI1SOvgPIJnPLm+m5a7mvoCsjQaBMd00= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/OVxcNLHDJoCxI1SOvgPIJnPLm+m5a7mvoCsjQaBMd00=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/OVxcNLHDJoCxI1SOvgPIJnPLm+m5a7mvoCsjQaBMd00=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..da29da4de --- /dev/null +++ b/typescript-generator-core/.nondex/OVxcNLHDJoCxI1SOvgPIJnPLm+m5a7mvoCsjQaBMd00=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.249 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.247 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/OVxcNLHDJoCxI1SOvgPIJnPLm+m5a7mvoCsjQaBMd00=/failures b/typescript-generator-core/.nondex/OVxcNLHDJoCxI1SOvgPIJnPLm+m5a7mvoCsjQaBMd00=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/OVxcNLHDJoCxI1SOvgPIJnPLm+m5a7mvoCsjQaBMd00=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/OVxcNLHDJoCxI1SOvgPIJnPLm+m5a7mvoCsjQaBMd00=/invocations b/typescript-generator-core/.nondex/OVxcNLHDJoCxI1SOvgPIJnPLm+m5a7mvoCsjQaBMd00=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/OVxcNLHDJoCxI1SOvgPIJnPLm+m5a7mvoCsjQaBMd00=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/P0MHaB2WrB8IDHZgY4qFX37dW6BNmVvQ0qN4HmD2Ioc=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/P0MHaB2WrB8IDHZgY4qFX37dW6BNmVvQ0qN4HmD2Ioc=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..9468f2036 --- /dev/null +++ b/typescript-generator-core/.nondex/P0MHaB2WrB8IDHZgY4qFX37dW6BNmVvQ0qN4HmD2Ioc=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,176 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:< +interface [CCircle2 extends IShape2 { + kind: "circle"; + radius: number; +} + +interface CRectangle2 extends IQuadrilateral2 { + kind: "rectangle"; + height: number; + width: number; +} + +interface IQuadrilateral2 extends IShape2 { + kind: "square" | "rectangle"; +} + +interface IShape2 { + kind: "circle" | "square" | "rectangle"; +} + +interface CSquare2 extends IQuadrilateral2 { + kind: "square"; + size: number]; +} + +type IShape2Uni...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/P0MHaB2WrB8IDHZgY4qFX37dW6BNmVvQ0qN4HmD2Ioc=/config b/typescript-generator-core/.nondex/P0MHaB2WrB8IDHZgY4qFX37dW6BNmVvQ0qN4HmD2Ioc=/config new file mode 100644 index 000000000..3768e9b4e --- /dev/null +++ b/typescript-generator-core/.nondex/P0MHaB2WrB8IDHZgY4qFX37dW6BNmVvQ0qN4HmD2Ioc=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1016066 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=P0MHaB2WrB8IDHZgY4qFX37dW6BNmVvQ0qN4HmD2Ioc= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/P0MHaB2WrB8IDHZgY4qFX37dW6BNmVvQ0qN4HmD2Ioc=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/P0MHaB2WrB8IDHZgY4qFX37dW6BNmVvQ0qN4HmD2Ioc=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..cc5f1e8a8 --- /dev/null +++ b/typescript-generator-core/.nondex/P0MHaB2WrB8IDHZgY4qFX37dW6BNmVvQ0qN4HmD2Ioc=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,100 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.258 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.257 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:< +interface [IShape2 { + kind: "circle" | "square" | "rectangle"; +} + +interface CSquare2 extends IQuadrilateral2 { + kind: "square"; + size: number; +} + +interface CRectangle2 extends IQuadrilateral2 { + kind: "rectangle"; + width: number; + height: number; +} + +interface CCircle2 extends IShape2 { + kind: "circle"; + radius: number; +} + +interface IQuadrilateral2 extends IShape2 { + kind: "square" | "rectangle"]; +} + +type IShape2Uni...> but was:< +interface [CCircle2 extends IShape2 { + kind: "circle"; + radius: number; +} + +interface CRectangle2 extends IQuadrilateral2 { + kind: "rectangle"; + height: number; + width: number; +} + +interface IQuadrilateral2 extends IShape2 { + kind: "square" | "rectangle"; +} + +interface IShape2 { + kind: "circle" | "square" | "rectangle"; +} + +interface CSquare2 extends IQuadrilateral2 { + kind: "square"; + size: number]; +} + +type IShape2Uni...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/P0MHaB2WrB8IDHZgY4qFX37dW6BNmVvQ0qN4HmD2Ioc=/failures b/typescript-generator-core/.nondex/P0MHaB2WrB8IDHZgY4qFX37dW6BNmVvQ0qN4HmD2Ioc=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/P0MHaB2WrB8IDHZgY4qFX37dW6BNmVvQ0qN4HmD2Ioc=/invocations b/typescript-generator-core/.nondex/P0MHaB2WrB8IDHZgY4qFX37dW6BNmVvQ0qN4HmD2Ioc=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/P0MHaB2WrB8IDHZgY4qFX37dW6BNmVvQ0qN4HmD2Ioc=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/P5L8IonT59bHDHa2m3UG+2DHUm9B0vb8moGLeKVg+hI=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/P5L8IonT59bHDHa2m3UG+2DHUm9B0vb8moGLeKVg+hI=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..8c4f59fd4 --- /dev/null +++ b/typescript-generator-core/.nondex/P5L8IonT59bHDHa2m3UG+2DHUm9B0vb8moGLeKVg+hI=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/P5L8IonT59bHDHa2m3UG+2DHUm9B0vb8moGLeKVg+hI=/config b/typescript-generator-core/.nondex/P5L8IonT59bHDHa2m3UG+2DHUm9B0vb8moGLeKVg+hI=/config new file mode 100644 index 000000000..0fd7b10ae --- /dev/null +++ b/typescript-generator-core/.nondex/P5L8IonT59bHDHa2m3UG+2DHUm9B0vb8moGLeKVg+hI=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1927834 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=P5L8IonT59bHDHa2m3UG+2DHUm9B0vb8moGLeKVg+hI= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/P5L8IonT59bHDHa2m3UG+2DHUm9B0vb8moGLeKVg+hI=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/P5L8IonT59bHDHa2m3UG+2DHUm9B0vb8moGLeKVg+hI=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..710c95160 --- /dev/null +++ b/typescript-generator-core/.nondex/P5L8IonT59bHDHa2m3UG+2DHUm9B0vb8moGLeKVg+hI=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.229 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.229 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/P5L8IonT59bHDHa2m3UG+2DHUm9B0vb8moGLeKVg+hI=/failures b/typescript-generator-core/.nondex/P5L8IonT59bHDHa2m3UG+2DHUm9B0vb8moGLeKVg+hI=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/P5L8IonT59bHDHa2m3UG+2DHUm9B0vb8moGLeKVg+hI=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/P5L8IonT59bHDHa2m3UG+2DHUm9B0vb8moGLeKVg+hI=/invocations b/typescript-generator-core/.nondex/P5L8IonT59bHDHa2m3UG+2DHUm9B0vb8moGLeKVg+hI=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/P5L8IonT59bHDHa2m3UG+2DHUm9B0vb8moGLeKVg+hI=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/PEGbcLDf+ylpR3wWsMauML3zYBpMGxU4AUYGAz76rf8=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/PEGbcLDf+ylpR3wWsMauML3zYBpMGxU4AUYGAz76rf8=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..f911607d4 --- /dev/null +++ b/typescript-generator-core/.nondex/PEGbcLDf+ylpR3wWsMauML3zYBpMGxU4AUYGAz76rf8=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/PEGbcLDf+ylpR3wWsMauML3zYBpMGxU4AUYGAz76rf8=/config b/typescript-generator-core/.nondex/PEGbcLDf+ylpR3wWsMauML3zYBpMGxU4AUYGAz76rf8=/config new file mode 100644 index 000000000..261f6f372 --- /dev/null +++ b/typescript-generator-core/.nondex/PEGbcLDf+ylpR3wWsMauML3zYBpMGxU4AUYGAz76rf8=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=4207254 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=PEGbcLDf+ylpR3wWsMauML3zYBpMGxU4AUYGAz76rf8= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/PEGbcLDf+ylpR3wWsMauML3zYBpMGxU4AUYGAz76rf8=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/PEGbcLDf+ylpR3wWsMauML3zYBpMGxU4AUYGAz76rf8=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..b016e2b1c --- /dev/null +++ b/typescript-generator-core/.nondex/PEGbcLDf+ylpR3wWsMauML3zYBpMGxU4AUYGAz76rf8=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.231 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/PEGbcLDf+ylpR3wWsMauML3zYBpMGxU4AUYGAz76rf8=/failures b/typescript-generator-core/.nondex/PEGbcLDf+ylpR3wWsMauML3zYBpMGxU4AUYGAz76rf8=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/PEGbcLDf+ylpR3wWsMauML3zYBpMGxU4AUYGAz76rf8=/invocations b/typescript-generator-core/.nondex/PEGbcLDf+ylpR3wWsMauML3zYBpMGxU4AUYGAz76rf8=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/PEGbcLDf+ylpR3wWsMauML3zYBpMGxU4AUYGAz76rf8=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/PYWtANUAhUFg3nNZwxmUSHevcHmsuwaqtdjO9NOaSeo=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/PYWtANUAhUFg3nNZwxmUSHevcHmsuwaqtdjO9NOaSeo=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..6c79feec4 --- /dev/null +++ b/typescript-generator-core/.nondex/PYWtANUAhUFg3nNZwxmUSHevcHmsuwaqtdjO9NOaSeo=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/PYWtANUAhUFg3nNZwxmUSHevcHmsuwaqtdjO9NOaSeo=/config b/typescript-generator-core/.nondex/PYWtANUAhUFg3nNZwxmUSHevcHmsuwaqtdjO9NOaSeo=/config new file mode 100644 index 000000000..5ba7243c5 --- /dev/null +++ b/typescript-generator-core/.nondex/PYWtANUAhUFg3nNZwxmUSHevcHmsuwaqtdjO9NOaSeo=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=2383718 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=PYWtANUAhUFg3nNZwxmUSHevcHmsuwaqtdjO9NOaSeo= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/PYWtANUAhUFg3nNZwxmUSHevcHmsuwaqtdjO9NOaSeo=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/PYWtANUAhUFg3nNZwxmUSHevcHmsuwaqtdjO9NOaSeo=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..0c81f444e --- /dev/null +++ b/typescript-generator-core/.nondex/PYWtANUAhUFg3nNZwxmUSHevcHmsuwaqtdjO9NOaSeo=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.244 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.243 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/PYWtANUAhUFg3nNZwxmUSHevcHmsuwaqtdjO9NOaSeo=/failures b/typescript-generator-core/.nondex/PYWtANUAhUFg3nNZwxmUSHevcHmsuwaqtdjO9NOaSeo=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/PYWtANUAhUFg3nNZwxmUSHevcHmsuwaqtdjO9NOaSeo=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/PYWtANUAhUFg3nNZwxmUSHevcHmsuwaqtdjO9NOaSeo=/invocations b/typescript-generator-core/.nondex/PYWtANUAhUFg3nNZwxmUSHevcHmsuwaqtdjO9NOaSeo=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/PYWtANUAhUFg3nNZwxmUSHevcHmsuwaqtdjO9NOaSeo=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/Padc0IgDGi2ElTtavVheW4dcpFOWPZZ6LI7M6pBQXvw=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/Padc0IgDGi2ElTtavVheW4dcpFOWPZZ6LI7M6pBQXvw=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..b5c17a762 --- /dev/null +++ b/typescript-generator-core/.nondex/Padc0IgDGi2ElTtavVheW4dcpFOWPZZ6LI7M6pBQXvw=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/Padc0IgDGi2ElTtavVheW4dcpFOWPZZ6LI7M6pBQXvw=/config b/typescript-generator-core/.nondex/Padc0IgDGi2ElTtavVheW4dcpFOWPZZ6LI7M6pBQXvw=/config new file mode 100644 index 000000000..2c1e7ec7b --- /dev/null +++ b/typescript-generator-core/.nondex/Padc0IgDGi2ElTtavVheW4dcpFOWPZZ6LI7M6pBQXvw=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=974622 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=Padc0IgDGi2ElTtavVheW4dcpFOWPZZ6LI7M6pBQXvw= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/Padc0IgDGi2ElTtavVheW4dcpFOWPZZ6LI7M6pBQXvw=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/Padc0IgDGi2ElTtavVheW4dcpFOWPZZ6LI7M6pBQXvw=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..a04aeba27 --- /dev/null +++ b/typescript-generator-core/.nondex/Padc0IgDGi2ElTtavVheW4dcpFOWPZZ6LI7M6pBQXvw=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.146 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/Padc0IgDGi2ElTtavVheW4dcpFOWPZZ6LI7M6pBQXvw=/failures b/typescript-generator-core/.nondex/Padc0IgDGi2ElTtavVheW4dcpFOWPZZ6LI7M6pBQXvw=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/Padc0IgDGi2ElTtavVheW4dcpFOWPZZ6LI7M6pBQXvw=/invocations b/typescript-generator-core/.nondex/Padc0IgDGi2ElTtavVheW4dcpFOWPZZ6LI7M6pBQXvw=/invocations new file mode 100644 index 000000000..7ad7d1da8 --- /dev/null +++ b/typescript-generator-core/.nondex/Padc0IgDGi2ElTtavVheW4dcpFOWPZZ6LI7M6pBQXvw=/invocations @@ -0,0 +1,2 @@ +COUNT:67 +SHUFFLES:67 diff --git a/typescript-generator-core/.nondex/Q92pbEw4nV9uJpP8eqR6J+L9rAZw8JKeGEjsIHR9c7E=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/Q92pbEw4nV9uJpP8eqR6J+L9rAZw8JKeGEjsIHR9c7E=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..690c58cbf --- /dev/null +++ b/typescript-generator-core/.nondex/Q92pbEw4nV9uJpP8eqR6J+L9rAZw8JKeGEjsIHR9c7E=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/Q92pbEw4nV9uJpP8eqR6J+L9rAZw8JKeGEjsIHR9c7E=/config b/typescript-generator-core/.nondex/Q92pbEw4nV9uJpP8eqR6J+L9rAZw8JKeGEjsIHR9c7E=/config new file mode 100644 index 000000000..de0e9c4f4 --- /dev/null +++ b/typescript-generator-core/.nondex/Q92pbEw4nV9uJpP8eqR6J+L9rAZw8JKeGEjsIHR9c7E=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=974622 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=Q92pbEw4nV9uJpP8eqR6J+L9rAZw8JKeGEjsIHR9c7E= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/Q92pbEw4nV9uJpP8eqR6J+L9rAZw8JKeGEjsIHR9c7E=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/Q92pbEw4nV9uJpP8eqR6J+L9rAZw8JKeGEjsIHR9c7E=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..fdd84160b --- /dev/null +++ b/typescript-generator-core/.nondex/Q92pbEw4nV9uJpP8eqR6J+L9rAZw8JKeGEjsIHR9c7E=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.161 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/Q92pbEw4nV9uJpP8eqR6J+L9rAZw8JKeGEjsIHR9c7E=/failures b/typescript-generator-core/.nondex/Q92pbEw4nV9uJpP8eqR6J+L9rAZw8JKeGEjsIHR9c7E=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/Q92pbEw4nV9uJpP8eqR6J+L9rAZw8JKeGEjsIHR9c7E=/invocations b/typescript-generator-core/.nondex/Q92pbEw4nV9uJpP8eqR6J+L9rAZw8JKeGEjsIHR9c7E=/invocations new file mode 100644 index 000000000..7ad7d1da8 --- /dev/null +++ b/typescript-generator-core/.nondex/Q92pbEw4nV9uJpP8eqR6J+L9rAZw8JKeGEjsIHR9c7E=/invocations @@ -0,0 +1,2 @@ +COUNT:67 +SHUFFLES:67 diff --git a/typescript-generator-core/.nondex/QDjjU5JyPn90jZfWdhX+UCzUeoTuWW8AmuUn5vNajgo=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/QDjjU5JyPn90jZfWdhX+UCzUeoTuWW8AmuUn5vNajgo=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..db88eca89 --- /dev/null +++ b/typescript-generator-core/.nondex/QDjjU5JyPn90jZfWdhX+UCzUeoTuWW8AmuUn5vNajgo=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/QDjjU5JyPn90jZfWdhX+UCzUeoTuWW8AmuUn5vNajgo=/config b/typescript-generator-core/.nondex/QDjjU5JyPn90jZfWdhX+UCzUeoTuWW8AmuUn5vNajgo=/config new file mode 100644 index 000000000..ab39b91ed --- /dev/null +++ b/typescript-generator-core/.nondex/QDjjU5JyPn90jZfWdhX+UCzUeoTuWW8AmuUn5vNajgo=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1886390 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=QDjjU5JyPn90jZfWdhX+UCzUeoTuWW8AmuUn5vNajgo= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/QDjjU5JyPn90jZfWdhX+UCzUeoTuWW8AmuUn5vNajgo=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/QDjjU5JyPn90jZfWdhX+UCzUeoTuWW8AmuUn5vNajgo=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..48a623984 --- /dev/null +++ b/typescript-generator-core/.nondex/QDjjU5JyPn90jZfWdhX+UCzUeoTuWW8AmuUn5vNajgo=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.244 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/QDjjU5JyPn90jZfWdhX+UCzUeoTuWW8AmuUn5vNajgo=/failures b/typescript-generator-core/.nondex/QDjjU5JyPn90jZfWdhX+UCzUeoTuWW8AmuUn5vNajgo=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/QDjjU5JyPn90jZfWdhX+UCzUeoTuWW8AmuUn5vNajgo=/invocations b/typescript-generator-core/.nondex/QDjjU5JyPn90jZfWdhX+UCzUeoTuWW8AmuUn5vNajgo=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/QDjjU5JyPn90jZfWdhX+UCzUeoTuWW8AmuUn5vNajgo=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/QeeAvZRDq6vYoPA4xcsPiGe+Q4iuMF8mUb6vzTK8A8o=/config b/typescript-generator-core/.nondex/QeeAvZRDq6vYoPA4xcsPiGe+Q4iuMF8mUb6vzTK8A8o=/config new file mode 100644 index 000000000..b7b4d7f1a --- /dev/null +++ b/typescript-generator-core/.nondex/QeeAvZRDq6vYoPA4xcsPiGe+Q4iuMF8mUb6vzTK8A8o=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1016066 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=QeeAvZRDq6vYoPA4xcsPiGe+Q4iuMF8mUb6vzTK8A8o= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/QeeAvZRDq6vYoPA4xcsPiGe+Q4iuMF8mUb6vzTK8A8o=/failures b/typescript-generator-core/.nondex/QeeAvZRDq6vYoPA4xcsPiGe+Q4iuMF8mUb6vzTK8A8o=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/QeeAvZRDq6vYoPA4xcsPiGe+Q4iuMF8mUb6vzTK8A8o=/invocations b/typescript-generator-core/.nondex/QeeAvZRDq6vYoPA4xcsPiGe+Q4iuMF8mUb6vzTK8A8o=/invocations new file mode 100644 index 000000000..bf35aa17c --- /dev/null +++ b/typescript-generator-core/.nondex/QeeAvZRDq6vYoPA4xcsPiGe+Q4iuMF8mUb6vzTK8A8o=/invocations @@ -0,0 +1,2 @@ +COUNT:17 +SHUFFLES:17 diff --git a/typescript-generator-core/.nondex/R+x465bloZpgxZGJBFAd2r4NLvcqNZ7guIG3tGIcPQ=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/R+x465bloZpgxZGJBFAd2r4NLvcqNZ7guIG3tGIcPQ=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..5396174e7 --- /dev/null +++ b/typescript-generator-core/.nondex/R+x465bloZpgxZGJBFAd2r4NLvcqNZ7guIG3tGIcPQ=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/R+x465bloZpgxZGJBFAd2r4NLvcqNZ7guIG3tGIcPQ=/config b/typescript-generator-core/.nondex/R+x465bloZpgxZGJBFAd2r4NLvcqNZ7guIG3tGIcPQ=/config new file mode 100644 index 000000000..2af741ffb --- /dev/null +++ b/typescript-generator-core/.nondex/R+x465bloZpgxZGJBFAd2r4NLvcqNZ7guIG3tGIcPQ=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=3792814 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=R+x465bloZpgxZGJBFAd2r4NLvcqNZ7guIG3tGIcPQ= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/R+x465bloZpgxZGJBFAd2r4NLvcqNZ7guIG3tGIcPQ=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/R+x465bloZpgxZGJBFAd2r4NLvcqNZ7guIG3tGIcPQ=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..9fa2bc357 --- /dev/null +++ b/typescript-generator-core/.nondex/R+x465bloZpgxZGJBFAd2r4NLvcqNZ7guIG3tGIcPQ=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.251 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/R+x465bloZpgxZGJBFAd2r4NLvcqNZ7guIG3tGIcPQ=/failures b/typescript-generator-core/.nondex/R+x465bloZpgxZGJBFAd2r4NLvcqNZ7guIG3tGIcPQ=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/R+x465bloZpgxZGJBFAd2r4NLvcqNZ7guIG3tGIcPQ=/invocations b/typescript-generator-core/.nondex/R+x465bloZpgxZGJBFAd2r4NLvcqNZ7guIG3tGIcPQ=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/R+x465bloZpgxZGJBFAd2r4NLvcqNZ7guIG3tGIcPQ=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/Rb0hoW3ZWdZfw0Tff9wAEnjs1dIHxxjNaoCsvXPbbY=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/Rb0hoW3ZWdZfw0Tff9wAEnjs1dIHxxjNaoCsvXPbbY=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..b6931180d --- /dev/null +++ b/typescript-generator-core/.nondex/Rb0hoW3ZWdZfw0Tff9wAEnjs1dIHxxjNaoCsvXPbbY=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/Rb0hoW3ZWdZfw0Tff9wAEnjs1dIHxxjNaoCsvXPbbY=/config b/typescript-generator-core/.nondex/Rb0hoW3ZWdZfw0Tff9wAEnjs1dIHxxjNaoCsvXPbbY=/config new file mode 100644 index 000000000..554293f93 --- /dev/null +++ b/typescript-generator-core/.nondex/Rb0hoW3ZWdZfw0Tff9wAEnjs1dIHxxjNaoCsvXPbbY=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=974622 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=Rb0hoW3ZWdZfw0Tff9wAEnjs1dIHxxjNaoCsvXPbbY= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/Rb0hoW3ZWdZfw0Tff9wAEnjs1dIHxxjNaoCsvXPbbY=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/Rb0hoW3ZWdZfw0Tff9wAEnjs1dIHxxjNaoCsvXPbbY=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..6f8234185 --- /dev/null +++ b/typescript-generator-core/.nondex/Rb0hoW3ZWdZfw0Tff9wAEnjs1dIHxxjNaoCsvXPbbY=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.147 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/Rb0hoW3ZWdZfw0Tff9wAEnjs1dIHxxjNaoCsvXPbbY=/failures b/typescript-generator-core/.nondex/Rb0hoW3ZWdZfw0Tff9wAEnjs1dIHxxjNaoCsvXPbbY=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/Rb0hoW3ZWdZfw0Tff9wAEnjs1dIHxxjNaoCsvXPbbY=/invocations b/typescript-generator-core/.nondex/Rb0hoW3ZWdZfw0Tff9wAEnjs1dIHxxjNaoCsvXPbbY=/invocations new file mode 100644 index 000000000..7ad7d1da8 --- /dev/null +++ b/typescript-generator-core/.nondex/Rb0hoW3ZWdZfw0Tff9wAEnjs1dIHxxjNaoCsvXPbbY=/invocations @@ -0,0 +1,2 @@ +COUNT:67 +SHUFFLES:67 diff --git a/typescript-generator-core/.nondex/RhJi70hg02uLPxJ+PFyzVL4kt+iZj2O2e+QX3FhZf9c=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/RhJi70hg02uLPxJ+PFyzVL4kt+iZj2O2e+QX3FhZf9c=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..a8f91b7b3 --- /dev/null +++ b/typescript-generator-core/.nondex/RhJi70hg02uLPxJ+PFyzVL4kt+iZj2O2e+QX3FhZf9c=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/RhJi70hg02uLPxJ+PFyzVL4kt+iZj2O2e+QX3FhZf9c=/config b/typescript-generator-core/.nondex/RhJi70hg02uLPxJ+PFyzVL4kt+iZj2O2e+QX3FhZf9c=/config new file mode 100644 index 000000000..acaa4ec2d --- /dev/null +++ b/typescript-generator-core/.nondex/RhJi70hg02uLPxJ+PFyzVL4kt+iZj2O2e+QX3FhZf9c=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=2466606 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=RhJi70hg02uLPxJ+PFyzVL4kt+iZj2O2e+QX3FhZf9c= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/RhJi70hg02uLPxJ+PFyzVL4kt+iZj2O2e+QX3FhZf9c=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/RhJi70hg02uLPxJ+PFyzVL4kt+iZj2O2e+QX3FhZf9c=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..0d1d64a87 --- /dev/null +++ b/typescript-generator-core/.nondex/RhJi70hg02uLPxJ+PFyzVL4kt+iZj2O2e+QX3FhZf9c=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.23 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.229 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/RhJi70hg02uLPxJ+PFyzVL4kt+iZj2O2e+QX3FhZf9c=/failures b/typescript-generator-core/.nondex/RhJi70hg02uLPxJ+PFyzVL4kt+iZj2O2e+QX3FhZf9c=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/RhJi70hg02uLPxJ+PFyzVL4kt+iZj2O2e+QX3FhZf9c=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/RhJi70hg02uLPxJ+PFyzVL4kt+iZj2O2e+QX3FhZf9c=/invocations b/typescript-generator-core/.nondex/RhJi70hg02uLPxJ+PFyzVL4kt+iZj2O2e+QX3FhZf9c=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/RhJi70hg02uLPxJ+PFyzVL4kt+iZj2O2e+QX3FhZf9c=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/S1JwOnm2iVC7NXJvO3LU4JQHhMhf1SChOhVECicwDU=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/S1JwOnm2iVC7NXJvO3LU4JQHhMhf1SChOhVECicwDU=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..0d68bf343 --- /dev/null +++ b/typescript-generator-core/.nondex/S1JwOnm2iVC7NXJvO3LU4JQHhMhf1SChOhVECicwDU=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/S1JwOnm2iVC7NXJvO3LU4JQHhMhf1SChOhVECicwDU=/config b/typescript-generator-core/.nondex/S1JwOnm2iVC7NXJvO3LU4JQHhMhf1SChOhVECicwDU=/config new file mode 100644 index 000000000..3bba6b151 --- /dev/null +++ b/typescript-generator-core/.nondex/S1JwOnm2iVC7NXJvO3LU4JQHhMhf1SChOhVECicwDU=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1679170 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=S1JwOnm2iVC7NXJvO3LU4JQHhMhf1SChOhVECicwDU= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/S1JwOnm2iVC7NXJvO3LU4JQHhMhf1SChOhVECicwDU=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/S1JwOnm2iVC7NXJvO3LU4JQHhMhf1SChOhVECicwDU=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..6e60a68cd --- /dev/null +++ b/typescript-generator-core/.nondex/S1JwOnm2iVC7NXJvO3LU4JQHhMhf1SChOhVECicwDU=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.223 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.22 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/S1JwOnm2iVC7NXJvO3LU4JQHhMhf1SChOhVECicwDU=/failures b/typescript-generator-core/.nondex/S1JwOnm2iVC7NXJvO3LU4JQHhMhf1SChOhVECicwDU=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/S1JwOnm2iVC7NXJvO3LU4JQHhMhf1SChOhVECicwDU=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/S1JwOnm2iVC7NXJvO3LU4JQHhMhf1SChOhVECicwDU=/invocations b/typescript-generator-core/.nondex/S1JwOnm2iVC7NXJvO3LU4JQHhMhf1SChOhVECicwDU=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/S1JwOnm2iVC7NXJvO3LU4JQHhMhf1SChOhVECicwDU=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/SDfvfepZmbNUNjThJjSFxvJQBEnx70tI1szEkTom90=.run b/typescript-generator-core/.nondex/SDfvfepZmbNUNjThJjSFxvJQBEnx70tI1szEkTom90=.run new file mode 100644 index 000000000..75b90847e --- /dev/null +++ b/typescript-generator-core/.nondex/SDfvfepZmbNUNjThJjSFxvJQBEnx70tI1szEkTom90=.run @@ -0,0 +1,4 @@ +SDfvfepZmbNUNjThJjSFxvJQBEnx70tI1szEkTom90= +KSOBk9yoTH14wiOH2foXliLIAUbivc4x0N9TKXKhjqc= +gih40RibYVjqVHbLSk8mgBTbdgnff5LTwa4xxXICw= +clean_9U0JQilSZbfJvH6TZp3oBooPdVtatEAICPSbv5nkQ= diff --git a/typescript-generator-core/.nondex/SDfvfepZmbNUNjThJjSFxvJQBEnx70tI1szEkTom90=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/SDfvfepZmbNUNjThJjSFxvJQBEnx70tI1szEkTom90=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..00ef7efcb --- /dev/null +++ b/typescript-generator-core/.nondex/SDfvfepZmbNUNjThJjSFxvJQBEnx70tI1szEkTom90=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,132 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:210) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/SDfvfepZmbNUNjThJjSFxvJQBEnx70tI1szEkTom90=/config b/typescript-generator-core/.nondex/SDfvfepZmbNUNjThJjSFxvJQBEnx70tI1szEkTom90=/config new file mode 100644 index 000000000..7ba8ed610 --- /dev/null +++ b/typescript-generator-core/.nondex/SDfvfepZmbNUNjThJjSFxvJQBEnx70tI1szEkTom90=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=933178 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=SDfvfepZmbNUNjThJjSFxvJQBEnx70tI1szEkTom90= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/SDfvfepZmbNUNjThJjSFxvJQBEnx70tI1szEkTom90=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/SDfvfepZmbNUNjThJjSFxvJQBEnx70tI1szEkTom90=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..91b90030f --- /dev/null +++ b/typescript-generator-core/.nondex/SDfvfepZmbNUNjThJjSFxvJQBEnx70tI1szEkTom90=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,56 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.174 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.148 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:210) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/SDfvfepZmbNUNjThJjSFxvJQBEnx70tI1szEkTom90=/failures b/typescript-generator-core/.nondex/SDfvfepZmbNUNjThJjSFxvJQBEnx70tI1szEkTom90=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/SDfvfepZmbNUNjThJjSFxvJQBEnx70tI1szEkTom90=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/SDfvfepZmbNUNjThJjSFxvJQBEnx70tI1szEkTom90=/invocations b/typescript-generator-core/.nondex/SDfvfepZmbNUNjThJjSFxvJQBEnx70tI1szEkTom90=/invocations new file mode 100644 index 000000000..7ad7d1da8 --- /dev/null +++ b/typescript-generator-core/.nondex/SDfvfepZmbNUNjThJjSFxvJQBEnx70tI1szEkTom90=/invocations @@ -0,0 +1,2 @@ +COUNT:67 +SHUFFLES:67 diff --git a/typescript-generator-core/.nondex/SDfvfepZmbNUNjThJjSFxvJQBEnx70tI1szEkTom90=/test_results.html b/typescript-generator-core/.nondex/SDfvfepZmbNUNjThJjSFxvJQBEnx70tI1szEkTom90=/test_results.html new file mode 100644 index 000000000..cc9aae726 --- /dev/null +++ b/typescript-generator-core/.nondex/SDfvfepZmbNUNjThJjSFxvJQBEnx70tI1szEkTom90=/test_results.html @@ -0,0 +1 @@ +Test Results
Test Name9331789746221016066
cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces
\ No newline at end of file diff --git a/typescript-generator-core/.nondex/SPZEOoEQwvhdkU4YnZoi7EkXsgHMrvYydNoy+nNi2dY=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/SPZEOoEQwvhdkU4YnZoi7EkXsgHMrvYydNoy+nNi2dY=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..475ba1f92 --- /dev/null +++ b/typescript-generator-core/.nondex/SPZEOoEQwvhdkU4YnZoi7EkXsgHMrvYydNoy+nNi2dY=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/SPZEOoEQwvhdkU4YnZoi7EkXsgHMrvYydNoy+nNi2dY=/config b/typescript-generator-core/.nondex/SPZEOoEQwvhdkU4YnZoi7EkXsgHMrvYydNoy+nNi2dY=/config new file mode 100644 index 000000000..d430e39ce --- /dev/null +++ b/typescript-generator-core/.nondex/SPZEOoEQwvhdkU4YnZoi7EkXsgHMrvYydNoy+nNi2dY=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1596282 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=SPZEOoEQwvhdkU4YnZoi7EkXsgHMrvYydNoy+nNi2dY= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/SPZEOoEQwvhdkU4YnZoi7EkXsgHMrvYydNoy+nNi2dY=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/SPZEOoEQwvhdkU4YnZoi7EkXsgHMrvYydNoy+nNi2dY=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..7c99c742c --- /dev/null +++ b/typescript-generator-core/.nondex/SPZEOoEQwvhdkU4YnZoi7EkXsgHMrvYydNoy+nNi2dY=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.214 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.212 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/SPZEOoEQwvhdkU4YnZoi7EkXsgHMrvYydNoy+nNi2dY=/failures b/typescript-generator-core/.nondex/SPZEOoEQwvhdkU4YnZoi7EkXsgHMrvYydNoy+nNi2dY=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/SPZEOoEQwvhdkU4YnZoi7EkXsgHMrvYydNoy+nNi2dY=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/SPZEOoEQwvhdkU4YnZoi7EkXsgHMrvYydNoy+nNi2dY=/invocations b/typescript-generator-core/.nondex/SPZEOoEQwvhdkU4YnZoi7EkXsgHMrvYydNoy+nNi2dY=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/SPZEOoEQwvhdkU4YnZoi7EkXsgHMrvYydNoy+nNi2dY=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/SV7eW8Xpy0OUE9cZdmB547gs0F1QD8czZHjDKIZroc=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/SV7eW8Xpy0OUE9cZdmB547gs0F1QD8czZHjDKIZroc=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..62fc6c0ef --- /dev/null +++ b/typescript-generator-core/.nondex/SV7eW8Xpy0OUE9cZdmB547gs0F1QD8czZHjDKIZroc=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,176 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:< +interface [CCircle2 extends IShape2 { + kind: "circle"; + radius: number; +} + +interface CRectangle2 extends IQuadrilateral2 { + kind: "rectangle"; + height: number; + width: number; +} + +interface IQuadrilateral2 extends IShape2 { + kind: "square" | "rectangle"; +} + +interface IShape2 { + kind: "circle" | "square" | "rectangle"; +} + +interface CSquare2 extends IQuadrilateral2 { + kind: "square"; + size: number]; +} + +type IShape2Uni...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/SV7eW8Xpy0OUE9cZdmB547gs0F1QD8czZHjDKIZroc=/config b/typescript-generator-core/.nondex/SV7eW8Xpy0OUE9cZdmB547gs0F1QD8czZHjDKIZroc=/config new file mode 100644 index 000000000..b89d95191 --- /dev/null +++ b/typescript-generator-core/.nondex/SV7eW8Xpy0OUE9cZdmB547gs0F1QD8czZHjDKIZroc=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1223286 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=SV7eW8Xpy0OUE9cZdmB547gs0F1QD8czZHjDKIZroc= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/SV7eW8Xpy0OUE9cZdmB547gs0F1QD8czZHjDKIZroc=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/SV7eW8Xpy0OUE9cZdmB547gs0F1QD8czZHjDKIZroc=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..22ed8916d --- /dev/null +++ b/typescript-generator-core/.nondex/SV7eW8Xpy0OUE9cZdmB547gs0F1QD8czZHjDKIZroc=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,100 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.239 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.234 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:< +interface [IShape2 { + kind: "circle" | "square" | "rectangle"; +} + +interface CSquare2 extends IQuadrilateral2 { + kind: "square"; + size: number; +} + +interface CRectangle2 extends IQuadrilateral2 { + kind: "rectangle"; + width: number; + height: number; +} + +interface CCircle2 extends IShape2 { + kind: "circle"; + radius: number; +} + +interface IQuadrilateral2 extends IShape2 { + kind: "square" | "rectangle"]; +} + +type IShape2Uni...> but was:< +interface [CCircle2 extends IShape2 { + kind: "circle"; + radius: number; +} + +interface CRectangle2 extends IQuadrilateral2 { + kind: "rectangle"; + height: number; + width: number; +} + +interface IQuadrilateral2 extends IShape2 { + kind: "square" | "rectangle"; +} + +interface IShape2 { + kind: "circle" | "square" | "rectangle"; +} + +interface CSquare2 extends IQuadrilateral2 { + kind: "square"; + size: number]; +} + +type IShape2Uni...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/SV7eW8Xpy0OUE9cZdmB547gs0F1QD8czZHjDKIZroc=/failures b/typescript-generator-core/.nondex/SV7eW8Xpy0OUE9cZdmB547gs0F1QD8czZHjDKIZroc=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/SV7eW8Xpy0OUE9cZdmB547gs0F1QD8czZHjDKIZroc=/invocations b/typescript-generator-core/.nondex/SV7eW8Xpy0OUE9cZdmB547gs0F1QD8czZHjDKIZroc=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/SV7eW8Xpy0OUE9cZdmB547gs0F1QD8czZHjDKIZroc=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/SxsDGhJiTHjNEcNjEDsKKR7R5arQpDIj1vs+0kzw5sw=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/SxsDGhJiTHjNEcNjEDsKKR7R5arQpDIj1vs+0kzw5sw=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..1da3ab606 --- /dev/null +++ b/typescript-generator-core/.nondex/SxsDGhJiTHjNEcNjEDsKKR7R5arQpDIj1vs+0kzw5sw=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/SxsDGhJiTHjNEcNjEDsKKR7R5arQpDIj1vs+0kzw5sw=/config b/typescript-generator-core/.nondex/SxsDGhJiTHjNEcNjEDsKKR7R5arQpDIj1vs+0kzw5sw=/config new file mode 100644 index 000000000..34f5922e1 --- /dev/null +++ b/typescript-generator-core/.nondex/SxsDGhJiTHjNEcNjEDsKKR7R5arQpDIj1vs+0kzw5sw=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1016066 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=SxsDGhJiTHjNEcNjEDsKKR7R5arQpDIj1vs+0kzw5sw= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/SxsDGhJiTHjNEcNjEDsKKR7R5arQpDIj1vs+0kzw5sw=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/SxsDGhJiTHjNEcNjEDsKKR7R5arQpDIj1vs+0kzw5sw=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..ac7ce22d5 --- /dev/null +++ b/typescript-generator-core/.nondex/SxsDGhJiTHjNEcNjEDsKKR7R5arQpDIj1vs+0kzw5sw=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.166 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/SxsDGhJiTHjNEcNjEDsKKR7R5arQpDIj1vs+0kzw5sw=/failures b/typescript-generator-core/.nondex/SxsDGhJiTHjNEcNjEDsKKR7R5arQpDIj1vs+0kzw5sw=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/SxsDGhJiTHjNEcNjEDsKKR7R5arQpDIj1vs+0kzw5sw=/invocations b/typescript-generator-core/.nondex/SxsDGhJiTHjNEcNjEDsKKR7R5arQpDIj1vs+0kzw5sw=/invocations new file mode 100644 index 000000000..7ad7d1da8 --- /dev/null +++ b/typescript-generator-core/.nondex/SxsDGhJiTHjNEcNjEDsKKR7R5arQpDIj1vs+0kzw5sw=/invocations @@ -0,0 +1,2 @@ +COUNT:67 +SHUFFLES:67 diff --git a/typescript-generator-core/.nondex/TQ+N66p9K+xfTj1BQ8LPRyJsVwNgy9juVgSjTgSM3k=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/TQ+N66p9K+xfTj1BQ8LPRyJsVwNgy9juVgSjTgSM3k=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..ce7c97394 --- /dev/null +++ b/typescript-generator-core/.nondex/TQ+N66p9K+xfTj1BQ8LPRyJsVwNgy9juVgSjTgSM3k=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/TQ+N66p9K+xfTj1BQ8LPRyJsVwNgy9juVgSjTgSM3k=/config b/typescript-generator-core/.nondex/TQ+N66p9K+xfTj1BQ8LPRyJsVwNgy9juVgSjTgSM3k=/config new file mode 100644 index 000000000..350fb2f9b --- /dev/null +++ b/typescript-generator-core/.nondex/TQ+N66p9K+xfTj1BQ8LPRyJsVwNgy9juVgSjTgSM3k=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=4787470 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=TQ+N66p9K+xfTj1BQ8LPRyJsVwNgy9juVgSjTgSM3k= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/TQ+N66p9K+xfTj1BQ8LPRyJsVwNgy9juVgSjTgSM3k=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/TQ+N66p9K+xfTj1BQ8LPRyJsVwNgy9juVgSjTgSM3k=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..c68143527 --- /dev/null +++ b/typescript-generator-core/.nondex/TQ+N66p9K+xfTj1BQ8LPRyJsVwNgy9juVgSjTgSM3k=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.21 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.21 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/TQ+N66p9K+xfTj1BQ8LPRyJsVwNgy9juVgSjTgSM3k=/failures b/typescript-generator-core/.nondex/TQ+N66p9K+xfTj1BQ8LPRyJsVwNgy9juVgSjTgSM3k=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/TQ+N66p9K+xfTj1BQ8LPRyJsVwNgy9juVgSjTgSM3k=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/TQ+N66p9K+xfTj1BQ8LPRyJsVwNgy9juVgSjTgSM3k=/invocations b/typescript-generator-core/.nondex/TQ+N66p9K+xfTj1BQ8LPRyJsVwNgy9juVgSjTgSM3k=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/TQ+N66p9K+xfTj1BQ8LPRyJsVwNgy9juVgSjTgSM3k=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/TQSeSuen+Zrsxb4hAkTid0ZWxPkrwEa5fI2RKKXWiFs=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/TQSeSuen+Zrsxb4hAkTid0ZWxPkrwEa5fI2RKKXWiFs=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..4ae7ca8c5 --- /dev/null +++ b/typescript-generator-core/.nondex/TQSeSuen+Zrsxb4hAkTid0ZWxPkrwEa5fI2RKKXWiFs=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:140) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/TQSeSuen+Zrsxb4hAkTid0ZWxPkrwEa5fI2RKKXWiFs=/config b/typescript-generator-core/.nondex/TQSeSuen+Zrsxb4hAkTid0ZWxPkrwEa5fI2RKKXWiFs=/config new file mode 100644 index 000000000..1dd036d10 --- /dev/null +++ b/typescript-generator-core/.nondex/TQSeSuen+Zrsxb4hAkTid0ZWxPkrwEa5fI2RKKXWiFs=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1016066 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=TQSeSuen+Zrsxb4hAkTid0ZWxPkrwEa5fI2RKKXWiFs= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/TQSeSuen+Zrsxb4hAkTid0ZWxPkrwEa5fI2RKKXWiFs=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/TQSeSuen+Zrsxb4hAkTid0ZWxPkrwEa5fI2RKKXWiFs=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..2ba4d4ebb --- /dev/null +++ b/typescript-generator-core/.nondex/TQSeSuen+Zrsxb4hAkTid0ZWxPkrwEa5fI2RKKXWiFs=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,20 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.153 sec <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.153 sec <<< FAILURE! +org.junit.ComparisonFailure: expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:140) + diff --git a/typescript-generator-core/.nondex/TQSeSuen+Zrsxb4hAkTid0ZWxPkrwEa5fI2RKKXWiFs=/failures b/typescript-generator-core/.nondex/TQSeSuen+Zrsxb4hAkTid0ZWxPkrwEa5fI2RKKXWiFs=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/TQSeSuen+Zrsxb4hAkTid0ZWxPkrwEa5fI2RKKXWiFs=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/TQSeSuen+Zrsxb4hAkTid0ZWxPkrwEa5fI2RKKXWiFs=/invocations b/typescript-generator-core/.nondex/TQSeSuen+Zrsxb4hAkTid0ZWxPkrwEa5fI2RKKXWiFs=/invocations new file mode 100644 index 000000000..11ff8fe83 --- /dev/null +++ b/typescript-generator-core/.nondex/TQSeSuen+Zrsxb4hAkTid0ZWxPkrwEa5fI2RKKXWiFs=/invocations @@ -0,0 +1,2 @@ +COUNT:61 +SHUFFLES:61 diff --git a/typescript-generator-core/.nondex/TSYncvAVOglvEwmVc3pLt8o4yt4XO7xzEMW7IqQR6pM=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/TSYncvAVOglvEwmVc3pLt8o4yt4XO7xzEMW7IqQR6pM=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..213a323d6 --- /dev/null +++ b/typescript-generator-core/.nondex/TSYncvAVOglvEwmVc3pLt8o4yt4XO7xzEMW7IqQR6pM=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/TSYncvAVOglvEwmVc3pLt8o4yt4XO7xzEMW7IqQR6pM=/config b/typescript-generator-core/.nondex/TSYncvAVOglvEwmVc3pLt8o4yt4XO7xzEMW7IqQR6pM=/config new file mode 100644 index 000000000..e26c07acf --- /dev/null +++ b/typescript-generator-core/.nondex/TSYncvAVOglvEwmVc3pLt8o4yt4XO7xzEMW7IqQR6pM=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1223286 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=TSYncvAVOglvEwmVc3pLt8o4yt4XO7xzEMW7IqQR6pM= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/TSYncvAVOglvEwmVc3pLt8o4yt4XO7xzEMW7IqQR6pM=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/TSYncvAVOglvEwmVc3pLt8o4yt4XO7xzEMW7IqQR6pM=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..91aed8947 --- /dev/null +++ b/typescript-generator-core/.nondex/TSYncvAVOglvEwmVc3pLt8o4yt4XO7xzEMW7IqQR6pM=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.233 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.231 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/TSYncvAVOglvEwmVc3pLt8o4yt4XO7xzEMW7IqQR6pM=/failures b/typescript-generator-core/.nondex/TSYncvAVOglvEwmVc3pLt8o4yt4XO7xzEMW7IqQR6pM=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/TSYncvAVOglvEwmVc3pLt8o4yt4XO7xzEMW7IqQR6pM=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/TSYncvAVOglvEwmVc3pLt8o4yt4XO7xzEMW7IqQR6pM=/invocations b/typescript-generator-core/.nondex/TSYncvAVOglvEwmVc3pLt8o4yt4XO7xzEMW7IqQR6pM=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/TSYncvAVOglvEwmVc3pLt8o4yt4XO7xzEMW7IqQR6pM=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/TWahiDh0QC13ML1bfp6u+ptTeC5qHDh2RViJrG0kFfQ=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/TWahiDh0QC13ML1bfp6u+ptTeC5qHDh2RViJrG0kFfQ=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..494bf2b70 --- /dev/null +++ b/typescript-generator-core/.nondex/TWahiDh0QC13ML1bfp6u+ptTeC5qHDh2RViJrG0kFfQ=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/TWahiDh0QC13ML1bfp6u+ptTeC5qHDh2RViJrG0kFfQ=/config b/typescript-generator-core/.nondex/TWahiDh0QC13ML1bfp6u+ptTeC5qHDh2RViJrG0kFfQ=/config new file mode 100644 index 000000000..11e88b024 --- /dev/null +++ b/typescript-generator-core/.nondex/TWahiDh0QC13ML1bfp6u+ptTeC5qHDh2RViJrG0kFfQ=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=4787470 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=TWahiDh0QC13ML1bfp6u+ptTeC5qHDh2RViJrG0kFfQ= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/TWahiDh0QC13ML1bfp6u+ptTeC5qHDh2RViJrG0kFfQ=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/TWahiDh0QC13ML1bfp6u+ptTeC5qHDh2RViJrG0kFfQ=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..8d8f96cb0 --- /dev/null +++ b/typescript-generator-core/.nondex/TWahiDh0QC13ML1bfp6u+ptTeC5qHDh2RViJrG0kFfQ=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.24 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.238 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/TWahiDh0QC13ML1bfp6u+ptTeC5qHDh2RViJrG0kFfQ=/failures b/typescript-generator-core/.nondex/TWahiDh0QC13ML1bfp6u+ptTeC5qHDh2RViJrG0kFfQ=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/TWahiDh0QC13ML1bfp6u+ptTeC5qHDh2RViJrG0kFfQ=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/TWahiDh0QC13ML1bfp6u+ptTeC5qHDh2RViJrG0kFfQ=/invocations b/typescript-generator-core/.nondex/TWahiDh0QC13ML1bfp6u+ptTeC5qHDh2RViJrG0kFfQ=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/TWahiDh0QC13ML1bfp6u+ptTeC5qHDh2RViJrG0kFfQ=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/TwUkM4rcOJTvOfa4WeWrIOCq77yDvgzCbDfr1MOsuA=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/TwUkM4rcOJTvOfa4WeWrIOCq77yDvgzCbDfr1MOsuA=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..744a0f87e --- /dev/null +++ b/typescript-generator-core/.nondex/TwUkM4rcOJTvOfa4WeWrIOCq77yDvgzCbDfr1MOsuA=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/TwUkM4rcOJTvOfa4WeWrIOCq77yDvgzCbDfr1MOsuA=/config b/typescript-generator-core/.nondex/TwUkM4rcOJTvOfa4WeWrIOCq77yDvgzCbDfr1MOsuA=/config new file mode 100644 index 000000000..69aa410a1 --- /dev/null +++ b/typescript-generator-core/.nondex/TwUkM4rcOJTvOfa4WeWrIOCq77yDvgzCbDfr1MOsuA=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=2093610 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=TwUkM4rcOJTvOfa4WeWrIOCq77yDvgzCbDfr1MOsuA= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/TwUkM4rcOJTvOfa4WeWrIOCq77yDvgzCbDfr1MOsuA=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/TwUkM4rcOJTvOfa4WeWrIOCq77yDvgzCbDfr1MOsuA=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..77ea7839c --- /dev/null +++ b/typescript-generator-core/.nondex/TwUkM4rcOJTvOfa4WeWrIOCq77yDvgzCbDfr1MOsuA=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.239 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.238 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/TwUkM4rcOJTvOfa4WeWrIOCq77yDvgzCbDfr1MOsuA=/failures b/typescript-generator-core/.nondex/TwUkM4rcOJTvOfa4WeWrIOCq77yDvgzCbDfr1MOsuA=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/TwUkM4rcOJTvOfa4WeWrIOCq77yDvgzCbDfr1MOsuA=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/TwUkM4rcOJTvOfa4WeWrIOCq77yDvgzCbDfr1MOsuA=/invocations b/typescript-generator-core/.nondex/TwUkM4rcOJTvOfa4WeWrIOCq77yDvgzCbDfr1MOsuA=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/TwUkM4rcOJTvOfa4WeWrIOCq77yDvgzCbDfr1MOsuA=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/UQeKq8s4JdmurY1wQM1mHkFJ9+DpDszjqId5Nh9R3IE=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/UQeKq8s4JdmurY1wQM1mHkFJ9+DpDszjqId5Nh9R3IE=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..8040a703b --- /dev/null +++ b/typescript-generator-core/.nondex/UQeKq8s4JdmurY1wQM1mHkFJ9+DpDszjqId5Nh9R3IE=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/UQeKq8s4JdmurY1wQM1mHkFJ9+DpDszjqId5Nh9R3IE=/config b/typescript-generator-core/.nondex/UQeKq8s4JdmurY1wQM1mHkFJ9+DpDszjqId5Nh9R3IE=/config new file mode 100644 index 000000000..8f36bf48c --- /dev/null +++ b/typescript-generator-core/.nondex/UQeKq8s4JdmurY1wQM1mHkFJ9+DpDszjqId5Nh9R3IE=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=3212598 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=UQeKq8s4JdmurY1wQM1mHkFJ9+DpDszjqId5Nh9R3IE= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/UQeKq8s4JdmurY1wQM1mHkFJ9+DpDszjqId5Nh9R3IE=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/UQeKq8s4JdmurY1wQM1mHkFJ9+DpDszjqId5Nh9R3IE=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..6aaf56be0 --- /dev/null +++ b/typescript-generator-core/.nondex/UQeKq8s4JdmurY1wQM1mHkFJ9+DpDszjqId5Nh9R3IE=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.273 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/UQeKq8s4JdmurY1wQM1mHkFJ9+DpDszjqId5Nh9R3IE=/failures b/typescript-generator-core/.nondex/UQeKq8s4JdmurY1wQM1mHkFJ9+DpDszjqId5Nh9R3IE=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/UQeKq8s4JdmurY1wQM1mHkFJ9+DpDszjqId5Nh9R3IE=/invocations b/typescript-generator-core/.nondex/UQeKq8s4JdmurY1wQM1mHkFJ9+DpDszjqId5Nh9R3IE=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/UQeKq8s4JdmurY1wQM1mHkFJ9+DpDszjqId5Nh9R3IE=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/UUjuzMSeTL4SiGKrGAskASBRd4inBNfxH78RFg3EZk=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/UUjuzMSeTL4SiGKrGAskASBRd4inBNfxH78RFg3EZk=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..f328684e6 --- /dev/null +++ b/typescript-generator-core/.nondex/UUjuzMSeTL4SiGKrGAskASBRd4inBNfxH78RFg3EZk=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/UUjuzMSeTL4SiGKrGAskASBRd4inBNfxH78RFg3EZk=/config b/typescript-generator-core/.nondex/UUjuzMSeTL4SiGKrGAskASBRd4inBNfxH78RFg3EZk=/config new file mode 100644 index 000000000..035ad3a4d --- /dev/null +++ b/typescript-generator-core/.nondex/UUjuzMSeTL4SiGKrGAskASBRd4inBNfxH78RFg3EZk=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=4580250 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=UUjuzMSeTL4SiGKrGAskASBRd4inBNfxH78RFg3EZk= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/UUjuzMSeTL4SiGKrGAskASBRd4inBNfxH78RFg3EZk=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/UUjuzMSeTL4SiGKrGAskASBRd4inBNfxH78RFg3EZk=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..c3cc3f72d --- /dev/null +++ b/typescript-generator-core/.nondex/UUjuzMSeTL4SiGKrGAskASBRd4inBNfxH78RFg3EZk=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.218 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/UUjuzMSeTL4SiGKrGAskASBRd4inBNfxH78RFg3EZk=/failures b/typescript-generator-core/.nondex/UUjuzMSeTL4SiGKrGAskASBRd4inBNfxH78RFg3EZk=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/UUjuzMSeTL4SiGKrGAskASBRd4inBNfxH78RFg3EZk=/invocations b/typescript-generator-core/.nondex/UUjuzMSeTL4SiGKrGAskASBRd4inBNfxH78RFg3EZk=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/UUjuzMSeTL4SiGKrGAskASBRd4inBNfxH78RFg3EZk=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/UkMMeWwOhUtfcyGxkelUydHIXzNgWArHYiRaUDfiyI=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/UkMMeWwOhUtfcyGxkelUydHIXzNgWArHYiRaUDfiyI=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..a88655eaa --- /dev/null +++ b/typescript-generator-core/.nondex/UkMMeWwOhUtfcyGxkelUydHIXzNgWArHYiRaUDfiyI=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/UkMMeWwOhUtfcyGxkelUydHIXzNgWArHYiRaUDfiyI=/config b/typescript-generator-core/.nondex/UkMMeWwOhUtfcyGxkelUydHIXzNgWArHYiRaUDfiyI=/config new file mode 100644 index 000000000..0c11a2583 --- /dev/null +++ b/typescript-generator-core/.nondex/UkMMeWwOhUtfcyGxkelUydHIXzNgWArHYiRaUDfiyI=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=4746026 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=UkMMeWwOhUtfcyGxkelUydHIXzNgWArHYiRaUDfiyI= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/UkMMeWwOhUtfcyGxkelUydHIXzNgWArHYiRaUDfiyI=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/UkMMeWwOhUtfcyGxkelUydHIXzNgWArHYiRaUDfiyI=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..6ad68901e --- /dev/null +++ b/typescript-generator-core/.nondex/UkMMeWwOhUtfcyGxkelUydHIXzNgWArHYiRaUDfiyI=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.256 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/UkMMeWwOhUtfcyGxkelUydHIXzNgWArHYiRaUDfiyI=/failures b/typescript-generator-core/.nondex/UkMMeWwOhUtfcyGxkelUydHIXzNgWArHYiRaUDfiyI=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/UkMMeWwOhUtfcyGxkelUydHIXzNgWArHYiRaUDfiyI=/invocations b/typescript-generator-core/.nondex/UkMMeWwOhUtfcyGxkelUydHIXzNgWArHYiRaUDfiyI=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/UkMMeWwOhUtfcyGxkelUydHIXzNgWArHYiRaUDfiyI=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/V2eL4VGMJrMaEeMvuEqm9os3oRZSjiURW9NMbJDUNwA=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/V2eL4VGMJrMaEeMvuEqm9os3oRZSjiURW9NMbJDUNwA=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..d3c4b5253 --- /dev/null +++ b/typescript-generator-core/.nondex/V2eL4VGMJrMaEeMvuEqm9os3oRZSjiURW9NMbJDUNwA=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/V2eL4VGMJrMaEeMvuEqm9os3oRZSjiURW9NMbJDUNwA=/config b/typescript-generator-core/.nondex/V2eL4VGMJrMaEeMvuEqm9os3oRZSjiURW9NMbJDUNwA=/config new file mode 100644 index 000000000..95861916c --- /dev/null +++ b/typescript-generator-core/.nondex/V2eL4VGMJrMaEeMvuEqm9os3oRZSjiURW9NMbJDUNwA=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1016066 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=V2eL4VGMJrMaEeMvuEqm9os3oRZSjiURW9NMbJDUNwA= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/V2eL4VGMJrMaEeMvuEqm9os3oRZSjiURW9NMbJDUNwA=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/V2eL4VGMJrMaEeMvuEqm9os3oRZSjiURW9NMbJDUNwA=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..fdd84160b --- /dev/null +++ b/typescript-generator-core/.nondex/V2eL4VGMJrMaEeMvuEqm9os3oRZSjiURW9NMbJDUNwA=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.161 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/V2eL4VGMJrMaEeMvuEqm9os3oRZSjiURW9NMbJDUNwA=/failures b/typescript-generator-core/.nondex/V2eL4VGMJrMaEeMvuEqm9os3oRZSjiURW9NMbJDUNwA=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/V2eL4VGMJrMaEeMvuEqm9os3oRZSjiURW9NMbJDUNwA=/invocations b/typescript-generator-core/.nondex/V2eL4VGMJrMaEeMvuEqm9os3oRZSjiURW9NMbJDUNwA=/invocations new file mode 100644 index 000000000..7ad7d1da8 --- /dev/null +++ b/typescript-generator-core/.nondex/V2eL4VGMJrMaEeMvuEqm9os3oRZSjiURW9NMbJDUNwA=/invocations @@ -0,0 +1,2 @@ +COUNT:67 +SHUFFLES:67 diff --git a/typescript-generator-core/.nondex/V5ewELhW3JWNo4thPmr5ipuUF44MScNjy8BIKPIYx4=.run b/typescript-generator-core/.nondex/V5ewELhW3JWNo4thPmr5ipuUF44MScNjy8BIKPIYx4=.run new file mode 100644 index 000000000..ad4a85d33 --- /dev/null +++ b/typescript-generator-core/.nondex/V5ewELhW3JWNo4thPmr5ipuUF44MScNjy8BIKPIYx4=.run @@ -0,0 +1,4 @@ +V5ewELhW3JWNo4thPmr5ipuUF44MScNjy8BIKPIYx4= +pKMSSuaP6U2ENn2chNCuupUNfmO71qBsoy1+cUvKc= +xrZaoS1OvuSrRt3vZxFvhKdcnqul5wphetbw1vT2deU= +clean_Mk2U8MK4VuNgRD3UCiRUrcN7M8Nz87S1Pp3TucESLEk= diff --git a/typescript-generator-core/.nondex/V5ewELhW3JWNo4thPmr5ipuUF44MScNjy8BIKPIYx4=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/V5ewELhW3JWNo4thPmr5ipuUF44MScNjy8BIKPIYx4=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..7bf9b85ec --- /dev/null +++ b/typescript-generator-core/.nondex/V5ewELhW3JWNo4thPmr5ipuUF44MScNjy8BIKPIYx4=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:140) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/V5ewELhW3JWNo4thPmr5ipuUF44MScNjy8BIKPIYx4=/config b/typescript-generator-core/.nondex/V5ewELhW3JWNo4thPmr5ipuUF44MScNjy8BIKPIYx4=/config new file mode 100644 index 000000000..6dfab7d5d --- /dev/null +++ b/typescript-generator-core/.nondex/V5ewELhW3JWNo4thPmr5ipuUF44MScNjy8BIKPIYx4=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=933178 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=V5ewELhW3JWNo4thPmr5ipuUF44MScNjy8BIKPIYx4= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/V5ewELhW3JWNo4thPmr5ipuUF44MScNjy8BIKPIYx4=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/V5ewELhW3JWNo4thPmr5ipuUF44MScNjy8BIKPIYx4=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..5cb626c14 --- /dev/null +++ b/typescript-generator-core/.nondex/V5ewELhW3JWNo4thPmr5ipuUF44MScNjy8BIKPIYx4=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,20 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.165 sec <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.163 sec <<< FAILURE! +org.junit.ComparisonFailure: expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:140) + diff --git a/typescript-generator-core/.nondex/V5ewELhW3JWNo4thPmr5ipuUF44MScNjy8BIKPIYx4=/failures b/typescript-generator-core/.nondex/V5ewELhW3JWNo4thPmr5ipuUF44MScNjy8BIKPIYx4=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/V5ewELhW3JWNo4thPmr5ipuUF44MScNjy8BIKPIYx4=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/V5ewELhW3JWNo4thPmr5ipuUF44MScNjy8BIKPIYx4=/invocations b/typescript-generator-core/.nondex/V5ewELhW3JWNo4thPmr5ipuUF44MScNjy8BIKPIYx4=/invocations new file mode 100644 index 000000000..11ff8fe83 --- /dev/null +++ b/typescript-generator-core/.nondex/V5ewELhW3JWNo4thPmr5ipuUF44MScNjy8BIKPIYx4=/invocations @@ -0,0 +1,2 @@ +COUNT:61 +SHUFFLES:61 diff --git a/typescript-generator-core/.nondex/V5ewELhW3JWNo4thPmr5ipuUF44MScNjy8BIKPIYx4=/test_results.html b/typescript-generator-core/.nondex/V5ewELhW3JWNo4thPmr5ipuUF44MScNjy8BIKPIYx4=/test_results.html new file mode 100644 index 000000000..a94e71794 --- /dev/null +++ b/typescript-generator-core/.nondex/V5ewELhW3JWNo4thPmr5ipuUF44MScNjy8BIKPIYx4=/test_results.html @@ -0,0 +1 @@ +Test Results
Test Name9331789746221016066
cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces
\ No newline at end of file diff --git a/typescript-generator-core/.nondex/VLepjReKAxDbcBq5jfCCBN8zjJ9OJcJ28mq3HJ01LHA=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/VLepjReKAxDbcBq5jfCCBN8zjJ9OJcJ28mq3HJ01LHA=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..d6b63537e --- /dev/null +++ b/typescript-generator-core/.nondex/VLepjReKAxDbcBq5jfCCBN8zjJ9OJcJ28mq3HJ01LHA=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/VLepjReKAxDbcBq5jfCCBN8zjJ9OJcJ28mq3HJ01LHA=/config b/typescript-generator-core/.nondex/VLepjReKAxDbcBq5jfCCBN8zjJ9OJcJ28mq3HJ01LHA=/config new file mode 100644 index 000000000..503c55ca0 --- /dev/null +++ b/typescript-generator-core/.nondex/VLepjReKAxDbcBq5jfCCBN8zjJ9OJcJ28mq3HJ01LHA=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=2839602 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=VLepjReKAxDbcBq5jfCCBN8zjJ9OJcJ28mq3HJ01LHA= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/VLepjReKAxDbcBq5jfCCBN8zjJ9OJcJ28mq3HJ01LHA=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/VLepjReKAxDbcBq5jfCCBN8zjJ9OJcJ28mq3HJ01LHA=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..5ee84116b --- /dev/null +++ b/typescript-generator-core/.nondex/VLepjReKAxDbcBq5jfCCBN8zjJ9OJcJ28mq3HJ01LHA=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.233 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/VLepjReKAxDbcBq5jfCCBN8zjJ9OJcJ28mq3HJ01LHA=/failures b/typescript-generator-core/.nondex/VLepjReKAxDbcBq5jfCCBN8zjJ9OJcJ28mq3HJ01LHA=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/VLepjReKAxDbcBq5jfCCBN8zjJ9OJcJ28mq3HJ01LHA=/invocations b/typescript-generator-core/.nondex/VLepjReKAxDbcBq5jfCCBN8zjJ9OJcJ28mq3HJ01LHA=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/VLepjReKAxDbcBq5jfCCBN8zjJ9OJcJ28mq3HJ01LHA=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/VQ7nDEx4qplQe6edQOkSHjSNrJVWfil+Jufb52BSBs=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/VQ7nDEx4qplQe6edQOkSHjSNrJVWfil+Jufb52BSBs=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..3da149490 --- /dev/null +++ b/typescript-generator-core/.nondex/VQ7nDEx4qplQe6edQOkSHjSNrJVWfil+Jufb52BSBs=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/VQ7nDEx4qplQe6edQOkSHjSNrJVWfil+Jufb52BSBs=/config b/typescript-generator-core/.nondex/VQ7nDEx4qplQe6edQOkSHjSNrJVWfil+Jufb52BSBs=/config new file mode 100644 index 000000000..d95f3e3cc --- /dev/null +++ b/typescript-generator-core/.nondex/VQ7nDEx4qplQe6edQOkSHjSNrJVWfil+Jufb52BSBs=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=5036134 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=VQ7nDEx4qplQe6edQOkSHjSNrJVWfil+Jufb52BSBs= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/VQ7nDEx4qplQe6edQOkSHjSNrJVWfil+Jufb52BSBs=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/VQ7nDEx4qplQe6edQOkSHjSNrJVWfil+Jufb52BSBs=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..40658b696 --- /dev/null +++ b/typescript-generator-core/.nondex/VQ7nDEx4qplQe6edQOkSHjSNrJVWfil+Jufb52BSBs=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.275 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.27 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/VQ7nDEx4qplQe6edQOkSHjSNrJVWfil+Jufb52BSBs=/failures b/typescript-generator-core/.nondex/VQ7nDEx4qplQe6edQOkSHjSNrJVWfil+Jufb52BSBs=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/VQ7nDEx4qplQe6edQOkSHjSNrJVWfil+Jufb52BSBs=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/VQ7nDEx4qplQe6edQOkSHjSNrJVWfil+Jufb52BSBs=/invocations b/typescript-generator-core/.nondex/VQ7nDEx4qplQe6edQOkSHjSNrJVWfil+Jufb52BSBs=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/VQ7nDEx4qplQe6edQOkSHjSNrJVWfil+Jufb52BSBs=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/Vbo43F+mvt7rLto7VMICmsX+ZyksWru58H0mZ13OO4A=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/Vbo43F+mvt7rLto7VMICmsX+ZyksWru58H0mZ13OO4A=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..583a5cf0f --- /dev/null +++ b/typescript-generator-core/.nondex/Vbo43F+mvt7rLto7VMICmsX+ZyksWru58H0mZ13OO4A=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/Vbo43F+mvt7rLto7VMICmsX+ZyksWru58H0mZ13OO4A=/config b/typescript-generator-core/.nondex/Vbo43F+mvt7rLto7VMICmsX+ZyksWru58H0mZ13OO4A=/config new file mode 100644 index 000000000..6adb7f418 --- /dev/null +++ b/typescript-generator-core/.nondex/Vbo43F+mvt7rLto7VMICmsX+ZyksWru58H0mZ13OO4A=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=3958590 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=Vbo43F+mvt7rLto7VMICmsX+ZyksWru58H0mZ13OO4A= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/Vbo43F+mvt7rLto7VMICmsX+ZyksWru58H0mZ13OO4A=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/Vbo43F+mvt7rLto7VMICmsX+ZyksWru58H0mZ13OO4A=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..63a49c403 --- /dev/null +++ b/typescript-generator-core/.nondex/Vbo43F+mvt7rLto7VMICmsX+ZyksWru58H0mZ13OO4A=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.232 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.23 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/Vbo43F+mvt7rLto7VMICmsX+ZyksWru58H0mZ13OO4A=/failures b/typescript-generator-core/.nondex/Vbo43F+mvt7rLto7VMICmsX+ZyksWru58H0mZ13OO4A=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/Vbo43F+mvt7rLto7VMICmsX+ZyksWru58H0mZ13OO4A=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/Vbo43F+mvt7rLto7VMICmsX+ZyksWru58H0mZ13OO4A=/invocations b/typescript-generator-core/.nondex/Vbo43F+mvt7rLto7VMICmsX+ZyksWru58H0mZ13OO4A=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/Vbo43F+mvt7rLto7VMICmsX+ZyksWru58H0mZ13OO4A=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/VzQ32D9F7IM6RlIASnFEWRoRtNs4Fmxm8Hj7O62joAo=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/VzQ32D9F7IM6RlIASnFEWRoRtNs4Fmxm8Hj7O62joAo=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..978d45678 --- /dev/null +++ b/typescript-generator-core/.nondex/VzQ32D9F7IM6RlIASnFEWRoRtNs4Fmxm8Hj7O62joAo=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/VzQ32D9F7IM6RlIASnFEWRoRtNs4Fmxm8Hj7O62joAo=/config b/typescript-generator-core/.nondex/VzQ32D9F7IM6RlIASnFEWRoRtNs4Fmxm8Hj7O62joAo=/config new file mode 100644 index 000000000..b28342dfd --- /dev/null +++ b/typescript-generator-core/.nondex/VzQ32D9F7IM6RlIASnFEWRoRtNs4Fmxm8Hj7O62joAo=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=3544150 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=VzQ32D9F7IM6RlIASnFEWRoRtNs4Fmxm8Hj7O62joAo= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/VzQ32D9F7IM6RlIASnFEWRoRtNs4Fmxm8Hj7O62joAo=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/VzQ32D9F7IM6RlIASnFEWRoRtNs4Fmxm8Hj7O62joAo=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..91aed8947 --- /dev/null +++ b/typescript-generator-core/.nondex/VzQ32D9F7IM6RlIASnFEWRoRtNs4Fmxm8Hj7O62joAo=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.233 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.231 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/VzQ32D9F7IM6RlIASnFEWRoRtNs4Fmxm8Hj7O62joAo=/failures b/typescript-generator-core/.nondex/VzQ32D9F7IM6RlIASnFEWRoRtNs4Fmxm8Hj7O62joAo=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/VzQ32D9F7IM6RlIASnFEWRoRtNs4Fmxm8Hj7O62joAo=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/VzQ32D9F7IM6RlIASnFEWRoRtNs4Fmxm8Hj7O62joAo=/invocations b/typescript-generator-core/.nondex/VzQ32D9F7IM6RlIASnFEWRoRtNs4Fmxm8Hj7O62joAo=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/VzQ32D9F7IM6RlIASnFEWRoRtNs4Fmxm8Hj7O62joAo=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/W3euA0U4EAAFzL2PmVz2aY3EM6T6Hagcoud6eVSHnk=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/W3euA0U4EAAFzL2PmVz2aY3EM6T6Hagcoud6eVSHnk=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..8f613fb97 --- /dev/null +++ b/typescript-generator-core/.nondex/W3euA0U4EAAFzL2PmVz2aY3EM6T6Hagcoud6eVSHnk=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/W3euA0U4EAAFzL2PmVz2aY3EM6T6Hagcoud6eVSHnk=/config b/typescript-generator-core/.nondex/W3euA0U4EAAFzL2PmVz2aY3EM6T6Hagcoud6eVSHnk=/config new file mode 100644 index 000000000..d1d5a3077 --- /dev/null +++ b/typescript-generator-core/.nondex/W3euA0U4EAAFzL2PmVz2aY3EM6T6Hagcoud6eVSHnk=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1181842 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=W3euA0U4EAAFzL2PmVz2aY3EM6T6Hagcoud6eVSHnk= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/W3euA0U4EAAFzL2PmVz2aY3EM6T6Hagcoud6eVSHnk=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/W3euA0U4EAAFzL2PmVz2aY3EM6T6Hagcoud6eVSHnk=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..05c56824e --- /dev/null +++ b/typescript-generator-core/.nondex/W3euA0U4EAAFzL2PmVz2aY3EM6T6Hagcoud6eVSHnk=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.257 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/W3euA0U4EAAFzL2PmVz2aY3EM6T6Hagcoud6eVSHnk=/failures b/typescript-generator-core/.nondex/W3euA0U4EAAFzL2PmVz2aY3EM6T6Hagcoud6eVSHnk=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/W3euA0U4EAAFzL2PmVz2aY3EM6T6Hagcoud6eVSHnk=/invocations b/typescript-generator-core/.nondex/W3euA0U4EAAFzL2PmVz2aY3EM6T6Hagcoud6eVSHnk=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/W3euA0U4EAAFzL2PmVz2aY3EM6T6Hagcoud6eVSHnk=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/WBmteo4Do1ihDGkDphcmRR+rASNr2vgQNKl7bMMjbdY=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/WBmteo4Do1ihDGkDphcmRR+rASNr2vgQNKl7bMMjbdY=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..eb6babb20 --- /dev/null +++ b/typescript-generator-core/.nondex/WBmteo4Do1ihDGkDphcmRR+rASNr2vgQNKl7bMMjbdY=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/WBmteo4Do1ihDGkDphcmRR+rASNr2vgQNKl7bMMjbdY=/config b/typescript-generator-core/.nondex/WBmteo4Do1ihDGkDphcmRR+rASNr2vgQNKl7bMMjbdY=/config new file mode 100644 index 000000000..bf39e7ada --- /dev/null +++ b/typescript-generator-core/.nondex/WBmteo4Do1ihDGkDphcmRR+rASNr2vgQNKl7bMMjbdY=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1306174 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=WBmteo4Do1ihDGkDphcmRR+rASNr2vgQNKl7bMMjbdY= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/WBmteo4Do1ihDGkDphcmRR+rASNr2vgQNKl7bMMjbdY=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/WBmteo4Do1ihDGkDphcmRR+rASNr2vgQNKl7bMMjbdY=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..41fb026f0 --- /dev/null +++ b/typescript-generator-core/.nondex/WBmteo4Do1ihDGkDphcmRR+rASNr2vgQNKl7bMMjbdY=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.237 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/WBmteo4Do1ihDGkDphcmRR+rASNr2vgQNKl7bMMjbdY=/failures b/typescript-generator-core/.nondex/WBmteo4Do1ihDGkDphcmRR+rASNr2vgQNKl7bMMjbdY=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/WBmteo4Do1ihDGkDphcmRR+rASNr2vgQNKl7bMMjbdY=/invocations b/typescript-generator-core/.nondex/WBmteo4Do1ihDGkDphcmRR+rASNr2vgQNKl7bMMjbdY=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/WBmteo4Do1ihDGkDphcmRR+rASNr2vgQNKl7bMMjbdY=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/WJguSD1PwRtXguNQpCGK+L6Uit9y9Y8oIPvfZh6gv8=/failures b/typescript-generator-core/.nondex/WJguSD1PwRtXguNQpCGK+L6Uit9y9Y8oIPvfZh6gv8=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/WO7y5K13hai9gHaeWOeUOzwZk7OJT3xJpYFM7PKqzY=.run b/typescript-generator-core/.nondex/WO7y5K13hai9gHaeWOeUOzwZk7OJT3xJpYFM7PKqzY=.run new file mode 100644 index 000000000..3ed15bab5 --- /dev/null +++ b/typescript-generator-core/.nondex/WO7y5K13hai9gHaeWOeUOzwZk7OJT3xJpYFM7PKqzY=.run @@ -0,0 +1,4 @@ +WO7y5K13hai9gHaeWOeUOzwZk7OJT3xJpYFM7PKqzY= +pa+93wUQvFrG5YKAOaOJPdDtRdLEiNB7z2ZTqhvn7ww= +QeeAvZRDq6vYoPA4xcsPiGe+Q4iuMF8mUb6vzTK8A8o= +clean_oEQObmLRBYLDoCMCABL2bxbLfT7xgqe6TnBmnWRnS8= diff --git a/typescript-generator-core/.nondex/WO7y5K13hai9gHaeWOeUOzwZk7OJT3xJpYFM7PKqzY=/config b/typescript-generator-core/.nondex/WO7y5K13hai9gHaeWOeUOzwZk7OJT3xJpYFM7PKqzY=/config new file mode 100644 index 000000000..d5eb199f0 --- /dev/null +++ b/typescript-generator-core/.nondex/WO7y5K13hai9gHaeWOeUOzwZk7OJT3xJpYFM7PKqzY=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=933178 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=WO7y5K13hai9gHaeWOeUOzwZk7OJT3xJpYFM7PKqzY= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/WO7y5K13hai9gHaeWOeUOzwZk7OJT3xJpYFM7PKqzY=/failures b/typescript-generator-core/.nondex/WO7y5K13hai9gHaeWOeUOzwZk7OJT3xJpYFM7PKqzY=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/WO7y5K13hai9gHaeWOeUOzwZk7OJT3xJpYFM7PKqzY=/invocations b/typescript-generator-core/.nondex/WO7y5K13hai9gHaeWOeUOzwZk7OJT3xJpYFM7PKqzY=/invocations new file mode 100644 index 000000000..bf35aa17c --- /dev/null +++ b/typescript-generator-core/.nondex/WO7y5K13hai9gHaeWOeUOzwZk7OJT3xJpYFM7PKqzY=/invocations @@ -0,0 +1,2 @@ +COUNT:17 +SHUFFLES:17 diff --git a/typescript-generator-core/.nondex/WO7y5K13hai9gHaeWOeUOzwZk7OJT3xJpYFM7PKqzY=/test_results.html b/typescript-generator-core/.nondex/WO7y5K13hai9gHaeWOeUOzwZk7OJT3xJpYFM7PKqzY=/test_results.html new file mode 100644 index 000000000..ee93290bb --- /dev/null +++ b/typescript-generator-core/.nondex/WO7y5K13hai9gHaeWOeUOzwZk7OJT3xJpYFM7PKqzY=/test_results.html @@ -0,0 +1 @@ +Test Results
Test Name9331789746221016066
\ No newline at end of file diff --git a/typescript-generator-core/.nondex/WiV6DF0EXnORIOF5qFlPb8i8rWkYML5VI+MNeU5Yk4=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/WiV6DF0EXnORIOF5qFlPb8i8rWkYML5VI+MNeU5Yk4=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..fc97aedac --- /dev/null +++ b/typescript-generator-core/.nondex/WiV6DF0EXnORIOF5qFlPb8i8rWkYML5VI+MNeU5Yk4=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/WiV6DF0EXnORIOF5qFlPb8i8rWkYML5VI+MNeU5Yk4=/config b/typescript-generator-core/.nondex/WiV6DF0EXnORIOF5qFlPb8i8rWkYML5VI+MNeU5Yk4=/config new file mode 100644 index 000000000..857f4028a --- /dev/null +++ b/typescript-generator-core/.nondex/WiV6DF0EXnORIOF5qFlPb8i8rWkYML5VI+MNeU5Yk4=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=3751370 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=WiV6DF0EXnORIOF5qFlPb8i8rWkYML5VI+MNeU5Yk4= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/WiV6DF0EXnORIOF5qFlPb8i8rWkYML5VI+MNeU5Yk4=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/WiV6DF0EXnORIOF5qFlPb8i8rWkYML5VI+MNeU5Yk4=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..1f01abeff --- /dev/null +++ b/typescript-generator-core/.nondex/WiV6DF0EXnORIOF5qFlPb8i8rWkYML5VI+MNeU5Yk4=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.252 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.232 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/WiV6DF0EXnORIOF5qFlPb8i8rWkYML5VI+MNeU5Yk4=/failures b/typescript-generator-core/.nondex/WiV6DF0EXnORIOF5qFlPb8i8rWkYML5VI+MNeU5Yk4=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/WiV6DF0EXnORIOF5qFlPb8i8rWkYML5VI+MNeU5Yk4=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/WiV6DF0EXnORIOF5qFlPb8i8rWkYML5VI+MNeU5Yk4=/invocations b/typescript-generator-core/.nondex/WiV6DF0EXnORIOF5qFlPb8i8rWkYML5VI+MNeU5Yk4=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/WiV6DF0EXnORIOF5qFlPb8i8rWkYML5VI+MNeU5Yk4=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/WxdOaqt7qOjkk4yUdjosE2k3mXlSQ1KE7GKdxUpfYko=/config b/typescript-generator-core/.nondex/WxdOaqt7qOjkk4yUdjosE2k3mXlSQ1KE7GKdxUpfYko=/config new file mode 100644 index 000000000..eb0324f9b --- /dev/null +++ b/typescript-generator-core/.nondex/WxdOaqt7qOjkk4yUdjosE2k3mXlSQ1KE7GKdxUpfYko=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1140398 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=WxdOaqt7qOjkk4yUdjosE2k3mXlSQ1KE7GKdxUpfYko= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/WxdOaqt7qOjkk4yUdjosE2k3mXlSQ1KE7GKdxUpfYko=/failures b/typescript-generator-core/.nondex/WxdOaqt7qOjkk4yUdjosE2k3mXlSQ1KE7GKdxUpfYko=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/WxdOaqt7qOjkk4yUdjosE2k3mXlSQ1KE7GKdxUpfYko=/invocations b/typescript-generator-core/.nondex/WxdOaqt7qOjkk4yUdjosE2k3mXlSQ1KE7GKdxUpfYko=/invocations new file mode 100644 index 000000000..c164bf6ef --- /dev/null +++ b/typescript-generator-core/.nondex/WxdOaqt7qOjkk4yUdjosE2k3mXlSQ1KE7GKdxUpfYko=/invocations @@ -0,0 +1,2 @@ +COUNT:16 +SHUFFLES:16 diff --git a/typescript-generator-core/.nondex/XDUUcKXOfgni9NZsKW7loYYLsksvQpVW7Tzmi7VQF1s=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/XDUUcKXOfgni9NZsKW7loYYLsksvQpVW7Tzmi7VQF1s=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..2e3191931 --- /dev/null +++ b/typescript-generator-core/.nondex/XDUUcKXOfgni9NZsKW7loYYLsksvQpVW7Tzmi7VQF1s=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/XDUUcKXOfgni9NZsKW7loYYLsksvQpVW7Tzmi7VQF1s=/config b/typescript-generator-core/.nondex/XDUUcKXOfgni9NZsKW7loYYLsksvQpVW7Tzmi7VQF1s=/config new file mode 100644 index 000000000..0085a020d --- /dev/null +++ b/typescript-generator-core/.nondex/XDUUcKXOfgni9NZsKW7loYYLsksvQpVW7Tzmi7VQF1s=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1430506 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=XDUUcKXOfgni9NZsKW7loYYLsksvQpVW7Tzmi7VQF1s= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/XDUUcKXOfgni9NZsKW7loYYLsksvQpVW7Tzmi7VQF1s=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/XDUUcKXOfgni9NZsKW7loYYLsksvQpVW7Tzmi7VQF1s=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..eb0c9b677 --- /dev/null +++ b/typescript-generator-core/.nondex/XDUUcKXOfgni9NZsKW7loYYLsksvQpVW7Tzmi7VQF1s=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.255 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.251 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/XDUUcKXOfgni9NZsKW7loYYLsksvQpVW7Tzmi7VQF1s=/failures b/typescript-generator-core/.nondex/XDUUcKXOfgni9NZsKW7loYYLsksvQpVW7Tzmi7VQF1s=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/XDUUcKXOfgni9NZsKW7loYYLsksvQpVW7Tzmi7VQF1s=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/XDUUcKXOfgni9NZsKW7loYYLsksvQpVW7Tzmi7VQF1s=/invocations b/typescript-generator-core/.nondex/XDUUcKXOfgni9NZsKW7loYYLsksvQpVW7Tzmi7VQF1s=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/XDUUcKXOfgni9NZsKW7loYYLsksvQpVW7Tzmi7VQF1s=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/XFMd9rXPmNOeeGBigoknmqla7fmZ8nLrGTkadIwiws=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/XFMd9rXPmNOeeGBigoknmqla7fmZ8nLrGTkadIwiws=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..5cba96520 --- /dev/null +++ b/typescript-generator-core/.nondex/XFMd9rXPmNOeeGBigoknmqla7fmZ8nLrGTkadIwiws=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,176 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:< +interface [CCircle2 extends IShape2 { + kind: "circle"; + radius: number; +} + +interface CRectangle2 extends IQuadrilateral2 { + kind: "rectangle"; + height: number; + width: number; +} + +interface IQuadrilateral2 extends IShape2 { + kind: "square" | "rectangle"; +} + +interface IShape2 { + kind: "circle" | "square" | "rectangle"; +} + +interface CSquare2 extends IQuadrilateral2 { + kind: "square"; + size: number]; +} + +type IShape2Uni...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/XFMd9rXPmNOeeGBigoknmqla7fmZ8nLrGTkadIwiws=/config b/typescript-generator-core/.nondex/XFMd9rXPmNOeeGBigoknmqla7fmZ8nLrGTkadIwiws=/config new file mode 100644 index 000000000..e18cf6a7e --- /dev/null +++ b/typescript-generator-core/.nondex/XFMd9rXPmNOeeGBigoknmqla7fmZ8nLrGTkadIwiws=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=974622 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=XFMd9rXPmNOeeGBigoknmqla7fmZ8nLrGTkadIwiws= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/XFMd9rXPmNOeeGBigoknmqla7fmZ8nLrGTkadIwiws=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/XFMd9rXPmNOeeGBigoknmqla7fmZ8nLrGTkadIwiws=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..eac21b256 --- /dev/null +++ b/typescript-generator-core/.nondex/XFMd9rXPmNOeeGBigoknmqla7fmZ8nLrGTkadIwiws=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,100 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.231 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.225 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:< +interface [IShape2 { + kind: "circle" | "square" | "rectangle"; +} + +interface CSquare2 extends IQuadrilateral2 { + kind: "square"; + size: number; +} + +interface CRectangle2 extends IQuadrilateral2 { + kind: "rectangle"; + width: number; + height: number; +} + +interface CCircle2 extends IShape2 { + kind: "circle"; + radius: number; +} + +interface IQuadrilateral2 extends IShape2 { + kind: "square" | "rectangle"]; +} + +type IShape2Uni...> but was:< +interface [CCircle2 extends IShape2 { + kind: "circle"; + radius: number; +} + +interface CRectangle2 extends IQuadrilateral2 { + kind: "rectangle"; + height: number; + width: number; +} + +interface IQuadrilateral2 extends IShape2 { + kind: "square" | "rectangle"; +} + +interface IShape2 { + kind: "circle" | "square" | "rectangle"; +} + +interface CSquare2 extends IQuadrilateral2 { + kind: "square"; + size: number]; +} + +type IShape2Uni...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/XFMd9rXPmNOeeGBigoknmqla7fmZ8nLrGTkadIwiws=/failures b/typescript-generator-core/.nondex/XFMd9rXPmNOeeGBigoknmqla7fmZ8nLrGTkadIwiws=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/XFMd9rXPmNOeeGBigoknmqla7fmZ8nLrGTkadIwiws=/invocations b/typescript-generator-core/.nondex/XFMd9rXPmNOeeGBigoknmqla7fmZ8nLrGTkadIwiws=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/XFMd9rXPmNOeeGBigoknmqla7fmZ8nLrGTkadIwiws=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/XTTVWQlAMFnjjmLVXbnf2GCbD9nNHkrXWi3bJjBnpY=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/XTTVWQlAMFnjjmLVXbnf2GCbD9nNHkrXWi3bJjBnpY=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..4c0a78a92 --- /dev/null +++ b/typescript-generator-core/.nondex/XTTVWQlAMFnjjmLVXbnf2GCbD9nNHkrXWi3bJjBnpY=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/XTTVWQlAMFnjjmLVXbnf2GCbD9nNHkrXWi3bJjBnpY=/config b/typescript-generator-core/.nondex/XTTVWQlAMFnjjmLVXbnf2GCbD9nNHkrXWi3bJjBnpY=/config new file mode 100644 index 000000000..24c464331 --- /dev/null +++ b/typescript-generator-core/.nondex/XTTVWQlAMFnjjmLVXbnf2GCbD9nNHkrXWi3bJjBnpY=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=4538806 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=XTTVWQlAMFnjjmLVXbnf2GCbD9nNHkrXWi3bJjBnpY= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/XTTVWQlAMFnjjmLVXbnf2GCbD9nNHkrXWi3bJjBnpY=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/XTTVWQlAMFnjjmLVXbnf2GCbD9nNHkrXWi3bJjBnpY=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..3aea14f19 --- /dev/null +++ b/typescript-generator-core/.nondex/XTTVWQlAMFnjjmLVXbnf2GCbD9nNHkrXWi3bJjBnpY=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.201 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.199 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/XTTVWQlAMFnjjmLVXbnf2GCbD9nNHkrXWi3bJjBnpY=/failures b/typescript-generator-core/.nondex/XTTVWQlAMFnjjmLVXbnf2GCbD9nNHkrXWi3bJjBnpY=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/XTTVWQlAMFnjjmLVXbnf2GCbD9nNHkrXWi3bJjBnpY=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/XTTVWQlAMFnjjmLVXbnf2GCbD9nNHkrXWi3bJjBnpY=/invocations b/typescript-generator-core/.nondex/XTTVWQlAMFnjjmLVXbnf2GCbD9nNHkrXWi3bJjBnpY=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/XTTVWQlAMFnjjmLVXbnf2GCbD9nNHkrXWi3bJjBnpY=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/XUcFiqTgD0+xA3aOYVbWltkX8bFwXqxDcmiUjnwFsg=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/XUcFiqTgD0+xA3aOYVbWltkX8bFwXqxDcmiUjnwFsg=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..cbea81903 --- /dev/null +++ b/typescript-generator-core/.nondex/XUcFiqTgD0+xA3aOYVbWltkX8bFwXqxDcmiUjnwFsg=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/XUcFiqTgD0+xA3aOYVbWltkX8bFwXqxDcmiUjnwFsg=/config b/typescript-generator-core/.nondex/XUcFiqTgD0+xA3aOYVbWltkX8bFwXqxDcmiUjnwFsg=/config new file mode 100644 index 000000000..8b28c98b9 --- /dev/null +++ b/typescript-generator-core/.nondex/XUcFiqTgD0+xA3aOYVbWltkX8bFwXqxDcmiUjnwFsg=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1181842 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=XUcFiqTgD0+xA3aOYVbWltkX8bFwXqxDcmiUjnwFsg= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/XUcFiqTgD0+xA3aOYVbWltkX8bFwXqxDcmiUjnwFsg=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/XUcFiqTgD0+xA3aOYVbWltkX8bFwXqxDcmiUjnwFsg=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..f8e022ca7 --- /dev/null +++ b/typescript-generator-core/.nondex/XUcFiqTgD0+xA3aOYVbWltkX8bFwXqxDcmiUjnwFsg=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.191 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/XUcFiqTgD0+xA3aOYVbWltkX8bFwXqxDcmiUjnwFsg=/failures b/typescript-generator-core/.nondex/XUcFiqTgD0+xA3aOYVbWltkX8bFwXqxDcmiUjnwFsg=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/XUcFiqTgD0+xA3aOYVbWltkX8bFwXqxDcmiUjnwFsg=/invocations b/typescript-generator-core/.nondex/XUcFiqTgD0+xA3aOYVbWltkX8bFwXqxDcmiUjnwFsg=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/XUcFiqTgD0+xA3aOYVbWltkX8bFwXqxDcmiUjnwFsg=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/Xk4ae3uEkyoFljW7NcXxqziIoNhop0dZTSiS76EhpY=/config b/typescript-generator-core/.nondex/Xk4ae3uEkyoFljW7NcXxqziIoNhop0dZTSiS76EhpY=/config new file mode 100644 index 000000000..761db947e --- /dev/null +++ b/typescript-generator-core/.nondex/Xk4ae3uEkyoFljW7NcXxqziIoNhop0dZTSiS76EhpY=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1264730 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=Xk4ae3uEkyoFljW7NcXxqziIoNhop0dZTSiS76EhpY= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/Xk4ae3uEkyoFljW7NcXxqziIoNhop0dZTSiS76EhpY=/failures b/typescript-generator-core/.nondex/Xk4ae3uEkyoFljW7NcXxqziIoNhop0dZTSiS76EhpY=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/Xk4ae3uEkyoFljW7NcXxqziIoNhop0dZTSiS76EhpY=/invocations b/typescript-generator-core/.nondex/Xk4ae3uEkyoFljW7NcXxqziIoNhop0dZTSiS76EhpY=/invocations new file mode 100644 index 000000000..c164bf6ef --- /dev/null +++ b/typescript-generator-core/.nondex/Xk4ae3uEkyoFljW7NcXxqziIoNhop0dZTSiS76EhpY=/invocations @@ -0,0 +1,2 @@ +COUNT:16 +SHUFFLES:16 diff --git a/typescript-generator-core/.nondex/XsrW4S8o0fg9QxvSvLQK9eSpqgZkLzMwokcHTwat7Ak=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/XsrW4S8o0fg9QxvSvLQK9eSpqgZkLzMwokcHTwat7Ak=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..c135eef66 --- /dev/null +++ b/typescript-generator-core/.nondex/XsrW4S8o0fg9QxvSvLQK9eSpqgZkLzMwokcHTwat7Ak=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/XsrW4S8o0fg9QxvSvLQK9eSpqgZkLzMwokcHTwat7Ak=/config b/typescript-generator-core/.nondex/XsrW4S8o0fg9QxvSvLQK9eSpqgZkLzMwokcHTwat7Ak=/config new file mode 100644 index 000000000..2a7afe4b3 --- /dev/null +++ b/typescript-generator-core/.nondex/XsrW4S8o0fg9QxvSvLQK9eSpqgZkLzMwokcHTwat7Ak=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=4621694 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=XsrW4S8o0fg9QxvSvLQK9eSpqgZkLzMwokcHTwat7Ak= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/XsrW4S8o0fg9QxvSvLQK9eSpqgZkLzMwokcHTwat7Ak=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/XsrW4S8o0fg9QxvSvLQK9eSpqgZkLzMwokcHTwat7Ak=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..48c583a68 --- /dev/null +++ b/typescript-generator-core/.nondex/XsrW4S8o0fg9QxvSvLQK9eSpqgZkLzMwokcHTwat7Ak=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.216 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.215 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/XsrW4S8o0fg9QxvSvLQK9eSpqgZkLzMwokcHTwat7Ak=/failures b/typescript-generator-core/.nondex/XsrW4S8o0fg9QxvSvLQK9eSpqgZkLzMwokcHTwat7Ak=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/XsrW4S8o0fg9QxvSvLQK9eSpqgZkLzMwokcHTwat7Ak=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/XsrW4S8o0fg9QxvSvLQK9eSpqgZkLzMwokcHTwat7Ak=/invocations b/typescript-generator-core/.nondex/XsrW4S8o0fg9QxvSvLQK9eSpqgZkLzMwokcHTwat7Ak=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/XsrW4S8o0fg9QxvSvLQK9eSpqgZkLzMwokcHTwat7Ak=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/XuK+6sbj2IdvBZf2Rn+NYZvBLX8iNnxBnt0u83scjuI=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/XuK+6sbj2IdvBZf2Rn+NYZvBLX8iNnxBnt0u83scjuI=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..cd0a9ea3e --- /dev/null +++ b/typescript-generator-core/.nondex/XuK+6sbj2IdvBZf2Rn+NYZvBLX8iNnxBnt0u83scjuI=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/XuK+6sbj2IdvBZf2Rn+NYZvBLX8iNnxBnt0u83scjuI=/config b/typescript-generator-core/.nondex/XuK+6sbj2IdvBZf2Rn+NYZvBLX8iNnxBnt0u83scjuI=/config new file mode 100644 index 000000000..9def76d3d --- /dev/null +++ b/typescript-generator-core/.nondex/XuK+6sbj2IdvBZf2Rn+NYZvBLX8iNnxBnt0u83scjuI=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=2342274 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=XuK+6sbj2IdvBZf2Rn+NYZvBLX8iNnxBnt0u83scjuI= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/XuK+6sbj2IdvBZf2Rn+NYZvBLX8iNnxBnt0u83scjuI=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/XuK+6sbj2IdvBZf2Rn+NYZvBLX8iNnxBnt0u83scjuI=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..41af48d9a --- /dev/null +++ b/typescript-generator-core/.nondex/XuK+6sbj2IdvBZf2Rn+NYZvBLX8iNnxBnt0u83scjuI=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.267 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.267 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/XuK+6sbj2IdvBZf2Rn+NYZvBLX8iNnxBnt0u83scjuI=/failures b/typescript-generator-core/.nondex/XuK+6sbj2IdvBZf2Rn+NYZvBLX8iNnxBnt0u83scjuI=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/XuK+6sbj2IdvBZf2Rn+NYZvBLX8iNnxBnt0u83scjuI=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/XuK+6sbj2IdvBZf2Rn+NYZvBLX8iNnxBnt0u83scjuI=/invocations b/typescript-generator-core/.nondex/XuK+6sbj2IdvBZf2Rn+NYZvBLX8iNnxBnt0u83scjuI=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/XuK+6sbj2IdvBZf2Rn+NYZvBLX8iNnxBnt0u83scjuI=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/Y+A3kQ6gEmE1uubDd4zFlYhxu6b5TmVjrOHG21HjQI=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/Y+A3kQ6gEmE1uubDd4zFlYhxu6b5TmVjrOHG21HjQI=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..aeb9e0335 --- /dev/null +++ b/typescript-generator-core/.nondex/Y+A3kQ6gEmE1uubDd4zFlYhxu6b5TmVjrOHG21HjQI=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,69 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/Y+A3kQ6gEmE1uubDd4zFlYhxu6b5TmVjrOHG21HjQI=/config b/typescript-generator-core/.nondex/Y+A3kQ6gEmE1uubDd4zFlYhxu6b5TmVjrOHG21HjQI=/config new file mode 100644 index 000000000..2add772b6 --- /dev/null +++ b/typescript-generator-core/.nondex/Y+A3kQ6gEmE1uubDd4zFlYhxu6b5TmVjrOHG21HjQI=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=974622 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=Y+A3kQ6gEmE1uubDd4zFlYhxu6b5TmVjrOHG21HjQI= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/Y+A3kQ6gEmE1uubDd4zFlYhxu6b5TmVjrOHG21HjQI=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/Y+A3kQ6gEmE1uubDd4zFlYhxu6b5TmVjrOHG21HjQI=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..15bcfd36f --- /dev/null +++ b/typescript-generator-core/.nondex/Y+A3kQ6gEmE1uubDd4zFlYhxu6b5TmVjrOHG21HjQI=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.132 sec - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/Y+A3kQ6gEmE1uubDd4zFlYhxu6b5TmVjrOHG21HjQI=/failures b/typescript-generator-core/.nondex/Y+A3kQ6gEmE1uubDd4zFlYhxu6b5TmVjrOHG21HjQI=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/Y+A3kQ6gEmE1uubDd4zFlYhxu6b5TmVjrOHG21HjQI=/invocations b/typescript-generator-core/.nondex/Y+A3kQ6gEmE1uubDd4zFlYhxu6b5TmVjrOHG21HjQI=/invocations new file mode 100644 index 000000000..11ff8fe83 --- /dev/null +++ b/typescript-generator-core/.nondex/Y+A3kQ6gEmE1uubDd4zFlYhxu6b5TmVjrOHG21HjQI=/invocations @@ -0,0 +1,2 @@ +COUNT:61 +SHUFFLES:61 diff --git a/typescript-generator-core/.nondex/YIGvZDHVRFHRV+ebOFybWKM6Bljf6k9Vp7uBlt7K2Y4=.run b/typescript-generator-core/.nondex/YIGvZDHVRFHRV+ebOFybWKM6Bljf6k9Vp7uBlt7K2Y4=.run new file mode 100644 index 000000000..dac319075 --- /dev/null +++ b/typescript-generator-core/.nondex/YIGvZDHVRFHRV+ebOFybWKM6Bljf6k9Vp7uBlt7K2Y4=.run @@ -0,0 +1,4 @@ +YIGvZDHVRFHRV+ebOFybWKM6Bljf6k9Vp7uBlt7K2Y4= +1Jdfzoc6s599xPbTmuNKboNmo4qpBDfIuTIj31lzOIs= +gYS0Q+No3N9ZqnGrqIWryQEuKh6fW63wpqeaXM3wtc= +clean_E6xpCxdXjOyLUhlx2LBc32J9c2VJvgGVocTpbr2xnjk= diff --git a/typescript-generator-core/.nondex/YIGvZDHVRFHRV+ebOFybWKM6Bljf6k9Vp7uBlt7K2Y4=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/YIGvZDHVRFHRV+ebOFybWKM6Bljf6k9Vp7uBlt7K2Y4=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..952c65efc --- /dev/null +++ b/typescript-generator-core/.nondex/YIGvZDHVRFHRV+ebOFybWKM6Bljf6k9Vp7uBlt7K2Y4=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,132 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:210) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/YIGvZDHVRFHRV+ebOFybWKM6Bljf6k9Vp7uBlt7K2Y4=/config b/typescript-generator-core/.nondex/YIGvZDHVRFHRV+ebOFybWKM6Bljf6k9Vp7uBlt7K2Y4=/config new file mode 100644 index 000000000..a590e6be9 --- /dev/null +++ b/typescript-generator-core/.nondex/YIGvZDHVRFHRV+ebOFybWKM6Bljf6k9Vp7uBlt7K2Y4=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=933178 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=YIGvZDHVRFHRV+ebOFybWKM6Bljf6k9Vp7uBlt7K2Y4= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/YIGvZDHVRFHRV+ebOFybWKM6Bljf6k9Vp7uBlt7K2Y4=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/YIGvZDHVRFHRV+ebOFybWKM6Bljf6k9Vp7uBlt7K2Y4=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..7dceb68d0 --- /dev/null +++ b/typescript-generator-core/.nondex/YIGvZDHVRFHRV+ebOFybWKM6Bljf6k9Vp7uBlt7K2Y4=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,56 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.16 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.159 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:210) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/YIGvZDHVRFHRV+ebOFybWKM6Bljf6k9Vp7uBlt7K2Y4=/failures b/typescript-generator-core/.nondex/YIGvZDHVRFHRV+ebOFybWKM6Bljf6k9Vp7uBlt7K2Y4=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/YIGvZDHVRFHRV+ebOFybWKM6Bljf6k9Vp7uBlt7K2Y4=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/YIGvZDHVRFHRV+ebOFybWKM6Bljf6k9Vp7uBlt7K2Y4=/invocations b/typescript-generator-core/.nondex/YIGvZDHVRFHRV+ebOFybWKM6Bljf6k9Vp7uBlt7K2Y4=/invocations new file mode 100644 index 000000000..7ad7d1da8 --- /dev/null +++ b/typescript-generator-core/.nondex/YIGvZDHVRFHRV+ebOFybWKM6Bljf6k9Vp7uBlt7K2Y4=/invocations @@ -0,0 +1,2 @@ +COUNT:67 +SHUFFLES:67 diff --git a/typescript-generator-core/.nondex/YIGvZDHVRFHRV+ebOFybWKM6Bljf6k9Vp7uBlt7K2Y4=/test_results.html b/typescript-generator-core/.nondex/YIGvZDHVRFHRV+ebOFybWKM6Bljf6k9Vp7uBlt7K2Y4=/test_results.html new file mode 100644 index 000000000..cc9aae726 --- /dev/null +++ b/typescript-generator-core/.nondex/YIGvZDHVRFHRV+ebOFybWKM6Bljf6k9Vp7uBlt7K2Y4=/test_results.html @@ -0,0 +1 @@ +Test Results
Test Name9331789746221016066
cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces
\ No newline at end of file diff --git a/typescript-generator-core/.nondex/YX6zNM3Sn9gHo2i5p+hWzyldNaQc+KchqY780Udb2E=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/YX6zNM3Sn9gHo2i5p+hWzyldNaQc+KchqY780Udb2E=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..cae5b379b --- /dev/null +++ b/typescript-generator-core/.nondex/YX6zNM3Sn9gHo2i5p+hWzyldNaQc+KchqY780Udb2E=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/YX6zNM3Sn9gHo2i5p+hWzyldNaQc+KchqY780Udb2E=/config b/typescript-generator-core/.nondex/YX6zNM3Sn9gHo2i5p+hWzyldNaQc+KchqY780Udb2E=/config new file mode 100644 index 000000000..a3b9b7fbf --- /dev/null +++ b/typescript-generator-core/.nondex/YX6zNM3Sn9gHo2i5p+hWzyldNaQc+KchqY780Udb2E=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=2508050 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=YX6zNM3Sn9gHo2i5p+hWzyldNaQc+KchqY780Udb2E= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/YX6zNM3Sn9gHo2i5p+hWzyldNaQc+KchqY780Udb2E=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/YX6zNM3Sn9gHo2i5p+hWzyldNaQc+KchqY780Udb2E=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..5f185c24d --- /dev/null +++ b/typescript-generator-core/.nondex/YX6zNM3Sn9gHo2i5p+hWzyldNaQc+KchqY780Udb2E=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.206 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/YX6zNM3Sn9gHo2i5p+hWzyldNaQc+KchqY780Udb2E=/failures b/typescript-generator-core/.nondex/YX6zNM3Sn9gHo2i5p+hWzyldNaQc+KchqY780Udb2E=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/YX6zNM3Sn9gHo2i5p+hWzyldNaQc+KchqY780Udb2E=/invocations b/typescript-generator-core/.nondex/YX6zNM3Sn9gHo2i5p+hWzyldNaQc+KchqY780Udb2E=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/YX6zNM3Sn9gHo2i5p+hWzyldNaQc+KchqY780Udb2E=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/Yf1yPlWEwPEM9iFVhywlveov7KZjldiRTJiz2aH0xc=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/Yf1yPlWEwPEM9iFVhywlveov7KZjldiRTJiz2aH0xc=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..1282acf9b --- /dev/null +++ b/typescript-generator-core/.nondex/Yf1yPlWEwPEM9iFVhywlveov7KZjldiRTJiz2aH0xc=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/Yf1yPlWEwPEM9iFVhywlveov7KZjldiRTJiz2aH0xc=/config b/typescript-generator-core/.nondex/Yf1yPlWEwPEM9iFVhywlveov7KZjldiRTJiz2aH0xc=/config new file mode 100644 index 000000000..a18029e79 --- /dev/null +++ b/typescript-generator-core/.nondex/Yf1yPlWEwPEM9iFVhywlveov7KZjldiRTJiz2aH0xc=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1016066 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=Yf1yPlWEwPEM9iFVhywlveov7KZjldiRTJiz2aH0xc= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/Yf1yPlWEwPEM9iFVhywlveov7KZjldiRTJiz2aH0xc=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/Yf1yPlWEwPEM9iFVhywlveov7KZjldiRTJiz2aH0xc=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..559a89815 --- /dev/null +++ b/typescript-generator-core/.nondex/Yf1yPlWEwPEM9iFVhywlveov7KZjldiRTJiz2aH0xc=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.158 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/Yf1yPlWEwPEM9iFVhywlveov7KZjldiRTJiz2aH0xc=/failures b/typescript-generator-core/.nondex/Yf1yPlWEwPEM9iFVhywlveov7KZjldiRTJiz2aH0xc=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/Yf1yPlWEwPEM9iFVhywlveov7KZjldiRTJiz2aH0xc=/invocations b/typescript-generator-core/.nondex/Yf1yPlWEwPEM9iFVhywlveov7KZjldiRTJiz2aH0xc=/invocations new file mode 100644 index 000000000..7ad7d1da8 --- /dev/null +++ b/typescript-generator-core/.nondex/Yf1yPlWEwPEM9iFVhywlveov7KZjldiRTJiz2aH0xc=/invocations @@ -0,0 +1,2 @@ +COUNT:67 +SHUFFLES:67 diff --git a/typescript-generator-core/.nondex/YngcCGCQq3ZY9lEC5J7fo9g21E2rV9ky0VSAb2jrfs=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/YngcCGCQq3ZY9lEC5J7fo9g21E2rV9ky0VSAb2jrfs=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..ef168888f --- /dev/null +++ b/typescript-generator-core/.nondex/YngcCGCQq3ZY9lEC5J7fo9g21E2rV9ky0VSAb2jrfs=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/YngcCGCQq3ZY9lEC5J7fo9g21E2rV9ky0VSAb2jrfs=/config b/typescript-generator-core/.nondex/YngcCGCQq3ZY9lEC5J7fo9g21E2rV9ky0VSAb2jrfs=/config new file mode 100644 index 000000000..d980230b8 --- /dev/null +++ b/typescript-generator-core/.nondex/YngcCGCQq3ZY9lEC5J7fo9g21E2rV9ky0VSAb2jrfs=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=3502706 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=YngcCGCQq3ZY9lEC5J7fo9g21E2rV9ky0VSAb2jrfs= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/YngcCGCQq3ZY9lEC5J7fo9g21E2rV9ky0VSAb2jrfs=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/YngcCGCQq3ZY9lEC5J7fo9g21E2rV9ky0VSAb2jrfs=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..23b41bf30 --- /dev/null +++ b/typescript-generator-core/.nondex/YngcCGCQq3ZY9lEC5J7fo9g21E2rV9ky0VSAb2jrfs=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.226 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/YngcCGCQq3ZY9lEC5J7fo9g21E2rV9ky0VSAb2jrfs=/failures b/typescript-generator-core/.nondex/YngcCGCQq3ZY9lEC5J7fo9g21E2rV9ky0VSAb2jrfs=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/YngcCGCQq3ZY9lEC5J7fo9g21E2rV9ky0VSAb2jrfs=/invocations b/typescript-generator-core/.nondex/YngcCGCQq3ZY9lEC5J7fo9g21E2rV9ky0VSAb2jrfs=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/YngcCGCQq3ZY9lEC5J7fo9g21E2rV9ky0VSAb2jrfs=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/Yu1gVwP71rZ+APQkHR4DqsJmpNbe9gILA3aQYWNNQg=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/Yu1gVwP71rZ+APQkHR4DqsJmpNbe9gILA3aQYWNNQg=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..f665b7c9b --- /dev/null +++ b/typescript-generator-core/.nondex/Yu1gVwP71rZ+APQkHR4DqsJmpNbe9gILA3aQYWNNQg=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/Yu1gVwP71rZ+APQkHR4DqsJmpNbe9gILA3aQYWNNQg=/config b/typescript-generator-core/.nondex/Yu1gVwP71rZ+APQkHR4DqsJmpNbe9gILA3aQYWNNQg=/config new file mode 100644 index 000000000..eaf5e5eab --- /dev/null +++ b/typescript-generator-core/.nondex/Yu1gVwP71rZ+APQkHR4DqsJmpNbe9gILA3aQYWNNQg=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1016066 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=Yu1gVwP71rZ+APQkHR4DqsJmpNbe9gILA3aQYWNNQg= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/Yu1gVwP71rZ+APQkHR4DqsJmpNbe9gILA3aQYWNNQg=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/Yu1gVwP71rZ+APQkHR4DqsJmpNbe9gILA3aQYWNNQg=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..f8b5fff87 --- /dev/null +++ b/typescript-generator-core/.nondex/Yu1gVwP71rZ+APQkHR4DqsJmpNbe9gILA3aQYWNNQg=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.163 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/Yu1gVwP71rZ+APQkHR4DqsJmpNbe9gILA3aQYWNNQg=/failures b/typescript-generator-core/.nondex/Yu1gVwP71rZ+APQkHR4DqsJmpNbe9gILA3aQYWNNQg=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/Yu1gVwP71rZ+APQkHR4DqsJmpNbe9gILA3aQYWNNQg=/invocations b/typescript-generator-core/.nondex/Yu1gVwP71rZ+APQkHR4DqsJmpNbe9gILA3aQYWNNQg=/invocations new file mode 100644 index 000000000..7ad7d1da8 --- /dev/null +++ b/typescript-generator-core/.nondex/Yu1gVwP71rZ+APQkHR4DqsJmpNbe9gILA3aQYWNNQg=/invocations @@ -0,0 +1,2 @@ +COUNT:67 +SHUFFLES:67 diff --git a/typescript-generator-core/.nondex/ZBLoDg3n09Df9zmV9rXrWtZzIlygXGNiuSkyyobBBY=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/ZBLoDg3n09Df9zmV9rXrWtZzIlygXGNiuSkyyobBBY=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..f4503721e --- /dev/null +++ b/typescript-generator-core/.nondex/ZBLoDg3n09Df9zmV9rXrWtZzIlygXGNiuSkyyobBBY=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/ZBLoDg3n09Df9zmV9rXrWtZzIlygXGNiuSkyyobBBY=/config b/typescript-generator-core/.nondex/ZBLoDg3n09Df9zmV9rXrWtZzIlygXGNiuSkyyobBBY=/config new file mode 100644 index 000000000..61f18ac8f --- /dev/null +++ b/typescript-generator-core/.nondex/ZBLoDg3n09Df9zmV9rXrWtZzIlygXGNiuSkyyobBBY=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=3834258 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=ZBLoDg3n09Df9zmV9rXrWtZzIlygXGNiuSkyyobBBY= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/ZBLoDg3n09Df9zmV9rXrWtZzIlygXGNiuSkyyobBBY=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/ZBLoDg3n09Df9zmV9rXrWtZzIlygXGNiuSkyyobBBY=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..9d2b5ec84 --- /dev/null +++ b/typescript-generator-core/.nondex/ZBLoDg3n09Df9zmV9rXrWtZzIlygXGNiuSkyyobBBY=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.203 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.199 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/ZBLoDg3n09Df9zmV9rXrWtZzIlygXGNiuSkyyobBBY=/failures b/typescript-generator-core/.nondex/ZBLoDg3n09Df9zmV9rXrWtZzIlygXGNiuSkyyobBBY=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/ZBLoDg3n09Df9zmV9rXrWtZzIlygXGNiuSkyyobBBY=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/ZBLoDg3n09Df9zmV9rXrWtZzIlygXGNiuSkyyobBBY=/invocations b/typescript-generator-core/.nondex/ZBLoDg3n09Df9zmV9rXrWtZzIlygXGNiuSkyyobBBY=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/ZBLoDg3n09Df9zmV9rXrWtZzIlygXGNiuSkyyobBBY=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/ZGU8Sm3S8xGsj451Df77VgRoTsMbMyOJPt1lNNseFQ=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/ZGU8Sm3S8xGsj451Df77VgRoTsMbMyOJPt1lNNseFQ=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..e86ba2bc0 --- /dev/null +++ b/typescript-generator-core/.nondex/ZGU8Sm3S8xGsj451Df77VgRoTsMbMyOJPt1lNNseFQ=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/ZGU8Sm3S8xGsj451Df77VgRoTsMbMyOJPt1lNNseFQ=/config b/typescript-generator-core/.nondex/ZGU8Sm3S8xGsj451Df77VgRoTsMbMyOJPt1lNNseFQ=/config new file mode 100644 index 000000000..bc7fbd64f --- /dev/null +++ b/typescript-generator-core/.nondex/ZGU8Sm3S8xGsj451Df77VgRoTsMbMyOJPt1lNNseFQ=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=3171154 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=ZGU8Sm3S8xGsj451Df77VgRoTsMbMyOJPt1lNNseFQ= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/ZGU8Sm3S8xGsj451Df77VgRoTsMbMyOJPt1lNNseFQ=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/ZGU8Sm3S8xGsj451Df77VgRoTsMbMyOJPt1lNNseFQ=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..6b23360f2 --- /dev/null +++ b/typescript-generator-core/.nondex/ZGU8Sm3S8xGsj451Df77VgRoTsMbMyOJPt1lNNseFQ=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.236 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.233 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/ZGU8Sm3S8xGsj451Df77VgRoTsMbMyOJPt1lNNseFQ=/failures b/typescript-generator-core/.nondex/ZGU8Sm3S8xGsj451Df77VgRoTsMbMyOJPt1lNNseFQ=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/ZGU8Sm3S8xGsj451Df77VgRoTsMbMyOJPt1lNNseFQ=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/ZGU8Sm3S8xGsj451Df77VgRoTsMbMyOJPt1lNNseFQ=/invocations b/typescript-generator-core/.nondex/ZGU8Sm3S8xGsj451Df77VgRoTsMbMyOJPt1lNNseFQ=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/ZGU8Sm3S8xGsj451Df77VgRoTsMbMyOJPt1lNNseFQ=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/Zjg5SqzB3sYeaZXa74Z7kZTUBqqvFnrJ4C290Nr9ajQ=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/Zjg5SqzB3sYeaZXa74Z7kZTUBqqvFnrJ4C290Nr9ajQ=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..fdc9048e1 --- /dev/null +++ b/typescript-generator-core/.nondex/Zjg5SqzB3sYeaZXa74Z7kZTUBqqvFnrJ4C290Nr9ajQ=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/Zjg5SqzB3sYeaZXa74Z7kZTUBqqvFnrJ4C290Nr9ajQ=/config b/typescript-generator-core/.nondex/Zjg5SqzB3sYeaZXa74Z7kZTUBqqvFnrJ4C290Nr9ajQ=/config new file mode 100644 index 000000000..67b1ab432 --- /dev/null +++ b/typescript-generator-core/.nondex/Zjg5SqzB3sYeaZXa74Z7kZTUBqqvFnrJ4C290Nr9ajQ=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=2549494 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=Zjg5SqzB3sYeaZXa74Z7kZTUBqqvFnrJ4C290Nr9ajQ= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/Zjg5SqzB3sYeaZXa74Z7kZTUBqqvFnrJ4C290Nr9ajQ=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/Zjg5SqzB3sYeaZXa74Z7kZTUBqqvFnrJ4C290Nr9ajQ=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..5371ea67d --- /dev/null +++ b/typescript-generator-core/.nondex/Zjg5SqzB3sYeaZXa74Z7kZTUBqqvFnrJ4C290Nr9ajQ=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.202 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/Zjg5SqzB3sYeaZXa74Z7kZTUBqqvFnrJ4C290Nr9ajQ=/failures b/typescript-generator-core/.nondex/Zjg5SqzB3sYeaZXa74Z7kZTUBqqvFnrJ4C290Nr9ajQ=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/Zjg5SqzB3sYeaZXa74Z7kZTUBqqvFnrJ4C290Nr9ajQ=/invocations b/typescript-generator-core/.nondex/Zjg5SqzB3sYeaZXa74Z7kZTUBqqvFnrJ4C290Nr9ajQ=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/Zjg5SqzB3sYeaZXa74Z7kZTUBqqvFnrJ4C290Nr9ajQ=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/ZnGemHBLK++JinhoRm2nnd+bnJqe6A20l6N1J5Tw938=/failures b/typescript-generator-core/.nondex/ZnGemHBLK++JinhoRm2nnd+bnJqe6A20l6N1J5Tw938=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/Zp6A4hPfZOyw+uq5CpoFwuigrMDw6cmgvoqYYijohM=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/Zp6A4hPfZOyw+uq5CpoFwuigrMDw6cmgvoqYYijohM=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..3768ee046 --- /dev/null +++ b/typescript-generator-core/.nondex/Zp6A4hPfZOyw+uq5CpoFwuigrMDw6cmgvoqYYijohM=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/Zp6A4hPfZOyw+uq5CpoFwuigrMDw6cmgvoqYYijohM=/config b/typescript-generator-core/.nondex/Zp6A4hPfZOyw+uq5CpoFwuigrMDw6cmgvoqYYijohM=/config new file mode 100644 index 000000000..639bd9292 --- /dev/null +++ b/typescript-generator-core/.nondex/Zp6A4hPfZOyw+uq5CpoFwuigrMDw6cmgvoqYYijohM=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=2632382 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=Zp6A4hPfZOyw+uq5CpoFwuigrMDw6cmgvoqYYijohM= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/Zp6A4hPfZOyw+uq5CpoFwuigrMDw6cmgvoqYYijohM=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/Zp6A4hPfZOyw+uq5CpoFwuigrMDw6cmgvoqYYijohM=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..54b6a6397 --- /dev/null +++ b/typescript-generator-core/.nondex/Zp6A4hPfZOyw+uq5CpoFwuigrMDw6cmgvoqYYijohM=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.234 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.211 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/Zp6A4hPfZOyw+uq5CpoFwuigrMDw6cmgvoqYYijohM=/failures b/typescript-generator-core/.nondex/Zp6A4hPfZOyw+uq5CpoFwuigrMDw6cmgvoqYYijohM=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/Zp6A4hPfZOyw+uq5CpoFwuigrMDw6cmgvoqYYijohM=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/Zp6A4hPfZOyw+uq5CpoFwuigrMDw6cmgvoqYYijohM=/invocations b/typescript-generator-core/.nondex/Zp6A4hPfZOyw+uq5CpoFwuigrMDw6cmgvoqYYijohM=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/Zp6A4hPfZOyw+uq5CpoFwuigrMDw6cmgvoqYYijohM=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/Zpujzf4XwNeSYbPHSYqrbVZjvwRhJqUqh1nQWL2ijtk=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/Zpujzf4XwNeSYbPHSYqrbVZjvwRhJqUqh1nQWL2ijtk=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..c6df8de83 --- /dev/null +++ b/typescript-generator-core/.nondex/Zpujzf4XwNeSYbPHSYqrbVZjvwRhJqUqh1nQWL2ijtk=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/Zpujzf4XwNeSYbPHSYqrbVZjvwRhJqUqh1nQWL2ijtk=/config b/typescript-generator-core/.nondex/Zpujzf4XwNeSYbPHSYqrbVZjvwRhJqUqh1nQWL2ijtk=/config new file mode 100644 index 000000000..6ee575b5f --- /dev/null +++ b/typescript-generator-core/.nondex/Zpujzf4XwNeSYbPHSYqrbVZjvwRhJqUqh1nQWL2ijtk=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=4331586 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=Zpujzf4XwNeSYbPHSYqrbVZjvwRhJqUqh1nQWL2ijtk= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/Zpujzf4XwNeSYbPHSYqrbVZjvwRhJqUqh1nQWL2ijtk=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/Zpujzf4XwNeSYbPHSYqrbVZjvwRhJqUqh1nQWL2ijtk=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..7efdb902f --- /dev/null +++ b/typescript-generator-core/.nondex/Zpujzf4XwNeSYbPHSYqrbVZjvwRhJqUqh1nQWL2ijtk=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.236 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/Zpujzf4XwNeSYbPHSYqrbVZjvwRhJqUqh1nQWL2ijtk=/failures b/typescript-generator-core/.nondex/Zpujzf4XwNeSYbPHSYqrbVZjvwRhJqUqh1nQWL2ijtk=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/Zpujzf4XwNeSYbPHSYqrbVZjvwRhJqUqh1nQWL2ijtk=/invocations b/typescript-generator-core/.nondex/Zpujzf4XwNeSYbPHSYqrbVZjvwRhJqUqh1nQWL2ijtk=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/Zpujzf4XwNeSYbPHSYqrbVZjvwRhJqUqh1nQWL2ijtk=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/apm9gRLL8ia1i2HFiPOCFlFlwroJPk5SzV52tC5BAsk=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/apm9gRLL8ia1i2HFiPOCFlFlwroJPk5SzV52tC5BAsk=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..bcec590b7 --- /dev/null +++ b/typescript-generator-core/.nondex/apm9gRLL8ia1i2HFiPOCFlFlwroJPk5SzV52tC5BAsk=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/apm9gRLL8ia1i2HFiPOCFlFlwroJPk5SzV52tC5BAsk=/config b/typescript-generator-core/.nondex/apm9gRLL8ia1i2HFiPOCFlFlwroJPk5SzV52tC5BAsk=/config new file mode 100644 index 000000000..c86cc20dd --- /dev/null +++ b/typescript-generator-core/.nondex/apm9gRLL8ia1i2HFiPOCFlFlwroJPk5SzV52tC5BAsk=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1057510 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=apm9gRLL8ia1i2HFiPOCFlFlwroJPk5SzV52tC5BAsk= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/apm9gRLL8ia1i2HFiPOCFlFlwroJPk5SzV52tC5BAsk=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/apm9gRLL8ia1i2HFiPOCFlFlwroJPk5SzV52tC5BAsk=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..168c94957 --- /dev/null +++ b/typescript-generator-core/.nondex/apm9gRLL8ia1i2HFiPOCFlFlwroJPk5SzV52tC5BAsk=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.197 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/apm9gRLL8ia1i2HFiPOCFlFlwroJPk5SzV52tC5BAsk=/failures b/typescript-generator-core/.nondex/apm9gRLL8ia1i2HFiPOCFlFlwroJPk5SzV52tC5BAsk=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/apm9gRLL8ia1i2HFiPOCFlFlwroJPk5SzV52tC5BAsk=/invocations b/typescript-generator-core/.nondex/apm9gRLL8ia1i2HFiPOCFlFlwroJPk5SzV52tC5BAsk=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/apm9gRLL8ia1i2HFiPOCFlFlwroJPk5SzV52tC5BAsk=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/ayRVON8WvX1UnpC6dyrlSj4Go6F2+4eYsPb1dswxg=.run b/typescript-generator-core/.nondex/ayRVON8WvX1UnpC6dyrlSj4Go6F2+4eYsPb1dswxg=.run new file mode 100644 index 000000000..80777b9e4 --- /dev/null +++ b/typescript-generator-core/.nondex/ayRVON8WvX1UnpC6dyrlSj4Go6F2+4eYsPb1dswxg=.run @@ -0,0 +1,4 @@ +ayRVON8WvX1UnpC6dyrlSj4Go6F2+4eYsPb1dswxg= +Rb0hoW3ZWdZfw0Tff9wAEnjs1dIHxxjNaoCsvXPbbY= +MFLnhmtH71o+NGZNA8Zp+s678squ4OSN6TKXsGV7MGg= +clean_7RVbqsGaVsxx0Kdj2G523wuzJzGlbs+WkyUhiGAuykg= diff --git a/typescript-generator-core/.nondex/ayRVON8WvX1UnpC6dyrlSj4Go6F2+4eYsPb1dswxg=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/ayRVON8WvX1UnpC6dyrlSj4Go6F2+4eYsPb1dswxg=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..70b370c58 --- /dev/null +++ b/typescript-generator-core/.nondex/ayRVON8WvX1UnpC6dyrlSj4Go6F2+4eYsPb1dswxg=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,132 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:210) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/ayRVON8WvX1UnpC6dyrlSj4Go6F2+4eYsPb1dswxg=/config b/typescript-generator-core/.nondex/ayRVON8WvX1UnpC6dyrlSj4Go6F2+4eYsPb1dswxg=/config new file mode 100644 index 000000000..7ae617387 --- /dev/null +++ b/typescript-generator-core/.nondex/ayRVON8WvX1UnpC6dyrlSj4Go6F2+4eYsPb1dswxg=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=933178 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=ayRVON8WvX1UnpC6dyrlSj4Go6F2+4eYsPb1dswxg= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/ayRVON8WvX1UnpC6dyrlSj4Go6F2+4eYsPb1dswxg=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/ayRVON8WvX1UnpC6dyrlSj4Go6F2+4eYsPb1dswxg=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..dcfa15bd3 --- /dev/null +++ b/typescript-generator-core/.nondex/ayRVON8WvX1UnpC6dyrlSj4Go6F2+4eYsPb1dswxg=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,56 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.175 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.174 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:210) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/ayRVON8WvX1UnpC6dyrlSj4Go6F2+4eYsPb1dswxg=/failures b/typescript-generator-core/.nondex/ayRVON8WvX1UnpC6dyrlSj4Go6F2+4eYsPb1dswxg=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/ayRVON8WvX1UnpC6dyrlSj4Go6F2+4eYsPb1dswxg=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/ayRVON8WvX1UnpC6dyrlSj4Go6F2+4eYsPb1dswxg=/invocations b/typescript-generator-core/.nondex/ayRVON8WvX1UnpC6dyrlSj4Go6F2+4eYsPb1dswxg=/invocations new file mode 100644 index 000000000..7ad7d1da8 --- /dev/null +++ b/typescript-generator-core/.nondex/ayRVON8WvX1UnpC6dyrlSj4Go6F2+4eYsPb1dswxg=/invocations @@ -0,0 +1,2 @@ +COUNT:67 +SHUFFLES:67 diff --git a/typescript-generator-core/.nondex/ayRVON8WvX1UnpC6dyrlSj4Go6F2+4eYsPb1dswxg=/test_results.html b/typescript-generator-core/.nondex/ayRVON8WvX1UnpC6dyrlSj4Go6F2+4eYsPb1dswxg=/test_results.html new file mode 100644 index 000000000..cc9aae726 --- /dev/null +++ b/typescript-generator-core/.nondex/ayRVON8WvX1UnpC6dyrlSj4Go6F2+4eYsPb1dswxg=/test_results.html @@ -0,0 +1 @@ +Test Results
Test Name9331789746221016066
cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces
\ No newline at end of file diff --git a/typescript-generator-core/.nondex/bBT5FnGjo6ilWpSwnE4WLB9nks5lrM1Fvfom0KIokvY=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/bBT5FnGjo6ilWpSwnE4WLB9nks5lrM1Fvfom0KIokvY=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..48e356023 --- /dev/null +++ b/typescript-generator-core/.nondex/bBT5FnGjo6ilWpSwnE4WLB9nks5lrM1Fvfom0KIokvY=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/bBT5FnGjo6ilWpSwnE4WLB9nks5lrM1Fvfom0KIokvY=/config b/typescript-generator-core/.nondex/bBT5FnGjo6ilWpSwnE4WLB9nks5lrM1Fvfom0KIokvY=/config new file mode 100644 index 000000000..934d16650 --- /dev/null +++ b/typescript-generator-core/.nondex/bBT5FnGjo6ilWpSwnE4WLB9nks5lrM1Fvfom0KIokvY=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=4828914 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=bBT5FnGjo6ilWpSwnE4WLB9nks5lrM1Fvfom0KIokvY= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/bBT5FnGjo6ilWpSwnE4WLB9nks5lrM1Fvfom0KIokvY=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/bBT5FnGjo6ilWpSwnE4WLB9nks5lrM1Fvfom0KIokvY=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..31289a3fc --- /dev/null +++ b/typescript-generator-core/.nondex/bBT5FnGjo6ilWpSwnE4WLB9nks5lrM1Fvfom0KIokvY=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.259 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.259 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/bBT5FnGjo6ilWpSwnE4WLB9nks5lrM1Fvfom0KIokvY=/failures b/typescript-generator-core/.nondex/bBT5FnGjo6ilWpSwnE4WLB9nks5lrM1Fvfom0KIokvY=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/bBT5FnGjo6ilWpSwnE4WLB9nks5lrM1Fvfom0KIokvY=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/bBT5FnGjo6ilWpSwnE4WLB9nks5lrM1Fvfom0KIokvY=/invocations b/typescript-generator-core/.nondex/bBT5FnGjo6ilWpSwnE4WLB9nks5lrM1Fvfom0KIokvY=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/bBT5FnGjo6ilWpSwnE4WLB9nks5lrM1Fvfom0KIokvY=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/bI3uvT5p0UsjZpdXznS5jzg84c7oaJP0Xa5duLLgaY=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/bI3uvT5p0UsjZpdXznS5jzg84c7oaJP0Xa5duLLgaY=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..27462522f --- /dev/null +++ b/typescript-generator-core/.nondex/bI3uvT5p0UsjZpdXznS5jzg84c7oaJP0Xa5duLLgaY=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/bI3uvT5p0UsjZpdXznS5jzg84c7oaJP0Xa5duLLgaY=/config b/typescript-generator-core/.nondex/bI3uvT5p0UsjZpdXznS5jzg84c7oaJP0Xa5duLLgaY=/config new file mode 100644 index 000000000..b2626e067 --- /dev/null +++ b/typescript-generator-core/.nondex/bI3uvT5p0UsjZpdXznS5jzg84c7oaJP0Xa5duLLgaY=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=2963934 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=bI3uvT5p0UsjZpdXznS5jzg84c7oaJP0Xa5duLLgaY= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/bI3uvT5p0UsjZpdXznS5jzg84c7oaJP0Xa5duLLgaY=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/bI3uvT5p0UsjZpdXznS5jzg84c7oaJP0Xa5duLLgaY=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..7c99c742c --- /dev/null +++ b/typescript-generator-core/.nondex/bI3uvT5p0UsjZpdXznS5jzg84c7oaJP0Xa5duLLgaY=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.214 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.212 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/bI3uvT5p0UsjZpdXznS5jzg84c7oaJP0Xa5duLLgaY=/failures b/typescript-generator-core/.nondex/bI3uvT5p0UsjZpdXznS5jzg84c7oaJP0Xa5duLLgaY=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/bI3uvT5p0UsjZpdXznS5jzg84c7oaJP0Xa5duLLgaY=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/bI3uvT5p0UsjZpdXznS5jzg84c7oaJP0Xa5duLLgaY=/invocations b/typescript-generator-core/.nondex/bI3uvT5p0UsjZpdXznS5jzg84c7oaJP0Xa5duLLgaY=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/bI3uvT5p0UsjZpdXznS5jzg84c7oaJP0Xa5duLLgaY=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/bK24HdMfpgYTuvmfgWBZZmvxRk6D5PevNxNgtBr6hKw=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/bK24HdMfpgYTuvmfgWBZZmvxRk6D5PevNxNgtBr6hKw=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..8209e068c --- /dev/null +++ b/typescript-generator-core/.nondex/bK24HdMfpgYTuvmfgWBZZmvxRk6D5PevNxNgtBr6hKw=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/bK24HdMfpgYTuvmfgWBZZmvxRk6D5PevNxNgtBr6hKw=/config b/typescript-generator-core/.nondex/bK24HdMfpgYTuvmfgWBZZmvxRk6D5PevNxNgtBr6hKw=/config new file mode 100644 index 000000000..c735fb8e3 --- /dev/null +++ b/typescript-generator-core/.nondex/bK24HdMfpgYTuvmfgWBZZmvxRk6D5PevNxNgtBr6hKw=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=2466606 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=bK24HdMfpgYTuvmfgWBZZmvxRk6D5PevNxNgtBr6hKw= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/bK24HdMfpgYTuvmfgWBZZmvxRk6D5PevNxNgtBr6hKw=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/bK24HdMfpgYTuvmfgWBZZmvxRk6D5PevNxNgtBr6hKw=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..ef934ad66 --- /dev/null +++ b/typescript-generator-core/.nondex/bK24HdMfpgYTuvmfgWBZZmvxRk6D5PevNxNgtBr6hKw=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.2 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.199 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/bK24HdMfpgYTuvmfgWBZZmvxRk6D5PevNxNgtBr6hKw=/failures b/typescript-generator-core/.nondex/bK24HdMfpgYTuvmfgWBZZmvxRk6D5PevNxNgtBr6hKw=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/bK24HdMfpgYTuvmfgWBZZmvxRk6D5PevNxNgtBr6hKw=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/bK24HdMfpgYTuvmfgWBZZmvxRk6D5PevNxNgtBr6hKw=/invocations b/typescript-generator-core/.nondex/bK24HdMfpgYTuvmfgWBZZmvxRk6D5PevNxNgtBr6hKw=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/bK24HdMfpgYTuvmfgWBZZmvxRk6D5PevNxNgtBr6hKw=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/bUiPtQGguD670rfsS34aJILL5fmeDf6zwrMqHwkw=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/bUiPtQGguD670rfsS34aJILL5fmeDf6zwrMqHwkw=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..eee868947 --- /dev/null +++ b/typescript-generator-core/.nondex/bUiPtQGguD670rfsS34aJILL5fmeDf6zwrMqHwkw=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/bUiPtQGguD670rfsS34aJILL5fmeDf6zwrMqHwkw=/config b/typescript-generator-core/.nondex/bUiPtQGguD670rfsS34aJILL5fmeDf6zwrMqHwkw=/config new file mode 100644 index 000000000..c9129df94 --- /dev/null +++ b/typescript-generator-core/.nondex/bUiPtQGguD670rfsS34aJILL5fmeDf6zwrMqHwkw=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=4994690 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=bUiPtQGguD670rfsS34aJILL5fmeDf6zwrMqHwkw= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/bUiPtQGguD670rfsS34aJILL5fmeDf6zwrMqHwkw=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/bUiPtQGguD670rfsS34aJILL5fmeDf6zwrMqHwkw=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..7c99c742c --- /dev/null +++ b/typescript-generator-core/.nondex/bUiPtQGguD670rfsS34aJILL5fmeDf6zwrMqHwkw=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.214 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.212 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/bUiPtQGguD670rfsS34aJILL5fmeDf6zwrMqHwkw=/failures b/typescript-generator-core/.nondex/bUiPtQGguD670rfsS34aJILL5fmeDf6zwrMqHwkw=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/bUiPtQGguD670rfsS34aJILL5fmeDf6zwrMqHwkw=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/bUiPtQGguD670rfsS34aJILL5fmeDf6zwrMqHwkw=/invocations b/typescript-generator-core/.nondex/bUiPtQGguD670rfsS34aJILL5fmeDf6zwrMqHwkw=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/bUiPtQGguD670rfsS34aJILL5fmeDf6zwrMqHwkw=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/bcYyq+KJukAIdC9L6pkpRoowqwqEfypJMnv6PEegH0Y=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/bcYyq+KJukAIdC9L6pkpRoowqwqEfypJMnv6PEegH0Y=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..79ddf7395 --- /dev/null +++ b/typescript-generator-core/.nondex/bcYyq+KJukAIdC9L6pkpRoowqwqEfypJMnv6PEegH0Y=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/bcYyq+KJukAIdC9L6pkpRoowqwqEfypJMnv6PEegH0Y=/config b/typescript-generator-core/.nondex/bcYyq+KJukAIdC9L6pkpRoowqwqEfypJMnv6PEegH0Y=/config new file mode 100644 index 000000000..0a7bea14a --- /dev/null +++ b/typescript-generator-core/.nondex/bcYyq+KJukAIdC9L6pkpRoowqwqEfypJMnv6PEegH0Y=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=3254042 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=bcYyq+KJukAIdC9L6pkpRoowqwqEfypJMnv6PEegH0Y= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/bcYyq+KJukAIdC9L6pkpRoowqwqEfypJMnv6PEegH0Y=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/bcYyq+KJukAIdC9L6pkpRoowqwqEfypJMnv6PEegH0Y=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..c2ddc0ee4 --- /dev/null +++ b/typescript-generator-core/.nondex/bcYyq+KJukAIdC9L6pkpRoowqwqEfypJMnv6PEegH0Y=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.211 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.211 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/bcYyq+KJukAIdC9L6pkpRoowqwqEfypJMnv6PEegH0Y=/failures b/typescript-generator-core/.nondex/bcYyq+KJukAIdC9L6pkpRoowqwqEfypJMnv6PEegH0Y=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/bcYyq+KJukAIdC9L6pkpRoowqwqEfypJMnv6PEegH0Y=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/bcYyq+KJukAIdC9L6pkpRoowqwqEfypJMnv6PEegH0Y=/invocations b/typescript-generator-core/.nondex/bcYyq+KJukAIdC9L6pkpRoowqwqEfypJMnv6PEegH0Y=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/bcYyq+KJukAIdC9L6pkpRoowqwqEfypJMnv6PEegH0Y=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/bgdJQJVi9b1nwgMWj2YOdOG0KtKY+vNf+nDXExqjD9I=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/bgdJQJVi9b1nwgMWj2YOdOG0KtKY+vNf+nDXExqjD9I=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..ef92f6769 --- /dev/null +++ b/typescript-generator-core/.nondex/bgdJQJVi9b1nwgMWj2YOdOG0KtKY+vNf+nDXExqjD9I=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/bgdJQJVi9b1nwgMWj2YOdOG0KtKY+vNf+nDXExqjD9I=/config b/typescript-generator-core/.nondex/bgdJQJVi9b1nwgMWj2YOdOG0KtKY+vNf+nDXExqjD9I=/config new file mode 100644 index 000000000..36a9dd688 --- /dev/null +++ b/typescript-generator-core/.nondex/bgdJQJVi9b1nwgMWj2YOdOG0KtKY+vNf+nDXExqjD9I=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1016066 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=bgdJQJVi9b1nwgMWj2YOdOG0KtKY+vNf+nDXExqjD9I= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/bgdJQJVi9b1nwgMWj2YOdOG0KtKY+vNf+nDXExqjD9I=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/bgdJQJVi9b1nwgMWj2YOdOG0KtKY+vNf+nDXExqjD9I=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..168c94957 --- /dev/null +++ b/typescript-generator-core/.nondex/bgdJQJVi9b1nwgMWj2YOdOG0KtKY+vNf+nDXExqjD9I=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.197 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/bgdJQJVi9b1nwgMWj2YOdOG0KtKY+vNf+nDXExqjD9I=/failures b/typescript-generator-core/.nondex/bgdJQJVi9b1nwgMWj2YOdOG0KtKY+vNf+nDXExqjD9I=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/bgdJQJVi9b1nwgMWj2YOdOG0KtKY+vNf+nDXExqjD9I=/invocations b/typescript-generator-core/.nondex/bgdJQJVi9b1nwgMWj2YOdOG0KtKY+vNf+nDXExqjD9I=/invocations new file mode 100644 index 000000000..7ad7d1da8 --- /dev/null +++ b/typescript-generator-core/.nondex/bgdJQJVi9b1nwgMWj2YOdOG0KtKY+vNf+nDXExqjD9I=/invocations @@ -0,0 +1,2 @@ +COUNT:67 +SHUFFLES:67 diff --git a/typescript-generator-core/.nondex/bo1Pk6U+k2fUkLZdUUalOh9rIL3fM3L3ecHOCAnsEc=.run b/typescript-generator-core/.nondex/bo1Pk6U+k2fUkLZdUUalOh9rIL3fM3L3ecHOCAnsEc=.run new file mode 100644 index 000000000..42121ea0d --- /dev/null +++ b/typescript-generator-core/.nondex/bo1Pk6U+k2fUkLZdUUalOh9rIL3fM3L3ecHOCAnsEc=.run @@ -0,0 +1,4 @@ +bo1Pk6U+k2fUkLZdUUalOh9rIL3fM3L3ecHOCAnsEc= +7AcfVCK9xqHCn8a6ojyL2MoCDI1tg5RacbLH8Fv8Ac= +Yu1gVwP71rZ+APQkHR4DqsJmpNbe9gILA3aQYWNNQg= +clean_MYhKzOOWoSglIcrKDULsp8J6zoZWoastitQwDwmr68= diff --git a/typescript-generator-core/.nondex/bo1Pk6U+k2fUkLZdUUalOh9rIL3fM3L3ecHOCAnsEc=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/bo1Pk6U+k2fUkLZdUUalOh9rIL3fM3L3ecHOCAnsEc=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..827848f84 --- /dev/null +++ b/typescript-generator-core/.nondex/bo1Pk6U+k2fUkLZdUUalOh9rIL3fM3L3ecHOCAnsEc=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,132 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:210) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/bo1Pk6U+k2fUkLZdUUalOh9rIL3fM3L3ecHOCAnsEc=/config b/typescript-generator-core/.nondex/bo1Pk6U+k2fUkLZdUUalOh9rIL3fM3L3ecHOCAnsEc=/config new file mode 100644 index 000000000..adf541158 --- /dev/null +++ b/typescript-generator-core/.nondex/bo1Pk6U+k2fUkLZdUUalOh9rIL3fM3L3ecHOCAnsEc=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=933178 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=bo1Pk6U+k2fUkLZdUUalOh9rIL3fM3L3ecHOCAnsEc= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/bo1Pk6U+k2fUkLZdUUalOh9rIL3fM3L3ecHOCAnsEc=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/bo1Pk6U+k2fUkLZdUUalOh9rIL3fM3L3ecHOCAnsEc=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..18407df39 --- /dev/null +++ b/typescript-generator-core/.nondex/bo1Pk6U+k2fUkLZdUUalOh9rIL3fM3L3ecHOCAnsEc=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,56 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.192 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.165 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:210) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/bo1Pk6U+k2fUkLZdUUalOh9rIL3fM3L3ecHOCAnsEc=/failures b/typescript-generator-core/.nondex/bo1Pk6U+k2fUkLZdUUalOh9rIL3fM3L3ecHOCAnsEc=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/bo1Pk6U+k2fUkLZdUUalOh9rIL3fM3L3ecHOCAnsEc=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/bo1Pk6U+k2fUkLZdUUalOh9rIL3fM3L3ecHOCAnsEc=/invocations b/typescript-generator-core/.nondex/bo1Pk6U+k2fUkLZdUUalOh9rIL3fM3L3ecHOCAnsEc=/invocations new file mode 100644 index 000000000..7ad7d1da8 --- /dev/null +++ b/typescript-generator-core/.nondex/bo1Pk6U+k2fUkLZdUUalOh9rIL3fM3L3ecHOCAnsEc=/invocations @@ -0,0 +1,2 @@ +COUNT:67 +SHUFFLES:67 diff --git a/typescript-generator-core/.nondex/bo1Pk6U+k2fUkLZdUUalOh9rIL3fM3L3ecHOCAnsEc=/test_results.html b/typescript-generator-core/.nondex/bo1Pk6U+k2fUkLZdUUalOh9rIL3fM3L3ecHOCAnsEc=/test_results.html new file mode 100644 index 000000000..cc9aae726 --- /dev/null +++ b/typescript-generator-core/.nondex/bo1Pk6U+k2fUkLZdUUalOh9rIL3fM3L3ecHOCAnsEc=/test_results.html @@ -0,0 +1 @@ +Test Results
Test Name9331789746221016066
cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces
\ No newline at end of file diff --git a/typescript-generator-core/.nondex/c48c39h4hVIBcTgRUicQ+izasFb5IES0ZQNUcHP65U=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/c48c39h4hVIBcTgRUicQ+izasFb5IES0ZQNUcHP65U=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..eb2e2bb64 --- /dev/null +++ b/typescript-generator-core/.nondex/c48c39h4hVIBcTgRUicQ+izasFb5IES0ZQNUcHP65U=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/c48c39h4hVIBcTgRUicQ+izasFb5IES0ZQNUcHP65U=/config b/typescript-generator-core/.nondex/c48c39h4hVIBcTgRUicQ+izasFb5IES0ZQNUcHP65U=/config new file mode 100644 index 000000000..1169707da --- /dev/null +++ b/typescript-generator-core/.nondex/c48c39h4hVIBcTgRUicQ+izasFb5IES0ZQNUcHP65U=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=2590938 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=c48c39h4hVIBcTgRUicQ+izasFb5IES0ZQNUcHP65U= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/c48c39h4hVIBcTgRUicQ+izasFb5IES0ZQNUcHP65U=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/c48c39h4hVIBcTgRUicQ+izasFb5IES0ZQNUcHP65U=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..fcc500acc --- /dev/null +++ b/typescript-generator-core/.nondex/c48c39h4hVIBcTgRUicQ+izasFb5IES0ZQNUcHP65U=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.241 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.239 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/c48c39h4hVIBcTgRUicQ+izasFb5IES0ZQNUcHP65U=/failures b/typescript-generator-core/.nondex/c48c39h4hVIBcTgRUicQ+izasFb5IES0ZQNUcHP65U=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/c48c39h4hVIBcTgRUicQ+izasFb5IES0ZQNUcHP65U=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/c48c39h4hVIBcTgRUicQ+izasFb5IES0ZQNUcHP65U=/invocations b/typescript-generator-core/.nondex/c48c39h4hVIBcTgRUicQ+izasFb5IES0ZQNUcHP65U=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/c48c39h4hVIBcTgRUicQ+izasFb5IES0ZQNUcHP65U=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/cEWvaCGyEMC89ppG+LTSYf4FFHmbyE1YnfK60BBhM=.run b/typescript-generator-core/.nondex/cEWvaCGyEMC89ppG+LTSYf4FFHmbyE1YnfK60BBhM=.run new file mode 100644 index 000000000..2cb9f7177 --- /dev/null +++ b/typescript-generator-core/.nondex/cEWvaCGyEMC89ppG+LTSYf4FFHmbyE1YnfK60BBhM=.run @@ -0,0 +1,4 @@ +cEWvaCGyEMC89ppG+LTSYf4FFHmbyE1YnfK60BBhM= +8r3SbvL5kghRDQLyOk+ihvOiz9lCG5n62N7aQmfqWUQ= +ekKtvQ3gUG8FW1+7RnRrTV+arXzLMUV9vyfMk0aI34c= +clean_HztNumwiKmX1GSKiz1cwvIhPFF8LkrIvO9hhEhDW0= diff --git a/typescript-generator-core/.nondex/cEWvaCGyEMC89ppG+LTSYf4FFHmbyE1YnfK60BBhM=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/cEWvaCGyEMC89ppG+LTSYf4FFHmbyE1YnfK60BBhM=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..f8570bb00 --- /dev/null +++ b/typescript-generator-core/.nondex/cEWvaCGyEMC89ppG+LTSYf4FFHmbyE1YnfK60BBhM=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:140) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/cEWvaCGyEMC89ppG+LTSYf4FFHmbyE1YnfK60BBhM=/config b/typescript-generator-core/.nondex/cEWvaCGyEMC89ppG+LTSYf4FFHmbyE1YnfK60BBhM=/config new file mode 100644 index 000000000..b1d439090 --- /dev/null +++ b/typescript-generator-core/.nondex/cEWvaCGyEMC89ppG+LTSYf4FFHmbyE1YnfK60BBhM=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=933178 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=cEWvaCGyEMC89ppG+LTSYf4FFHmbyE1YnfK60BBhM= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/cEWvaCGyEMC89ppG+LTSYf4FFHmbyE1YnfK60BBhM=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/cEWvaCGyEMC89ppG+LTSYf4FFHmbyE1YnfK60BBhM=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..51540f4f1 --- /dev/null +++ b/typescript-generator-core/.nondex/cEWvaCGyEMC89ppG+LTSYf4FFHmbyE1YnfK60BBhM=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,20 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.131 sec <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.13 sec <<< FAILURE! +org.junit.ComparisonFailure: expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:140) + diff --git a/typescript-generator-core/.nondex/cEWvaCGyEMC89ppG+LTSYf4FFHmbyE1YnfK60BBhM=/failures b/typescript-generator-core/.nondex/cEWvaCGyEMC89ppG+LTSYf4FFHmbyE1YnfK60BBhM=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/cEWvaCGyEMC89ppG+LTSYf4FFHmbyE1YnfK60BBhM=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/cEWvaCGyEMC89ppG+LTSYf4FFHmbyE1YnfK60BBhM=/invocations b/typescript-generator-core/.nondex/cEWvaCGyEMC89ppG+LTSYf4FFHmbyE1YnfK60BBhM=/invocations new file mode 100644 index 000000000..11ff8fe83 --- /dev/null +++ b/typescript-generator-core/.nondex/cEWvaCGyEMC89ppG+LTSYf4FFHmbyE1YnfK60BBhM=/invocations @@ -0,0 +1,2 @@ +COUNT:61 +SHUFFLES:61 diff --git a/typescript-generator-core/.nondex/cEWvaCGyEMC89ppG+LTSYf4FFHmbyE1YnfK60BBhM=/test_results.html b/typescript-generator-core/.nondex/cEWvaCGyEMC89ppG+LTSYf4FFHmbyE1YnfK60BBhM=/test_results.html new file mode 100644 index 000000000..a94e71794 --- /dev/null +++ b/typescript-generator-core/.nondex/cEWvaCGyEMC89ppG+LTSYf4FFHmbyE1YnfK60BBhM=/test_results.html @@ -0,0 +1 @@ +Test Results
Test Name9331789746221016066
cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces
\ No newline at end of file diff --git a/typescript-generator-core/.nondex/cX31VTooHKi8dognq+gFGAkt0XmCriMdMLPBVbmHCo=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/cX31VTooHKi8dognq+gFGAkt0XmCriMdMLPBVbmHCo=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..22ed90581 --- /dev/null +++ b/typescript-generator-core/.nondex/cX31VTooHKi8dognq+gFGAkt0XmCriMdMLPBVbmHCo=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/cX31VTooHKi8dognq+gFGAkt0XmCriMdMLPBVbmHCo=/config b/typescript-generator-core/.nondex/cX31VTooHKi8dognq+gFGAkt0XmCriMdMLPBVbmHCo=/config new file mode 100644 index 000000000..077ea703f --- /dev/null +++ b/typescript-generator-core/.nondex/cX31VTooHKi8dognq+gFGAkt0XmCriMdMLPBVbmHCo=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1513394 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=cX31VTooHKi8dognq+gFGAkt0XmCriMdMLPBVbmHCo= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/cX31VTooHKi8dognq+gFGAkt0XmCriMdMLPBVbmHCo=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/cX31VTooHKi8dognq+gFGAkt0XmCriMdMLPBVbmHCo=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..81b8deb63 --- /dev/null +++ b/typescript-generator-core/.nondex/cX31VTooHKi8dognq+gFGAkt0XmCriMdMLPBVbmHCo=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.232 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.231 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/cX31VTooHKi8dognq+gFGAkt0XmCriMdMLPBVbmHCo=/failures b/typescript-generator-core/.nondex/cX31VTooHKi8dognq+gFGAkt0XmCriMdMLPBVbmHCo=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/cX31VTooHKi8dognq+gFGAkt0XmCriMdMLPBVbmHCo=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/cX31VTooHKi8dognq+gFGAkt0XmCriMdMLPBVbmHCo=/invocations b/typescript-generator-core/.nondex/cX31VTooHKi8dognq+gFGAkt0XmCriMdMLPBVbmHCo=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/cX31VTooHKi8dognq+gFGAkt0XmCriMdMLPBVbmHCo=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/cjz01dCsgsBItuwBcWcCKLfamVsEeopZJWb81yUUEmw=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/cjz01dCsgsBItuwBcWcCKLfamVsEeopZJWb81yUUEmw=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..7ab4c7064 --- /dev/null +++ b/typescript-generator-core/.nondex/cjz01dCsgsBItuwBcWcCKLfamVsEeopZJWb81yUUEmw=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/cjz01dCsgsBItuwBcWcCKLfamVsEeopZJWb81yUUEmw=/config b/typescript-generator-core/.nondex/cjz01dCsgsBItuwBcWcCKLfamVsEeopZJWb81yUUEmw=/config new file mode 100644 index 000000000..fd7863d24 --- /dev/null +++ b/typescript-generator-core/.nondex/cjz01dCsgsBItuwBcWcCKLfamVsEeopZJWb81yUUEmw=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=4290142 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=cjz01dCsgsBItuwBcWcCKLfamVsEeopZJWb81yUUEmw= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/cjz01dCsgsBItuwBcWcCKLfamVsEeopZJWb81yUUEmw=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/cjz01dCsgsBItuwBcWcCKLfamVsEeopZJWb81yUUEmw=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..7a8381273 --- /dev/null +++ b/typescript-generator-core/.nondex/cjz01dCsgsBItuwBcWcCKLfamVsEeopZJWb81yUUEmw=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.23 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/cjz01dCsgsBItuwBcWcCKLfamVsEeopZJWb81yUUEmw=/failures b/typescript-generator-core/.nondex/cjz01dCsgsBItuwBcWcCKLfamVsEeopZJWb81yUUEmw=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/cjz01dCsgsBItuwBcWcCKLfamVsEeopZJWb81yUUEmw=/invocations b/typescript-generator-core/.nondex/cjz01dCsgsBItuwBcWcCKLfamVsEeopZJWb81yUUEmw=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/cjz01dCsgsBItuwBcWcCKLfamVsEeopZJWb81yUUEmw=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/clean_+4l0NvapCpKuBwUvtpXsdJin3mz+6mZkRgLldNxsM=/failures b/typescript-generator-core/.nondex/clean_+4l0NvapCpKuBwUvtpXsdJin3mz+6mZkRgLldNxsM=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/clean_+d2u5WHHkMDsWqYzDQM8kQ8bXFY7d+XRFbeBhEeQgwc=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/clean_+d2u5WHHkMDsWqYzDQM8kQ8bXFY7d+XRFbeBhEeQgwc=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..50e3b68dc --- /dev/null +++ b/typescript-generator-core/.nondex/clean_+d2u5WHHkMDsWqYzDQM8kQ8bXFY7d+XRFbeBhEeQgwc=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,68 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/clean_+d2u5WHHkMDsWqYzDQM8kQ8bXFY7d+XRFbeBhEeQgwc=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/clean_+d2u5WHHkMDsWqYzDQM8kQ8bXFY7d+XRFbeBhEeQgwc=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..4ae519273 --- /dev/null +++ b/typescript-generator-core/.nondex/clean_+d2u5WHHkMDsWqYzDQM8kQ8bXFY7d+XRFbeBhEeQgwc=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/clean_+d2u5WHHkMDsWqYzDQM8kQ8bXFY7d+XRFbeBhEeQgwc=/failures b/typescript-generator-core/.nondex/clean_+d2u5WHHkMDsWqYzDQM8kQ8bXFY7d+XRFbeBhEeQgwc=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/clean_0G2qSfiUGndKmJTJSkbyJ1rXC2ty5gw9NGDLVYCA+BA=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/clean_0G2qSfiUGndKmJTJSkbyJ1rXC2ty5gw9NGDLVYCA+BA=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..e63785d41 --- /dev/null +++ b/typescript-generator-core/.nondex/clean_0G2qSfiUGndKmJTJSkbyJ1rXC2ty5gw9NGDLVYCA+BA=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/clean_0G2qSfiUGndKmJTJSkbyJ1rXC2ty5gw9NGDLVYCA+BA=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/clean_0G2qSfiUGndKmJTJSkbyJ1rXC2ty5gw9NGDLVYCA+BA=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..6a1039e20 --- /dev/null +++ b/typescript-generator-core/.nondex/clean_0G2qSfiUGndKmJTJSkbyJ1rXC2ty5gw9NGDLVYCA+BA=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.284 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/clean_3Y6lEviGX1kiUG0mU5lly3B3Z+USXL4UxRRX1e+9tVo=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/clean_3Y6lEviGX1kiUG0mU5lly3B3Z+USXL4UxRRX1e+9tVo=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..a29ca41d0 --- /dev/null +++ b/typescript-generator-core/.nondex/clean_3Y6lEviGX1kiUG0mU5lly3B3Z+USXL4UxRRX1e+9tVo=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,69 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/clean_3Y6lEviGX1kiUG0mU5lly3B3Z+USXL4UxRRX1e+9tVo=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/clean_3Y6lEviGX1kiUG0mU5lly3B3Z+USXL4UxRRX1e+9tVo=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..15bcfd36f --- /dev/null +++ b/typescript-generator-core/.nondex/clean_3Y6lEviGX1kiUG0mU5lly3B3Z+USXL4UxRRX1e+9tVo=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.132 sec - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/clean_440tfCmPm7QYPWbKp81rvCPtNpw2X+mKG4pjwMrtQUY=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/clean_440tfCmPm7QYPWbKp81rvCPtNpw2X+mKG4pjwMrtQUY=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..871aeafca --- /dev/null +++ b/typescript-generator-core/.nondex/clean_440tfCmPm7QYPWbKp81rvCPtNpw2X+mKG4pjwMrtQUY=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,69 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/clean_440tfCmPm7QYPWbKp81rvCPtNpw2X+mKG4pjwMrtQUY=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/clean_440tfCmPm7QYPWbKp81rvCPtNpw2X+mKG4pjwMrtQUY=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..9c9374113 --- /dev/null +++ b/typescript-generator-core/.nondex/clean_440tfCmPm7QYPWbKp81rvCPtNpw2X+mKG4pjwMrtQUY=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.161 sec - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/clean_44pNUL6cEaAOV5PPPjpFA1Usj4kWq4QLKCxU3uPMDYc=/failures b/typescript-generator-core/.nondex/clean_44pNUL6cEaAOV5PPPjpFA1Usj4kWq4QLKCxU3uPMDYc=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/clean_7RVbqsGaVsxx0Kdj2G523wuzJzGlbs+WkyUhiGAuykg=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/clean_7RVbqsGaVsxx0Kdj2G523wuzJzGlbs+WkyUhiGAuykg=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..a14c9d4b2 --- /dev/null +++ b/typescript-generator-core/.nondex/clean_7RVbqsGaVsxx0Kdj2G523wuzJzGlbs+WkyUhiGAuykg=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/clean_7RVbqsGaVsxx0Kdj2G523wuzJzGlbs+WkyUhiGAuykg=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/clean_7RVbqsGaVsxx0Kdj2G523wuzJzGlbs+WkyUhiGAuykg=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..3fe6dbc45 --- /dev/null +++ b/typescript-generator-core/.nondex/clean_7RVbqsGaVsxx0Kdj2G523wuzJzGlbs+WkyUhiGAuykg=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.193 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/clean_9U0JQilSZbfJvH6TZp3oBooPdVtatEAICPSbv5nkQ=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/clean_9U0JQilSZbfJvH6TZp3oBooPdVtatEAICPSbv5nkQ=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..c910ef5ba --- /dev/null +++ b/typescript-generator-core/.nondex/clean_9U0JQilSZbfJvH6TZp3oBooPdVtatEAICPSbv5nkQ=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/clean_9U0JQilSZbfJvH6TZp3oBooPdVtatEAICPSbv5nkQ=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/clean_9U0JQilSZbfJvH6TZp3oBooPdVtatEAICPSbv5nkQ=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..6377f376c --- /dev/null +++ b/typescript-generator-core/.nondex/clean_9U0JQilSZbfJvH6TZp3oBooPdVtatEAICPSbv5nkQ=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.254 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/clean_CLpndxV28pMcglFjhb3ljKRdtYqwsMC11pLst70L0k=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/clean_CLpndxV28pMcglFjhb3ljKRdtYqwsMC11pLst70L0k=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..1e328d50d --- /dev/null +++ b/typescript-generator-core/.nondex/clean_CLpndxV28pMcglFjhb3ljKRdtYqwsMC11pLst70L0k=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/clean_CLpndxV28pMcglFjhb3ljKRdtYqwsMC11pLst70L0k=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/clean_CLpndxV28pMcglFjhb3ljKRdtYqwsMC11pLst70L0k=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..c8e9060ca --- /dev/null +++ b/typescript-generator-core/.nondex/clean_CLpndxV28pMcglFjhb3ljKRdtYqwsMC11pLst70L0k=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.172 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/clean_D+rH5x5OQhDojxPByRTMFPxHzz7bfNH29fbHevReaQ=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/clean_D+rH5x5OQhDojxPByRTMFPxHzz7bfNH29fbHevReaQ=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..50e3b68dc --- /dev/null +++ b/typescript-generator-core/.nondex/clean_D+rH5x5OQhDojxPByRTMFPxHzz7bfNH29fbHevReaQ=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,68 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/clean_D+rH5x5OQhDojxPByRTMFPxHzz7bfNH29fbHevReaQ=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/clean_D+rH5x5OQhDojxPByRTMFPxHzz7bfNH29fbHevReaQ=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..4ae519273 --- /dev/null +++ b/typescript-generator-core/.nondex/clean_D+rH5x5OQhDojxPByRTMFPxHzz7bfNH29fbHevReaQ=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/clean_D+rH5x5OQhDojxPByRTMFPxHzz7bfNH29fbHevReaQ=/failures b/typescript-generator-core/.nondex/clean_D+rH5x5OQhDojxPByRTMFPxHzz7bfNH29fbHevReaQ=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/clean_E6xpCxdXjOyLUhlx2LBc32J9c2VJvgGVocTpbr2xnjk=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/clean_E6xpCxdXjOyLUhlx2LBc32J9c2VJvgGVocTpbr2xnjk=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..4a3eb236c --- /dev/null +++ b/typescript-generator-core/.nondex/clean_E6xpCxdXjOyLUhlx2LBc32J9c2VJvgGVocTpbr2xnjk=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/clean_E6xpCxdXjOyLUhlx2LBc32J9c2VJvgGVocTpbr2xnjk=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/clean_E6xpCxdXjOyLUhlx2LBc32J9c2VJvgGVocTpbr2xnjk=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..6b4aa1518 --- /dev/null +++ b/typescript-generator-core/.nondex/clean_E6xpCxdXjOyLUhlx2LBc32J9c2VJvgGVocTpbr2xnjk=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.2 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/clean_FIsxSQPKuKLTHl7E5aM62wOgus7wMBzao5R5ArhwYY=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/clean_FIsxSQPKuKLTHl7E5aM62wOgus7wMBzao5R5ArhwYY=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..748f63a05 --- /dev/null +++ b/typescript-generator-core/.nondex/clean_FIsxSQPKuKLTHl7E5aM62wOgus7wMBzao5R5ArhwYY=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/clean_FIsxSQPKuKLTHl7E5aM62wOgus7wMBzao5R5ArhwYY=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/clean_FIsxSQPKuKLTHl7E5aM62wOgus7wMBzao5R5ArhwYY=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..36c58723f --- /dev/null +++ b/typescript-generator-core/.nondex/clean_FIsxSQPKuKLTHl7E5aM62wOgus7wMBzao5R5ArhwYY=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.164 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/clean_GyvSK4Xwy4H9HUditlSHBhatfjlDQQUoYQ8wEPMUGXk=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/clean_GyvSK4Xwy4H9HUditlSHBhatfjlDQQUoYQ8wEPMUGXk=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..cf2e8c628 --- /dev/null +++ b/typescript-generator-core/.nondex/clean_GyvSK4Xwy4H9HUditlSHBhatfjlDQQUoYQ8wEPMUGXk=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,70 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/clean_GyvSK4Xwy4H9HUditlSHBhatfjlDQQUoYQ8wEPMUGXk=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/clean_GyvSK4Xwy4H9HUditlSHBhatfjlDQQUoYQ8wEPMUGXk=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..d85cf5ebc --- /dev/null +++ b/typescript-generator-core/.nondex/clean_GyvSK4Xwy4H9HUditlSHBhatfjlDQQUoYQ8wEPMUGXk=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.289 sec - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/clean_HztNumwiKmX1GSKiz1cwvIhPFF8LkrIvO9hhEhDW0=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/clean_HztNumwiKmX1GSKiz1cwvIhPFF8LkrIvO9hhEhDW0=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..e9277f20e --- /dev/null +++ b/typescript-generator-core/.nondex/clean_HztNumwiKmX1GSKiz1cwvIhPFF8LkrIvO9hhEhDW0=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,69 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/clean_HztNumwiKmX1GSKiz1cwvIhPFF8LkrIvO9hhEhDW0=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/clean_HztNumwiKmX1GSKiz1cwvIhPFF8LkrIvO9hhEhDW0=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..4dfec3ab9 --- /dev/null +++ b/typescript-generator-core/.nondex/clean_HztNumwiKmX1GSKiz1cwvIhPFF8LkrIvO9hhEhDW0=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.144 sec - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/clean_IqinvAiNxCfxYv9GMkU+YTu3xjn6wgbI94+bhmP0xbM=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/clean_IqinvAiNxCfxYv9GMkU+YTu3xjn6wgbI94+bhmP0xbM=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..742041ed0 --- /dev/null +++ b/typescript-generator-core/.nondex/clean_IqinvAiNxCfxYv9GMkU+YTu3xjn6wgbI94+bhmP0xbM=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/clean_IqinvAiNxCfxYv9GMkU+YTu3xjn6wgbI94+bhmP0xbM=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/clean_IqinvAiNxCfxYv9GMkU+YTu3xjn6wgbI94+bhmP0xbM=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..c8e9060ca --- /dev/null +++ b/typescript-generator-core/.nondex/clean_IqinvAiNxCfxYv9GMkU+YTu3xjn6wgbI94+bhmP0xbM=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.172 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/clean_KAYDfwNpxh0RWfon58O1efxMBAUGCNm9mWf8ZOjkidM=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/clean_KAYDfwNpxh0RWfon58O1efxMBAUGCNm9mWf8ZOjkidM=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..180a19399 --- /dev/null +++ b/typescript-generator-core/.nondex/clean_KAYDfwNpxh0RWfon58O1efxMBAUGCNm9mWf8ZOjkidM=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,69 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/clean_KAYDfwNpxh0RWfon58O1efxMBAUGCNm9mWf8ZOjkidM=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/clean_KAYDfwNpxh0RWfon58O1efxMBAUGCNm9mWf8ZOjkidM=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..1d81439b2 --- /dev/null +++ b/typescript-generator-core/.nondex/clean_KAYDfwNpxh0RWfon58O1efxMBAUGCNm9mWf8ZOjkidM=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.134 sec - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/clean_MYhKzOOWoSglIcrKDULsp8J6zoZWoastitQwDwmr68=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/clean_MYhKzOOWoSglIcrKDULsp8J6zoZWoastitQwDwmr68=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..59a8a953a --- /dev/null +++ b/typescript-generator-core/.nondex/clean_MYhKzOOWoSglIcrKDULsp8J6zoZWoastitQwDwmr68=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/clean_MYhKzOOWoSglIcrKDULsp8J6zoZWoastitQwDwmr68=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/clean_MYhKzOOWoSglIcrKDULsp8J6zoZWoastitQwDwmr68=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..d7fecac03 --- /dev/null +++ b/typescript-generator-core/.nondex/clean_MYhKzOOWoSglIcrKDULsp8J6zoZWoastitQwDwmr68=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.204 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/clean_Mk2U8MK4VuNgRD3UCiRUrcN7M8Nz87S1Pp3TucESLEk=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/clean_Mk2U8MK4VuNgRD3UCiRUrcN7M8Nz87S1Pp3TucESLEk=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..fa6e50c47 --- /dev/null +++ b/typescript-generator-core/.nondex/clean_Mk2U8MK4VuNgRD3UCiRUrcN7M8Nz87S1Pp3TucESLEk=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,69 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/clean_Mk2U8MK4VuNgRD3UCiRUrcN7M8Nz87S1Pp3TucESLEk=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/clean_Mk2U8MK4VuNgRD3UCiRUrcN7M8Nz87S1Pp3TucESLEk=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..e4bf923ee --- /dev/null +++ b/typescript-generator-core/.nondex/clean_Mk2U8MK4VuNgRD3UCiRUrcN7M8Nz87S1Pp3TucESLEk=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.148 sec - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/clean_NvlEOT0SzW+8Ulpm1q6VElBrTfdPEwJi3TL+HZDuc=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/clean_NvlEOT0SzW+8Ulpm1q6VElBrTfdPEwJi3TL+HZDuc=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..90c13cc83 --- /dev/null +++ b/typescript-generator-core/.nondex/clean_NvlEOT0SzW+8Ulpm1q6VElBrTfdPEwJi3TL+HZDuc=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/clean_NvlEOT0SzW+8Ulpm1q6VElBrTfdPEwJi3TL+HZDuc=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/clean_NvlEOT0SzW+8Ulpm1q6VElBrTfdPEwJi3TL+HZDuc=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..9c987aa3c --- /dev/null +++ b/typescript-generator-core/.nondex/clean_NvlEOT0SzW+8Ulpm1q6VElBrTfdPEwJi3TL+HZDuc=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.221 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/clean_P+uJj8AGHaFrlLBOBqwFWtqxofedDNclEppo7d3jOQ=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/clean_P+uJj8AGHaFrlLBOBqwFWtqxofedDNclEppo7d3jOQ=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..50e3b68dc --- /dev/null +++ b/typescript-generator-core/.nondex/clean_P+uJj8AGHaFrlLBOBqwFWtqxofedDNclEppo7d3jOQ=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,68 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/clean_P+uJj8AGHaFrlLBOBqwFWtqxofedDNclEppo7d3jOQ=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/clean_P+uJj8AGHaFrlLBOBqwFWtqxofedDNclEppo7d3jOQ=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..7b972db52 --- /dev/null +++ b/typescript-generator-core/.nondex/clean_P+uJj8AGHaFrlLBOBqwFWtqxofedDNclEppo7d3jOQ=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/clean_P+uJj8AGHaFrlLBOBqwFWtqxofedDNclEppo7d3jOQ=/failures b/typescript-generator-core/.nondex/clean_P+uJj8AGHaFrlLBOBqwFWtqxofedDNclEppo7d3jOQ=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/clean_Qm+JmMfa9XPm7l04xZurT2Ou+tTPMCXd5sDatVl3vs=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/clean_Qm+JmMfa9XPm7l04xZurT2Ou+tTPMCXd5sDatVl3vs=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..3d52804f6 --- /dev/null +++ b/typescript-generator-core/.nondex/clean_Qm+JmMfa9XPm7l04xZurT2Ou+tTPMCXd5sDatVl3vs=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,69 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/clean_Qm+JmMfa9XPm7l04xZurT2Ou+tTPMCXd5sDatVl3vs=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/clean_Qm+JmMfa9XPm7l04xZurT2Ou+tTPMCXd5sDatVl3vs=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..7b972db52 --- /dev/null +++ b/typescript-generator-core/.nondex/clean_Qm+JmMfa9XPm7l04xZurT2Ou+tTPMCXd5sDatVl3vs=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/clean_Qm+JmMfa9XPm7l04xZurT2Ou+tTPMCXd5sDatVl3vs=/failures b/typescript-generator-core/.nondex/clean_Qm+JmMfa9XPm7l04xZurT2Ou+tTPMCXd5sDatVl3vs=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/clean_Qw5A+iZzBNxcpcWLRsYYvQ0ULiiKBlhFblHTQFc6pl8=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/clean_Qw5A+iZzBNxcpcWLRsYYvQ0ULiiKBlhFblHTQFc6pl8=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..fc713074f --- /dev/null +++ b/typescript-generator-core/.nondex/clean_Qw5A+iZzBNxcpcWLRsYYvQ0ULiiKBlhFblHTQFc6pl8=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/clean_Qw5A+iZzBNxcpcWLRsYYvQ0ULiiKBlhFblHTQFc6pl8=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/clean_Qw5A+iZzBNxcpcWLRsYYvQ0ULiiKBlhFblHTQFc6pl8=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..9c987aa3c --- /dev/null +++ b/typescript-generator-core/.nondex/clean_Qw5A+iZzBNxcpcWLRsYYvQ0ULiiKBlhFblHTQFc6pl8=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.221 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/clean_b517Xx8MFlA7j+SYdG1+l1l6t+GtHSgP0qhCjZoED8=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/clean_b517Xx8MFlA7j+SYdG1+l1l6t+GtHSgP0qhCjZoED8=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..3d9cecf89 --- /dev/null +++ b/typescript-generator-core/.nondex/clean_b517Xx8MFlA7j+SYdG1+l1l6t+GtHSgP0qhCjZoED8=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,157 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:< +interface [CCircle2 extends IShape2 { + kind: "circle"; + radius: number; +} + +interface CRectangle2 extends IQuadrilateral2 { + kind: "rectangle"; + width: number; + height: number; +} + +interface IShape2 { + kind: "circle" | "square" | "rectangle"; +} + +interface CSquare2 extends IQuadrilateral2 { + kind: "square"; + size]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365) + at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273) + at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238) + at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/clean_b517Xx8MFlA7j+SYdG1+l1l6t+GtHSgP0qhCjZoED8=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/clean_b517Xx8MFlA7j+SYdG1+l1l6t+GtHSgP0qhCjZoED8=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..af6b72133 --- /dev/null +++ b/typescript-generator-core/.nondex/clean_b517Xx8MFlA7j+SYdG1+l1l6t+GtHSgP0qhCjZoED8=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,81 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.274 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.213 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:< +interface [IShape2 { + kind: "circle" | "square" | "rectangle"; +} + +interface CSquare2 extends IQuadrilateral2 { + kind: "square"; + size: number; +} + +interface CRectangle2 extends IQuadrilateral2 { + kind: "rectangle"; + width: number; + height: number; +} + +interface CCircle2 extends IShape2 { + kind: "circle"; + radius]: number; +} + +interfa...> but was:< +interface [CCircle2 extends IShape2 { + kind: "circle"; + radius: number; +} + +interface CRectangle2 extends IQuadrilateral2 { + kind: "rectangle"; + width: number; + height: number; +} + +interface IShape2 { + kind: "circle" | "square" | "rectangle"; +} + +interface CSquare2 extends IQuadrilateral2 { + kind: "square"; + size]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365) + at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273) + at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238) + at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/clean_b517Xx8MFlA7j+SYdG1+l1l6t+GtHSgP0qhCjZoED8=/failures b/typescript-generator-core/.nondex/clean_b517Xx8MFlA7j+SYdG1+l1l6t+GtHSgP0qhCjZoED8=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/clean_b517Xx8MFlA7j+SYdG1+l1l6t+GtHSgP0qhCjZoED8=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/clean_bZVYXFRgSXjhemOzZern8zBB+NZqJ6SXAZx4S1hCsBQ=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/clean_bZVYXFRgSXjhemOzZern8zBB+NZqJ6SXAZx4S1hCsBQ=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..420c8ba0d --- /dev/null +++ b/typescript-generator-core/.nondex/clean_bZVYXFRgSXjhemOzZern8zBB+NZqJ6SXAZx4S1hCsBQ=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,69 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/clean_bZVYXFRgSXjhemOzZern8zBB+NZqJ6SXAZx4S1hCsBQ=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/clean_bZVYXFRgSXjhemOzZern8zBB+NZqJ6SXAZx4S1hCsBQ=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..2f9eefadb --- /dev/null +++ b/typescript-generator-core/.nondex/clean_bZVYXFRgSXjhemOzZern8zBB+NZqJ6SXAZx4S1hCsBQ=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.149 sec - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/clean_j1yTErkTFmtcYvkbc36o9bXcTSPKUmJd8600KWmI=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/clean_j1yTErkTFmtcYvkbc36o9bXcTSPKUmJd8600KWmI=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..6e2209dd5 --- /dev/null +++ b/typescript-generator-core/.nondex/clean_j1yTErkTFmtcYvkbc36o9bXcTSPKUmJd8600KWmI=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/clean_j1yTErkTFmtcYvkbc36o9bXcTSPKUmJd8600KWmI=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/clean_j1yTErkTFmtcYvkbc36o9bXcTSPKUmJd8600KWmI=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..ac7ce22d5 --- /dev/null +++ b/typescript-generator-core/.nondex/clean_j1yTErkTFmtcYvkbc36o9bXcTSPKUmJd8600KWmI=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.166 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/clean_m4jWgZjNaikLda8Fil7W7MzK4iCnCxqg02fI9A9Ptg=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/clean_m4jWgZjNaikLda8Fil7W7MzK4iCnCxqg02fI9A9Ptg=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..50e3b68dc --- /dev/null +++ b/typescript-generator-core/.nondex/clean_m4jWgZjNaikLda8Fil7W7MzK4iCnCxqg02fI9A9Ptg=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,68 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/clean_m4jWgZjNaikLda8Fil7W7MzK4iCnCxqg02fI9A9Ptg=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/clean_m4jWgZjNaikLda8Fil7W7MzK4iCnCxqg02fI9A9Ptg=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..a1188b3ee --- /dev/null +++ b/typescript-generator-core/.nondex/clean_m4jWgZjNaikLda8Fil7W7MzK4iCnCxqg02fI9A9Ptg=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/clean_m4jWgZjNaikLda8Fil7W7MzK4iCnCxqg02fI9A9Ptg=/failures b/typescript-generator-core/.nondex/clean_m4jWgZjNaikLda8Fil7W7MzK4iCnCxqg02fI9A9Ptg=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/clean_oEQObmLRBYLDoCMCABL2bxbLfT7xgqe6TnBmnWRnS8=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/clean_oEQObmLRBYLDoCMCABL2bxbLfT7xgqe6TnBmnWRnS8=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..13ac24f5a --- /dev/null +++ b/typescript-generator-core/.nondex/clean_oEQObmLRBYLDoCMCABL2bxbLfT7xgqe6TnBmnWRnS8=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,68 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/clean_oEQObmLRBYLDoCMCABL2bxbLfT7xgqe6TnBmnWRnS8=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/clean_oEQObmLRBYLDoCMCABL2bxbLfT7xgqe6TnBmnWRnS8=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..6417b68d7 --- /dev/null +++ b/typescript-generator-core/.nondex/clean_oEQObmLRBYLDoCMCABL2bxbLfT7xgqe6TnBmnWRnS8=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/clean_oEQObmLRBYLDoCMCABL2bxbLfT7xgqe6TnBmnWRnS8=/failures b/typescript-generator-core/.nondex/clean_oEQObmLRBYLDoCMCABL2bxbLfT7xgqe6TnBmnWRnS8=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/clean_pQuy69+Bz1DUWWcS1r9Uv3vQoDg8WNloIKryWkpvPb0=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/clean_pQuy69+Bz1DUWWcS1r9Uv3vQoDg8WNloIKryWkpvPb0=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..4b80936a8 --- /dev/null +++ b/typescript-generator-core/.nondex/clean_pQuy69+Bz1DUWWcS1r9Uv3vQoDg8WNloIKryWkpvPb0=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,426 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:< +interface I[Circle3 extends INamedShape3 { + kind: "circle"; +} + +interface IShape3 { + kind: "circle" | "rectangle"; +} + +interface IRectangle3 extends INamedQuadrilateral3 { + kind: "rectangle"; +} + +interface INamedShape3 extends IShape3 { + kind: "circle" | "rectangle"; + name: string; +} + +interface IQuadrilateral3 extends IShape3 { + kind: "rectangle"; +} + +interface INamedQuadrilateral3 extends INamedShape3, IQuadrilateral]3 { + kind: "recta...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithOverlappingInterfaces(TaggedUnionsTest.java:289) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365) + at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273) + at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238) + at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$ICircle3' used in 'IShape3.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$INamedQuadrilateral3' used in 'IRectangle3.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$INamedShape3' used in 'ICircle3.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral3' used in 'INamedQuadrilateral3.' +]]> + + + but was:<...gle"; +} + +interface C[Rectangle2 extends IQuadrilateral2 { + kind: "rectangle"; + width: number; + height: number; +} + +interface IQuadrilateral2 extends IShape2 { + kind: "square" | "rectangle"; +} + +interface CCircle2 extends IShape2 { + kind: "circle"; + radius: number; +} + +interface CSquare2 extends IQuadrilateral2 { + kind: "square"; + size: number]; +} + +type IShape2Uni...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:253) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365) + at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273) + at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238) + at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + + + + but was:< +interface [Circle extends Shape { + kind: "circle"; + radius: number; +} + +interface Shape { + kind: "square" | "rectangle" | "circle"; +} + +interface Square extends Shape { + kind: "square"; + size: number; +} + +interface Rectangle extends Shape { + kind: "rectangle"; + width: number; + height: number; +} + +interface Geometry { + shapes: Shape[]]; +} +> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsDisabled(TaggedUnionsTest.java:324) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365) + at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273) + at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238) + at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$Rectangle' used in 'Shape.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$Circle' used in 'Shape.' +]]> + + + + + + + but was:< +interface [Shape { + kind: "square" | "rectangle" | "circle"; +} + +interface Circle extends Shape { + kind: "circle"; + radius: number; +} + +interface Square extends Shape { + kind: "square"; + size: number; +} + +interface Geometry { + shapes: ShapeUnion[]; +} + +interface Rectangle extends Shape { + kind: "rectangle"; + width: number; + height]: number; +} + +type Sh...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnions(TaggedUnionsTest.java:217) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365) + at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273) + at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238) + at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$Rectangle' used in 'Shape.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$Circle' used in 'Shape.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/clean_pQuy69+Bz1DUWWcS1r9Uv3vQoDg8WNloIKryWkpvPb0=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/clean_pQuy69+Bz1DUWWcS1r9Uv3vQoDg8WNloIKryWkpvPb0=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..a0b5eed73 --- /dev/null +++ b/typescript-generator-core/.nondex/clean_pQuy69+Bz1DUWWcS1r9Uv3vQoDg8WNloIKryWkpvPb0=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,322 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 10, Failures: 4, Errors: 0, Skipped: 0, Time elapsed: 0.715 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithOverlappingInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.308 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:< +interface I[Shape3 { + kind: "circle" | "rectangle"; +} + +interface IRectangle3 extends INamedQuadrilateral3 { + kind: "rectangle"; +} + +interface ICircle3 extends INamedShape3 { + kind: "circle"; +} + +interface INamedQuadrilateral3 extends INamedShape3, IQuadrilateral3 { + kind: "rectangle"; +} + +interface INamedShape3 extends IShape3 { + kind: "circle" | "rectangle"; + name: string; +} + +interface IQuadrilateral3 extends IShape]3 { + kind: "recta...> but was:< +interface I[Circle3 extends INamedShape3 { + kind: "circle"; +} + +interface IShape3 { + kind: "circle" | "rectangle"; +} + +interface IRectangle3 extends INamedQuadrilateral3 { + kind: "rectangle"; +} + +interface INamedShape3 extends IShape3 { + kind: "circle" | "rectangle"; + name: string; +} + +interface IQuadrilateral3 extends IShape3 { + kind: "rectangle"; +} + +interface INamedQuadrilateral3 extends INamedShape3, IQuadrilateral]3 { + kind: "recta...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithOverlappingInterfaces(TaggedUnionsTest.java:289) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365) + at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273) + at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238) + at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.007 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...gle"; +} + +interface C[Square2 extends IQuadrilateral2 { + kind: "square"; + size: number; +} + +interface CRectangle2 extends IQuadrilateral2 { + kind: "rectangle"; + width: number; + height: number; +} + +interface CCircle2 extends IShape2 { + kind: "circle"; + radius: number; +} + +interface IQuadrilateral2 extends IShape2 { + kind: "square" | "rectangle"]; +} + +type IShape2Uni...> but was:<...gle"; +} + +interface C[Rectangle2 extends IQuadrilateral2 { + kind: "rectangle"; + width: number; + height: number; +} + +interface IQuadrilateral2 extends IShape2 { + kind: "square" | "rectangle"; +} + +interface CCircle2 extends IShape2 { + kind: "circle"; + radius: number; +} + +interface CSquare2 extends IQuadrilateral2 { + kind: "square"; + size: number]; +} + +type IShape2Uni...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:253) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365) + at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273) + at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238) + at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + +testTaggedUnionsDisabled(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.024 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:< +interface [Geometry { + shapes: Shape[]; +} + +interface Shape { + kind: "square" | "rectangle" | "circle"; +} + +interface Square extends Shape { + kind: "square"; + size: number; +} + +interface Rectangle extends Shape { + kind: "rectangle"; + width: number; + height: number; +} + +interface Circle extends Shape { + kind: "circle"; + radius: number]; +} +> but was:< +interface [Circle extends Shape { + kind: "circle"; + radius: number; +} + +interface Shape { + kind: "square" | "rectangle" | "circle"; +} + +interface Square extends Shape { + kind: "square"; + size: number; +} + +interface Rectangle extends Shape { + kind: "rectangle"; + width: number; + height: number; +} + +interface Geometry { + shapes: Shape[]]; +} +> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsDisabled(TaggedUnionsTest.java:324) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365) + at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273) + at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238) + at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + +testTaggedUnions(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.004 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:< +interface [Geometry { + shapes: ShapeUnion[]; +} + +interface Shape { + kind: "square" | "rectangle" | "circle"; +} + +interface Square extends Shape { + kind: "square"; + size: number; +} + +interface Rectangle extends Shape { + kind: "rectangle"; + width: number; + height: number; +} + +interface Circle extends Shape { + kind: "circle"; + radius]: number; +} + +type Sh...> but was:< +interface [Shape { + kind: "square" | "rectangle" | "circle"; +} + +interface Circle extends Shape { + kind: "circle"; + radius: number; +} + +interface Square extends Shape { + kind: "square"; + size: number; +} + +interface Geometry { + shapes: ShapeUnion[]; +} + +interface Rectangle extends Shape { + kind: "rectangle"; + width: number; + height]: number; +} + +type Sh...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnions(TaggedUnionsTest.java:217) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365) + at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273) + at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238) + at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/clean_pQuy69+Bz1DUWWcS1r9Uv3vQoDg8WNloIKryWkpvPb0=/failures b/typescript-generator-core/.nondex/clean_pQuy69+Bz1DUWWcS1r9Uv3vQoDg8WNloIKryWkpvPb0=/failures new file mode 100644 index 000000000..e149af4ae --- /dev/null +++ b/typescript-generator-core/.nondex/clean_pQuy69+Bz1DUWWcS1r9Uv3vQoDg8WNloIKryWkpvPb0=/failures @@ -0,0 +1,4 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithOverlappingInterfaces +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsDisabled +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnions diff --git a/typescript-generator-core/.nondex/clean_sMII3+z9v0locOvVEVRA+zsqEQnysqMLD2Ujy7Ycyg=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/clean_sMII3+z9v0locOvVEVRA+zsqEQnysqMLD2Ujy7Ycyg=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..3d52804f6 --- /dev/null +++ b/typescript-generator-core/.nondex/clean_sMII3+z9v0locOvVEVRA+zsqEQnysqMLD2Ujy7Ycyg=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,69 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/clean_sMII3+z9v0locOvVEVRA+zsqEQnysqMLD2Ujy7Ycyg=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/clean_sMII3+z9v0locOvVEVRA+zsqEQnysqMLD2Ujy7Ycyg=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..6417b68d7 --- /dev/null +++ b/typescript-generator-core/.nondex/clean_sMII3+z9v0locOvVEVRA+zsqEQnysqMLD2Ujy7Ycyg=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/clean_sMII3+z9v0locOvVEVRA+zsqEQnysqMLD2Ujy7Ycyg=/failures b/typescript-generator-core/.nondex/clean_sMII3+z9v0locOvVEVRA+zsqEQnysqMLD2Ujy7Ycyg=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/clean_v7W7TCQHTfedAmDw8wqWeLu+iKfSMOL7+ChR5gXDo=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/clean_v7W7TCQHTfedAmDw8wqWeLu+iKfSMOL7+ChR5gXDo=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..fef56a60c --- /dev/null +++ b/typescript-generator-core/.nondex/clean_v7W7TCQHTfedAmDw8wqWeLu+iKfSMOL7+ChR5gXDo=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/clean_v7W7TCQHTfedAmDw8wqWeLu+iKfSMOL7+ChR5gXDo=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/clean_v7W7TCQHTfedAmDw8wqWeLu+iKfSMOL7+ChR5gXDo=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..2a9ffee08 --- /dev/null +++ b/typescript-generator-core/.nondex/clean_v7W7TCQHTfedAmDw8wqWeLu+iKfSMOL7+ChR5gXDo=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.199 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/clean_yGXP0+UL24GlpafiDBGf2UucXFkHhk81owctYGVE9s=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/clean_yGXP0+UL24GlpafiDBGf2UucXFkHhk81owctYGVE9s=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..a80f8c607 --- /dev/null +++ b/typescript-generator-core/.nondex/clean_yGXP0+UL24GlpafiDBGf2UucXFkHhk81owctYGVE9s=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/clean_yGXP0+UL24GlpafiDBGf2UucXFkHhk81owctYGVE9s=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/clean_yGXP0+UL24GlpafiDBGf2UucXFkHhk81owctYGVE9s=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..97e0d5b6a --- /dev/null +++ b/typescript-generator-core/.nondex/clean_yGXP0+UL24GlpafiDBGf2UucXFkHhk81owctYGVE9s=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.196 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/cw889t8uxHyzfx3ErPDU8f9uX7UlXwNCIBwTp0fsmYk=/config b/typescript-generator-core/.nondex/cw889t8uxHyzfx3ErPDU8f9uX7UlXwNCIBwTp0fsmYk=/config new file mode 100644 index 000000000..19f1b9203 --- /dev/null +++ b/typescript-generator-core/.nondex/cw889t8uxHyzfx3ErPDU8f9uX7UlXwNCIBwTp0fsmYk=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1016066 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=cw889t8uxHyzfx3ErPDU8f9uX7UlXwNCIBwTp0fsmYk= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/cw889t8uxHyzfx3ErPDU8f9uX7UlXwNCIBwTp0fsmYk=/failures b/typescript-generator-core/.nondex/cw889t8uxHyzfx3ErPDU8f9uX7UlXwNCIBwTp0fsmYk=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/cw889t8uxHyzfx3ErPDU8f9uX7UlXwNCIBwTp0fsmYk=/invocations b/typescript-generator-core/.nondex/cw889t8uxHyzfx3ErPDU8f9uX7UlXwNCIBwTp0fsmYk=/invocations new file mode 100644 index 000000000..c164bf6ef --- /dev/null +++ b/typescript-generator-core/.nondex/cw889t8uxHyzfx3ErPDU8f9uX7UlXwNCIBwTp0fsmYk=/invocations @@ -0,0 +1,2 @@ +COUNT:16 +SHUFFLES:16 diff --git a/typescript-generator-core/.nondex/d9kMVtmPTDP3A1+VGekiYm0b1Xj5aWUcDscdlxZH+7s=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/d9kMVtmPTDP3A1+VGekiYm0b1Xj5aWUcDscdlxZH+7s=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..ec6212a2c --- /dev/null +++ b/typescript-generator-core/.nondex/d9kMVtmPTDP3A1+VGekiYm0b1Xj5aWUcDscdlxZH+7s=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/d9kMVtmPTDP3A1+VGekiYm0b1Xj5aWUcDscdlxZH+7s=/config b/typescript-generator-core/.nondex/d9kMVtmPTDP3A1+VGekiYm0b1Xj5aWUcDscdlxZH+7s=/config new file mode 100644 index 000000000..76fcdf796 --- /dev/null +++ b/typescript-generator-core/.nondex/d9kMVtmPTDP3A1+VGekiYm0b1Xj5aWUcDscdlxZH+7s=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=974622 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=d9kMVtmPTDP3A1+VGekiYm0b1Xj5aWUcDscdlxZH+7s= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/d9kMVtmPTDP3A1+VGekiYm0b1Xj5aWUcDscdlxZH+7s=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/d9kMVtmPTDP3A1+VGekiYm0b1Xj5aWUcDscdlxZH+7s=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..eb7275f7d --- /dev/null +++ b/typescript-generator-core/.nondex/d9kMVtmPTDP3A1+VGekiYm0b1Xj5aWUcDscdlxZH+7s=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.21 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.209 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/d9kMVtmPTDP3A1+VGekiYm0b1Xj5aWUcDscdlxZH+7s=/failures b/typescript-generator-core/.nondex/d9kMVtmPTDP3A1+VGekiYm0b1Xj5aWUcDscdlxZH+7s=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/d9kMVtmPTDP3A1+VGekiYm0b1Xj5aWUcDscdlxZH+7s=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/d9kMVtmPTDP3A1+VGekiYm0b1Xj5aWUcDscdlxZH+7s=/invocations b/typescript-generator-core/.nondex/d9kMVtmPTDP3A1+VGekiYm0b1Xj5aWUcDscdlxZH+7s=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/d9kMVtmPTDP3A1+VGekiYm0b1Xj5aWUcDscdlxZH+7s=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/dKjkCl+kkamBUbFcy+2E4PkcDZDsFBEO+OMABwMqZ+E=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/dKjkCl+kkamBUbFcy+2E4PkcDZDsFBEO+OMABwMqZ+E=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..d683b33fe --- /dev/null +++ b/typescript-generator-core/.nondex/dKjkCl+kkamBUbFcy+2E4PkcDZDsFBEO+OMABwMqZ+E=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/dKjkCl+kkamBUbFcy+2E4PkcDZDsFBEO+OMABwMqZ+E=/config b/typescript-generator-core/.nondex/dKjkCl+kkamBUbFcy+2E4PkcDZDsFBEO+OMABwMqZ+E=/config new file mode 100644 index 000000000..55129e7d3 --- /dev/null +++ b/typescript-generator-core/.nondex/dKjkCl+kkamBUbFcy+2E4PkcDZDsFBEO+OMABwMqZ+E=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1803502 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=dKjkCl+kkamBUbFcy+2E4PkcDZDsFBEO+OMABwMqZ+E= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/dKjkCl+kkamBUbFcy+2E4PkcDZDsFBEO+OMABwMqZ+E=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/dKjkCl+kkamBUbFcy+2E4PkcDZDsFBEO+OMABwMqZ+E=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..89a00539a --- /dev/null +++ b/typescript-generator-core/.nondex/dKjkCl+kkamBUbFcy+2E4PkcDZDsFBEO+OMABwMqZ+E=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.218 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.215 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/dKjkCl+kkamBUbFcy+2E4PkcDZDsFBEO+OMABwMqZ+E=/failures b/typescript-generator-core/.nondex/dKjkCl+kkamBUbFcy+2E4PkcDZDsFBEO+OMABwMqZ+E=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/dKjkCl+kkamBUbFcy+2E4PkcDZDsFBEO+OMABwMqZ+E=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/dKjkCl+kkamBUbFcy+2E4PkcDZDsFBEO+OMABwMqZ+E=/invocations b/typescript-generator-core/.nondex/dKjkCl+kkamBUbFcy+2E4PkcDZDsFBEO+OMABwMqZ+E=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/dKjkCl+kkamBUbFcy+2E4PkcDZDsFBEO+OMABwMqZ+E=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/dT+qj6kq5eXfe4eIwUtAWMZzknQBly4zHLp1A1G9YnU=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/dT+qj6kq5eXfe4eIwUtAWMZzknQBly4zHLp1A1G9YnU=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..2f3a6d9a0 --- /dev/null +++ b/typescript-generator-core/.nondex/dT+qj6kq5eXfe4eIwUtAWMZzknQBly4zHLp1A1G9YnU=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/dT+qj6kq5eXfe4eIwUtAWMZzknQBly4zHLp1A1G9YnU=/config b/typescript-generator-core/.nondex/dT+qj6kq5eXfe4eIwUtAWMZzknQBly4zHLp1A1G9YnU=/config new file mode 100644 index 000000000..e81170d43 --- /dev/null +++ b/typescript-generator-core/.nondex/dT+qj6kq5eXfe4eIwUtAWMZzknQBly4zHLp1A1G9YnU=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=4497362 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=dT+qj6kq5eXfe4eIwUtAWMZzknQBly4zHLp1A1G9YnU= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/dT+qj6kq5eXfe4eIwUtAWMZzknQBly4zHLp1A1G9YnU=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/dT+qj6kq5eXfe4eIwUtAWMZzknQBly4zHLp1A1G9YnU=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..eaf547b1a --- /dev/null +++ b/typescript-generator-core/.nondex/dT+qj6kq5eXfe4eIwUtAWMZzknQBly4zHLp1A1G9YnU=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.282 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.282 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/dT+qj6kq5eXfe4eIwUtAWMZzknQBly4zHLp1A1G9YnU=/failures b/typescript-generator-core/.nondex/dT+qj6kq5eXfe4eIwUtAWMZzknQBly4zHLp1A1G9YnU=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/dT+qj6kq5eXfe4eIwUtAWMZzknQBly4zHLp1A1G9YnU=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/dT+qj6kq5eXfe4eIwUtAWMZzknQBly4zHLp1A1G9YnU=/invocations b/typescript-generator-core/.nondex/dT+qj6kq5eXfe4eIwUtAWMZzknQBly4zHLp1A1G9YnU=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/dT+qj6kq5eXfe4eIwUtAWMZzknQBly4zHLp1A1G9YnU=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/dc4BezG2BvElOvAVzMwfR6kPcRU1HwL4bTo6jb3OLQ=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/dc4BezG2BvElOvAVzMwfR6kPcRU1HwL4bTo6jb3OLQ=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..4db100b68 --- /dev/null +++ b/typescript-generator-core/.nondex/dc4BezG2BvElOvAVzMwfR6kPcRU1HwL4bTo6jb3OLQ=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/dc4BezG2BvElOvAVzMwfR6kPcRU1HwL4bTo6jb3OLQ=/config b/typescript-generator-core/.nondex/dc4BezG2BvElOvAVzMwfR6kPcRU1HwL4bTo6jb3OLQ=/config new file mode 100644 index 000000000..c7c158f5f --- /dev/null +++ b/typescript-generator-core/.nondex/dc4BezG2BvElOvAVzMwfR6kPcRU1HwL4bTo6jb3OLQ=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1554838 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=dc4BezG2BvElOvAVzMwfR6kPcRU1HwL4bTo6jb3OLQ= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/dc4BezG2BvElOvAVzMwfR6kPcRU1HwL4bTo6jb3OLQ=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/dc4BezG2BvElOvAVzMwfR6kPcRU1HwL4bTo6jb3OLQ=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..41fb026f0 --- /dev/null +++ b/typescript-generator-core/.nondex/dc4BezG2BvElOvAVzMwfR6kPcRU1HwL4bTo6jb3OLQ=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.237 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/dc4BezG2BvElOvAVzMwfR6kPcRU1HwL4bTo6jb3OLQ=/failures b/typescript-generator-core/.nondex/dc4BezG2BvElOvAVzMwfR6kPcRU1HwL4bTo6jb3OLQ=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/dc4BezG2BvElOvAVzMwfR6kPcRU1HwL4bTo6jb3OLQ=/invocations b/typescript-generator-core/.nondex/dc4BezG2BvElOvAVzMwfR6kPcRU1HwL4bTo6jb3OLQ=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/dc4BezG2BvElOvAVzMwfR6kPcRU1HwL4bTo6jb3OLQ=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/dpjVkFMU32B7nkPxuJtWkJ2CrWG2adtBDFjIQEWnxIE=/config b/typescript-generator-core/.nondex/dpjVkFMU32B7nkPxuJtWkJ2CrWG2adtBDFjIQEWnxIE=/config new file mode 100644 index 000000000..29c607f6b --- /dev/null +++ b/typescript-generator-core/.nondex/dpjVkFMU32B7nkPxuJtWkJ2CrWG2adtBDFjIQEWnxIE=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1223286 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=dpjVkFMU32B7nkPxuJtWkJ2CrWG2adtBDFjIQEWnxIE= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/dpjVkFMU32B7nkPxuJtWkJ2CrWG2adtBDFjIQEWnxIE=/failures b/typescript-generator-core/.nondex/dpjVkFMU32B7nkPxuJtWkJ2CrWG2adtBDFjIQEWnxIE=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/dpjVkFMU32B7nkPxuJtWkJ2CrWG2adtBDFjIQEWnxIE=/invocations b/typescript-generator-core/.nondex/dpjVkFMU32B7nkPxuJtWkJ2CrWG2adtBDFjIQEWnxIE=/invocations new file mode 100644 index 000000000..c164bf6ef --- /dev/null +++ b/typescript-generator-core/.nondex/dpjVkFMU32B7nkPxuJtWkJ2CrWG2adtBDFjIQEWnxIE=/invocations @@ -0,0 +1,2 @@ +COUNT:16 +SHUFFLES:16 diff --git a/typescript-generator-core/.nondex/e+qvLFDqEwxYEOlUw2r3GktgnY7l1048NtFGqoG2C4=.run b/typescript-generator-core/.nondex/e+qvLFDqEwxYEOlUw2r3GktgnY7l1048NtFGqoG2C4=.run new file mode 100644 index 000000000..a8742872f --- /dev/null +++ b/typescript-generator-core/.nondex/e+qvLFDqEwxYEOlUw2r3GktgnY7l1048NtFGqoG2C4=.run @@ -0,0 +1,4 @@ +e+qvLFDqEwxYEOlUw2r3GktgnY7l1048NtFGqoG2C4= +fxL69iZ4IsPKzXBUUizQv2WToZa3hYWvgdgNOpdobYY= +tM+1pc+h7yy7j6FAtj5zlZpYJCBJGpYJOQdJa6ma2GY= +clean_IqinvAiNxCfxYv9GMkU+YTu3xjn6wgbI94+bhmP0xbM= diff --git a/typescript-generator-core/.nondex/e+qvLFDqEwxYEOlUw2r3GktgnY7l1048NtFGqoG2C4=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/e+qvLFDqEwxYEOlUw2r3GktgnY7l1048NtFGqoG2C4=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..67c3448d7 --- /dev/null +++ b/typescript-generator-core/.nondex/e+qvLFDqEwxYEOlUw2r3GktgnY7l1048NtFGqoG2C4=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,132 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:210) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/e+qvLFDqEwxYEOlUw2r3GktgnY7l1048NtFGqoG2C4=/config b/typescript-generator-core/.nondex/e+qvLFDqEwxYEOlUw2r3GktgnY7l1048NtFGqoG2C4=/config new file mode 100644 index 000000000..c64d51550 --- /dev/null +++ b/typescript-generator-core/.nondex/e+qvLFDqEwxYEOlUw2r3GktgnY7l1048NtFGqoG2C4=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=933178 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=e+qvLFDqEwxYEOlUw2r3GktgnY7l1048NtFGqoG2C4= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/e+qvLFDqEwxYEOlUw2r3GktgnY7l1048NtFGqoG2C4=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/e+qvLFDqEwxYEOlUw2r3GktgnY7l1048NtFGqoG2C4=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..69ccc44cc --- /dev/null +++ b/typescript-generator-core/.nondex/e+qvLFDqEwxYEOlUw2r3GktgnY7l1048NtFGqoG2C4=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,56 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.148 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.147 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:210) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/e+qvLFDqEwxYEOlUw2r3GktgnY7l1048NtFGqoG2C4=/failures b/typescript-generator-core/.nondex/e+qvLFDqEwxYEOlUw2r3GktgnY7l1048NtFGqoG2C4=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/e+qvLFDqEwxYEOlUw2r3GktgnY7l1048NtFGqoG2C4=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/e+qvLFDqEwxYEOlUw2r3GktgnY7l1048NtFGqoG2C4=/invocations b/typescript-generator-core/.nondex/e+qvLFDqEwxYEOlUw2r3GktgnY7l1048NtFGqoG2C4=/invocations new file mode 100644 index 000000000..7ad7d1da8 --- /dev/null +++ b/typescript-generator-core/.nondex/e+qvLFDqEwxYEOlUw2r3GktgnY7l1048NtFGqoG2C4=/invocations @@ -0,0 +1,2 @@ +COUNT:67 +SHUFFLES:67 diff --git a/typescript-generator-core/.nondex/e+qvLFDqEwxYEOlUw2r3GktgnY7l1048NtFGqoG2C4=/test_results.html b/typescript-generator-core/.nondex/e+qvLFDqEwxYEOlUw2r3GktgnY7l1048NtFGqoG2C4=/test_results.html new file mode 100644 index 000000000..cc9aae726 --- /dev/null +++ b/typescript-generator-core/.nondex/e+qvLFDqEwxYEOlUw2r3GktgnY7l1048NtFGqoG2C4=/test_results.html @@ -0,0 +1 @@ +Test Results
Test Name9331789746221016066
cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces
\ No newline at end of file diff --git a/typescript-generator-core/.nondex/eIoV3U0P175RLgKpe+w+QLWtEs73dpmZt7hGuP1+NI=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/eIoV3U0P175RLgKpe+w+QLWtEs73dpmZt7hGuP1+NI=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..278992038 --- /dev/null +++ b/typescript-generator-core/.nondex/eIoV3U0P175RLgKpe+w+QLWtEs73dpmZt7hGuP1+NI=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/eIoV3U0P175RLgKpe+w+QLWtEs73dpmZt7hGuP1+NI=/config b/typescript-generator-core/.nondex/eIoV3U0P175RLgKpe+w+QLWtEs73dpmZt7hGuP1+NI=/config new file mode 100644 index 000000000..1e9a45731 --- /dev/null +++ b/typescript-generator-core/.nondex/eIoV3U0P175RLgKpe+w+QLWtEs73dpmZt7hGuP1+NI=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=4082922 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=eIoV3U0P175RLgKpe+w+QLWtEs73dpmZt7hGuP1+NI= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/eIoV3U0P175RLgKpe+w+QLWtEs73dpmZt7hGuP1+NI=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/eIoV3U0P175RLgKpe+w+QLWtEs73dpmZt7hGuP1+NI=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..6cc20affa --- /dev/null +++ b/typescript-generator-core/.nondex/eIoV3U0P175RLgKpe+w+QLWtEs73dpmZt7hGuP1+NI=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.198 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/eIoV3U0P175RLgKpe+w+QLWtEs73dpmZt7hGuP1+NI=/failures b/typescript-generator-core/.nondex/eIoV3U0P175RLgKpe+w+QLWtEs73dpmZt7hGuP1+NI=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/eIoV3U0P175RLgKpe+w+QLWtEs73dpmZt7hGuP1+NI=/invocations b/typescript-generator-core/.nondex/eIoV3U0P175RLgKpe+w+QLWtEs73dpmZt7hGuP1+NI=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/eIoV3U0P175RLgKpe+w+QLWtEs73dpmZt7hGuP1+NI=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/eiKdzh5r0Ok2EzblscI2mCKjSOiLBDDm5LbisUOeQwM=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/eiKdzh5r0Ok2EzblscI2mCKjSOiLBDDm5LbisUOeQwM=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..4446dd212 --- /dev/null +++ b/typescript-generator-core/.nondex/eiKdzh5r0Ok2EzblscI2mCKjSOiLBDDm5LbisUOeQwM=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/eiKdzh5r0Ok2EzblscI2mCKjSOiLBDDm5LbisUOeQwM=/config b/typescript-generator-core/.nondex/eiKdzh5r0Ok2EzblscI2mCKjSOiLBDDm5LbisUOeQwM=/config new file mode 100644 index 000000000..5aea3ed52 --- /dev/null +++ b/typescript-generator-core/.nondex/eiKdzh5r0Ok2EzblscI2mCKjSOiLBDDm5LbisUOeQwM=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=3295486 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=eiKdzh5r0Ok2EzblscI2mCKjSOiLBDDm5LbisUOeQwM= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/eiKdzh5r0Ok2EzblscI2mCKjSOiLBDDm5LbisUOeQwM=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/eiKdzh5r0Ok2EzblscI2mCKjSOiLBDDm5LbisUOeQwM=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..8eb292608 --- /dev/null +++ b/typescript-generator-core/.nondex/eiKdzh5r0Ok2EzblscI2mCKjSOiLBDDm5LbisUOeQwM=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.206 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.205 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/eiKdzh5r0Ok2EzblscI2mCKjSOiLBDDm5LbisUOeQwM=/failures b/typescript-generator-core/.nondex/eiKdzh5r0Ok2EzblscI2mCKjSOiLBDDm5LbisUOeQwM=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/eiKdzh5r0Ok2EzblscI2mCKjSOiLBDDm5LbisUOeQwM=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/eiKdzh5r0Ok2EzblscI2mCKjSOiLBDDm5LbisUOeQwM=/invocations b/typescript-generator-core/.nondex/eiKdzh5r0Ok2EzblscI2mCKjSOiLBDDm5LbisUOeQwM=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/eiKdzh5r0Ok2EzblscI2mCKjSOiLBDDm5LbisUOeQwM=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/ekKtvQ3gUG8FW1+7RnRrTV+arXzLMUV9vyfMk0aI34c=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/ekKtvQ3gUG8FW1+7RnRrTV+arXzLMUV9vyfMk0aI34c=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..f4abc0c83 --- /dev/null +++ b/typescript-generator-core/.nondex/ekKtvQ3gUG8FW1+7RnRrTV+arXzLMUV9vyfMk0aI34c=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:140) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/ekKtvQ3gUG8FW1+7RnRrTV+arXzLMUV9vyfMk0aI34c=/config b/typescript-generator-core/.nondex/ekKtvQ3gUG8FW1+7RnRrTV+arXzLMUV9vyfMk0aI34c=/config new file mode 100644 index 000000000..15ca90758 --- /dev/null +++ b/typescript-generator-core/.nondex/ekKtvQ3gUG8FW1+7RnRrTV+arXzLMUV9vyfMk0aI34c=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1016066 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=ekKtvQ3gUG8FW1+7RnRrTV+arXzLMUV9vyfMk0aI34c= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/ekKtvQ3gUG8FW1+7RnRrTV+arXzLMUV9vyfMk0aI34c=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/ekKtvQ3gUG8FW1+7RnRrTV+arXzLMUV9vyfMk0aI34c=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..5cace1498 --- /dev/null +++ b/typescript-generator-core/.nondex/ekKtvQ3gUG8FW1+7RnRrTV+arXzLMUV9vyfMk0aI34c=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,20 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.155 sec <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.152 sec <<< FAILURE! +org.junit.ComparisonFailure: expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:140) + diff --git a/typescript-generator-core/.nondex/ekKtvQ3gUG8FW1+7RnRrTV+arXzLMUV9vyfMk0aI34c=/failures b/typescript-generator-core/.nondex/ekKtvQ3gUG8FW1+7RnRrTV+arXzLMUV9vyfMk0aI34c=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/ekKtvQ3gUG8FW1+7RnRrTV+arXzLMUV9vyfMk0aI34c=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/ekKtvQ3gUG8FW1+7RnRrTV+arXzLMUV9vyfMk0aI34c=/invocations b/typescript-generator-core/.nondex/ekKtvQ3gUG8FW1+7RnRrTV+arXzLMUV9vyfMk0aI34c=/invocations new file mode 100644 index 000000000..11ff8fe83 --- /dev/null +++ b/typescript-generator-core/.nondex/ekKtvQ3gUG8FW1+7RnRrTV+arXzLMUV9vyfMk0aI34c=/invocations @@ -0,0 +1,2 @@ +COUNT:61 +SHUFFLES:61 diff --git a/typescript-generator-core/.nondex/eqzUs5ry5ogZuR0cJvNsGFZTEVgUdrxkRNpxTVg6k44=.run b/typescript-generator-core/.nondex/eqzUs5ry5ogZuR0cJvNsGFZTEVgUdrxkRNpxTVg6k44=.run new file mode 100644 index 000000000..057b165e9 --- /dev/null +++ b/typescript-generator-core/.nondex/eqzUs5ry5ogZuR0cJvNsGFZTEVgUdrxkRNpxTVg6k44=.run @@ -0,0 +1,11 @@ +eqzUs5ry5ogZuR0cJvNsGFZTEVgUdrxkRNpxTVg6k44= +XFMd9rXPmNOeeGBigoknmqla7fmZ8nLrGTkadIwiws= +P0MHaB2WrB8IDHZgY4qFX37dW6BNmVvQ0qN4HmD2Ioc= +8IYfEHzeoRdGF9+im9XncjRUTZjaP4hjtkNUR5NPs= +EvJWT9dLolyEVGuEB4nibuIBRslkENkuL4QA4nKtDCQ= +8HC+GbfwNGz1j4dpK9cEuZ9wbEK1ufr4XcMqw+petMM= +skYMTcwY9xunC0hv8jTIHvcn5hL6uxwyKWNkTB6Zo= +SV7eW8Xpy0OUE9cZdmB547gs0F1QD8czZHjDKIZroc= +nvbCmFuuyj9OHMV1o34nkv1ulmZoExpTCVCoXQiJ38= +IBNm7zJDFUPCkT7VKJX557BaGwRicCed5WB4SFL9tvg= +clean_b517Xx8MFlA7j+SYdG1+l1l6t+GtHSgP0qhCjZoED8= diff --git a/typescript-generator-core/.nondex/eqzUs5ry5ogZuR0cJvNsGFZTEVgUdrxkRNpxTVg6k44=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/eqzUs5ry5ogZuR0cJvNsGFZTEVgUdrxkRNpxTVg6k44=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..69e115951 --- /dev/null +++ b/typescript-generator-core/.nondex/eqzUs5ry5ogZuR0cJvNsGFZTEVgUdrxkRNpxTVg6k44=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,176 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:< +interface [CCircle2 extends IShape2 { + kind: "circle"; + radius: number; +} + +interface CRectangle2 extends IQuadrilateral2 { + kind: "rectangle"; + width: number; + height: number; +} + +interface IQuadrilateral2 extends IShape2 { + kind: "square" | "rectangle"; +} + +interface IShape2 { + kind: "circle" | "square" | "rectangle"; +} + +interface CSquare2 extends IQuadrilateral2 { + kind: "square"; + size: number]; +} + +type IShape2Uni...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/eqzUs5ry5ogZuR0cJvNsGFZTEVgUdrxkRNpxTVg6k44=/config b/typescript-generator-core/.nondex/eqzUs5ry5ogZuR0cJvNsGFZTEVgUdrxkRNpxTVg6k44=/config new file mode 100644 index 000000000..00a312c91 --- /dev/null +++ b/typescript-generator-core/.nondex/eqzUs5ry5ogZuR0cJvNsGFZTEVgUdrxkRNpxTVg6k44=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=933178 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=eqzUs5ry5ogZuR0cJvNsGFZTEVgUdrxkRNpxTVg6k44= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/eqzUs5ry5ogZuR0cJvNsGFZTEVgUdrxkRNpxTVg6k44=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/eqzUs5ry5ogZuR0cJvNsGFZTEVgUdrxkRNpxTVg6k44=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..01f214cd5 --- /dev/null +++ b/typescript-generator-core/.nondex/eqzUs5ry5ogZuR0cJvNsGFZTEVgUdrxkRNpxTVg6k44=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,100 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.219 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.219 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:< +interface [IShape2 { + kind: "circle" | "square" | "rectangle"; +} + +interface CSquare2 extends IQuadrilateral2 { + kind: "square"; + size: number; +} + +interface CRectangle2 extends IQuadrilateral2 { + kind: "rectangle"; + width: number; + height: number; +} + +interface CCircle2 extends IShape2 { + kind: "circle"; + radius: number; +} + +interface IQuadrilateral2 extends IShape2 { + kind: "square" | "rectangle"]; +} + +type IShape2Uni...> but was:< +interface [CCircle2 extends IShape2 { + kind: "circle"; + radius: number; +} + +interface CRectangle2 extends IQuadrilateral2 { + kind: "rectangle"; + width: number; + height: number; +} + +interface IQuadrilateral2 extends IShape2 { + kind: "square" | "rectangle"; +} + +interface IShape2 { + kind: "circle" | "square" | "rectangle"; +} + +interface CSquare2 extends IQuadrilateral2 { + kind: "square"; + size: number]; +} + +type IShape2Uni...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/eqzUs5ry5ogZuR0cJvNsGFZTEVgUdrxkRNpxTVg6k44=/failures b/typescript-generator-core/.nondex/eqzUs5ry5ogZuR0cJvNsGFZTEVgUdrxkRNpxTVg6k44=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/eqzUs5ry5ogZuR0cJvNsGFZTEVgUdrxkRNpxTVg6k44=/invocations b/typescript-generator-core/.nondex/eqzUs5ry5ogZuR0cJvNsGFZTEVgUdrxkRNpxTVg6k44=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/eqzUs5ry5ogZuR0cJvNsGFZTEVgUdrxkRNpxTVg6k44=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/eqzUs5ry5ogZuR0cJvNsGFZTEVgUdrxkRNpxTVg6k44=/test_results.html b/typescript-generator-core/.nondex/eqzUs5ry5ogZuR0cJvNsGFZTEVgUdrxkRNpxTVg6k44=/test_results.html new file mode 100644 index 000000000..dd0ef9963 --- /dev/null +++ b/typescript-generator-core/.nondex/eqzUs5ry5ogZuR0cJvNsGFZTEVgUdrxkRNpxTVg6k44=/test_results.html @@ -0,0 +1 @@ +Test Results
Test Name93317897462210160661057510109895411403981181842122328612647301306174
\ No newline at end of file diff --git a/typescript-generator-core/.nondex/es8pRRuJL+j82Ig22ZyDUkydTVuKmp5W6DtUH8RMAhU=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/es8pRRuJL+j82Ig22ZyDUkydTVuKmp5W6DtUH8RMAhU=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..1336c681d --- /dev/null +++ b/typescript-generator-core/.nondex/es8pRRuJL+j82Ig22ZyDUkydTVuKmp5W6DtUH8RMAhU=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/es8pRRuJL+j82Ig22ZyDUkydTVuKmp5W6DtUH8RMAhU=/config b/typescript-generator-core/.nondex/es8pRRuJL+j82Ig22ZyDUkydTVuKmp5W6DtUH8RMAhU=/config new file mode 100644 index 000000000..28e9b4976 --- /dev/null +++ b/typescript-generator-core/.nondex/es8pRRuJL+j82Ig22ZyDUkydTVuKmp5W6DtUH8RMAhU=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=2135054 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=es8pRRuJL+j82Ig22ZyDUkydTVuKmp5W6DtUH8RMAhU= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/es8pRRuJL+j82Ig22ZyDUkydTVuKmp5W6DtUH8RMAhU=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/es8pRRuJL+j82Ig22ZyDUkydTVuKmp5W6DtUH8RMAhU=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..8525fffb6 --- /dev/null +++ b/typescript-generator-core/.nondex/es8pRRuJL+j82Ig22ZyDUkydTVuKmp5W6DtUH8RMAhU=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.214 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/es8pRRuJL+j82Ig22ZyDUkydTVuKmp5W6DtUH8RMAhU=/failures b/typescript-generator-core/.nondex/es8pRRuJL+j82Ig22ZyDUkydTVuKmp5W6DtUH8RMAhU=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/es8pRRuJL+j82Ig22ZyDUkydTVuKmp5W6DtUH8RMAhU=/invocations b/typescript-generator-core/.nondex/es8pRRuJL+j82Ig22ZyDUkydTVuKmp5W6DtUH8RMAhU=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/es8pRRuJL+j82Ig22ZyDUkydTVuKmp5W6DtUH8RMAhU=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/fHPBVBGnIlGPugKWM3bvx5vjfNYxETZjrHGCFlqvP8=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/fHPBVBGnIlGPugKWM3bvx5vjfNYxETZjrHGCFlqvP8=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..02e0027fb --- /dev/null +++ b/typescript-generator-core/.nondex/fHPBVBGnIlGPugKWM3bvx5vjfNYxETZjrHGCFlqvP8=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/fHPBVBGnIlGPugKWM3bvx5vjfNYxETZjrHGCFlqvP8=/config b/typescript-generator-core/.nondex/fHPBVBGnIlGPugKWM3bvx5vjfNYxETZjrHGCFlqvP8=/config new file mode 100644 index 000000000..9ebfd1710 --- /dev/null +++ b/typescript-generator-core/.nondex/fHPBVBGnIlGPugKWM3bvx5vjfNYxETZjrHGCFlqvP8=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=2217942 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=fHPBVBGnIlGPugKWM3bvx5vjfNYxETZjrHGCFlqvP8= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/fHPBVBGnIlGPugKWM3bvx5vjfNYxETZjrHGCFlqvP8=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/fHPBVBGnIlGPugKWM3bvx5vjfNYxETZjrHGCFlqvP8=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..0fa8a1c56 --- /dev/null +++ b/typescript-generator-core/.nondex/fHPBVBGnIlGPugKWM3bvx5vjfNYxETZjrHGCFlqvP8=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.191 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.189 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/fHPBVBGnIlGPugKWM3bvx5vjfNYxETZjrHGCFlqvP8=/failures b/typescript-generator-core/.nondex/fHPBVBGnIlGPugKWM3bvx5vjfNYxETZjrHGCFlqvP8=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/fHPBVBGnIlGPugKWM3bvx5vjfNYxETZjrHGCFlqvP8=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/fHPBVBGnIlGPugKWM3bvx5vjfNYxETZjrHGCFlqvP8=/invocations b/typescript-generator-core/.nondex/fHPBVBGnIlGPugKWM3bvx5vjfNYxETZjrHGCFlqvP8=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/fHPBVBGnIlGPugKWM3bvx5vjfNYxETZjrHGCFlqvP8=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/fIsj3S8dqFnT+j2YDlEobQxsUPwVYnwGGu8WiQM1Stw=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/fIsj3S8dqFnT+j2YDlEobQxsUPwVYnwGGu8WiQM1Stw=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..6b346a073 --- /dev/null +++ b/typescript-generator-core/.nondex/fIsj3S8dqFnT+j2YDlEobQxsUPwVYnwGGu8WiQM1Stw=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/fIsj3S8dqFnT+j2YDlEobQxsUPwVYnwGGu8WiQM1Stw=/config b/typescript-generator-core/.nondex/fIsj3S8dqFnT+j2YDlEobQxsUPwVYnwGGu8WiQM1Stw=/config new file mode 100644 index 000000000..3adfcb0c0 --- /dev/null +++ b/typescript-generator-core/.nondex/fIsj3S8dqFnT+j2YDlEobQxsUPwVYnwGGu8WiQM1Stw=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=3917146 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=fIsj3S8dqFnT+j2YDlEobQxsUPwVYnwGGu8WiQM1Stw= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/fIsj3S8dqFnT+j2YDlEobQxsUPwVYnwGGu8WiQM1Stw=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/fIsj3S8dqFnT+j2YDlEobQxsUPwVYnwGGu8WiQM1Stw=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..cb2166e6e --- /dev/null +++ b/typescript-generator-core/.nondex/fIsj3S8dqFnT+j2YDlEobQxsUPwVYnwGGu8WiQM1Stw=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.188 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/fIsj3S8dqFnT+j2YDlEobQxsUPwVYnwGGu8WiQM1Stw=/failures b/typescript-generator-core/.nondex/fIsj3S8dqFnT+j2YDlEobQxsUPwVYnwGGu8WiQM1Stw=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/fIsj3S8dqFnT+j2YDlEobQxsUPwVYnwGGu8WiQM1Stw=/invocations b/typescript-generator-core/.nondex/fIsj3S8dqFnT+j2YDlEobQxsUPwVYnwGGu8WiQM1Stw=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/fIsj3S8dqFnT+j2YDlEobQxsUPwVYnwGGu8WiQM1Stw=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/fedRkVg7ghHeaQfD4DMgXq0GWnpxUvamZvm17UevHI=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/fedRkVg7ghHeaQfD4DMgXq0GWnpxUvamZvm17UevHI=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..2444a4169 --- /dev/null +++ b/typescript-generator-core/.nondex/fedRkVg7ghHeaQfD4DMgXq0GWnpxUvamZvm17UevHI=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/fedRkVg7ghHeaQfD4DMgXq0GWnpxUvamZvm17UevHI=/config b/typescript-generator-core/.nondex/fedRkVg7ghHeaQfD4DMgXq0GWnpxUvamZvm17UevHI=/config new file mode 100644 index 000000000..d9bafaaa9 --- /dev/null +++ b/typescript-generator-core/.nondex/fedRkVg7ghHeaQfD4DMgXq0GWnpxUvamZvm17UevHI=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=3544150 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=fedRkVg7ghHeaQfD4DMgXq0GWnpxUvamZvm17UevHI= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/fedRkVg7ghHeaQfD4DMgXq0GWnpxUvamZvm17UevHI=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/fedRkVg7ghHeaQfD4DMgXq0GWnpxUvamZvm17UevHI=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..6968124b4 --- /dev/null +++ b/typescript-generator-core/.nondex/fedRkVg7ghHeaQfD4DMgXq0GWnpxUvamZvm17UevHI=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.242 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.241 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/fedRkVg7ghHeaQfD4DMgXq0GWnpxUvamZvm17UevHI=/failures b/typescript-generator-core/.nondex/fedRkVg7ghHeaQfD4DMgXq0GWnpxUvamZvm17UevHI=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/fedRkVg7ghHeaQfD4DMgXq0GWnpxUvamZvm17UevHI=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/fedRkVg7ghHeaQfD4DMgXq0GWnpxUvamZvm17UevHI=/invocations b/typescript-generator-core/.nondex/fedRkVg7ghHeaQfD4DMgXq0GWnpxUvamZvm17UevHI=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/fedRkVg7ghHeaQfD4DMgXq0GWnpxUvamZvm17UevHI=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/fniZj6NpiZdaNJduAwVqZmrX4rl1vzbaHFSBYOwnYA=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/fniZj6NpiZdaNJduAwVqZmrX4rl1vzbaHFSBYOwnYA=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..0b4df66cf --- /dev/null +++ b/typescript-generator-core/.nondex/fniZj6NpiZdaNJduAwVqZmrX4rl1vzbaHFSBYOwnYA=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/fniZj6NpiZdaNJduAwVqZmrX4rl1vzbaHFSBYOwnYA=/config b/typescript-generator-core/.nondex/fniZj6NpiZdaNJduAwVqZmrX4rl1vzbaHFSBYOwnYA=/config new file mode 100644 index 000000000..5a07030dc --- /dev/null +++ b/typescript-generator-core/.nondex/fniZj6NpiZdaNJduAwVqZmrX4rl1vzbaHFSBYOwnYA=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1264730 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=fniZj6NpiZdaNJduAwVqZmrX4rl1vzbaHFSBYOwnYA= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/fniZj6NpiZdaNJduAwVqZmrX4rl1vzbaHFSBYOwnYA=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/fniZj6NpiZdaNJduAwVqZmrX4rl1vzbaHFSBYOwnYA=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..351fb58f2 --- /dev/null +++ b/typescript-generator-core/.nondex/fniZj6NpiZdaNJduAwVqZmrX4rl1vzbaHFSBYOwnYA=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.255 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/fniZj6NpiZdaNJduAwVqZmrX4rl1vzbaHFSBYOwnYA=/failures b/typescript-generator-core/.nondex/fniZj6NpiZdaNJduAwVqZmrX4rl1vzbaHFSBYOwnYA=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/fniZj6NpiZdaNJduAwVqZmrX4rl1vzbaHFSBYOwnYA=/invocations b/typescript-generator-core/.nondex/fniZj6NpiZdaNJduAwVqZmrX4rl1vzbaHFSBYOwnYA=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/fniZj6NpiZdaNJduAwVqZmrX4rl1vzbaHFSBYOwnYA=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/fvRAMK5JdZp93WO+88UTF7Nl4ENif5reU5Ws5jv0L0=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/fvRAMK5JdZp93WO+88UTF7Nl4ENif5reU5Ws5jv0L0=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..f228d378a --- /dev/null +++ b/typescript-generator-core/.nondex/fvRAMK5JdZp93WO+88UTF7Nl4ENif5reU5Ws5jv0L0=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,92 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:140) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/fvRAMK5JdZp93WO+88UTF7Nl4ENif5reU5Ws5jv0L0=/config b/typescript-generator-core/.nondex/fvRAMK5JdZp93WO+88UTF7Nl4ENif5reU5Ws5jv0L0=/config new file mode 100644 index 000000000..ae9d09baa --- /dev/null +++ b/typescript-generator-core/.nondex/fvRAMK5JdZp93WO+88UTF7Nl4ENif5reU5Ws5jv0L0=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1057510 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=fvRAMK5JdZp93WO+88UTF7Nl4ENif5reU5Ws5jv0L0= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/fvRAMK5JdZp93WO+88UTF7Nl4ENif5reU5Ws5jv0L0=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/fvRAMK5JdZp93WO+88UTF7Nl4ENif5reU5Ws5jv0L0=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..a521b1c91 --- /dev/null +++ b/typescript-generator-core/.nondex/fvRAMK5JdZp93WO+88UTF7Nl4ENif5reU5Ws5jv0L0=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,20 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.193 sec <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.193 sec <<< FAILURE! +org.junit.ComparisonFailure: expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:140) + diff --git a/typescript-generator-core/.nondex/fvRAMK5JdZp93WO+88UTF7Nl4ENif5reU5Ws5jv0L0=/failures b/typescript-generator-core/.nondex/fvRAMK5JdZp93WO+88UTF7Nl4ENif5reU5Ws5jv0L0=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/fvRAMK5JdZp93WO+88UTF7Nl4ENif5reU5Ws5jv0L0=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/fvRAMK5JdZp93WO+88UTF7Nl4ENif5reU5Ws5jv0L0=/invocations b/typescript-generator-core/.nondex/fvRAMK5JdZp93WO+88UTF7Nl4ENif5reU5Ws5jv0L0=/invocations new file mode 100644 index 000000000..11ff8fe83 --- /dev/null +++ b/typescript-generator-core/.nondex/fvRAMK5JdZp93WO+88UTF7Nl4ENif5reU5Ws5jv0L0=/invocations @@ -0,0 +1,2 @@ +COUNT:61 +SHUFFLES:61 diff --git a/typescript-generator-core/.nondex/fxL69iZ4IsPKzXBUUizQv2WToZa3hYWvgdgNOpdobYY=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/fxL69iZ4IsPKzXBUUizQv2WToZa3hYWvgdgNOpdobYY=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..7c7b39f7a --- /dev/null +++ b/typescript-generator-core/.nondex/fxL69iZ4IsPKzXBUUizQv2WToZa3hYWvgdgNOpdobYY=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/fxL69iZ4IsPKzXBUUizQv2WToZa3hYWvgdgNOpdobYY=/config b/typescript-generator-core/.nondex/fxL69iZ4IsPKzXBUUizQv2WToZa3hYWvgdgNOpdobYY=/config new file mode 100644 index 000000000..a51e5da73 --- /dev/null +++ b/typescript-generator-core/.nondex/fxL69iZ4IsPKzXBUUizQv2WToZa3hYWvgdgNOpdobYY=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=974622 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=fxL69iZ4IsPKzXBUUizQv2WToZa3hYWvgdgNOpdobYY= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/fxL69iZ4IsPKzXBUUizQv2WToZa3hYWvgdgNOpdobYY=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/fxL69iZ4IsPKzXBUUizQv2WToZa3hYWvgdgNOpdobYY=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..8c9b20316 --- /dev/null +++ b/typescript-generator-core/.nondex/fxL69iZ4IsPKzXBUUizQv2WToZa3hYWvgdgNOpdobYY=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.165 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/fxL69iZ4IsPKzXBUUizQv2WToZa3hYWvgdgNOpdobYY=/failures b/typescript-generator-core/.nondex/fxL69iZ4IsPKzXBUUizQv2WToZa3hYWvgdgNOpdobYY=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/fxL69iZ4IsPKzXBUUizQv2WToZa3hYWvgdgNOpdobYY=/invocations b/typescript-generator-core/.nondex/fxL69iZ4IsPKzXBUUizQv2WToZa3hYWvgdgNOpdobYY=/invocations new file mode 100644 index 000000000..7ad7d1da8 --- /dev/null +++ b/typescript-generator-core/.nondex/fxL69iZ4IsPKzXBUUizQv2WToZa3hYWvgdgNOpdobYY=/invocations @@ -0,0 +1,2 @@ +COUNT:67 +SHUFFLES:67 diff --git a/typescript-generator-core/.nondex/g7Wr39pm3CNj+Bj7LkTpWqLmNe6PAb2vBGAEQH4sAxo=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/g7Wr39pm3CNj+Bj7LkTpWqLmNe6PAb2vBGAEQH4sAxo=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..8ab4b6a9d --- /dev/null +++ b/typescript-generator-core/.nondex/g7Wr39pm3CNj+Bj7LkTpWqLmNe6PAb2vBGAEQH4sAxo=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/g7Wr39pm3CNj+Bj7LkTpWqLmNe6PAb2vBGAEQH4sAxo=/config b/typescript-generator-core/.nondex/g7Wr39pm3CNj+Bj7LkTpWqLmNe6PAb2vBGAEQH4sAxo=/config new file mode 100644 index 000000000..389fa6c1b --- /dev/null +++ b/typescript-generator-core/.nondex/g7Wr39pm3CNj+Bj7LkTpWqLmNe6PAb2vBGAEQH4sAxo=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=974622 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=g7Wr39pm3CNj+Bj7LkTpWqLmNe6PAb2vBGAEQH4sAxo= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/g7Wr39pm3CNj+Bj7LkTpWqLmNe6PAb2vBGAEQH4sAxo=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/g7Wr39pm3CNj+Bj7LkTpWqLmNe6PAb2vBGAEQH4sAxo=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..79ba68ac9 --- /dev/null +++ b/typescript-generator-core/.nondex/g7Wr39pm3CNj+Bj7LkTpWqLmNe6PAb2vBGAEQH4sAxo=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.307 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.303 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/g7Wr39pm3CNj+Bj7LkTpWqLmNe6PAb2vBGAEQH4sAxo=/failures b/typescript-generator-core/.nondex/g7Wr39pm3CNj+Bj7LkTpWqLmNe6PAb2vBGAEQH4sAxo=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/g7Wr39pm3CNj+Bj7LkTpWqLmNe6PAb2vBGAEQH4sAxo=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/g7Wr39pm3CNj+Bj7LkTpWqLmNe6PAb2vBGAEQH4sAxo=/invocations b/typescript-generator-core/.nondex/g7Wr39pm3CNj+Bj7LkTpWqLmNe6PAb2vBGAEQH4sAxo=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/g7Wr39pm3CNj+Bj7LkTpWqLmNe6PAb2vBGAEQH4sAxo=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/gOGdJQxqj4LZD9YZ38c1+pN2hDhvY1VJQIylRP5YUa4=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/gOGdJQxqj4LZD9YZ38c1+pN2hDhvY1VJQIylRP5YUa4=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..38bd03627 --- /dev/null +++ b/typescript-generator-core/.nondex/gOGdJQxqj4LZD9YZ38c1+pN2hDhvY1VJQIylRP5YUa4=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/gOGdJQxqj4LZD9YZ38c1+pN2hDhvY1VJQIylRP5YUa4=/config b/typescript-generator-core/.nondex/gOGdJQxqj4LZD9YZ38c1+pN2hDhvY1VJQIylRP5YUa4=/config new file mode 100644 index 000000000..fe2234e89 --- /dev/null +++ b/typescript-generator-core/.nondex/gOGdJQxqj4LZD9YZ38c1+pN2hDhvY1VJQIylRP5YUa4=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=2300830 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=gOGdJQxqj4LZD9YZ38c1+pN2hDhvY1VJQIylRP5YUa4= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/gOGdJQxqj4LZD9YZ38c1+pN2hDhvY1VJQIylRP5YUa4=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/gOGdJQxqj4LZD9YZ38c1+pN2hDhvY1VJQIylRP5YUa4=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..df3480d82 --- /dev/null +++ b/typescript-generator-core/.nondex/gOGdJQxqj4LZD9YZ38c1+pN2hDhvY1VJQIylRP5YUa4=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.306 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.302 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/gOGdJQxqj4LZD9YZ38c1+pN2hDhvY1VJQIylRP5YUa4=/failures b/typescript-generator-core/.nondex/gOGdJQxqj4LZD9YZ38c1+pN2hDhvY1VJQIylRP5YUa4=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/gOGdJQxqj4LZD9YZ38c1+pN2hDhvY1VJQIylRP5YUa4=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/gOGdJQxqj4LZD9YZ38c1+pN2hDhvY1VJQIylRP5YUa4=/invocations b/typescript-generator-core/.nondex/gOGdJQxqj4LZD9YZ38c1+pN2hDhvY1VJQIylRP5YUa4=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/gOGdJQxqj4LZD9YZ38c1+pN2hDhvY1VJQIylRP5YUa4=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/gOkBtpvauosBV+m1f8cBWiBwR7XpurnalNEsixZwnwc=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/gOkBtpvauosBV+m1f8cBWiBwR7XpurnalNEsixZwnwc=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..cb9d5021b --- /dev/null +++ b/typescript-generator-core/.nondex/gOkBtpvauosBV+m1f8cBWiBwR7XpurnalNEsixZwnwc=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/gOkBtpvauosBV+m1f8cBWiBwR7XpurnalNEsixZwnwc=/config b/typescript-generator-core/.nondex/gOkBtpvauosBV+m1f8cBWiBwR7XpurnalNEsixZwnwc=/config new file mode 100644 index 000000000..68b6a731e --- /dev/null +++ b/typescript-generator-core/.nondex/gOkBtpvauosBV+m1f8cBWiBwR7XpurnalNEsixZwnwc=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=3129710 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=gOkBtpvauosBV+m1f8cBWiBwR7XpurnalNEsixZwnwc= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/gOkBtpvauosBV+m1f8cBWiBwR7XpurnalNEsixZwnwc=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/gOkBtpvauosBV+m1f8cBWiBwR7XpurnalNEsixZwnwc=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..3c607ad50 --- /dev/null +++ b/typescript-generator-core/.nondex/gOkBtpvauosBV+m1f8cBWiBwR7XpurnalNEsixZwnwc=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.21 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/gOkBtpvauosBV+m1f8cBWiBwR7XpurnalNEsixZwnwc=/failures b/typescript-generator-core/.nondex/gOkBtpvauosBV+m1f8cBWiBwR7XpurnalNEsixZwnwc=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/gOkBtpvauosBV+m1f8cBWiBwR7XpurnalNEsixZwnwc=/invocations b/typescript-generator-core/.nondex/gOkBtpvauosBV+m1f8cBWiBwR7XpurnalNEsixZwnwc=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/gOkBtpvauosBV+m1f8cBWiBwR7XpurnalNEsixZwnwc=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/gYS0Q+No3N9ZqnGrqIWryQEuKh6fW63wpqeaXM3wtc=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/gYS0Q+No3N9ZqnGrqIWryQEuKh6fW63wpqeaXM3wtc=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..507367953 --- /dev/null +++ b/typescript-generator-core/.nondex/gYS0Q+No3N9ZqnGrqIWryQEuKh6fW63wpqeaXM3wtc=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/gYS0Q+No3N9ZqnGrqIWryQEuKh6fW63wpqeaXM3wtc=/config b/typescript-generator-core/.nondex/gYS0Q+No3N9ZqnGrqIWryQEuKh6fW63wpqeaXM3wtc=/config new file mode 100644 index 000000000..8fde99bd2 --- /dev/null +++ b/typescript-generator-core/.nondex/gYS0Q+No3N9ZqnGrqIWryQEuKh6fW63wpqeaXM3wtc=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1016066 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=gYS0Q+No3N9ZqnGrqIWryQEuKh6fW63wpqeaXM3wtc= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/gYS0Q+No3N9ZqnGrqIWryQEuKh6fW63wpqeaXM3wtc=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/gYS0Q+No3N9ZqnGrqIWryQEuKh6fW63wpqeaXM3wtc=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..36c58723f --- /dev/null +++ b/typescript-generator-core/.nondex/gYS0Q+No3N9ZqnGrqIWryQEuKh6fW63wpqeaXM3wtc=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.164 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/gYS0Q+No3N9ZqnGrqIWryQEuKh6fW63wpqeaXM3wtc=/failures b/typescript-generator-core/.nondex/gYS0Q+No3N9ZqnGrqIWryQEuKh6fW63wpqeaXM3wtc=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/gYS0Q+No3N9ZqnGrqIWryQEuKh6fW63wpqeaXM3wtc=/invocations b/typescript-generator-core/.nondex/gYS0Q+No3N9ZqnGrqIWryQEuKh6fW63wpqeaXM3wtc=/invocations new file mode 100644 index 000000000..7ad7d1da8 --- /dev/null +++ b/typescript-generator-core/.nondex/gYS0Q+No3N9ZqnGrqIWryQEuKh6fW63wpqeaXM3wtc=/invocations @@ -0,0 +1,2 @@ +COUNT:67 +SHUFFLES:67 diff --git a/typescript-generator-core/.nondex/gih40RibYVjqVHbLSk8mgBTbdgnff5LTwa4xxXICw=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/gih40RibYVjqVHbLSk8mgBTbdgnff5LTwa4xxXICw=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..8b3f895e2 --- /dev/null +++ b/typescript-generator-core/.nondex/gih40RibYVjqVHbLSk8mgBTbdgnff5LTwa4xxXICw=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/gih40RibYVjqVHbLSk8mgBTbdgnff5LTwa4xxXICw=/config b/typescript-generator-core/.nondex/gih40RibYVjqVHbLSk8mgBTbdgnff5LTwa4xxXICw=/config new file mode 100644 index 000000000..1adca6605 --- /dev/null +++ b/typescript-generator-core/.nondex/gih40RibYVjqVHbLSk8mgBTbdgnff5LTwa4xxXICw=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1016066 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=gih40RibYVjqVHbLSk8mgBTbdgnff5LTwa4xxXICw= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/gih40RibYVjqVHbLSk8mgBTbdgnff5LTwa4xxXICw=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/gih40RibYVjqVHbLSk8mgBTbdgnff5LTwa4xxXICw=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..c49e8bd00 --- /dev/null +++ b/typescript-generator-core/.nondex/gih40RibYVjqVHbLSk8mgBTbdgnff5LTwa4xxXICw=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.14 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/gih40RibYVjqVHbLSk8mgBTbdgnff5LTwa4xxXICw=/failures b/typescript-generator-core/.nondex/gih40RibYVjqVHbLSk8mgBTbdgnff5LTwa4xxXICw=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/gih40RibYVjqVHbLSk8mgBTbdgnff5LTwa4xxXICw=/invocations b/typescript-generator-core/.nondex/gih40RibYVjqVHbLSk8mgBTbdgnff5LTwa4xxXICw=/invocations new file mode 100644 index 000000000..7ad7d1da8 --- /dev/null +++ b/typescript-generator-core/.nondex/gih40RibYVjqVHbLSk8mgBTbdgnff5LTwa4xxXICw=/invocations @@ -0,0 +1,2 @@ +COUNT:67 +SHUFFLES:67 diff --git a/typescript-generator-core/.nondex/h53UqbwkR+QMutXTU1IOPz4TrwdbROiaAfLCcQeKMxk=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/h53UqbwkR+QMutXTU1IOPz4TrwdbROiaAfLCcQeKMxk=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..5ebb6a1ae --- /dev/null +++ b/typescript-generator-core/.nondex/h53UqbwkR+QMutXTU1IOPz4TrwdbROiaAfLCcQeKMxk=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/h53UqbwkR+QMutXTU1IOPz4TrwdbROiaAfLCcQeKMxk=/config b/typescript-generator-core/.nondex/h53UqbwkR+QMutXTU1IOPz4TrwdbROiaAfLCcQeKMxk=/config new file mode 100644 index 000000000..c66de3592 --- /dev/null +++ b/typescript-generator-core/.nondex/h53UqbwkR+QMutXTU1IOPz4TrwdbROiaAfLCcQeKMxk=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=974622 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=h53UqbwkR+QMutXTU1IOPz4TrwdbROiaAfLCcQeKMxk= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/h53UqbwkR+QMutXTU1IOPz4TrwdbROiaAfLCcQeKMxk=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/h53UqbwkR+QMutXTU1IOPz4TrwdbROiaAfLCcQeKMxk=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..367a69e38 --- /dev/null +++ b/typescript-generator-core/.nondex/h53UqbwkR+QMutXTU1IOPz4TrwdbROiaAfLCcQeKMxk=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.138 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/h53UqbwkR+QMutXTU1IOPz4TrwdbROiaAfLCcQeKMxk=/failures b/typescript-generator-core/.nondex/h53UqbwkR+QMutXTU1IOPz4TrwdbROiaAfLCcQeKMxk=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/h53UqbwkR+QMutXTU1IOPz4TrwdbROiaAfLCcQeKMxk=/invocations b/typescript-generator-core/.nondex/h53UqbwkR+QMutXTU1IOPz4TrwdbROiaAfLCcQeKMxk=/invocations new file mode 100644 index 000000000..7ad7d1da8 --- /dev/null +++ b/typescript-generator-core/.nondex/h53UqbwkR+QMutXTU1IOPz4TrwdbROiaAfLCcQeKMxk=/invocations @@ -0,0 +1,2 @@ +COUNT:67 +SHUFFLES:67 diff --git a/typescript-generator-core/.nondex/hDChMiwmiq6nx3WhCCDE6qfBbLw384xLKTwN7hWx5gM=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/hDChMiwmiq6nx3WhCCDE6qfBbLw384xLKTwN7hWx5gM=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..a5f7c7651 --- /dev/null +++ b/typescript-generator-core/.nondex/hDChMiwmiq6nx3WhCCDE6qfBbLw384xLKTwN7hWx5gM=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/hDChMiwmiq6nx3WhCCDE6qfBbLw384xLKTwN7hWx5gM=/config b/typescript-generator-core/.nondex/hDChMiwmiq6nx3WhCCDE6qfBbLw384xLKTwN7hWx5gM=/config new file mode 100644 index 000000000..eec85ea58 --- /dev/null +++ b/typescript-generator-core/.nondex/hDChMiwmiq6nx3WhCCDE6qfBbLw384xLKTwN7hWx5gM=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=4414474 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=hDChMiwmiq6nx3WhCCDE6qfBbLw384xLKTwN7hWx5gM= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/hDChMiwmiq6nx3WhCCDE6qfBbLw384xLKTwN7hWx5gM=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/hDChMiwmiq6nx3WhCCDE6qfBbLw384xLKTwN7hWx5gM=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..2737721b5 --- /dev/null +++ b/typescript-generator-core/.nondex/hDChMiwmiq6nx3WhCCDE6qfBbLw384xLKTwN7hWx5gM=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.238 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.236 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/hDChMiwmiq6nx3WhCCDE6qfBbLw384xLKTwN7hWx5gM=/failures b/typescript-generator-core/.nondex/hDChMiwmiq6nx3WhCCDE6qfBbLw384xLKTwN7hWx5gM=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/hDChMiwmiq6nx3WhCCDE6qfBbLw384xLKTwN7hWx5gM=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/hDChMiwmiq6nx3WhCCDE6qfBbLw384xLKTwN7hWx5gM=/invocations b/typescript-generator-core/.nondex/hDChMiwmiq6nx3WhCCDE6qfBbLw384xLKTwN7hWx5gM=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/hDChMiwmiq6nx3WhCCDE6qfBbLw384xLKTwN7hWx5gM=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/haVyOflduJLyKNRQBfcc+1etHZmgkbmSmP01QuDL57c=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/haVyOflduJLyKNRQBfcc+1etHZmgkbmSmP01QuDL57c=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..0ecae0573 --- /dev/null +++ b/typescript-generator-core/.nondex/haVyOflduJLyKNRQBfcc+1etHZmgkbmSmP01QuDL57c=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/haVyOflduJLyKNRQBfcc+1etHZmgkbmSmP01QuDL57c=/config b/typescript-generator-core/.nondex/haVyOflduJLyKNRQBfcc+1etHZmgkbmSmP01QuDL57c=/config new file mode 100644 index 000000000..ccbdf789d --- /dev/null +++ b/typescript-generator-core/.nondex/haVyOflduJLyKNRQBfcc+1etHZmgkbmSmP01QuDL57c=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=3046822 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=haVyOflduJLyKNRQBfcc+1etHZmgkbmSmP01QuDL57c= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/haVyOflduJLyKNRQBfcc+1etHZmgkbmSmP01QuDL57c=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/haVyOflduJLyKNRQBfcc+1etHZmgkbmSmP01QuDL57c=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..74f2cd590 --- /dev/null +++ b/typescript-generator-core/.nondex/haVyOflduJLyKNRQBfcc+1etHZmgkbmSmP01QuDL57c=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.246 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.246 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/haVyOflduJLyKNRQBfcc+1etHZmgkbmSmP01QuDL57c=/failures b/typescript-generator-core/.nondex/haVyOflduJLyKNRQBfcc+1etHZmgkbmSmP01QuDL57c=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/haVyOflduJLyKNRQBfcc+1etHZmgkbmSmP01QuDL57c=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/haVyOflduJLyKNRQBfcc+1etHZmgkbmSmP01QuDL57c=/invocations b/typescript-generator-core/.nondex/haVyOflduJLyKNRQBfcc+1etHZmgkbmSmP01QuDL57c=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/haVyOflduJLyKNRQBfcc+1etHZmgkbmSmP01QuDL57c=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/htYb5cLd+Tb74dxMzgiXorxMS6notFDB+ed4PEIUQGM=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/htYb5cLd+Tb74dxMzgiXorxMS6notFDB+ed4PEIUQGM=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..8cbb19944 --- /dev/null +++ b/typescript-generator-core/.nondex/htYb5cLd+Tb74dxMzgiXorxMS6notFDB+ed4PEIUQGM=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/htYb5cLd+Tb74dxMzgiXorxMS6notFDB+ed4PEIUQGM=/config b/typescript-generator-core/.nondex/htYb5cLd+Tb74dxMzgiXorxMS6notFDB+ed4PEIUQGM=/config new file mode 100644 index 000000000..374b6047b --- /dev/null +++ b/typescript-generator-core/.nondex/htYb5cLd+Tb74dxMzgiXorxMS6notFDB+ed4PEIUQGM=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=2632382 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=htYb5cLd+Tb74dxMzgiXorxMS6notFDB+ed4PEIUQGM= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/htYb5cLd+Tb74dxMzgiXorxMS6notFDB+ed4PEIUQGM=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/htYb5cLd+Tb74dxMzgiXorxMS6notFDB+ed4PEIUQGM=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..94d5fc51b --- /dev/null +++ b/typescript-generator-core/.nondex/htYb5cLd+Tb74dxMzgiXorxMS6notFDB+ed4PEIUQGM=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.231 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.23 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/htYb5cLd+Tb74dxMzgiXorxMS6notFDB+ed4PEIUQGM=/failures b/typescript-generator-core/.nondex/htYb5cLd+Tb74dxMzgiXorxMS6notFDB+ed4PEIUQGM=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/htYb5cLd+Tb74dxMzgiXorxMS6notFDB+ed4PEIUQGM=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/htYb5cLd+Tb74dxMzgiXorxMS6notFDB+ed4PEIUQGM=/invocations b/typescript-generator-core/.nondex/htYb5cLd+Tb74dxMzgiXorxMS6notFDB+ed4PEIUQGM=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/htYb5cLd+Tb74dxMzgiXorxMS6notFDB+ed4PEIUQGM=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/hv0GrKvkMxBAxtJzvULcQgekx+QQsQiLkTBKUa7QEg=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/hv0GrKvkMxBAxtJzvULcQgekx+QQsQiLkTBKUa7QEg=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..c0d6eae86 --- /dev/null +++ b/typescript-generator-core/.nondex/hv0GrKvkMxBAxtJzvULcQgekx+QQsQiLkTBKUa7QEg=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/hv0GrKvkMxBAxtJzvULcQgekx+QQsQiLkTBKUa7QEg=/config b/typescript-generator-core/.nondex/hv0GrKvkMxBAxtJzvULcQgekx+QQsQiLkTBKUa7QEg=/config new file mode 100644 index 000000000..25eba1806 --- /dev/null +++ b/typescript-generator-core/.nondex/hv0GrKvkMxBAxtJzvULcQgekx+QQsQiLkTBKUa7QEg=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=3129710 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=hv0GrKvkMxBAxtJzvULcQgekx+QQsQiLkTBKUa7QEg= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/hv0GrKvkMxBAxtJzvULcQgekx+QQsQiLkTBKUa7QEg=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/hv0GrKvkMxBAxtJzvULcQgekx+QQsQiLkTBKUa7QEg=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..b28da9bc6 --- /dev/null +++ b/typescript-generator-core/.nondex/hv0GrKvkMxBAxtJzvULcQgekx+QQsQiLkTBKUa7QEg=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.238 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/hv0GrKvkMxBAxtJzvULcQgekx+QQsQiLkTBKUa7QEg=/failures b/typescript-generator-core/.nondex/hv0GrKvkMxBAxtJzvULcQgekx+QQsQiLkTBKUa7QEg=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/hv0GrKvkMxBAxtJzvULcQgekx+QQsQiLkTBKUa7QEg=/invocations b/typescript-generator-core/.nondex/hv0GrKvkMxBAxtJzvULcQgekx+QQsQiLkTBKUa7QEg=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/hv0GrKvkMxBAxtJzvULcQgekx+QQsQiLkTBKUa7QEg=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/hwKQMIDCUrJ3iS5pXbtD1jvA8i5UvwvIZX3hWFyWic=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/hwKQMIDCUrJ3iS5pXbtD1jvA8i5UvwvIZX3hWFyWic=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..5c84db2c6 --- /dev/null +++ b/typescript-generator-core/.nondex/hwKQMIDCUrJ3iS5pXbtD1jvA8i5UvwvIZX3hWFyWic=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/hwKQMIDCUrJ3iS5pXbtD1jvA8i5UvwvIZX3hWFyWic=/config b/typescript-generator-core/.nondex/hwKQMIDCUrJ3iS5pXbtD1jvA8i5UvwvIZX3hWFyWic=/config new file mode 100644 index 000000000..0e3f0512f --- /dev/null +++ b/typescript-generator-core/.nondex/hwKQMIDCUrJ3iS5pXbtD1jvA8i5UvwvIZX3hWFyWic=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=3295486 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=hwKQMIDCUrJ3iS5pXbtD1jvA8i5UvwvIZX3hWFyWic= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/hwKQMIDCUrJ3iS5pXbtD1jvA8i5UvwvIZX3hWFyWic=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/hwKQMIDCUrJ3iS5pXbtD1jvA8i5UvwvIZX3hWFyWic=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..3476b9afa --- /dev/null +++ b/typescript-generator-core/.nondex/hwKQMIDCUrJ3iS5pXbtD1jvA8i5UvwvIZX3hWFyWic=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.294 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.29 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/hwKQMIDCUrJ3iS5pXbtD1jvA8i5UvwvIZX3hWFyWic=/failures b/typescript-generator-core/.nondex/hwKQMIDCUrJ3iS5pXbtD1jvA8i5UvwvIZX3hWFyWic=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/hwKQMIDCUrJ3iS5pXbtD1jvA8i5UvwvIZX3hWFyWic=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/hwKQMIDCUrJ3iS5pXbtD1jvA8i5UvwvIZX3hWFyWic=/invocations b/typescript-generator-core/.nondex/hwKQMIDCUrJ3iS5pXbtD1jvA8i5UvwvIZX3hWFyWic=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/hwKQMIDCUrJ3iS5pXbtD1jvA8i5UvwvIZX3hWFyWic=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/i05CDwrhkMkQVnDbHvSjBlrKZhiO4VwGY1d8BmTYc=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/i05CDwrhkMkQVnDbHvSjBlrKZhiO4VwGY1d8BmTYc=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..3a9b17027 --- /dev/null +++ b/typescript-generator-core/.nondex/i05CDwrhkMkQVnDbHvSjBlrKZhiO4VwGY1d8BmTYc=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/i05CDwrhkMkQVnDbHvSjBlrKZhiO4VwGY1d8BmTYc=/config b/typescript-generator-core/.nondex/i05CDwrhkMkQVnDbHvSjBlrKZhiO4VwGY1d8BmTYc=/config new file mode 100644 index 000000000..37a34ddfa --- /dev/null +++ b/typescript-generator-core/.nondex/i05CDwrhkMkQVnDbHvSjBlrKZhiO4VwGY1d8BmTYc=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=4124366 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=i05CDwrhkMkQVnDbHvSjBlrKZhiO4VwGY1d8BmTYc= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/i05CDwrhkMkQVnDbHvSjBlrKZhiO4VwGY1d8BmTYc=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/i05CDwrhkMkQVnDbHvSjBlrKZhiO4VwGY1d8BmTYc=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..4d5984d0b --- /dev/null +++ b/typescript-generator-core/.nondex/i05CDwrhkMkQVnDbHvSjBlrKZhiO4VwGY1d8BmTYc=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.217 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.217 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/i05CDwrhkMkQVnDbHvSjBlrKZhiO4VwGY1d8BmTYc=/failures b/typescript-generator-core/.nondex/i05CDwrhkMkQVnDbHvSjBlrKZhiO4VwGY1d8BmTYc=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/i05CDwrhkMkQVnDbHvSjBlrKZhiO4VwGY1d8BmTYc=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/i05CDwrhkMkQVnDbHvSjBlrKZhiO4VwGY1d8BmTYc=/invocations b/typescript-generator-core/.nondex/i05CDwrhkMkQVnDbHvSjBlrKZhiO4VwGY1d8BmTYc=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/i05CDwrhkMkQVnDbHvSjBlrKZhiO4VwGY1d8BmTYc=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/i2ORl+hnxkCjTGJNwQ33DnhZfwGEebNQxVqUzOYh8Eg=.run b/typescript-generator-core/.nondex/i2ORl+hnxkCjTGJNwQ33DnhZfwGEebNQxVqUzOYh8Eg=.run new file mode 100644 index 000000000..86632ed94 --- /dev/null +++ b/typescript-generator-core/.nondex/i2ORl+hnxkCjTGJNwQ33DnhZfwGEebNQxVqUzOYh8Eg=.run @@ -0,0 +1,4 @@ +i2ORl+hnxkCjTGJNwQ33DnhZfwGEebNQxVqUzOYh8Eg= +s5Hn8Qoq0vZOv6gcIeUV0kfiiv9EGKgHrHLYOKmLSU= +V2eL4VGMJrMaEeMvuEqm9os3oRZSjiURW9NMbJDUNwA= +clean_yGXP0+UL24GlpafiDBGf2UucXFkHhk81owctYGVE9s= diff --git a/typescript-generator-core/.nondex/i2ORl+hnxkCjTGJNwQ33DnhZfwGEebNQxVqUzOYh8Eg=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/i2ORl+hnxkCjTGJNwQ33DnhZfwGEebNQxVqUzOYh8Eg=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..68d3c6083 --- /dev/null +++ b/typescript-generator-core/.nondex/i2ORl+hnxkCjTGJNwQ33DnhZfwGEebNQxVqUzOYh8Eg=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,132 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:210) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/i2ORl+hnxkCjTGJNwQ33DnhZfwGEebNQxVqUzOYh8Eg=/config b/typescript-generator-core/.nondex/i2ORl+hnxkCjTGJNwQ33DnhZfwGEebNQxVqUzOYh8Eg=/config new file mode 100644 index 000000000..04b47ea0f --- /dev/null +++ b/typescript-generator-core/.nondex/i2ORl+hnxkCjTGJNwQ33DnhZfwGEebNQxVqUzOYh8Eg=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=933178 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=i2ORl+hnxkCjTGJNwQ33DnhZfwGEebNQxVqUzOYh8Eg= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/i2ORl+hnxkCjTGJNwQ33DnhZfwGEebNQxVqUzOYh8Eg=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/i2ORl+hnxkCjTGJNwQ33DnhZfwGEebNQxVqUzOYh8Eg=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..a77c8e425 --- /dev/null +++ b/typescript-generator-core/.nondex/i2ORl+hnxkCjTGJNwQ33DnhZfwGEebNQxVqUzOYh8Eg=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,56 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.192 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.192 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:210) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/i2ORl+hnxkCjTGJNwQ33DnhZfwGEebNQxVqUzOYh8Eg=/failures b/typescript-generator-core/.nondex/i2ORl+hnxkCjTGJNwQ33DnhZfwGEebNQxVqUzOYh8Eg=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/i2ORl+hnxkCjTGJNwQ33DnhZfwGEebNQxVqUzOYh8Eg=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/i2ORl+hnxkCjTGJNwQ33DnhZfwGEebNQxVqUzOYh8Eg=/invocations b/typescript-generator-core/.nondex/i2ORl+hnxkCjTGJNwQ33DnhZfwGEebNQxVqUzOYh8Eg=/invocations new file mode 100644 index 000000000..7ad7d1da8 --- /dev/null +++ b/typescript-generator-core/.nondex/i2ORl+hnxkCjTGJNwQ33DnhZfwGEebNQxVqUzOYh8Eg=/invocations @@ -0,0 +1,2 @@ +COUNT:67 +SHUFFLES:67 diff --git a/typescript-generator-core/.nondex/i2ORl+hnxkCjTGJNwQ33DnhZfwGEebNQxVqUzOYh8Eg=/test_results.html b/typescript-generator-core/.nondex/i2ORl+hnxkCjTGJNwQ33DnhZfwGEebNQxVqUzOYh8Eg=/test_results.html new file mode 100644 index 000000000..cc9aae726 --- /dev/null +++ b/typescript-generator-core/.nondex/i2ORl+hnxkCjTGJNwQ33DnhZfwGEebNQxVqUzOYh8Eg=/test_results.html @@ -0,0 +1 @@ +Test Results
Test Name9331789746221016066
cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces
\ No newline at end of file diff --git a/typescript-generator-core/.nondex/i8Id3P8avEi+dzpdpirqc0pl92D8AMrrCBqx4kaNIao=.run b/typescript-generator-core/.nondex/i8Id3P8avEi+dzpdpirqc0pl92D8AMrrCBqx4kaNIao=.run new file mode 100644 index 000000000..b38ee73e5 --- /dev/null +++ b/typescript-generator-core/.nondex/i8Id3P8avEi+dzpdpirqc0pl92D8AMrrCBqx4kaNIao=.run @@ -0,0 +1,11 @@ +i8Id3P8avEi+dzpdpirqc0pl92D8AMrrCBqx4kaNIao= +5DJQZ25nYzfEWYFKOTHWJdsxu7ZqgrwXDiGgOondRa0= +x1cGhgCx5MiEP5B+6xyXdrREGC4cX23jYecAAFzPCYg= +1Pv+t+IolLj7ELbIXhaD0tdFhALAwQOcxOWrPjJkQfg= +rDtxvZUtJMFPRVz9By+o2OJDH90MWl03BbpjB57eIc= +6Noc3VFPRE4+GqNJHSJ+5B9C734fpLafs1eJBBItOo= +m7duNFl0RwmxvNgrd7nIOuaKSKm42PbJ0VOTqK5XYX0= +EjXx8R4lLhO9NldcCNYzMUmB9aZBidGHUSEbW5KwFxs= +2zmozzltoEU1WJrg8SsE4dGsULb8S+Lx3RIigIFfeA= +NexkTaOYVBgoXgdppoWKuji8qsSKnXAlPAd1FpUIeEE= +clean_Qm+JmMfa9XPm7l04xZurT2Ou+tTPMCXd5sDatVl3vs= diff --git a/typescript-generator-core/.nondex/i8Id3P8avEi+dzpdpirqc0pl92D8AMrrCBqx4kaNIao=/config b/typescript-generator-core/.nondex/i8Id3P8avEi+dzpdpirqc0pl92D8AMrrCBqx4kaNIao=/config new file mode 100644 index 000000000..edf55331e --- /dev/null +++ b/typescript-generator-core/.nondex/i8Id3P8avEi+dzpdpirqc0pl92D8AMrrCBqx4kaNIao=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=933178 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=i8Id3P8avEi+dzpdpirqc0pl92D8AMrrCBqx4kaNIao= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/i8Id3P8avEi+dzpdpirqc0pl92D8AMrrCBqx4kaNIao=/failures b/typescript-generator-core/.nondex/i8Id3P8avEi+dzpdpirqc0pl92D8AMrrCBqx4kaNIao=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/i8Id3P8avEi+dzpdpirqc0pl92D8AMrrCBqx4kaNIao=/invocations b/typescript-generator-core/.nondex/i8Id3P8avEi+dzpdpirqc0pl92D8AMrrCBqx4kaNIao=/invocations new file mode 100644 index 000000000..c164bf6ef --- /dev/null +++ b/typescript-generator-core/.nondex/i8Id3P8avEi+dzpdpirqc0pl92D8AMrrCBqx4kaNIao=/invocations @@ -0,0 +1,2 @@ +COUNT:16 +SHUFFLES:16 diff --git a/typescript-generator-core/.nondex/i8Id3P8avEi+dzpdpirqc0pl92D8AMrrCBqx4kaNIao=/test_results.html b/typescript-generator-core/.nondex/i8Id3P8avEi+dzpdpirqc0pl92D8AMrrCBqx4kaNIao=/test_results.html new file mode 100644 index 000000000..dd0ef9963 --- /dev/null +++ b/typescript-generator-core/.nondex/i8Id3P8avEi+dzpdpirqc0pl92D8AMrrCBqx4kaNIao=/test_results.html @@ -0,0 +1 @@ +Test Results
Test Name93317897462210160661057510109895411403981181842122328612647301306174
\ No newline at end of file diff --git a/typescript-generator-core/.nondex/iAKl0eN3vvLzBS4Sy5MPuAIuBdLofbBg7qAIJhKGfY=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/iAKl0eN3vvLzBS4Sy5MPuAIuBdLofbBg7qAIJhKGfY=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..548c4bda5 --- /dev/null +++ b/typescript-generator-core/.nondex/iAKl0eN3vvLzBS4Sy5MPuAIuBdLofbBg7qAIJhKGfY=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/iAKl0eN3vvLzBS4Sy5MPuAIuBdLofbBg7qAIJhKGfY=/config b/typescript-generator-core/.nondex/iAKl0eN3vvLzBS4Sy5MPuAIuBdLofbBg7qAIJhKGfY=/config new file mode 100644 index 000000000..b8f422547 --- /dev/null +++ b/typescript-generator-core/.nondex/iAKl0eN3vvLzBS4Sy5MPuAIuBdLofbBg7qAIJhKGfY=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=3709926 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=iAKl0eN3vvLzBS4Sy5MPuAIuBdLofbBg7qAIJhKGfY= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/iAKl0eN3vvLzBS4Sy5MPuAIuBdLofbBg7qAIJhKGfY=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/iAKl0eN3vvLzBS4Sy5MPuAIuBdLofbBg7qAIJhKGfY=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..305cfa251 --- /dev/null +++ b/typescript-generator-core/.nondex/iAKl0eN3vvLzBS4Sy5MPuAIuBdLofbBg7qAIJhKGfY=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.263 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/iAKl0eN3vvLzBS4Sy5MPuAIuBdLofbBg7qAIJhKGfY=/failures b/typescript-generator-core/.nondex/iAKl0eN3vvLzBS4Sy5MPuAIuBdLofbBg7qAIJhKGfY=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/iAKl0eN3vvLzBS4Sy5MPuAIuBdLofbBg7qAIJhKGfY=/invocations b/typescript-generator-core/.nondex/iAKl0eN3vvLzBS4Sy5MPuAIuBdLofbBg7qAIJhKGfY=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/iAKl0eN3vvLzBS4Sy5MPuAIuBdLofbBg7qAIJhKGfY=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/iHXYdfihVjamzcN1fZe1pw2o7mOWvF2ahUO63BR0r78=.run b/typescript-generator-core/.nondex/iHXYdfihVjamzcN1fZe1pw2o7mOWvF2ahUO63BR0r78=.run new file mode 100644 index 000000000..82d728bf0 --- /dev/null +++ b/typescript-generator-core/.nondex/iHXYdfihVjamzcN1fZe1pw2o7mOWvF2ahUO63BR0r78=.run @@ -0,0 +1,4 @@ +iHXYdfihVjamzcN1fZe1pw2o7mOWvF2ahUO63BR0r78= +ZnGemHBLK++JinhoRm2nnd+bnJqe6A20l6N1J5Tw938= +FRuz6vAgVSQoS9M+lQRBuGt5qAujBbFkDl3ouiTOV88= +clean_44pNUL6cEaAOV5PPPjpFA1Usj4kWq4QLKCxU3uPMDYc= diff --git a/typescript-generator-core/.nondex/iHXYdfihVjamzcN1fZe1pw2o7mOWvF2ahUO63BR0r78=/failures b/typescript-generator-core/.nondex/iHXYdfihVjamzcN1fZe1pw2o7mOWvF2ahUO63BR0r78=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/iHXYdfihVjamzcN1fZe1pw2o7mOWvF2ahUO63BR0r78=/test_results.html b/typescript-generator-core/.nondex/iHXYdfihVjamzcN1fZe1pw2o7mOWvF2ahUO63BR0r78=/test_results.html new file mode 100644 index 000000000..ee93290bb --- /dev/null +++ b/typescript-generator-core/.nondex/iHXYdfihVjamzcN1fZe1pw2o7mOWvF2ahUO63BR0r78=/test_results.html @@ -0,0 +1 @@ +Test Results
Test Name9331789746221016066
\ No newline at end of file diff --git a/typescript-generator-core/.nondex/j6kwc6DVB1GU8gQbhPVHDr47qw62eoCzXSu41fDe+f0=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/j6kwc6DVB1GU8gQbhPVHDr47qw62eoCzXSu41fDe+f0=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..dd2259030 --- /dev/null +++ b/typescript-generator-core/.nondex/j6kwc6DVB1GU8gQbhPVHDr47qw62eoCzXSu41fDe+f0=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/j6kwc6DVB1GU8gQbhPVHDr47qw62eoCzXSu41fDe+f0=/config b/typescript-generator-core/.nondex/j6kwc6DVB1GU8gQbhPVHDr47qw62eoCzXSu41fDe+f0=/config new file mode 100644 index 000000000..1239679d2 --- /dev/null +++ b/typescript-generator-core/.nondex/j6kwc6DVB1GU8gQbhPVHDr47qw62eoCzXSu41fDe+f0=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1016066 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=j6kwc6DVB1GU8gQbhPVHDr47qw62eoCzXSu41fDe+f0= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/j6kwc6DVB1GU8gQbhPVHDr47qw62eoCzXSu41fDe+f0=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/j6kwc6DVB1GU8gQbhPVHDr47qw62eoCzXSu41fDe+f0=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..b32c1eb3f --- /dev/null +++ b/typescript-generator-core/.nondex/j6kwc6DVB1GU8gQbhPVHDr47qw62eoCzXSu41fDe+f0=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.229 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.228 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/j6kwc6DVB1GU8gQbhPVHDr47qw62eoCzXSu41fDe+f0=/failures b/typescript-generator-core/.nondex/j6kwc6DVB1GU8gQbhPVHDr47qw62eoCzXSu41fDe+f0=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/j6kwc6DVB1GU8gQbhPVHDr47qw62eoCzXSu41fDe+f0=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/j6kwc6DVB1GU8gQbhPVHDr47qw62eoCzXSu41fDe+f0=/invocations b/typescript-generator-core/.nondex/j6kwc6DVB1GU8gQbhPVHDr47qw62eoCzXSu41fDe+f0=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/j6kwc6DVB1GU8gQbhPVHDr47qw62eoCzXSu41fDe+f0=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/jnbYNO1HWorJSaEJwcez2CDcGDW4Xf8iM5yaxG7kw=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/jnbYNO1HWorJSaEJwcez2CDcGDW4Xf8iM5yaxG7kw=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..66a0a5794 --- /dev/null +++ b/typescript-generator-core/.nondex/jnbYNO1HWorJSaEJwcez2CDcGDW4Xf8iM5yaxG7kw=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/jnbYNO1HWorJSaEJwcez2CDcGDW4Xf8iM5yaxG7kw=/config b/typescript-generator-core/.nondex/jnbYNO1HWorJSaEJwcez2CDcGDW4Xf8iM5yaxG7kw=/config new file mode 100644 index 000000000..617b78988 --- /dev/null +++ b/typescript-generator-core/.nondex/jnbYNO1HWorJSaEJwcez2CDcGDW4Xf8iM5yaxG7kw=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=2176498 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=jnbYNO1HWorJSaEJwcez2CDcGDW4Xf8iM5yaxG7kw= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/jnbYNO1HWorJSaEJwcez2CDcGDW4Xf8iM5yaxG7kw=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/jnbYNO1HWorJSaEJwcez2CDcGDW4Xf8iM5yaxG7kw=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..7a856f75d --- /dev/null +++ b/typescript-generator-core/.nondex/jnbYNO1HWorJSaEJwcez2CDcGDW4Xf8iM5yaxG7kw=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.227 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.223 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/jnbYNO1HWorJSaEJwcez2CDcGDW4Xf8iM5yaxG7kw=/failures b/typescript-generator-core/.nondex/jnbYNO1HWorJSaEJwcez2CDcGDW4Xf8iM5yaxG7kw=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/jnbYNO1HWorJSaEJwcez2CDcGDW4Xf8iM5yaxG7kw=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/jnbYNO1HWorJSaEJwcez2CDcGDW4Xf8iM5yaxG7kw=/invocations b/typescript-generator-core/.nondex/jnbYNO1HWorJSaEJwcez2CDcGDW4Xf8iM5yaxG7kw=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/jnbYNO1HWorJSaEJwcez2CDcGDW4Xf8iM5yaxG7kw=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/juY9nYid531ZNaBfPFlaxLZCtKA4UVUQgXoiU3j5wU=.run b/typescript-generator-core/.nondex/juY9nYid531ZNaBfPFlaxLZCtKA4UVUQgXoiU3j5wU=.run new file mode 100644 index 000000000..f18374d0e --- /dev/null +++ b/typescript-generator-core/.nondex/juY9nYid531ZNaBfPFlaxLZCtKA4UVUQgXoiU3j5wU=.run @@ -0,0 +1,101 @@ +juY9nYid531ZNaBfPFlaxLZCtKA4UVUQgXoiU3j5wU= +d9kMVtmPTDP3A1+VGekiYm0b1Xj5aWUcDscdlxZH+7s= +2I2ip0HCohnVIQMWTBRF9WS+atFeo6IP8glTdS4z8= +apm9gRLL8ia1i2HFiPOCFlFlwroJPk5SzV52tC5BAsk= +lujMkW6dKNcyJqLjD5CPSPDZYVLsPAlCkTuBudk2bo= +yyuVus9hpQPbKXyIyztvArjhGgAO3H1xMf3fDnGiKU= +XUcFiqTgD0+xA3aOYVbWltkX8bFwXqxDcmiUjnwFsg= +s8kMxLf69ybVo7mGAkM4PT1icz78PVkaXwgwtCS4ts= +FtnL+eUO41htP4b2wgb48Q00cJPRcI1B6KhaA25kUqM= +1yCUzaN9w0TGCM2DlgVBab3KLWnOTswja11UEGlGPhU= +rlyvLEdSZjNouLEbevwpqic7LPlBvSgl9vQfVcs8C9k= +8QE1Mn5QDWaPpZY4k+w2a4hw5HHxfZjJPhTZ5JFWQQ= +3PdyDZo5vzFteYaI++wCkBWSkFfAPjtb3MM0eSDbu8s= +CL+uvsn6YwNypzeM09oUgmkMpknQCAMFhinXHWQLs= +q1A7PjDIOiFUGqmSXCpV4qeUMGwFRsgeLRMvjyenBw= +dc4BezG2BvElOvAVzMwfR6kPcRU1HwL4bTo6jb3OLQ= +HkGtTWcm0T7iItq2i9JOODEhuCHQDnUHWHKjSRekthw= +ued4XXufYvnEvI29hQGnNmygv3DPvsKfhlFKwoTR8wg= +S1JwOnm2iVC7NXJvO3LU4JQHhMhf1SChOhVECicwDU= +IT0cCQ8ko6ru0x1FA+yYVZ2UPkfRV7h3ENa4mkT+Yyc= +qWbT7xmVy0LTunS4XIQaUKq43HenPa+WeOhOwCSElzE= +dKjkCl+kkamBUbFcy+2E4PkcDZDsFBEO+OMABwMqZ+E= +JtyyMxYVnv04QZJD7ZE60t9whx2veUJxpvrkTQ6YQ= +LwbJJRSCrijAjatFVBBsMUYss8p94uLCtVo4ycnDuGo= +P5L8IonT59bHDHa2m3UG+2DHUm9B0vb8moGLeKVg+hI= +LU+YGB+xF8USB5hZ4AOgsh0sXVxV93lNZOeeON+0Pg= +sFOB+8LfuyGDadtB92RowXQ0PZUt7QNsi30GmjDiTw= +60edUpbR0xQGw9nb3S1ST6LjHXZ7XfQPuF+jp1REf4= +TwUkM4rcOJTvOfa4WeWrIOCq77yDvgzCbDfr1MOsuA= +es8pRRuJL+j82Ig22ZyDUkydTVuKmp5W6DtUH8RMAhU= +3AhA4z+r7csV555QbOgdHOR6vd4I1W+a+CI+7M5CVw= +fHPBVBGnIlGPugKWM3bvx5vjfNYxETZjrHGCFlqvP8= +qp4MCgdONBnM4I2NXOMoigeDcpqyLIrKGWFuqj6Gio4= +gOGdJQxqj4LZD9YZ38c1+pN2hDhvY1VJQIylRP5YUa4= +XuK+6sbj2IdvBZf2Rn+NYZvBLX8iNnxBnt0u83scjuI= +PYWtANUAhUFg3nNZwxmUSHevcHmsuwaqtdjO9NOaSeo= +63PSWlUbwN95vqhtb5PAam+GIMbUdOdozMlvSQYHUw= +bK24HdMfpgYTuvmfgWBZZmvxRk6D5PevNxNgtBr6hKw= +Lgn1QP2LLVv29vX1vg1D5qM+fUs7kKGgvpEbgl6lU0= +GW5iW0gmfn902WlpVfe9sprZKsAlOEcmT3uT0jqvMSQ= +c48c39h4hVIBcTgRUicQ+izasFb5IES0ZQNUcHP65U= +htYb5cLd+Tb74dxMzgiXorxMS6notFDB+ed4PEIUQGM= +ophAF+FrKtEHsSaT9YecEkjR67vSZTfWjBqgXNvo4g= +wvkxol0OUU6KXVmbJMCB9Nh2ZOrL3yWYzwB2uRYR0s= +ykC2o1j8ntKRXpHSE5Y1lVdGcxRqbnCI0J94HFqmFSk= +NCe83z0b5x2rGbV3xGTLwLGl7D3FuHOIUOAVIw+Vdo= +vxZ23uRq5cSotRs+vx+0uZjXYVfBc36g9Tjnlq0HrOk= +OVxcNLHDJoCxI1SOvgPIJnPLm+m5a7mvoCsjQaBMd00= +BepmogpPeY6Rhwktn6YmiDlaJGz51V80PQdmu3J4Q= +7qzF+a71bggwvNePzitde5tbtuWgJLWrVRdUT8+efgE= +0GsHKdGU2zzfw9zTWUpOy1uhUiFaQfbpOkXVTciAbPc= +haVyOflduJLyKNRQBfcc+1etHZmgkbmSmP01QuDL57c= +rYtyDyHonIXKEhg6YKj29JsDt0oZCRLpgOrRqrmBf8= +gOkBtpvauosBV+m1f8cBWiBwR7XpurnalNEsixZwnwc= +x2uByaqtn857kFvm2o5yP132EInjqkDx+oLUaujaLVc= +UQeKq8s4JdmurY1wQM1mHkFJ9+DpDszjqId5Nh9R3IE= +bcYyq+KJukAIdC9L6pkpRoowqwqEfypJMnv6PEegH0Y= +hwKQMIDCUrJ3iS5pXbtD1jvA8i5UvwvIZX3hWFyWic= +7FOygE1nTOp7rEKg8kHsTIWUi4qRZ0Tgxs8hemn4sc= +EgzPWQQwEchOXb7zdnlIF0GCdM7yV6dI7NJoMpmDSg= +5PywmylO9KED3bISqf6T674WAMJMMpAjOrT0FzJDaNg= +tqT7VvJHoEszz720+0WcA5F0r8cU2+vBJQJbhzxNQk= +YngcCGCQq3ZY9lEC5J7fo9g21E2rV9ky0VSAb2jrfs= +VzQ32D9F7IM6RlIASnFEWRoRtNs4Fmxm8Hj7O62joAo= +qXKcVmg1sRafgrLLk2O4pz9LVFPI23UDz9TSIKcRAs= +mGyU2COmJQJEmC2B99uIl6NSgbjVsdrTwX8RtLSg61A= +m+dYte6Gtv0UKmI2sMOBAjySVXeTTmQbEqYSQgIZTic= +iAKl0eN3vvLzBS4Sy5MPuAIuBdLofbBg7qAIJhKGfY= +WiV6DF0EXnORIOF5qFlPb8i8rWkYML5VI+MNeU5Yk4= +rhB8ao0Gu0MEDMH30omt6pMgrDonRx4jCCwhVEfUtDg= ++H3FYTfyNm1oJxRXHTuPcKihld7qZFhTd4UOICFm40= +v6qXSY8FsXoJ3Ut8yejoxENu748yknhCNx9wmyGdwc= +5UlZAGgUU7OjteizQSh179pZBMLqpmKVi0jcsfScyy4= +Vbo43F+mvt7rLto7VMICmsX+ZyksWru58H0mZ13OO4A= +qi8B8OvSpyw9owcFvGJ+Vu23TpACkmhbyvOINfQ6DZ4= +K8hhZr8Db1M6v4gwKM2j1Mhv64s9Z7ajYXTcQurFScw= +7OzaSMfmpXVM1zk3luoL6y8CKvPYCzxChI03YUsY2I= +i05CDwrhkMkQVnDbHvSjBlrKZhiO4VwGY1d8BmTYc= +E7mHWKKZZsrtsazxIcCfX1nI4ycuT7JXf+EwM+sSqo= +u5HgQFP5Sw5s15QP9Ns4e6saBv8O83AAfyWL7Tg7k= +EKbrs3uSFnpOAJAlRfJ3MUzbvKx8ndwHspe3dVj6ns= +usvaDLi+8yT5KWMYgSajM3dBKnHRiSrlp7dqBjax2k= +rbyvoyFVG2VTWkj6pmSOKDQz8wvZH29KepmEjOL4A= +sD6Ylt1FBgXXZM1qccFucGn0P6QsA5ya99RQbHmm0J4= +hDChMiwmiq6nx3WhCCDE6qfBbLw384xLKTwN7hWx5gM= +zyzW8NTWFymftc+5J05Bu5aO6NPv0qDZAYeuVHjQ0XA= +dT+qj6kq5eXfe4eIwUtAWMZzknQBly4zHLp1A1G9YnU= +XTTVWQlAMFnjjmLVXbnf2GCbD9nNHkrXWi3bJjBnpY= +UUjuzMSeTL4SiGKrGAskASBRd4inBNfxH78RFg3EZk= +XsrW4S8o0fg9QxvSvLQK9eSpqgZkLzMwokcHTwat7Ak= +7zF3rTx5ZnNHfiA7Xl8cQA78Y8GDTDmh1hZ9kknSZAw= +NeH7o96P0iOZWIVwDKhHkdLs5u4GEVJCPqGoHfCYo= +Aba3AvYYOWwf0sm5A0G8hK3XLqo3oSGtHtc3vQLs= +TQ+N66p9K+xfTj1BQ8LPRyJsVwNgy9juVgSjTgSM3k= +n+uBZeMAXhUytpyjEgrcQTXcKLihaDgohNDEk010FDY= +BsvNkTNuv7IOgUJAIn6dHWxfx0kYH2JZ6m7AW0rzw= +8bNeXuKMr9sFgRAPI6cXID98ezrudXm2sKSIriCIw= +8J0OsaN6I+HKKrBOi8akQokOKhIJo5PBMgnMredXrc= +bUiPtQGguD670rfsS34aJILL5fmeDf6zwrMqHwkw= +lxTEBP2Bd0f8QOE+QvUc6pgK8KqcDCfpMfi4M7qOnk= +clean_Qw5A+iZzBNxcpcWLRsYYvQ0ULiiKBlhFblHTQFc6pl8= diff --git a/typescript-generator-core/.nondex/juY9nYid531ZNaBfPFlaxLZCtKA4UVUQgXoiU3j5wU=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/juY9nYid531ZNaBfPFlaxLZCtKA4UVUQgXoiU3j5wU=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..43a182492 --- /dev/null +++ b/typescript-generator-core/.nondex/juY9nYid531ZNaBfPFlaxLZCtKA4UVUQgXoiU3j5wU=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/juY9nYid531ZNaBfPFlaxLZCtKA4UVUQgXoiU3j5wU=/config b/typescript-generator-core/.nondex/juY9nYid531ZNaBfPFlaxLZCtKA4UVUQgXoiU3j5wU=/config new file mode 100644 index 000000000..0bf6d1a4d --- /dev/null +++ b/typescript-generator-core/.nondex/juY9nYid531ZNaBfPFlaxLZCtKA4UVUQgXoiU3j5wU=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=933178 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=juY9nYid531ZNaBfPFlaxLZCtKA4UVUQgXoiU3j5wU= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/juY9nYid531ZNaBfPFlaxLZCtKA4UVUQgXoiU3j5wU=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/juY9nYid531ZNaBfPFlaxLZCtKA4UVUQgXoiU3j5wU=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..3fe6dbc45 --- /dev/null +++ b/typescript-generator-core/.nondex/juY9nYid531ZNaBfPFlaxLZCtKA4UVUQgXoiU3j5wU=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.193 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/juY9nYid531ZNaBfPFlaxLZCtKA4UVUQgXoiU3j5wU=/failures b/typescript-generator-core/.nondex/juY9nYid531ZNaBfPFlaxLZCtKA4UVUQgXoiU3j5wU=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/juY9nYid531ZNaBfPFlaxLZCtKA4UVUQgXoiU3j5wU=/invocations b/typescript-generator-core/.nondex/juY9nYid531ZNaBfPFlaxLZCtKA4UVUQgXoiU3j5wU=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/juY9nYid531ZNaBfPFlaxLZCtKA4UVUQgXoiU3j5wU=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/juY9nYid531ZNaBfPFlaxLZCtKA4UVUQgXoiU3j5wU=/test_results.html b/typescript-generator-core/.nondex/juY9nYid531ZNaBfPFlaxLZCtKA4UVUQgXoiU3j5wU=/test_results.html new file mode 100644 index 000000000..c1ab2c3a2 --- /dev/null +++ b/typescript-generator-core/.nondex/juY9nYid531ZNaBfPFlaxLZCtKA4UVUQgXoiU3j5wU=/test_results.html @@ -0,0 +1 @@ +Test Results
Test Name93317897462210160661057510109895411403981181842122328612647301306174134761813890621430506147195015133941554838159628216377261679170172061417620581803502184494618863901927834196927820107222052166209361021350542176498221794222593862300830234227423837182425162246660625080502549494259093826323822673826271527027567142798158283960228810462922490296393430053783046822308826631297103171154321259832540423295486333693033783743419818346126235027063544150358559436270383668482370992637513703792814383425838757023917146395859040000344041478408292241243664165810420725442486984290142433158643730304414474445591844973624538806458025046216944663138470458247460264787470482891448703584911802495324649946905036134
cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces
\ No newline at end of file diff --git a/typescript-generator-core/.nondex/kLbxLZL1eZ0oh7S00lXmvOZQhSy2KGPZSAksjv9fqE=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/kLbxLZL1eZ0oh7S00lXmvOZQhSy2KGPZSAksjv9fqE=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..89c1c2e15 --- /dev/null +++ b/typescript-generator-core/.nondex/kLbxLZL1eZ0oh7S00lXmvOZQhSy2KGPZSAksjv9fqE=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/kLbxLZL1eZ0oh7S00lXmvOZQhSy2KGPZSAksjv9fqE=/config b/typescript-generator-core/.nondex/kLbxLZL1eZ0oh7S00lXmvOZQhSy2KGPZSAksjv9fqE=/config new file mode 100644 index 000000000..48a2f15a0 --- /dev/null +++ b/typescript-generator-core/.nondex/kLbxLZL1eZ0oh7S00lXmvOZQhSy2KGPZSAksjv9fqE=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=2093610 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=kLbxLZL1eZ0oh7S00lXmvOZQhSy2KGPZSAksjv9fqE= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/kLbxLZL1eZ0oh7S00lXmvOZQhSy2KGPZSAksjv9fqE=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/kLbxLZL1eZ0oh7S00lXmvOZQhSy2KGPZSAksjv9fqE=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..eccbe3d93 --- /dev/null +++ b/typescript-generator-core/.nondex/kLbxLZL1eZ0oh7S00lXmvOZQhSy2KGPZSAksjv9fqE=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.195 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.192 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/kLbxLZL1eZ0oh7S00lXmvOZQhSy2KGPZSAksjv9fqE=/failures b/typescript-generator-core/.nondex/kLbxLZL1eZ0oh7S00lXmvOZQhSy2KGPZSAksjv9fqE=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/kLbxLZL1eZ0oh7S00lXmvOZQhSy2KGPZSAksjv9fqE=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/kLbxLZL1eZ0oh7S00lXmvOZQhSy2KGPZSAksjv9fqE=/invocations b/typescript-generator-core/.nondex/kLbxLZL1eZ0oh7S00lXmvOZQhSy2KGPZSAksjv9fqE=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/kLbxLZL1eZ0oh7S00lXmvOZQhSy2KGPZSAksjv9fqE=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/kSwJKtMeRrzNjRCEYb3eNrBasaA3gWZBEp1ku3AFnk8=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/kSwJKtMeRrzNjRCEYb3eNrBasaA3gWZBEp1ku3AFnk8=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..b3450e404 --- /dev/null +++ b/typescript-generator-core/.nondex/kSwJKtMeRrzNjRCEYb3eNrBasaA3gWZBEp1ku3AFnk8=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/kSwJKtMeRrzNjRCEYb3eNrBasaA3gWZBEp1ku3AFnk8=/config b/typescript-generator-core/.nondex/kSwJKtMeRrzNjRCEYb3eNrBasaA3gWZBEp1ku3AFnk8=/config new file mode 100644 index 000000000..b3ce8e39d --- /dev/null +++ b/typescript-generator-core/.nondex/kSwJKtMeRrzNjRCEYb3eNrBasaA3gWZBEp1ku3AFnk8=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=2715270 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=kSwJKtMeRrzNjRCEYb3eNrBasaA3gWZBEp1ku3AFnk8= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/kSwJKtMeRrzNjRCEYb3eNrBasaA3gWZBEp1ku3AFnk8=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/kSwJKtMeRrzNjRCEYb3eNrBasaA3gWZBEp1ku3AFnk8=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..55d87e544 --- /dev/null +++ b/typescript-generator-core/.nondex/kSwJKtMeRrzNjRCEYb3eNrBasaA3gWZBEp1ku3AFnk8=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.261 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/kSwJKtMeRrzNjRCEYb3eNrBasaA3gWZBEp1ku3AFnk8=/failures b/typescript-generator-core/.nondex/kSwJKtMeRrzNjRCEYb3eNrBasaA3gWZBEp1ku3AFnk8=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/kSwJKtMeRrzNjRCEYb3eNrBasaA3gWZBEp1ku3AFnk8=/invocations b/typescript-generator-core/.nondex/kSwJKtMeRrzNjRCEYb3eNrBasaA3gWZBEp1ku3AFnk8=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/kSwJKtMeRrzNjRCEYb3eNrBasaA3gWZBEp1ku3AFnk8=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/kYFQGEsVcS6Qa70HRoPpkHXmvaq7aaJuOrmOeQ4jnY=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/kYFQGEsVcS6Qa70HRoPpkHXmvaq7aaJuOrmOeQ4jnY=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..a7477a807 --- /dev/null +++ b/typescript-generator-core/.nondex/kYFQGEsVcS6Qa70HRoPpkHXmvaq7aaJuOrmOeQ4jnY=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/kYFQGEsVcS6Qa70HRoPpkHXmvaq7aaJuOrmOeQ4jnY=/config b/typescript-generator-core/.nondex/kYFQGEsVcS6Qa70HRoPpkHXmvaq7aaJuOrmOeQ4jnY=/config new file mode 100644 index 000000000..7c8b7690d --- /dev/null +++ b/typescript-generator-core/.nondex/kYFQGEsVcS6Qa70HRoPpkHXmvaq7aaJuOrmOeQ4jnY=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=4911802 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=kYFQGEsVcS6Qa70HRoPpkHXmvaq7aaJuOrmOeQ4jnY= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/kYFQGEsVcS6Qa70HRoPpkHXmvaq7aaJuOrmOeQ4jnY=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/kYFQGEsVcS6Qa70HRoPpkHXmvaq7aaJuOrmOeQ4jnY=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..5f185c24d --- /dev/null +++ b/typescript-generator-core/.nondex/kYFQGEsVcS6Qa70HRoPpkHXmvaq7aaJuOrmOeQ4jnY=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.206 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/kYFQGEsVcS6Qa70HRoPpkHXmvaq7aaJuOrmOeQ4jnY=/failures b/typescript-generator-core/.nondex/kYFQGEsVcS6Qa70HRoPpkHXmvaq7aaJuOrmOeQ4jnY=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/kYFQGEsVcS6Qa70HRoPpkHXmvaq7aaJuOrmOeQ4jnY=/invocations b/typescript-generator-core/.nondex/kYFQGEsVcS6Qa70HRoPpkHXmvaq7aaJuOrmOeQ4jnY=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/kYFQGEsVcS6Qa70HRoPpkHXmvaq7aaJuOrmOeQ4jnY=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/kz3ssDk0E677q6uZqAjxRdV4YwYGux3mTB32fwmZtgU=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/kz3ssDk0E677q6uZqAjxRdV4YwYGux3mTB32fwmZtgU=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..5174b610e --- /dev/null +++ b/typescript-generator-core/.nondex/kz3ssDk0E677q6uZqAjxRdV4YwYGux3mTB32fwmZtgU=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/kz3ssDk0E677q6uZqAjxRdV4YwYGux3mTB32fwmZtgU=/config b/typescript-generator-core/.nondex/kz3ssDk0E677q6uZqAjxRdV4YwYGux3mTB32fwmZtgU=/config new file mode 100644 index 000000000..dde9906fd --- /dev/null +++ b/typescript-generator-core/.nondex/kz3ssDk0E677q6uZqAjxRdV4YwYGux3mTB32fwmZtgU=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=2010722 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=kz3ssDk0E677q6uZqAjxRdV4YwYGux3mTB32fwmZtgU= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/kz3ssDk0E677q6uZqAjxRdV4YwYGux3mTB32fwmZtgU=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/kz3ssDk0E677q6uZqAjxRdV4YwYGux3mTB32fwmZtgU=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..a10bab7ff --- /dev/null +++ b/typescript-generator-core/.nondex/kz3ssDk0E677q6uZqAjxRdV4YwYGux3mTB32fwmZtgU=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.292 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.27 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/kz3ssDk0E677q6uZqAjxRdV4YwYGux3mTB32fwmZtgU=/failures b/typescript-generator-core/.nondex/kz3ssDk0E677q6uZqAjxRdV4YwYGux3mTB32fwmZtgU=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/kz3ssDk0E677q6uZqAjxRdV4YwYGux3mTB32fwmZtgU=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/kz3ssDk0E677q6uZqAjxRdV4YwYGux3mTB32fwmZtgU=/invocations b/typescript-generator-core/.nondex/kz3ssDk0E677q6uZqAjxRdV4YwYGux3mTB32fwmZtgU=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/kz3ssDk0E677q6uZqAjxRdV4YwYGux3mTB32fwmZtgU=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/l38BmQ7bLO89EuTwJ4jFGggaqCqsEpdhT2PfLK6CHys=.run b/typescript-generator-core/.nondex/l38BmQ7bLO89EuTwJ4jFGggaqCqsEpdhT2PfLK6CHys=.run new file mode 100644 index 000000000..b716fdae9 --- /dev/null +++ b/typescript-generator-core/.nondex/l38BmQ7bLO89EuTwJ4jFGggaqCqsEpdhT2PfLK6CHys=.run @@ -0,0 +1,11 @@ +l38BmQ7bLO89EuTwJ4jFGggaqCqsEpdhT2PfLK6CHys= +Ce6KMIBdhCnnbcheAL9ioq+8Djpt+NazeoXx0QZo6j0= +cw889t8uxHyzfx3ErPDU8f9uX7UlXwNCIBwTp0fsmYk= +A9owVc6ItAdDqyNI8JZCtM2++qDPiaOF9k6n+hXFco= +3qNsvNxLxWzI3GcVDi1w84ujLreDsMI1Xju+eJ+KyWE= +WxdOaqt7qOjkk4yUdjosE2k3mXlSQ1KE7GKdxUpfYko= +2j5wep7zgh0nCftkXUPVwmMxPOvWAl6IMKu1Ti6O42k= +dpjVkFMU32B7nkPxuJtWkJ2CrWG2adtBDFjIQEWnxIE= +Xk4ae3uEkyoFljW7NcXxqziIoNhop0dZTSiS76EhpY= +2zFHusL3cgYqJzpFofxhe9VbXpymE+d0lWdGBD1fDKE= +clean_sMII3+z9v0locOvVEVRA+zsqEQnysqMLD2Ujy7Ycyg= diff --git a/typescript-generator-core/.nondex/l38BmQ7bLO89EuTwJ4jFGggaqCqsEpdhT2PfLK6CHys=/config b/typescript-generator-core/.nondex/l38BmQ7bLO89EuTwJ4jFGggaqCqsEpdhT2PfLK6CHys=/config new file mode 100644 index 000000000..15940820e --- /dev/null +++ b/typescript-generator-core/.nondex/l38BmQ7bLO89EuTwJ4jFGggaqCqsEpdhT2PfLK6CHys=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=933178 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=l38BmQ7bLO89EuTwJ4jFGggaqCqsEpdhT2PfLK6CHys= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/l38BmQ7bLO89EuTwJ4jFGggaqCqsEpdhT2PfLK6CHys=/failures b/typescript-generator-core/.nondex/l38BmQ7bLO89EuTwJ4jFGggaqCqsEpdhT2PfLK6CHys=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/l38BmQ7bLO89EuTwJ4jFGggaqCqsEpdhT2PfLK6CHys=/invocations b/typescript-generator-core/.nondex/l38BmQ7bLO89EuTwJ4jFGggaqCqsEpdhT2PfLK6CHys=/invocations new file mode 100644 index 000000000..c164bf6ef --- /dev/null +++ b/typescript-generator-core/.nondex/l38BmQ7bLO89EuTwJ4jFGggaqCqsEpdhT2PfLK6CHys=/invocations @@ -0,0 +1,2 @@ +COUNT:16 +SHUFFLES:16 diff --git a/typescript-generator-core/.nondex/l38BmQ7bLO89EuTwJ4jFGggaqCqsEpdhT2PfLK6CHys=/test_results.html b/typescript-generator-core/.nondex/l38BmQ7bLO89EuTwJ4jFGggaqCqsEpdhT2PfLK6CHys=/test_results.html new file mode 100644 index 000000000..dd0ef9963 --- /dev/null +++ b/typescript-generator-core/.nondex/l38BmQ7bLO89EuTwJ4jFGggaqCqsEpdhT2PfLK6CHys=/test_results.html @@ -0,0 +1 @@ +Test Results
Test Name93317897462210160661057510109895411403981181842122328612647301306174
\ No newline at end of file diff --git a/typescript-generator-core/.nondex/l4L1eCtqjTQY0u1DzpDYE1bK+x1A3eDlmihYXmZ7eNc=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/l4L1eCtqjTQY0u1DzpDYE1bK+x1A3eDlmihYXmZ7eNc=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..93b6f2432 --- /dev/null +++ b/typescript-generator-core/.nondex/l4L1eCtqjTQY0u1DzpDYE1bK+x1A3eDlmihYXmZ7eNc=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/l4L1eCtqjTQY0u1DzpDYE1bK+x1A3eDlmihYXmZ7eNc=/config b/typescript-generator-core/.nondex/l4L1eCtqjTQY0u1DzpDYE1bK+x1A3eDlmihYXmZ7eNc=/config new file mode 100644 index 000000000..f306bc3c6 --- /dev/null +++ b/typescript-generator-core/.nondex/l4L1eCtqjTQY0u1DzpDYE1bK+x1A3eDlmihYXmZ7eNc=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=3336930 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=l4L1eCtqjTQY0u1DzpDYE1bK+x1A3eDlmihYXmZ7eNc= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/l4L1eCtqjTQY0u1DzpDYE1bK+x1A3eDlmihYXmZ7eNc=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/l4L1eCtqjTQY0u1DzpDYE1bK+x1A3eDlmihYXmZ7eNc=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..963472eff --- /dev/null +++ b/typescript-generator-core/.nondex/l4L1eCtqjTQY0u1DzpDYE1bK+x1A3eDlmihYXmZ7eNc=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.225 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/l4L1eCtqjTQY0u1DzpDYE1bK+x1A3eDlmihYXmZ7eNc=/failures b/typescript-generator-core/.nondex/l4L1eCtqjTQY0u1DzpDYE1bK+x1A3eDlmihYXmZ7eNc=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/l4L1eCtqjTQY0u1DzpDYE1bK+x1A3eDlmihYXmZ7eNc=/invocations b/typescript-generator-core/.nondex/l4L1eCtqjTQY0u1DzpDYE1bK+x1A3eDlmihYXmZ7eNc=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/l4L1eCtqjTQY0u1DzpDYE1bK+x1A3eDlmihYXmZ7eNc=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/ld9CFeq7llByjs60VLcbSHcfQaZdK8NFr4cN6Kjnc=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/ld9CFeq7llByjs60VLcbSHcfQaZdK8NFr4cN6Kjnc=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..5a3b822d7 --- /dev/null +++ b/typescript-generator-core/.nondex/ld9CFeq7llByjs60VLcbSHcfQaZdK8NFr4cN6Kjnc=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/ld9CFeq7llByjs60VLcbSHcfQaZdK8NFr4cN6Kjnc=/config b/typescript-generator-core/.nondex/ld9CFeq7llByjs60VLcbSHcfQaZdK8NFr4cN6Kjnc=/config new file mode 100644 index 000000000..a1129e64b --- /dev/null +++ b/typescript-generator-core/.nondex/ld9CFeq7llByjs60VLcbSHcfQaZdK8NFr4cN6Kjnc=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=3005378 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=ld9CFeq7llByjs60VLcbSHcfQaZdK8NFr4cN6Kjnc= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/ld9CFeq7llByjs60VLcbSHcfQaZdK8NFr4cN6Kjnc=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/ld9CFeq7llByjs60VLcbSHcfQaZdK8NFr4cN6Kjnc=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..305cfa251 --- /dev/null +++ b/typescript-generator-core/.nondex/ld9CFeq7llByjs60VLcbSHcfQaZdK8NFr4cN6Kjnc=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.263 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/ld9CFeq7llByjs60VLcbSHcfQaZdK8NFr4cN6Kjnc=/failures b/typescript-generator-core/.nondex/ld9CFeq7llByjs60VLcbSHcfQaZdK8NFr4cN6Kjnc=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/ld9CFeq7llByjs60VLcbSHcfQaZdK8NFr4cN6Kjnc=/invocations b/typescript-generator-core/.nondex/ld9CFeq7llByjs60VLcbSHcfQaZdK8NFr4cN6Kjnc=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/ld9CFeq7llByjs60VLcbSHcfQaZdK8NFr4cN6Kjnc=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/lhkLa52rcKWOdQ3jqQOTq+NORykJ3Dd1ew6fJzq8IvE=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/lhkLa52rcKWOdQ3jqQOTq+NORykJ3Dd1ew6fJzq8IvE=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..6eed9afcb --- /dev/null +++ b/typescript-generator-core/.nondex/lhkLa52rcKWOdQ3jqQOTq+NORykJ3Dd1ew6fJzq8IvE=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/lhkLa52rcKWOdQ3jqQOTq+NORykJ3Dd1ew6fJzq8IvE=/config b/typescript-generator-core/.nondex/lhkLa52rcKWOdQ3jqQOTq+NORykJ3Dd1ew6fJzq8IvE=/config new file mode 100644 index 000000000..252dd31ce --- /dev/null +++ b/typescript-generator-core/.nondex/lhkLa52rcKWOdQ3jqQOTq+NORykJ3Dd1ew6fJzq8IvE=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=2217942 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=lhkLa52rcKWOdQ3jqQOTq+NORykJ3Dd1ew6fJzq8IvE= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/lhkLa52rcKWOdQ3jqQOTq+NORykJ3Dd1ew6fJzq8IvE=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/lhkLa52rcKWOdQ3jqQOTq+NORykJ3Dd1ew6fJzq8IvE=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..32a4ebeaa --- /dev/null +++ b/typescript-generator-core/.nondex/lhkLa52rcKWOdQ3jqQOTq+NORykJ3Dd1ew6fJzq8IvE=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.22 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.216 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/lhkLa52rcKWOdQ3jqQOTq+NORykJ3Dd1ew6fJzq8IvE=/failures b/typescript-generator-core/.nondex/lhkLa52rcKWOdQ3jqQOTq+NORykJ3Dd1ew6fJzq8IvE=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/lhkLa52rcKWOdQ3jqQOTq+NORykJ3Dd1ew6fJzq8IvE=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/lhkLa52rcKWOdQ3jqQOTq+NORykJ3Dd1ew6fJzq8IvE=/invocations b/typescript-generator-core/.nondex/lhkLa52rcKWOdQ3jqQOTq+NORykJ3Dd1ew6fJzq8IvE=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/lhkLa52rcKWOdQ3jqQOTq+NORykJ3Dd1ew6fJzq8IvE=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/lujMkW6dKNcyJqLjD5CPSPDZYVLsPAlCkTuBudk2bo=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/lujMkW6dKNcyJqLjD5CPSPDZYVLsPAlCkTuBudk2bo=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..62507b79e --- /dev/null +++ b/typescript-generator-core/.nondex/lujMkW6dKNcyJqLjD5CPSPDZYVLsPAlCkTuBudk2bo=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/lujMkW6dKNcyJqLjD5CPSPDZYVLsPAlCkTuBudk2bo=/config b/typescript-generator-core/.nondex/lujMkW6dKNcyJqLjD5CPSPDZYVLsPAlCkTuBudk2bo=/config new file mode 100644 index 000000000..fd741de9c --- /dev/null +++ b/typescript-generator-core/.nondex/lujMkW6dKNcyJqLjD5CPSPDZYVLsPAlCkTuBudk2bo=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1098954 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=lujMkW6dKNcyJqLjD5CPSPDZYVLsPAlCkTuBudk2bo= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/lujMkW6dKNcyJqLjD5CPSPDZYVLsPAlCkTuBudk2bo=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/lujMkW6dKNcyJqLjD5CPSPDZYVLsPAlCkTuBudk2bo=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..e11230b94 --- /dev/null +++ b/typescript-generator-core/.nondex/lujMkW6dKNcyJqLjD5CPSPDZYVLsPAlCkTuBudk2bo=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.222 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.219 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/lujMkW6dKNcyJqLjD5CPSPDZYVLsPAlCkTuBudk2bo=/failures b/typescript-generator-core/.nondex/lujMkW6dKNcyJqLjD5CPSPDZYVLsPAlCkTuBudk2bo=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/lujMkW6dKNcyJqLjD5CPSPDZYVLsPAlCkTuBudk2bo=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/lujMkW6dKNcyJqLjD5CPSPDZYVLsPAlCkTuBudk2bo=/invocations b/typescript-generator-core/.nondex/lujMkW6dKNcyJqLjD5CPSPDZYVLsPAlCkTuBudk2bo=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/lujMkW6dKNcyJqLjD5CPSPDZYVLsPAlCkTuBudk2bo=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/lxTEBP2Bd0f8QOE+QvUc6pgK8KqcDCfpMfi4M7qOnk=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/lxTEBP2Bd0f8QOE+QvUc6pgK8KqcDCfpMfi4M7qOnk=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..302d5513a --- /dev/null +++ b/typescript-generator-core/.nondex/lxTEBP2Bd0f8QOE+QvUc6pgK8KqcDCfpMfi4M7qOnk=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/lxTEBP2Bd0f8QOE+QvUc6pgK8KqcDCfpMfi4M7qOnk=/config b/typescript-generator-core/.nondex/lxTEBP2Bd0f8QOE+QvUc6pgK8KqcDCfpMfi4M7qOnk=/config new file mode 100644 index 000000000..5966c2230 --- /dev/null +++ b/typescript-generator-core/.nondex/lxTEBP2Bd0f8QOE+QvUc6pgK8KqcDCfpMfi4M7qOnk=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=5036134 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=lxTEBP2Bd0f8QOE+QvUc6pgK8KqcDCfpMfi4M7qOnk= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/lxTEBP2Bd0f8QOE+QvUc6pgK8KqcDCfpMfi4M7qOnk=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/lxTEBP2Bd0f8QOE+QvUc6pgK8KqcDCfpMfi4M7qOnk=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..b99e1abdc --- /dev/null +++ b/typescript-generator-core/.nondex/lxTEBP2Bd0f8QOE+QvUc6pgK8KqcDCfpMfi4M7qOnk=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.267 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.266 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/lxTEBP2Bd0f8QOE+QvUc6pgK8KqcDCfpMfi4M7qOnk=/failures b/typescript-generator-core/.nondex/lxTEBP2Bd0f8QOE+QvUc6pgK8KqcDCfpMfi4M7qOnk=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/lxTEBP2Bd0f8QOE+QvUc6pgK8KqcDCfpMfi4M7qOnk=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/lxTEBP2Bd0f8QOE+QvUc6pgK8KqcDCfpMfi4M7qOnk=/invocations b/typescript-generator-core/.nondex/lxTEBP2Bd0f8QOE+QvUc6pgK8KqcDCfpMfi4M7qOnk=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/lxTEBP2Bd0f8QOE+QvUc6pgK8KqcDCfpMfi4M7qOnk=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/m+dYte6Gtv0UKmI2sMOBAjySVXeTTmQbEqYSQgIZTic=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/m+dYte6Gtv0UKmI2sMOBAjySVXeTTmQbEqYSQgIZTic=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..5e0a2af15 --- /dev/null +++ b/typescript-generator-core/.nondex/m+dYte6Gtv0UKmI2sMOBAjySVXeTTmQbEqYSQgIZTic=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/m+dYte6Gtv0UKmI2sMOBAjySVXeTTmQbEqYSQgIZTic=/config b/typescript-generator-core/.nondex/m+dYte6Gtv0UKmI2sMOBAjySVXeTTmQbEqYSQgIZTic=/config new file mode 100644 index 000000000..782d7b206 --- /dev/null +++ b/typescript-generator-core/.nondex/m+dYte6Gtv0UKmI2sMOBAjySVXeTTmQbEqYSQgIZTic=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=3668482 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=m+dYte6Gtv0UKmI2sMOBAjySVXeTTmQbEqYSQgIZTic= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/m+dYte6Gtv0UKmI2sMOBAjySVXeTTmQbEqYSQgIZTic=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/m+dYte6Gtv0UKmI2sMOBAjySVXeTTmQbEqYSQgIZTic=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..66aae9f6c --- /dev/null +++ b/typescript-generator-core/.nondex/m+dYte6Gtv0UKmI2sMOBAjySVXeTTmQbEqYSQgIZTic=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.239 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/m+dYte6Gtv0UKmI2sMOBAjySVXeTTmQbEqYSQgIZTic=/failures b/typescript-generator-core/.nondex/m+dYte6Gtv0UKmI2sMOBAjySVXeTTmQbEqYSQgIZTic=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/m+dYte6Gtv0UKmI2sMOBAjySVXeTTmQbEqYSQgIZTic=/invocations b/typescript-generator-core/.nondex/m+dYte6Gtv0UKmI2sMOBAjySVXeTTmQbEqYSQgIZTic=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/m+dYte6Gtv0UKmI2sMOBAjySVXeTTmQbEqYSQgIZTic=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/m0ErkZirxP0fRuJSS8twjZN1jwB6FRiu9Nj+aW8Cv38=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/m0ErkZirxP0fRuJSS8twjZN1jwB6FRiu9Nj+aW8Cv38=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..ba699b6a4 --- /dev/null +++ b/typescript-generator-core/.nondex/m0ErkZirxP0fRuJSS8twjZN1jwB6FRiu9Nj+aW8Cv38=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/m0ErkZirxP0fRuJSS8twjZN1jwB6FRiu9Nj+aW8Cv38=/config b/typescript-generator-core/.nondex/m0ErkZirxP0fRuJSS8twjZN1jwB6FRiu9Nj+aW8Cv38=/config new file mode 100644 index 000000000..c188bfb11 --- /dev/null +++ b/typescript-generator-core/.nondex/m0ErkZirxP0fRuJSS8twjZN1jwB6FRiu9Nj+aW8Cv38=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=4248698 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=m0ErkZirxP0fRuJSS8twjZN1jwB6FRiu9Nj+aW8Cv38= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/m0ErkZirxP0fRuJSS8twjZN1jwB6FRiu9Nj+aW8Cv38=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/m0ErkZirxP0fRuJSS8twjZN1jwB6FRiu9Nj+aW8Cv38=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..bb175886a --- /dev/null +++ b/typescript-generator-core/.nondex/m0ErkZirxP0fRuJSS8twjZN1jwB6FRiu9Nj+aW8Cv38=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.265 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.236 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/m0ErkZirxP0fRuJSS8twjZN1jwB6FRiu9Nj+aW8Cv38=/failures b/typescript-generator-core/.nondex/m0ErkZirxP0fRuJSS8twjZN1jwB6FRiu9Nj+aW8Cv38=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/m0ErkZirxP0fRuJSS8twjZN1jwB6FRiu9Nj+aW8Cv38=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/m0ErkZirxP0fRuJSS8twjZN1jwB6FRiu9Nj+aW8Cv38=/invocations b/typescript-generator-core/.nondex/m0ErkZirxP0fRuJSS8twjZN1jwB6FRiu9Nj+aW8Cv38=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/m0ErkZirxP0fRuJSS8twjZN1jwB6FRiu9Nj+aW8Cv38=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/m7duNFl0RwmxvNgrd7nIOuaKSKm42PbJ0VOTqK5XYX0=/config b/typescript-generator-core/.nondex/m7duNFl0RwmxvNgrd7nIOuaKSKm42PbJ0VOTqK5XYX0=/config new file mode 100644 index 000000000..6e26af392 --- /dev/null +++ b/typescript-generator-core/.nondex/m7duNFl0RwmxvNgrd7nIOuaKSKm42PbJ0VOTqK5XYX0=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1181842 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=m7duNFl0RwmxvNgrd7nIOuaKSKm42PbJ0VOTqK5XYX0= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/m7duNFl0RwmxvNgrd7nIOuaKSKm42PbJ0VOTqK5XYX0=/failures b/typescript-generator-core/.nondex/m7duNFl0RwmxvNgrd7nIOuaKSKm42PbJ0VOTqK5XYX0=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/m7duNFl0RwmxvNgrd7nIOuaKSKm42PbJ0VOTqK5XYX0=/invocations b/typescript-generator-core/.nondex/m7duNFl0RwmxvNgrd7nIOuaKSKm42PbJ0VOTqK5XYX0=/invocations new file mode 100644 index 000000000..c164bf6ef --- /dev/null +++ b/typescript-generator-core/.nondex/m7duNFl0RwmxvNgrd7nIOuaKSKm42PbJ0VOTqK5XYX0=/invocations @@ -0,0 +1,2 @@ +COUNT:16 +SHUFFLES:16 diff --git a/typescript-generator-core/.nondex/mGyU2COmJQJEmC2B99uIl6NSgbjVsdrTwX8RtLSg61A=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/mGyU2COmJQJEmC2B99uIl6NSgbjVsdrTwX8RtLSg61A=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..b0b17859a --- /dev/null +++ b/typescript-generator-core/.nondex/mGyU2COmJQJEmC2B99uIl6NSgbjVsdrTwX8RtLSg61A=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/mGyU2COmJQJEmC2B99uIl6NSgbjVsdrTwX8RtLSg61A=/config b/typescript-generator-core/.nondex/mGyU2COmJQJEmC2B99uIl6NSgbjVsdrTwX8RtLSg61A=/config new file mode 100644 index 000000000..a57539102 --- /dev/null +++ b/typescript-generator-core/.nondex/mGyU2COmJQJEmC2B99uIl6NSgbjVsdrTwX8RtLSg61A=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=3627038 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=mGyU2COmJQJEmC2B99uIl6NSgbjVsdrTwX8RtLSg61A= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/mGyU2COmJQJEmC2B99uIl6NSgbjVsdrTwX8RtLSg61A=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/mGyU2COmJQJEmC2B99uIl6NSgbjVsdrTwX8RtLSg61A=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..3fe6dbc45 --- /dev/null +++ b/typescript-generator-core/.nondex/mGyU2COmJQJEmC2B99uIl6NSgbjVsdrTwX8RtLSg61A=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.193 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/mGyU2COmJQJEmC2B99uIl6NSgbjVsdrTwX8RtLSg61A=/failures b/typescript-generator-core/.nondex/mGyU2COmJQJEmC2B99uIl6NSgbjVsdrTwX8RtLSg61A=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/mGyU2COmJQJEmC2B99uIl6NSgbjVsdrTwX8RtLSg61A=/invocations b/typescript-generator-core/.nondex/mGyU2COmJQJEmC2B99uIl6NSgbjVsdrTwX8RtLSg61A=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/mGyU2COmJQJEmC2B99uIl6NSgbjVsdrTwX8RtLSg61A=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/mIujf6f84vuNmWpLnW0yu71VjkQ8RlgUtLZf1pby60I=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/mIujf6f84vuNmWpLnW0yu71VjkQ8RlgUtLZf1pby60I=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..40238ea33 --- /dev/null +++ b/typescript-generator-core/.nondex/mIujf6f84vuNmWpLnW0yu71VjkQ8RlgUtLZf1pby60I=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/mIujf6f84vuNmWpLnW0yu71VjkQ8RlgUtLZf1pby60I=/config b/typescript-generator-core/.nondex/mIujf6f84vuNmWpLnW0yu71VjkQ8RlgUtLZf1pby60I=/config new file mode 100644 index 000000000..38e919555 --- /dev/null +++ b/typescript-generator-core/.nondex/mIujf6f84vuNmWpLnW0yu71VjkQ8RlgUtLZf1pby60I=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=2798158 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=mIujf6f84vuNmWpLnW0yu71VjkQ8RlgUtLZf1pby60I= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/mIujf6f84vuNmWpLnW0yu71VjkQ8RlgUtLZf1pby60I=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/mIujf6f84vuNmWpLnW0yu71VjkQ8RlgUtLZf1pby60I=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..e3359c473 --- /dev/null +++ b/typescript-generator-core/.nondex/mIujf6f84vuNmWpLnW0yu71VjkQ8RlgUtLZf1pby60I=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.272 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.267 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/mIujf6f84vuNmWpLnW0yu71VjkQ8RlgUtLZf1pby60I=/failures b/typescript-generator-core/.nondex/mIujf6f84vuNmWpLnW0yu71VjkQ8RlgUtLZf1pby60I=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/mIujf6f84vuNmWpLnW0yu71VjkQ8RlgUtLZf1pby60I=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/mIujf6f84vuNmWpLnW0yu71VjkQ8RlgUtLZf1pby60I=/invocations b/typescript-generator-core/.nondex/mIujf6f84vuNmWpLnW0yu71VjkQ8RlgUtLZf1pby60I=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/mIujf6f84vuNmWpLnW0yu71VjkQ8RlgUtLZf1pby60I=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/mTscHKE8BTWohL0mNtaAyPC+ljpVYabcyxsnHaBnzE=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/mTscHKE8BTWohL0mNtaAyPC+ljpVYabcyxsnHaBnzE=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..d266b6892 --- /dev/null +++ b/typescript-generator-core/.nondex/mTscHKE8BTWohL0mNtaAyPC+ljpVYabcyxsnHaBnzE=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/mTscHKE8BTWohL0mNtaAyPC+ljpVYabcyxsnHaBnzE=/config b/typescript-generator-core/.nondex/mTscHKE8BTWohL0mNtaAyPC+ljpVYabcyxsnHaBnzE=/config new file mode 100644 index 000000000..9d4f5d478 --- /dev/null +++ b/typescript-generator-core/.nondex/mTscHKE8BTWohL0mNtaAyPC+ljpVYabcyxsnHaBnzE=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=3254042 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=mTscHKE8BTWohL0mNtaAyPC+ljpVYabcyxsnHaBnzE= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/mTscHKE8BTWohL0mNtaAyPC+ljpVYabcyxsnHaBnzE=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/mTscHKE8BTWohL0mNtaAyPC+ljpVYabcyxsnHaBnzE=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..e11e64626 --- /dev/null +++ b/typescript-generator-core/.nondex/mTscHKE8BTWohL0mNtaAyPC+ljpVYabcyxsnHaBnzE=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.273 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.249 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/mTscHKE8BTWohL0mNtaAyPC+ljpVYabcyxsnHaBnzE=/failures b/typescript-generator-core/.nondex/mTscHKE8BTWohL0mNtaAyPC+ljpVYabcyxsnHaBnzE=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/mTscHKE8BTWohL0mNtaAyPC+ljpVYabcyxsnHaBnzE=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/mTscHKE8BTWohL0mNtaAyPC+ljpVYabcyxsnHaBnzE=/invocations b/typescript-generator-core/.nondex/mTscHKE8BTWohL0mNtaAyPC+ljpVYabcyxsnHaBnzE=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/mTscHKE8BTWohL0mNtaAyPC+ljpVYabcyxsnHaBnzE=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/n+uBZeMAXhUytpyjEgrcQTXcKLihaDgohNDEk010FDY=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/n+uBZeMAXhUytpyjEgrcQTXcKLihaDgohNDEk010FDY=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..602e1a1eb --- /dev/null +++ b/typescript-generator-core/.nondex/n+uBZeMAXhUytpyjEgrcQTXcKLihaDgohNDEk010FDY=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/n+uBZeMAXhUytpyjEgrcQTXcKLihaDgohNDEk010FDY=/config b/typescript-generator-core/.nondex/n+uBZeMAXhUytpyjEgrcQTXcKLihaDgohNDEk010FDY=/config new file mode 100644 index 000000000..a1b05b0dc --- /dev/null +++ b/typescript-generator-core/.nondex/n+uBZeMAXhUytpyjEgrcQTXcKLihaDgohNDEk010FDY=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=4828914 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=n+uBZeMAXhUytpyjEgrcQTXcKLihaDgohNDEk010FDY= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/n+uBZeMAXhUytpyjEgrcQTXcKLihaDgohNDEk010FDY=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/n+uBZeMAXhUytpyjEgrcQTXcKLihaDgohNDEk010FDY=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..ac38495d5 --- /dev/null +++ b/typescript-generator-core/.nondex/n+uBZeMAXhUytpyjEgrcQTXcKLihaDgohNDEk010FDY=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.207 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.205 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/n+uBZeMAXhUytpyjEgrcQTXcKLihaDgohNDEk010FDY=/failures b/typescript-generator-core/.nondex/n+uBZeMAXhUytpyjEgrcQTXcKLihaDgohNDEk010FDY=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/n+uBZeMAXhUytpyjEgrcQTXcKLihaDgohNDEk010FDY=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/n+uBZeMAXhUytpyjEgrcQTXcKLihaDgohNDEk010FDY=/invocations b/typescript-generator-core/.nondex/n+uBZeMAXhUytpyjEgrcQTXcKLihaDgohNDEk010FDY=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/n+uBZeMAXhUytpyjEgrcQTXcKLihaDgohNDEk010FDY=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/n6st68nqRSKeqOQ+7xqDvMz2k3+yAcpiIETdA2mOTc=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/n6st68nqRSKeqOQ+7xqDvMz2k3+yAcpiIETdA2mOTc=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..2a79c0f20 --- /dev/null +++ b/typescript-generator-core/.nondex/n6st68nqRSKeqOQ+7xqDvMz2k3+yAcpiIETdA2mOTc=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/n6st68nqRSKeqOQ+7xqDvMz2k3+yAcpiIETdA2mOTc=/config b/typescript-generator-core/.nondex/n6st68nqRSKeqOQ+7xqDvMz2k3+yAcpiIETdA2mOTc=/config new file mode 100644 index 000000000..45899ecc7 --- /dev/null +++ b/typescript-generator-core/.nondex/n6st68nqRSKeqOQ+7xqDvMz2k3+yAcpiIETdA2mOTc=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=4994690 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=n6st68nqRSKeqOQ+7xqDvMz2k3+yAcpiIETdA2mOTc= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/n6st68nqRSKeqOQ+7xqDvMz2k3+yAcpiIETdA2mOTc=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/n6st68nqRSKeqOQ+7xqDvMz2k3+yAcpiIETdA2mOTc=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..ddbd50bb4 --- /dev/null +++ b/typescript-generator-core/.nondex/n6st68nqRSKeqOQ+7xqDvMz2k3+yAcpiIETdA2mOTc=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.291 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.29 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/n6st68nqRSKeqOQ+7xqDvMz2k3+yAcpiIETdA2mOTc=/failures b/typescript-generator-core/.nondex/n6st68nqRSKeqOQ+7xqDvMz2k3+yAcpiIETdA2mOTc=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/n6st68nqRSKeqOQ+7xqDvMz2k3+yAcpiIETdA2mOTc=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/n6st68nqRSKeqOQ+7xqDvMz2k3+yAcpiIETdA2mOTc=/invocations b/typescript-generator-core/.nondex/n6st68nqRSKeqOQ+7xqDvMz2k3+yAcpiIETdA2mOTc=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/n6st68nqRSKeqOQ+7xqDvMz2k3+yAcpiIETdA2mOTc=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/nl08VQ3K3k03jdQ5g1D7gcTqQlSIKsb2Y3bVrfQ93g=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/nl08VQ3K3k03jdQ5g1D7gcTqQlSIKsb2Y3bVrfQ93g=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..585f3b5f3 --- /dev/null +++ b/typescript-generator-core/.nondex/nl08VQ3K3k03jdQ5g1D7gcTqQlSIKsb2Y3bVrfQ93g=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,553 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:< +interface I[NamedQuadrilateral3 extends INamedShape3, IQuadrilateral3 { + kind: "rectangle"; +} + +interface INamedShape3 extends IShape3 { + kind: "circle" | "rectangle"; + name: string; +} + +interface IShape3 { + kind: "circle" | "rectangle"; +} + +interface ICircle3 extends INamedShape3 { + kind: "circle"; +} + +interface IRectangle3 extends INamedQuadrilateral3 { + kind: "rectangle"]; +} + +interface IQuad...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithOverlappingInterfaces(TaggedUnionsTest.java:289) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$ICircle3' used in 'IShape3.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$INamedQuadrilateral3' used in 'IRectangle3.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$INamedShape3' used in 'ICircle3.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral3' used in 'INamedQuadrilateral3.' +]]> + + + but was:<...ngle"; +} + +interface [IQuadrilateral2 extends IShape2 { + kind: "square" | "rectangle"; +} + +interface CSquare2 extends IQuadrilateral2 { + kind: "square"; + size: number; +} + +interface CRectangle2 extends IQuadrilateral2 { + kind: "rectangle"; + width: number; + height: number; +} + +interface CCircle2 extends IShape2 { + kind: "circle"; + radius: number]; +} + +type IShape2Uni...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:253) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + + + + but was:< +interface [Circle extends Shape { + kind: "circle"; + radius: number; +} + +interface Square extends Shape { + kind: "square"; + size: number; +} + +interface Shape { + kind: "square" | "rectangle" | "circle"; +} + +interface Geometry { + shapes: Shape[]; +} + +interface Rectangle extends Shape { + kind: "rectangle"; + width: number; + height]: number; +} +> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsDisabled(TaggedUnionsTest.java:324) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$Rectangle' used in 'Shape.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$Circle' used in 'Shape.' +]]> + + + + but was:< +interface Diamond[B1 extends DiamondA { + kind: "b1" | "c"; + b1: string; +} + +interface DiamondA { + kind: "b1" | "c" | "b2"; + a: string; +} + +interface DiamondC extends DiamondB1, DiamondB2 { + kind: "c"; + c: string; +} + +interface DiamondB2 extends DiamondA { + kind: "b2" | "c"; + b2]: string; +} + +type Di...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithDiamond(TaggedUnionsTest.java:356) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$DiamondB2' used in 'DiamondA.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$DiamondC' used in 'DiamondA.' +]]> + + + + + but was:< +interface [Shape { + kind: "square" | "rectangle" | "circle"; +} + +interface Circle extends Shape { + kind: "circle"; + radius: number; +} + +interface Square extends Shape { + kind: "square"; + size: number; +} + +interface Geometry { + shapes: ShapeUnion[]; +} + +interface Rectangle extends Shape { + kind: "rectangle"; + height: number; + width]: number; +} + +type Sh...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnions(TaggedUnionsTest.java:217) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$Rectangle' used in 'Shape.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$Circle' used in 'Shape.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/nl08VQ3K3k03jdQ5g1D7gcTqQlSIKsb2Y3bVrfQ93g=/config b/typescript-generator-core/.nondex/nl08VQ3K3k03jdQ5g1D7gcTqQlSIKsb2Y3bVrfQ93g=/config new file mode 100644 index 000000000..34e579b0e --- /dev/null +++ b/typescript-generator-core/.nondex/nl08VQ3K3k03jdQ5g1D7gcTqQlSIKsb2Y3bVrfQ93g=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=974622 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=nl08VQ3K3k03jdQ5g1D7gcTqQlSIKsb2Y3bVrfQ93g= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/nl08VQ3K3k03jdQ5g1D7gcTqQlSIKsb2Y3bVrfQ93g=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/nl08VQ3K3k03jdQ5g1D7gcTqQlSIKsb2Y3bVrfQ93g=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..85329d28a --- /dev/null +++ b/typescript-generator-core/.nondex/nl08VQ3K3k03jdQ5g1D7gcTqQlSIKsb2Y3bVrfQ93g=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,444 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 10, Failures: 5, Errors: 0, Skipped: 0, Time elapsed: 0.357 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithOverlappingInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.226 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:< +interface I[Shape3 { + kind: "circle" | "rectangle"; +} + +interface IRectangle3 extends INamedQuadrilateral3 { + kind: "rectangle"; +} + +interface ICircle3 extends INamedShape3 { + kind: "circle"; +} + +interface INamedQuadrilateral3 extends INamedShape3, IQuadrilateral3 { + kind: "rectangle"; +} + +interface INamedShape3 extends IShape3 { + kind: "circle" | "rectangle"; + name: string]; +} + +interface IQuad...> but was:< +interface I[NamedQuadrilateral3 extends INamedShape3, IQuadrilateral3 { + kind: "rectangle"; +} + +interface INamedShape3 extends IShape3 { + kind: "circle" | "rectangle"; + name: string; +} + +interface IShape3 { + kind: "circle" | "rectangle"; +} + +interface ICircle3 extends INamedShape3 { + kind: "circle"; +} + +interface IRectangle3 extends INamedQuadrilateral3 { + kind: "rectangle"]; +} + +interface IQuad...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithOverlappingInterfaces(TaggedUnionsTest.java:289) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.012 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...ngle"; +} + +interface [CSquare2 extends IQuadrilateral2 { + kind: "square"; + size: number; +} + +interface CRectangle2 extends IQuadrilateral2 { + kind: "rectangle"; + width: number; + height: number; +} + +interface CCircle2 extends IShape2 { + kind: "circle"; + radius: number; +} + +interface IQuadrilateral2 extends IShape2 { + kind: "square" | "rectangle"]; +} + +type IShape2Uni...> but was:<...ngle"; +} + +interface [IQuadrilateral2 extends IShape2 { + kind: "square" | "rectangle"; +} + +interface CSquare2 extends IQuadrilateral2 { + kind: "square"; + size: number; +} + +interface CRectangle2 extends IQuadrilateral2 { + kind: "rectangle"; + width: number; + height: number; +} + +interface CCircle2 extends IShape2 { + kind: "circle"; + radius: number]; +} + +type IShape2Uni...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:253) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + +testTaggedUnionsDisabled(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.03 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:< +interface [Geometry { + shapes: Shape[]; +} + +interface Shape { + kind: "square" | "rectangle" | "circle"; +} + +interface Square extends Shape { + kind: "square"; + size: number; +} + +interface Rectangle extends Shape { + kind: "rectangle"; + width: number; + height: number; +} + +interface Circle extends Shape { + kind: "circle"; + radius]: number; +} +> but was:< +interface [Circle extends Shape { + kind: "circle"; + radius: number; +} + +interface Square extends Shape { + kind: "square"; + size: number; +} + +interface Shape { + kind: "square" | "rectangle" | "circle"; +} + +interface Geometry { + shapes: Shape[]; +} + +interface Rectangle extends Shape { + kind: "rectangle"; + width: number; + height]: number; +} +> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsDisabled(TaggedUnionsTest.java:324) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + +testTaggedUnionsWithDiamond(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.029 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:< +interface Diamond[A { + kind: "b1" | "c" | "b2"; + a: string; +} + +interface DiamondB1 extends DiamondA { + kind: "b1" | "c"; + b1: string; +} + +interface DiamondB2 extends DiamondA { + kind: "b2" | "c"; + b2: string; +} + +interface DiamondC extends DiamondB1, DiamondB2 { + kind: "c"; + c]: string; +} + +type Di...> but was:< +interface Diamond[B1 extends DiamondA { + kind: "b1" | "c"; + b1: string; +} + +interface DiamondA { + kind: "b1" | "c" | "b2"; + a: string; +} + +interface DiamondC extends DiamondB1, DiamondB2 { + kind: "c"; + c: string; +} + +interface DiamondB2 extends DiamondA { + kind: "b2" | "c"; + b2]: string; +} + +type Di...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithDiamond(TaggedUnionsTest.java:356) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + +testTaggedUnions(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.002 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:< +interface [Geometry { + shapes: ShapeUnion[]; +} + +interface Shape { + kind: "square" | "rectangle" | "circle"; +} + +interface Square extends Shape { + kind: "square"; + size: number; +} + +interface Rectangle extends Shape { + kind: "rectangle"; + width: number; + height: number; +} + +interface Circle extends Shape { + kind: "circle"; + radius]: number; +} + +type Sh...> but was:< +interface [Shape { + kind: "square" | "rectangle" | "circle"; +} + +interface Circle extends Shape { + kind: "circle"; + radius: number; +} + +interface Square extends Shape { + kind: "square"; + size: number; +} + +interface Geometry { + shapes: ShapeUnion[]; +} + +interface Rectangle extends Shape { + kind: "rectangle"; + height: number; + width]: number; +} + +type Sh...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnions(TaggedUnionsTest.java:217) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/nl08VQ3K3k03jdQ5g1D7gcTqQlSIKsb2Y3bVrfQ93g=/failures b/typescript-generator-core/.nondex/nl08VQ3K3k03jdQ5g1D7gcTqQlSIKsb2Y3bVrfQ93g=/failures new file mode 100644 index 000000000..99d22be1b --- /dev/null +++ b/typescript-generator-core/.nondex/nl08VQ3K3k03jdQ5g1D7gcTqQlSIKsb2Y3bVrfQ93g=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithDiamond diff --git a/typescript-generator-core/.nondex/nl08VQ3K3k03jdQ5g1D7gcTqQlSIKsb2Y3bVrfQ93g=/invocations b/typescript-generator-core/.nondex/nl08VQ3K3k03jdQ5g1D7gcTqQlSIKsb2Y3bVrfQ93g=/invocations new file mode 100644 index 000000000..8e8192df3 --- /dev/null +++ b/typescript-generator-core/.nondex/nl08VQ3K3k03jdQ5g1D7gcTqQlSIKsb2Y3bVrfQ93g=/invocations @@ -0,0 +1,2 @@ +COUNT:178 +SHUFFLES:178 diff --git a/typescript-generator-core/.nondex/nondex-instr.jar b/typescript-generator-core/.nondex/nondex-instr.jar new file mode 100644 index 000000000..fc281b325 Binary files /dev/null and b/typescript-generator-core/.nondex/nondex-instr.jar differ diff --git a/typescript-generator-core/.nondex/nrU8X3gM+X05YGHsOUR1S8ChZjvfwwZ3g3cCIhjmwms=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/nrU8X3gM+X05YGHsOUR1S8ChZjvfwwZ3g3cCIhjmwms=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..dd02fb0f8 --- /dev/null +++ b/typescript-generator-core/.nondex/nrU8X3gM+X05YGHsOUR1S8ChZjvfwwZ3g3cCIhjmwms=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:140) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/nrU8X3gM+X05YGHsOUR1S8ChZjvfwwZ3g3cCIhjmwms=/config b/typescript-generator-core/.nondex/nrU8X3gM+X05YGHsOUR1S8ChZjvfwwZ3g3cCIhjmwms=/config new file mode 100644 index 000000000..fcc840fac --- /dev/null +++ b/typescript-generator-core/.nondex/nrU8X3gM+X05YGHsOUR1S8ChZjvfwwZ3g3cCIhjmwms=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1016066 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=nrU8X3gM+X05YGHsOUR1S8ChZjvfwwZ3g3cCIhjmwms= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/nrU8X3gM+X05YGHsOUR1S8ChZjvfwwZ3g3cCIhjmwms=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/nrU8X3gM+X05YGHsOUR1S8ChZjvfwwZ3g3cCIhjmwms=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..259a84df0 --- /dev/null +++ b/typescript-generator-core/.nondex/nrU8X3gM+X05YGHsOUR1S8ChZjvfwwZ3g3cCIhjmwms=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,20 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.156 sec <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.155 sec <<< FAILURE! +org.junit.ComparisonFailure: expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:140) + diff --git a/typescript-generator-core/.nondex/nrU8X3gM+X05YGHsOUR1S8ChZjvfwwZ3g3cCIhjmwms=/failures b/typescript-generator-core/.nondex/nrU8X3gM+X05YGHsOUR1S8ChZjvfwwZ3g3cCIhjmwms=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/nrU8X3gM+X05YGHsOUR1S8ChZjvfwwZ3g3cCIhjmwms=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/nrU8X3gM+X05YGHsOUR1S8ChZjvfwwZ3g3cCIhjmwms=/invocations b/typescript-generator-core/.nondex/nrU8X3gM+X05YGHsOUR1S8ChZjvfwwZ3g3cCIhjmwms=/invocations new file mode 100644 index 000000000..11ff8fe83 --- /dev/null +++ b/typescript-generator-core/.nondex/nrU8X3gM+X05YGHsOUR1S8ChZjvfwwZ3g3cCIhjmwms=/invocations @@ -0,0 +1,2 @@ +COUNT:61 +SHUFFLES:61 diff --git a/typescript-generator-core/.nondex/nvbCmFuuyj9OHMV1o34nkv1ulmZoExpTCVCoXQiJ38=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/nvbCmFuuyj9OHMV1o34nkv1ulmZoExpTCVCoXQiJ38=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..574de55d1 --- /dev/null +++ b/typescript-generator-core/.nondex/nvbCmFuuyj9OHMV1o34nkv1ulmZoExpTCVCoXQiJ38=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:< +interface [CSquare2 extends IQuadrilateral2 { + kind: "square"; + size: number; +} + +interface IQuadrilateral2 extends IShape2 { + kind: "square" | "rectangle"; +} + +interface CCircle2 extends IShape2 { + kind: "circle"; + radius: number; +} + +interface CRectangle2 extends IQuadrilateral2 { + kind: "rectangle"; + width: number; + height: number; +} + +interface IShape2 { + kind: "circle" |] "square" | "rectang...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/nvbCmFuuyj9OHMV1o34nkv1ulmZoExpTCVCoXQiJ38=/config b/typescript-generator-core/.nondex/nvbCmFuuyj9OHMV1o34nkv1ulmZoExpTCVCoXQiJ38=/config new file mode 100644 index 000000000..85c66028a --- /dev/null +++ b/typescript-generator-core/.nondex/nvbCmFuuyj9OHMV1o34nkv1ulmZoExpTCVCoXQiJ38=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1264730 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=nvbCmFuuyj9OHMV1o34nkv1ulmZoExpTCVCoXQiJ38= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/nvbCmFuuyj9OHMV1o34nkv1ulmZoExpTCVCoXQiJ38=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/nvbCmFuuyj9OHMV1o34nkv1ulmZoExpTCVCoXQiJ38=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..a1b3cb0ab --- /dev/null +++ b/typescript-generator-core/.nondex/nvbCmFuuyj9OHMV1o34nkv1ulmZoExpTCVCoXQiJ38=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,94 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.243 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.239 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:< +interface [IShape2 { + kind: "circle" | "square" | "rectangle"; +} + +interface CSquare2 extends IQuadrilateral2 { + kind: "square"; + size: number; +} + +interface CRectangle2 extends IQuadrilateral2 { + kind: "rectangle"; + width: number; + height: number; +} + +interface CCircle2 extends IShape2 { + kind: "circle"; + radius: number; +} + +interface IQuadrilateral2 extends IShape2 { + kind:] "square" | "rectang...> but was:< +interface [CSquare2 extends IQuadrilateral2 { + kind: "square"; + size: number; +} + +interface IQuadrilateral2 extends IShape2 { + kind: "square" | "rectangle"; +} + +interface CCircle2 extends IShape2 { + kind: "circle"; + radius: number; +} + +interface CRectangle2 extends IQuadrilateral2 { + kind: "rectangle"; + width: number; + height: number; +} + +interface IShape2 { + kind: "circle" |] "square" | "rectang...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/nvbCmFuuyj9OHMV1o34nkv1ulmZoExpTCVCoXQiJ38=/failures b/typescript-generator-core/.nondex/nvbCmFuuyj9OHMV1o34nkv1ulmZoExpTCVCoXQiJ38=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/nvbCmFuuyj9OHMV1o34nkv1ulmZoExpTCVCoXQiJ38=/invocations b/typescript-generator-core/.nondex/nvbCmFuuyj9OHMV1o34nkv1ulmZoExpTCVCoXQiJ38=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/nvbCmFuuyj9OHMV1o34nkv1ulmZoExpTCVCoXQiJ38=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/o0X8pAzfBPLHp3ezv0WUuD+WMrRaJeX1utLXBgmTNs=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/o0X8pAzfBPLHp3ezv0WUuD+WMrRaJeX1utLXBgmTNs=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..6858092b3 --- /dev/null +++ b/typescript-generator-core/.nondex/o0X8pAzfBPLHp3ezv0WUuD+WMrRaJeX1utLXBgmTNs=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/o0X8pAzfBPLHp3ezv0WUuD+WMrRaJeX1utLXBgmTNs=/config b/typescript-generator-core/.nondex/o0X8pAzfBPLHp3ezv0WUuD+WMrRaJeX1utLXBgmTNs=/config new file mode 100644 index 000000000..98c59707a --- /dev/null +++ b/typescript-generator-core/.nondex/o0X8pAzfBPLHp3ezv0WUuD+WMrRaJeX1utLXBgmTNs=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1762058 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=o0X8pAzfBPLHp3ezv0WUuD+WMrRaJeX1utLXBgmTNs= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/o0X8pAzfBPLHp3ezv0WUuD+WMrRaJeX1utLXBgmTNs=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/o0X8pAzfBPLHp3ezv0WUuD+WMrRaJeX1utLXBgmTNs=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..41fb026f0 --- /dev/null +++ b/typescript-generator-core/.nondex/o0X8pAzfBPLHp3ezv0WUuD+WMrRaJeX1utLXBgmTNs=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.237 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/o0X8pAzfBPLHp3ezv0WUuD+WMrRaJeX1utLXBgmTNs=/failures b/typescript-generator-core/.nondex/o0X8pAzfBPLHp3ezv0WUuD+WMrRaJeX1utLXBgmTNs=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/o0X8pAzfBPLHp3ezv0WUuD+WMrRaJeX1utLXBgmTNs=/invocations b/typescript-generator-core/.nondex/o0X8pAzfBPLHp3ezv0WUuD+WMrRaJeX1utLXBgmTNs=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/o0X8pAzfBPLHp3ezv0WUuD+WMrRaJeX1utLXBgmTNs=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/oa+7V6J44lBL67Tbec1lPRGpqG7wUgLJjyVh8mlTtA=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/oa+7V6J44lBL67Tbec1lPRGpqG7wUgLJjyVh8mlTtA=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..4dc80f728 --- /dev/null +++ b/typescript-generator-core/.nondex/oa+7V6J44lBL67Tbec1lPRGpqG7wUgLJjyVh8mlTtA=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/oa+7V6J44lBL67Tbec1lPRGpqG7wUgLJjyVh8mlTtA=/config b/typescript-generator-core/.nondex/oa+7V6J44lBL67Tbec1lPRGpqG7wUgLJjyVh8mlTtA=/config new file mode 100644 index 000000000..319859e70 --- /dev/null +++ b/typescript-generator-core/.nondex/oa+7V6J44lBL67Tbec1lPRGpqG7wUgLJjyVh8mlTtA=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=2590938 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=oa+7V6J44lBL67Tbec1lPRGpqG7wUgLJjyVh8mlTtA= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/oa+7V6J44lBL67Tbec1lPRGpqG7wUgLJjyVh8mlTtA=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/oa+7V6J44lBL67Tbec1lPRGpqG7wUgLJjyVh8mlTtA=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..cc8124449 --- /dev/null +++ b/typescript-generator-core/.nondex/oa+7V6J44lBL67Tbec1lPRGpqG7wUgLJjyVh8mlTtA=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.211 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.209 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/oa+7V6J44lBL67Tbec1lPRGpqG7wUgLJjyVh8mlTtA=/failures b/typescript-generator-core/.nondex/oa+7V6J44lBL67Tbec1lPRGpqG7wUgLJjyVh8mlTtA=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/oa+7V6J44lBL67Tbec1lPRGpqG7wUgLJjyVh8mlTtA=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/oa+7V6J44lBL67Tbec1lPRGpqG7wUgLJjyVh8mlTtA=/invocations b/typescript-generator-core/.nondex/oa+7V6J44lBL67Tbec1lPRGpqG7wUgLJjyVh8mlTtA=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/oa+7V6J44lBL67Tbec1lPRGpqG7wUgLJjyVh8mlTtA=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/ophAF+FrKtEHsSaT9YecEkjR67vSZTfWjBqgXNvo4g=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/ophAF+FrKtEHsSaT9YecEkjR67vSZTfWjBqgXNvo4g=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..b90c0bf47 --- /dev/null +++ b/typescript-generator-core/.nondex/ophAF+FrKtEHsSaT9YecEkjR67vSZTfWjBqgXNvo4g=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/ophAF+FrKtEHsSaT9YecEkjR67vSZTfWjBqgXNvo4g=/config b/typescript-generator-core/.nondex/ophAF+FrKtEHsSaT9YecEkjR67vSZTfWjBqgXNvo4g=/config new file mode 100644 index 000000000..9154a58a4 --- /dev/null +++ b/typescript-generator-core/.nondex/ophAF+FrKtEHsSaT9YecEkjR67vSZTfWjBqgXNvo4g=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=2673826 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=ophAF+FrKtEHsSaT9YecEkjR67vSZTfWjBqgXNvo4g= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/ophAF+FrKtEHsSaT9YecEkjR67vSZTfWjBqgXNvo4g=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/ophAF+FrKtEHsSaT9YecEkjR67vSZTfWjBqgXNvo4g=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..7caa50f74 --- /dev/null +++ b/typescript-generator-core/.nondex/ophAF+FrKtEHsSaT9YecEkjR67vSZTfWjBqgXNvo4g=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.199 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.198 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/ophAF+FrKtEHsSaT9YecEkjR67vSZTfWjBqgXNvo4g=/failures b/typescript-generator-core/.nondex/ophAF+FrKtEHsSaT9YecEkjR67vSZTfWjBqgXNvo4g=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/ophAF+FrKtEHsSaT9YecEkjR67vSZTfWjBqgXNvo4g=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/ophAF+FrKtEHsSaT9YecEkjR67vSZTfWjBqgXNvo4g=/invocations b/typescript-generator-core/.nondex/ophAF+FrKtEHsSaT9YecEkjR67vSZTfWjBqgXNvo4g=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/ophAF+FrKtEHsSaT9YecEkjR67vSZTfWjBqgXNvo4g=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/p7rfpEbDHKMECR8zw5OsOZsdggeDfJL2VWCGS027VU=.run b/typescript-generator-core/.nondex/p7rfpEbDHKMECR8zw5OsOZsdggeDfJL2VWCGS027VU=.run new file mode 100644 index 000000000..bd0baaf0b --- /dev/null +++ b/typescript-generator-core/.nondex/p7rfpEbDHKMECR8zw5OsOZsdggeDfJL2VWCGS027VU=.run @@ -0,0 +1,4 @@ +p7rfpEbDHKMECR8zw5OsOZsdggeDfJL2VWCGS027VU= +F+rhLkrgml33Hsb5+ATdWmISSmx1KsFwcbG7FDLitvE= +5Dzelxb5TKy88zovJbTb5bRe9nlaQxXGJLLSWKmJYAw= +clean_D+rH5x5OQhDojxPByRTMFPxHzz7bfNH29fbHevReaQ= diff --git a/typescript-generator-core/.nondex/p7rfpEbDHKMECR8zw5OsOZsdggeDfJL2VWCGS027VU=/config b/typescript-generator-core/.nondex/p7rfpEbDHKMECR8zw5OsOZsdggeDfJL2VWCGS027VU=/config new file mode 100644 index 000000000..6819141ab --- /dev/null +++ b/typescript-generator-core/.nondex/p7rfpEbDHKMECR8zw5OsOZsdggeDfJL2VWCGS027VU=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=933178 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=p7rfpEbDHKMECR8zw5OsOZsdggeDfJL2VWCGS027VU= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/p7rfpEbDHKMECR8zw5OsOZsdggeDfJL2VWCGS027VU=/failures b/typescript-generator-core/.nondex/p7rfpEbDHKMECR8zw5OsOZsdggeDfJL2VWCGS027VU=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/p7rfpEbDHKMECR8zw5OsOZsdggeDfJL2VWCGS027VU=/invocations b/typescript-generator-core/.nondex/p7rfpEbDHKMECR8zw5OsOZsdggeDfJL2VWCGS027VU=/invocations new file mode 100644 index 000000000..c164bf6ef --- /dev/null +++ b/typescript-generator-core/.nondex/p7rfpEbDHKMECR8zw5OsOZsdggeDfJL2VWCGS027VU=/invocations @@ -0,0 +1,2 @@ +COUNT:16 +SHUFFLES:16 diff --git a/typescript-generator-core/.nondex/p7rfpEbDHKMECR8zw5OsOZsdggeDfJL2VWCGS027VU=/test_results.html b/typescript-generator-core/.nondex/p7rfpEbDHKMECR8zw5OsOZsdggeDfJL2VWCGS027VU=/test_results.html new file mode 100644 index 000000000..ee93290bb --- /dev/null +++ b/typescript-generator-core/.nondex/p7rfpEbDHKMECR8zw5OsOZsdggeDfJL2VWCGS027VU=/test_results.html @@ -0,0 +1 @@ +Test Results
Test Name9331789746221016066
\ No newline at end of file diff --git a/typescript-generator-core/.nondex/pKMSSuaP6U2ENn2chNCuupUNfmO71qBsoy1+cUvKc=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/pKMSSuaP6U2ENn2chNCuupUNfmO71qBsoy1+cUvKc=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..7e917b6e6 --- /dev/null +++ b/typescript-generator-core/.nondex/pKMSSuaP6U2ENn2chNCuupUNfmO71qBsoy1+cUvKc=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,69 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/pKMSSuaP6U2ENn2chNCuupUNfmO71qBsoy1+cUvKc=/config b/typescript-generator-core/.nondex/pKMSSuaP6U2ENn2chNCuupUNfmO71qBsoy1+cUvKc=/config new file mode 100644 index 000000000..a9e999945 --- /dev/null +++ b/typescript-generator-core/.nondex/pKMSSuaP6U2ENn2chNCuupUNfmO71qBsoy1+cUvKc=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=974622 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=pKMSSuaP6U2ENn2chNCuupUNfmO71qBsoy1+cUvKc= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/pKMSSuaP6U2ENn2chNCuupUNfmO71qBsoy1+cUvKc=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/pKMSSuaP6U2ENn2chNCuupUNfmO71qBsoy1+cUvKc=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..57de8fa12 --- /dev/null +++ b/typescript-generator-core/.nondex/pKMSSuaP6U2ENn2chNCuupUNfmO71qBsoy1+cUvKc=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.166 sec - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/pKMSSuaP6U2ENn2chNCuupUNfmO71qBsoy1+cUvKc=/failures b/typescript-generator-core/.nondex/pKMSSuaP6U2ENn2chNCuupUNfmO71qBsoy1+cUvKc=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/pKMSSuaP6U2ENn2chNCuupUNfmO71qBsoy1+cUvKc=/invocations b/typescript-generator-core/.nondex/pKMSSuaP6U2ENn2chNCuupUNfmO71qBsoy1+cUvKc=/invocations new file mode 100644 index 000000000..11ff8fe83 --- /dev/null +++ b/typescript-generator-core/.nondex/pKMSSuaP6U2ENn2chNCuupUNfmO71qBsoy1+cUvKc=/invocations @@ -0,0 +1,2 @@ +COUNT:61 +SHUFFLES:61 diff --git a/typescript-generator-core/.nondex/pa+93wUQvFrG5YKAOaOJPdDtRdLEiNB7z2ZTqhvn7ww=/config b/typescript-generator-core/.nondex/pa+93wUQvFrG5YKAOaOJPdDtRdLEiNB7z2ZTqhvn7ww=/config new file mode 100644 index 000000000..ad5d1a171 --- /dev/null +++ b/typescript-generator-core/.nondex/pa+93wUQvFrG5YKAOaOJPdDtRdLEiNB7z2ZTqhvn7ww=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=974622 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=pa+93wUQvFrG5YKAOaOJPdDtRdLEiNB7z2ZTqhvn7ww= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/pa+93wUQvFrG5YKAOaOJPdDtRdLEiNB7z2ZTqhvn7ww=/failures b/typescript-generator-core/.nondex/pa+93wUQvFrG5YKAOaOJPdDtRdLEiNB7z2ZTqhvn7ww=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/pa+93wUQvFrG5YKAOaOJPdDtRdLEiNB7z2ZTqhvn7ww=/invocations b/typescript-generator-core/.nondex/pa+93wUQvFrG5YKAOaOJPdDtRdLEiNB7z2ZTqhvn7ww=/invocations new file mode 100644 index 000000000..bf35aa17c --- /dev/null +++ b/typescript-generator-core/.nondex/pa+93wUQvFrG5YKAOaOJPdDtRdLEiNB7z2ZTqhvn7ww=/invocations @@ -0,0 +1,2 @@ +COUNT:17 +SHUFFLES:17 diff --git a/typescript-generator-core/.nondex/q1A7PjDIOiFUGqmSXCpV4qeUMGwFRsgeLRMvjyenBw=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/q1A7PjDIOiFUGqmSXCpV4qeUMGwFRsgeLRMvjyenBw=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..8e8cb77a3 --- /dev/null +++ b/typescript-generator-core/.nondex/q1A7PjDIOiFUGqmSXCpV4qeUMGwFRsgeLRMvjyenBw=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/q1A7PjDIOiFUGqmSXCpV4qeUMGwFRsgeLRMvjyenBw=/config b/typescript-generator-core/.nondex/q1A7PjDIOiFUGqmSXCpV4qeUMGwFRsgeLRMvjyenBw=/config new file mode 100644 index 000000000..ad90de21a --- /dev/null +++ b/typescript-generator-core/.nondex/q1A7PjDIOiFUGqmSXCpV4qeUMGwFRsgeLRMvjyenBw=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1513394 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=q1A7PjDIOiFUGqmSXCpV4qeUMGwFRsgeLRMvjyenBw= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/q1A7PjDIOiFUGqmSXCpV4qeUMGwFRsgeLRMvjyenBw=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/q1A7PjDIOiFUGqmSXCpV4qeUMGwFRsgeLRMvjyenBw=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..3c20a85d7 --- /dev/null +++ b/typescript-generator-core/.nondex/q1A7PjDIOiFUGqmSXCpV4qeUMGwFRsgeLRMvjyenBw=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.24 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.239 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/q1A7PjDIOiFUGqmSXCpV4qeUMGwFRsgeLRMvjyenBw=/failures b/typescript-generator-core/.nondex/q1A7PjDIOiFUGqmSXCpV4qeUMGwFRsgeLRMvjyenBw=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/q1A7PjDIOiFUGqmSXCpV4qeUMGwFRsgeLRMvjyenBw=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/q1A7PjDIOiFUGqmSXCpV4qeUMGwFRsgeLRMvjyenBw=/invocations b/typescript-generator-core/.nondex/q1A7PjDIOiFUGqmSXCpV4qeUMGwFRsgeLRMvjyenBw=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/q1A7PjDIOiFUGqmSXCpV4qeUMGwFRsgeLRMvjyenBw=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/q4FKE7rOZZ8TSfA4a79awGZ0w4M3is4wY4E56aFmUIk=.run b/typescript-generator-core/.nondex/q4FKE7rOZZ8TSfA4a79awGZ0w4M3is4wY4E56aFmUIk=.run new file mode 100644 index 000000000..92124f38b --- /dev/null +++ b/typescript-generator-core/.nondex/q4FKE7rOZZ8TSfA4a79awGZ0w4M3is4wY4E56aFmUIk=.run @@ -0,0 +1,4 @@ +q4FKE7rOZZ8TSfA4a79awGZ0w4M3is4wY4E56aFmUIk= +N+6hwpfHq8XySXGZSw8C5ZKqJG+0qOi4AQkW+3kgY= +1Xqy8A9eg+P0RgRzLFkl1x1Azm2OeoxNdDJFlVvN8Sw= +clean_CLpndxV28pMcglFjhb3ljKRdtYqwsMC11pLst70L0k= diff --git a/typescript-generator-core/.nondex/q4FKE7rOZZ8TSfA4a79awGZ0w4M3is4wY4E56aFmUIk=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/q4FKE7rOZZ8TSfA4a79awGZ0w4M3is4wY4E56aFmUIk=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..788dbf6fd --- /dev/null +++ b/typescript-generator-core/.nondex/q4FKE7rOZZ8TSfA4a79awGZ0w4M3is4wY4E56aFmUIk=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,132 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:210) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/q4FKE7rOZZ8TSfA4a79awGZ0w4M3is4wY4E56aFmUIk=/config b/typescript-generator-core/.nondex/q4FKE7rOZZ8TSfA4a79awGZ0w4M3is4wY4E56aFmUIk=/config new file mode 100644 index 000000000..49ac84571 --- /dev/null +++ b/typescript-generator-core/.nondex/q4FKE7rOZZ8TSfA4a79awGZ0w4M3is4wY4E56aFmUIk=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=933178 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=q4FKE7rOZZ8TSfA4a79awGZ0w4M3is4wY4E56aFmUIk= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/q4FKE7rOZZ8TSfA4a79awGZ0w4M3is4wY4E56aFmUIk=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/q4FKE7rOZZ8TSfA4a79awGZ0w4M3is4wY4E56aFmUIk=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..5cffec449 --- /dev/null +++ b/typescript-generator-core/.nondex/q4FKE7rOZZ8TSfA4a79awGZ0w4M3is4wY4E56aFmUIk=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,56 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.14 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.139 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:210) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/q4FKE7rOZZ8TSfA4a79awGZ0w4M3is4wY4E56aFmUIk=/failures b/typescript-generator-core/.nondex/q4FKE7rOZZ8TSfA4a79awGZ0w4M3is4wY4E56aFmUIk=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/q4FKE7rOZZ8TSfA4a79awGZ0w4M3is4wY4E56aFmUIk=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/q4FKE7rOZZ8TSfA4a79awGZ0w4M3is4wY4E56aFmUIk=/invocations b/typescript-generator-core/.nondex/q4FKE7rOZZ8TSfA4a79awGZ0w4M3is4wY4E56aFmUIk=/invocations new file mode 100644 index 000000000..7ad7d1da8 --- /dev/null +++ b/typescript-generator-core/.nondex/q4FKE7rOZZ8TSfA4a79awGZ0w4M3is4wY4E56aFmUIk=/invocations @@ -0,0 +1,2 @@ +COUNT:67 +SHUFFLES:67 diff --git a/typescript-generator-core/.nondex/q4FKE7rOZZ8TSfA4a79awGZ0w4M3is4wY4E56aFmUIk=/test_results.html b/typescript-generator-core/.nondex/q4FKE7rOZZ8TSfA4a79awGZ0w4M3is4wY4E56aFmUIk=/test_results.html new file mode 100644 index 000000000..cc9aae726 --- /dev/null +++ b/typescript-generator-core/.nondex/q4FKE7rOZZ8TSfA4a79awGZ0w4M3is4wY4E56aFmUIk=/test_results.html @@ -0,0 +1 @@ +Test Results
Test Name9331789746221016066
cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces
\ No newline at end of file diff --git a/typescript-generator-core/.nondex/qGj37Isa0G38P33Eye20A32b68HeGE8iM3JRbajbcA=.run b/typescript-generator-core/.nondex/qGj37Isa0G38P33Eye20A32b68HeGE8iM3JRbajbcA=.run new file mode 100644 index 000000000..5f62f2bf7 --- /dev/null +++ b/typescript-generator-core/.nondex/qGj37Isa0G38P33Eye20A32b68HeGE8iM3JRbajbcA=.run @@ -0,0 +1,4 @@ +qGj37Isa0G38P33Eye20A32b68HeGE8iM3JRbajbcA= +sV7HgOTg3etVi+341tNBvH1eIUqG9K7KmmLfvX70nw= +nrU8X3gM+X05YGHsOUR1S8ChZjvfwwZ3g3cCIhjmwms= +clean_KAYDfwNpxh0RWfon58O1efxMBAUGCNm9mWf8ZOjkidM= diff --git a/typescript-generator-core/.nondex/qGj37Isa0G38P33Eye20A32b68HeGE8iM3JRbajbcA=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/qGj37Isa0G38P33Eye20A32b68HeGE8iM3JRbajbcA=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..084c8bf21 --- /dev/null +++ b/typescript-generator-core/.nondex/qGj37Isa0G38P33Eye20A32b68HeGE8iM3JRbajbcA=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:140) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/qGj37Isa0G38P33Eye20A32b68HeGE8iM3JRbajbcA=/config b/typescript-generator-core/.nondex/qGj37Isa0G38P33Eye20A32b68HeGE8iM3JRbajbcA=/config new file mode 100644 index 000000000..526988bed --- /dev/null +++ b/typescript-generator-core/.nondex/qGj37Isa0G38P33Eye20A32b68HeGE8iM3JRbajbcA=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=933178 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=qGj37Isa0G38P33Eye20A32b68HeGE8iM3JRbajbcA= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/qGj37Isa0G38P33Eye20A32b68HeGE8iM3JRbajbcA=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/qGj37Isa0G38P33Eye20A32b68HeGE8iM3JRbajbcA=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..962ee7b16 --- /dev/null +++ b/typescript-generator-core/.nondex/qGj37Isa0G38P33Eye20A32b68HeGE8iM3JRbajbcA=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,20 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.15 sec <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.149 sec <<< FAILURE! +org.junit.ComparisonFailure: expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:140) + diff --git a/typescript-generator-core/.nondex/qGj37Isa0G38P33Eye20A32b68HeGE8iM3JRbajbcA=/failures b/typescript-generator-core/.nondex/qGj37Isa0G38P33Eye20A32b68HeGE8iM3JRbajbcA=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/qGj37Isa0G38P33Eye20A32b68HeGE8iM3JRbajbcA=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/qGj37Isa0G38P33Eye20A32b68HeGE8iM3JRbajbcA=/invocations b/typescript-generator-core/.nondex/qGj37Isa0G38P33Eye20A32b68HeGE8iM3JRbajbcA=/invocations new file mode 100644 index 000000000..11ff8fe83 --- /dev/null +++ b/typescript-generator-core/.nondex/qGj37Isa0G38P33Eye20A32b68HeGE8iM3JRbajbcA=/invocations @@ -0,0 +1,2 @@ +COUNT:61 +SHUFFLES:61 diff --git a/typescript-generator-core/.nondex/qGj37Isa0G38P33Eye20A32b68HeGE8iM3JRbajbcA=/test_results.html b/typescript-generator-core/.nondex/qGj37Isa0G38P33Eye20A32b68HeGE8iM3JRbajbcA=/test_results.html new file mode 100644 index 000000000..a94e71794 --- /dev/null +++ b/typescript-generator-core/.nondex/qGj37Isa0G38P33Eye20A32b68HeGE8iM3JRbajbcA=/test_results.html @@ -0,0 +1 @@ +Test Results
Test Name9331789746221016066
cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces
\ No newline at end of file diff --git a/typescript-generator-core/.nondex/qVN58HPglqFi9LhWOmWPQbKDIl72JJoLVZysaAowg=.run b/typescript-generator-core/.nondex/qVN58HPglqFi9LhWOmWPQbKDIl72JJoLVZysaAowg=.run new file mode 100644 index 000000000..01118f3b2 --- /dev/null +++ b/typescript-generator-core/.nondex/qVN58HPglqFi9LhWOmWPQbKDIl72JJoLVZysaAowg=.run @@ -0,0 +1,4 @@ +qVN58HPglqFi9LhWOmWPQbKDIl72JJoLVZysaAowg= +x8VePkFRUyOmWfTC1XoioXdA98vLMM4CQNVNfR0m2Y= +SxsDGhJiTHjNEcNjEDsKKR7R5arQpDIj1vs+0kzw5sw= +clean_v7W7TCQHTfedAmDw8wqWeLu+iKfSMOL7+ChR5gXDo= diff --git a/typescript-generator-core/.nondex/qVN58HPglqFi9LhWOmWPQbKDIl72JJoLVZysaAowg=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/qVN58HPglqFi9LhWOmWPQbKDIl72JJoLVZysaAowg=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..4516b8399 --- /dev/null +++ b/typescript-generator-core/.nondex/qVN58HPglqFi9LhWOmWPQbKDIl72JJoLVZysaAowg=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,132 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:210) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/qVN58HPglqFi9LhWOmWPQbKDIl72JJoLVZysaAowg=/config b/typescript-generator-core/.nondex/qVN58HPglqFi9LhWOmWPQbKDIl72JJoLVZysaAowg=/config new file mode 100644 index 000000000..0b973d019 --- /dev/null +++ b/typescript-generator-core/.nondex/qVN58HPglqFi9LhWOmWPQbKDIl72JJoLVZysaAowg=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=933178 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=qVN58HPglqFi9LhWOmWPQbKDIl72JJoLVZysaAowg= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/qVN58HPglqFi9LhWOmWPQbKDIl72JJoLVZysaAowg=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/qVN58HPglqFi9LhWOmWPQbKDIl72JJoLVZysaAowg=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..24b0053da --- /dev/null +++ b/typescript-generator-core/.nondex/qVN58HPglqFi9LhWOmWPQbKDIl72JJoLVZysaAowg=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,56 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.179 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.176 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:210) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/qVN58HPglqFi9LhWOmWPQbKDIl72JJoLVZysaAowg=/failures b/typescript-generator-core/.nondex/qVN58HPglqFi9LhWOmWPQbKDIl72JJoLVZysaAowg=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/qVN58HPglqFi9LhWOmWPQbKDIl72JJoLVZysaAowg=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/qVN58HPglqFi9LhWOmWPQbKDIl72JJoLVZysaAowg=/invocations b/typescript-generator-core/.nondex/qVN58HPglqFi9LhWOmWPQbKDIl72JJoLVZysaAowg=/invocations new file mode 100644 index 000000000..7ad7d1da8 --- /dev/null +++ b/typescript-generator-core/.nondex/qVN58HPglqFi9LhWOmWPQbKDIl72JJoLVZysaAowg=/invocations @@ -0,0 +1,2 @@ +COUNT:67 +SHUFFLES:67 diff --git a/typescript-generator-core/.nondex/qVN58HPglqFi9LhWOmWPQbKDIl72JJoLVZysaAowg=/test_results.html b/typescript-generator-core/.nondex/qVN58HPglqFi9LhWOmWPQbKDIl72JJoLVZysaAowg=/test_results.html new file mode 100644 index 000000000..cc9aae726 --- /dev/null +++ b/typescript-generator-core/.nondex/qVN58HPglqFi9LhWOmWPQbKDIl72JJoLVZysaAowg=/test_results.html @@ -0,0 +1 @@ +Test Results
Test Name9331789746221016066
cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces
\ No newline at end of file diff --git a/typescript-generator-core/.nondex/qWbT7xmVy0LTunS4XIQaUKq43HenPa+WeOhOwCSElzE=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/qWbT7xmVy0LTunS4XIQaUKq43HenPa+WeOhOwCSElzE=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..3b1962f19 --- /dev/null +++ b/typescript-generator-core/.nondex/qWbT7xmVy0LTunS4XIQaUKq43HenPa+WeOhOwCSElzE=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/qWbT7xmVy0LTunS4XIQaUKq43HenPa+WeOhOwCSElzE=/config b/typescript-generator-core/.nondex/qWbT7xmVy0LTunS4XIQaUKq43HenPa+WeOhOwCSElzE=/config new file mode 100644 index 000000000..cb3d76694 --- /dev/null +++ b/typescript-generator-core/.nondex/qWbT7xmVy0LTunS4XIQaUKq43HenPa+WeOhOwCSElzE=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1762058 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=qWbT7xmVy0LTunS4XIQaUKq43HenPa+WeOhOwCSElzE= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/qWbT7xmVy0LTunS4XIQaUKq43HenPa+WeOhOwCSElzE=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/qWbT7xmVy0LTunS4XIQaUKq43HenPa+WeOhOwCSElzE=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..c3cc3f72d --- /dev/null +++ b/typescript-generator-core/.nondex/qWbT7xmVy0LTunS4XIQaUKq43HenPa+WeOhOwCSElzE=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.218 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/qWbT7xmVy0LTunS4XIQaUKq43HenPa+WeOhOwCSElzE=/failures b/typescript-generator-core/.nondex/qWbT7xmVy0LTunS4XIQaUKq43HenPa+WeOhOwCSElzE=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/qWbT7xmVy0LTunS4XIQaUKq43HenPa+WeOhOwCSElzE=/invocations b/typescript-generator-core/.nondex/qWbT7xmVy0LTunS4XIQaUKq43HenPa+WeOhOwCSElzE=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/qWbT7xmVy0LTunS4XIQaUKq43HenPa+WeOhOwCSElzE=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/qXKcVmg1sRafgrLLk2O4pz9LVFPI23UDz9TSIKcRAs=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/qXKcVmg1sRafgrLLk2O4pz9LVFPI23UDz9TSIKcRAs=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..fe40b4826 --- /dev/null +++ b/typescript-generator-core/.nondex/qXKcVmg1sRafgrLLk2O4pz9LVFPI23UDz9TSIKcRAs=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/qXKcVmg1sRafgrLLk2O4pz9LVFPI23UDz9TSIKcRAs=/config b/typescript-generator-core/.nondex/qXKcVmg1sRafgrLLk2O4pz9LVFPI23UDz9TSIKcRAs=/config new file mode 100644 index 000000000..8c810919f --- /dev/null +++ b/typescript-generator-core/.nondex/qXKcVmg1sRafgrLLk2O4pz9LVFPI23UDz9TSIKcRAs=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=3585594 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=qXKcVmg1sRafgrLLk2O4pz9LVFPI23UDz9TSIKcRAs= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/qXKcVmg1sRafgrLLk2O4pz9LVFPI23UDz9TSIKcRAs=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/qXKcVmg1sRafgrLLk2O4pz9LVFPI23UDz9TSIKcRAs=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..e631f00ba --- /dev/null +++ b/typescript-generator-core/.nondex/qXKcVmg1sRafgrLLk2O4pz9LVFPI23UDz9TSIKcRAs=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.236 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.229 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/qXKcVmg1sRafgrLLk2O4pz9LVFPI23UDz9TSIKcRAs=/failures b/typescript-generator-core/.nondex/qXKcVmg1sRafgrLLk2O4pz9LVFPI23UDz9TSIKcRAs=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/qXKcVmg1sRafgrLLk2O4pz9LVFPI23UDz9TSIKcRAs=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/qXKcVmg1sRafgrLLk2O4pz9LVFPI23UDz9TSIKcRAs=/invocations b/typescript-generator-core/.nondex/qXKcVmg1sRafgrLLk2O4pz9LVFPI23UDz9TSIKcRAs=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/qXKcVmg1sRafgrLLk2O4pz9LVFPI23UDz9TSIKcRAs=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/qi8B8OvSpyw9owcFvGJ+Vu23TpACkmhbyvOINfQ6DZ4=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/qi8B8OvSpyw9owcFvGJ+Vu23TpACkmhbyvOINfQ6DZ4=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..68bcf28c3 --- /dev/null +++ b/typescript-generator-core/.nondex/qi8B8OvSpyw9owcFvGJ+Vu23TpACkmhbyvOINfQ6DZ4=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/qi8B8OvSpyw9owcFvGJ+Vu23TpACkmhbyvOINfQ6DZ4=/config b/typescript-generator-core/.nondex/qi8B8OvSpyw9owcFvGJ+Vu23TpACkmhbyvOINfQ6DZ4=/config new file mode 100644 index 000000000..09cfb00d5 --- /dev/null +++ b/typescript-generator-core/.nondex/qi8B8OvSpyw9owcFvGJ+Vu23TpACkmhbyvOINfQ6DZ4=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=4000034 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=qi8B8OvSpyw9owcFvGJ+Vu23TpACkmhbyvOINfQ6DZ4= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/qi8B8OvSpyw9owcFvGJ+Vu23TpACkmhbyvOINfQ6DZ4=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/qi8B8OvSpyw9owcFvGJ+Vu23TpACkmhbyvOINfQ6DZ4=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..f3a800098 --- /dev/null +++ b/typescript-generator-core/.nondex/qi8B8OvSpyw9owcFvGJ+Vu23TpACkmhbyvOINfQ6DZ4=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.256 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.256 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/qi8B8OvSpyw9owcFvGJ+Vu23TpACkmhbyvOINfQ6DZ4=/failures b/typescript-generator-core/.nondex/qi8B8OvSpyw9owcFvGJ+Vu23TpACkmhbyvOINfQ6DZ4=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/qi8B8OvSpyw9owcFvGJ+Vu23TpACkmhbyvOINfQ6DZ4=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/qi8B8OvSpyw9owcFvGJ+Vu23TpACkmhbyvOINfQ6DZ4=/invocations b/typescript-generator-core/.nondex/qi8B8OvSpyw9owcFvGJ+Vu23TpACkmhbyvOINfQ6DZ4=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/qi8B8OvSpyw9owcFvGJ+Vu23TpACkmhbyvOINfQ6DZ4=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/qohQaQPOyEgveYTve5uiaRL36u62rRh7kfuRj4zBxM=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/qohQaQPOyEgveYTve5uiaRL36u62rRh7kfuRj4zBxM=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..a968af226 --- /dev/null +++ b/typescript-generator-core/.nondex/qohQaQPOyEgveYTve5uiaRL36u62rRh7kfuRj4zBxM=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/qohQaQPOyEgveYTve5uiaRL36u62rRh7kfuRj4zBxM=/config b/typescript-generator-core/.nondex/qohQaQPOyEgveYTve5uiaRL36u62rRh7kfuRj4zBxM=/config new file mode 100644 index 000000000..e5a357c91 --- /dev/null +++ b/typescript-generator-core/.nondex/qohQaQPOyEgveYTve5uiaRL36u62rRh7kfuRj4zBxM=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=2383718 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=qohQaQPOyEgveYTve5uiaRL36u62rRh7kfuRj4zBxM= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/qohQaQPOyEgveYTve5uiaRL36u62rRh7kfuRj4zBxM=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/qohQaQPOyEgveYTve5uiaRL36u62rRh7kfuRj4zBxM=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..3dd3fcb3b --- /dev/null +++ b/typescript-generator-core/.nondex/qohQaQPOyEgveYTve5uiaRL36u62rRh7kfuRj4zBxM=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.27 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.269 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/qohQaQPOyEgveYTve5uiaRL36u62rRh7kfuRj4zBxM=/failures b/typescript-generator-core/.nondex/qohQaQPOyEgveYTve5uiaRL36u62rRh7kfuRj4zBxM=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/qohQaQPOyEgveYTve5uiaRL36u62rRh7kfuRj4zBxM=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/qohQaQPOyEgveYTve5uiaRL36u62rRh7kfuRj4zBxM=/invocations b/typescript-generator-core/.nondex/qohQaQPOyEgveYTve5uiaRL36u62rRh7kfuRj4zBxM=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/qohQaQPOyEgveYTve5uiaRL36u62rRh7kfuRj4zBxM=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/qowbSmdtOtM8yu7La9U8+MA4FqjTAn3g9GI1VcWDb0=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/qowbSmdtOtM8yu7La9U8+MA4FqjTAn3g9GI1VcWDb0=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..202754158 --- /dev/null +++ b/typescript-generator-core/.nondex/qowbSmdtOtM8yu7La9U8+MA4FqjTAn3g9GI1VcWDb0=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/qowbSmdtOtM8yu7La9U8+MA4FqjTAn3g9GI1VcWDb0=/config b/typescript-generator-core/.nondex/qowbSmdtOtM8yu7La9U8+MA4FqjTAn3g9GI1VcWDb0=/config new file mode 100644 index 000000000..2f403c9ce --- /dev/null +++ b/typescript-generator-core/.nondex/qowbSmdtOtM8yu7La9U8+MA4FqjTAn3g9GI1VcWDb0=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=2052166 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=qowbSmdtOtM8yu7La9U8+MA4FqjTAn3g9GI1VcWDb0= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/qowbSmdtOtM8yu7La9U8+MA4FqjTAn3g9GI1VcWDb0=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/qowbSmdtOtM8yu7La9U8+MA4FqjTAn3g9GI1VcWDb0=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..55d87e544 --- /dev/null +++ b/typescript-generator-core/.nondex/qowbSmdtOtM8yu7La9U8+MA4FqjTAn3g9GI1VcWDb0=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.261 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/qowbSmdtOtM8yu7La9U8+MA4FqjTAn3g9GI1VcWDb0=/failures b/typescript-generator-core/.nondex/qowbSmdtOtM8yu7La9U8+MA4FqjTAn3g9GI1VcWDb0=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/qowbSmdtOtM8yu7La9U8+MA4FqjTAn3g9GI1VcWDb0=/invocations b/typescript-generator-core/.nondex/qowbSmdtOtM8yu7La9U8+MA4FqjTAn3g9GI1VcWDb0=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/qowbSmdtOtM8yu7La9U8+MA4FqjTAn3g9GI1VcWDb0=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/qp4MCgdONBnM4I2NXOMoigeDcpqyLIrKGWFuqj6Gio4=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/qp4MCgdONBnM4I2NXOMoigeDcpqyLIrKGWFuqj6Gio4=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..7d501a77e --- /dev/null +++ b/typescript-generator-core/.nondex/qp4MCgdONBnM4I2NXOMoigeDcpqyLIrKGWFuqj6Gio4=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/qp4MCgdONBnM4I2NXOMoigeDcpqyLIrKGWFuqj6Gio4=/config b/typescript-generator-core/.nondex/qp4MCgdONBnM4I2NXOMoigeDcpqyLIrKGWFuqj6Gio4=/config new file mode 100644 index 000000000..10919ca84 --- /dev/null +++ b/typescript-generator-core/.nondex/qp4MCgdONBnM4I2NXOMoigeDcpqyLIrKGWFuqj6Gio4=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=2259386 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=qp4MCgdONBnM4I2NXOMoigeDcpqyLIrKGWFuqj6Gio4= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/qp4MCgdONBnM4I2NXOMoigeDcpqyLIrKGWFuqj6Gio4=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/qp4MCgdONBnM4I2NXOMoigeDcpqyLIrKGWFuqj6Gio4=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..7e5f3532c --- /dev/null +++ b/typescript-generator-core/.nondex/qp4MCgdONBnM4I2NXOMoigeDcpqyLIrKGWFuqj6Gio4=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.264 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/qp4MCgdONBnM4I2NXOMoigeDcpqyLIrKGWFuqj6Gio4=/failures b/typescript-generator-core/.nondex/qp4MCgdONBnM4I2NXOMoigeDcpqyLIrKGWFuqj6Gio4=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/qp4MCgdONBnM4I2NXOMoigeDcpqyLIrKGWFuqj6Gio4=/invocations b/typescript-generator-core/.nondex/qp4MCgdONBnM4I2NXOMoigeDcpqyLIrKGWFuqj6Gio4=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/qp4MCgdONBnM4I2NXOMoigeDcpqyLIrKGWFuqj6Gio4=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/rDtxvZUtJMFPRVz9By+o2OJDH90MWl03BbpjB57eIc=/config b/typescript-generator-core/.nondex/rDtxvZUtJMFPRVz9By+o2OJDH90MWl03BbpjB57eIc=/config new file mode 100644 index 000000000..dbfcc502f --- /dev/null +++ b/typescript-generator-core/.nondex/rDtxvZUtJMFPRVz9By+o2OJDH90MWl03BbpjB57eIc=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1098954 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=rDtxvZUtJMFPRVz9By+o2OJDH90MWl03BbpjB57eIc= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/rDtxvZUtJMFPRVz9By+o2OJDH90MWl03BbpjB57eIc=/failures b/typescript-generator-core/.nondex/rDtxvZUtJMFPRVz9By+o2OJDH90MWl03BbpjB57eIc=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/rDtxvZUtJMFPRVz9By+o2OJDH90MWl03BbpjB57eIc=/invocations b/typescript-generator-core/.nondex/rDtxvZUtJMFPRVz9By+o2OJDH90MWl03BbpjB57eIc=/invocations new file mode 100644 index 000000000..c164bf6ef --- /dev/null +++ b/typescript-generator-core/.nondex/rDtxvZUtJMFPRVz9By+o2OJDH90MWl03BbpjB57eIc=/invocations @@ -0,0 +1,2 @@ +COUNT:16 +SHUFFLES:16 diff --git a/typescript-generator-core/.nondex/rYtyDyHonIXKEhg6YKj29JsDt0oZCRLpgOrRqrmBf8=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/rYtyDyHonIXKEhg6YKj29JsDt0oZCRLpgOrRqrmBf8=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..f49c74a89 --- /dev/null +++ b/typescript-generator-core/.nondex/rYtyDyHonIXKEhg6YKj29JsDt0oZCRLpgOrRqrmBf8=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/rYtyDyHonIXKEhg6YKj29JsDt0oZCRLpgOrRqrmBf8=/config b/typescript-generator-core/.nondex/rYtyDyHonIXKEhg6YKj29JsDt0oZCRLpgOrRqrmBf8=/config new file mode 100644 index 000000000..5d33d765b --- /dev/null +++ b/typescript-generator-core/.nondex/rYtyDyHonIXKEhg6YKj29JsDt0oZCRLpgOrRqrmBf8=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=3088266 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=rYtyDyHonIXKEhg6YKj29JsDt0oZCRLpgOrRqrmBf8= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/rYtyDyHonIXKEhg6YKj29JsDt0oZCRLpgOrRqrmBf8=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/rYtyDyHonIXKEhg6YKj29JsDt0oZCRLpgOrRqrmBf8=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..3fe6dbc45 --- /dev/null +++ b/typescript-generator-core/.nondex/rYtyDyHonIXKEhg6YKj29JsDt0oZCRLpgOrRqrmBf8=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.193 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/rYtyDyHonIXKEhg6YKj29JsDt0oZCRLpgOrRqrmBf8=/failures b/typescript-generator-core/.nondex/rYtyDyHonIXKEhg6YKj29JsDt0oZCRLpgOrRqrmBf8=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/rYtyDyHonIXKEhg6YKj29JsDt0oZCRLpgOrRqrmBf8=/invocations b/typescript-generator-core/.nondex/rYtyDyHonIXKEhg6YKj29JsDt0oZCRLpgOrRqrmBf8=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/rYtyDyHonIXKEhg6YKj29JsDt0oZCRLpgOrRqrmBf8=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/rbyvoyFVG2VTWkj6pmSOKDQz8wvZH29KepmEjOL4A=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/rbyvoyFVG2VTWkj6pmSOKDQz8wvZH29KepmEjOL4A=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..e09ad5867 --- /dev/null +++ b/typescript-generator-core/.nondex/rbyvoyFVG2VTWkj6pmSOKDQz8wvZH29KepmEjOL4A=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/rbyvoyFVG2VTWkj6pmSOKDQz8wvZH29KepmEjOL4A=/config b/typescript-generator-core/.nondex/rbyvoyFVG2VTWkj6pmSOKDQz8wvZH29KepmEjOL4A=/config new file mode 100644 index 000000000..c03f0df85 --- /dev/null +++ b/typescript-generator-core/.nondex/rbyvoyFVG2VTWkj6pmSOKDQz8wvZH29KepmEjOL4A=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=4331586 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=rbyvoyFVG2VTWkj6pmSOKDQz8wvZH29KepmEjOL4A= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/rbyvoyFVG2VTWkj6pmSOKDQz8wvZH29KepmEjOL4A=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/rbyvoyFVG2VTWkj6pmSOKDQz8wvZH29KepmEjOL4A=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..b016e2b1c --- /dev/null +++ b/typescript-generator-core/.nondex/rbyvoyFVG2VTWkj6pmSOKDQz8wvZH29KepmEjOL4A=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.231 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/rbyvoyFVG2VTWkj6pmSOKDQz8wvZH29KepmEjOL4A=/failures b/typescript-generator-core/.nondex/rbyvoyFVG2VTWkj6pmSOKDQz8wvZH29KepmEjOL4A=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/rbyvoyFVG2VTWkj6pmSOKDQz8wvZH29KepmEjOL4A=/invocations b/typescript-generator-core/.nondex/rbyvoyFVG2VTWkj6pmSOKDQz8wvZH29KepmEjOL4A=/invocations new file mode 100644 index 000000000..ba445629d --- /dev/null +++ b/typescript-generator-core/.nondex/rbyvoyFVG2VTWkj6pmSOKDQz8wvZH29KepmEjOL4A=/invocations @@ -0,0 +1,2 @@ +COUNT:154 +SHUFFLES:154 diff --git a/typescript-generator-core/.nondex/rhB8ao0Gu0MEDMH30omt6pMgrDonRx4jCCwhVEfUtDg=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/rhB8ao0Gu0MEDMH30omt6pMgrDonRx4jCCwhVEfUtDg=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..55b71706c --- /dev/null +++ b/typescript-generator-core/.nondex/rhB8ao0Gu0MEDMH30omt6pMgrDonRx4jCCwhVEfUtDg=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/rhB8ao0Gu0MEDMH30omt6pMgrDonRx4jCCwhVEfUtDg=/config b/typescript-generator-core/.nondex/rhB8ao0Gu0MEDMH30omt6pMgrDonRx4jCCwhVEfUtDg=/config new file mode 100644 index 000000000..26ce3ecda --- /dev/null +++ b/typescript-generator-core/.nondex/rhB8ao0Gu0MEDMH30omt6pMgrDonRx4jCCwhVEfUtDg=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=3792814 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=rhB8ao0Gu0MEDMH30omt6pMgrDonRx4jCCwhVEfUtDg= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/rhB8ao0Gu0MEDMH30omt6pMgrDonRx4jCCwhVEfUtDg=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/rhB8ao0Gu0MEDMH30omt6pMgrDonRx4jCCwhVEfUtDg=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..8525fffb6 --- /dev/null +++ b/typescript-generator-core/.nondex/rhB8ao0Gu0MEDMH30omt6pMgrDonRx4jCCwhVEfUtDg=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.214 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/rhB8ao0Gu0MEDMH30omt6pMgrDonRx4jCCwhVEfUtDg=/failures b/typescript-generator-core/.nondex/rhB8ao0Gu0MEDMH30omt6pMgrDonRx4jCCwhVEfUtDg=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/rhB8ao0Gu0MEDMH30omt6pMgrDonRx4jCCwhVEfUtDg=/invocations b/typescript-generator-core/.nondex/rhB8ao0Gu0MEDMH30omt6pMgrDonRx4jCCwhVEfUtDg=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/rhB8ao0Gu0MEDMH30omt6pMgrDonRx4jCCwhVEfUtDg=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/rjKVSsCKFaBahSFxiOb43ggGws0QCvOPmDTnBJNDs=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/rjKVSsCKFaBahSFxiOb43ggGws0QCvOPmDTnBJNDs=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..313f2b2cc --- /dev/null +++ b/typescript-generator-core/.nondex/rjKVSsCKFaBahSFxiOb43ggGws0QCvOPmDTnBJNDs=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/rjKVSsCKFaBahSFxiOb43ggGws0QCvOPmDTnBJNDs=/config b/typescript-generator-core/.nondex/rjKVSsCKFaBahSFxiOb43ggGws0QCvOPmDTnBJNDs=/config new file mode 100644 index 000000000..b5f13c108 --- /dev/null +++ b/typescript-generator-core/.nondex/rjKVSsCKFaBahSFxiOb43ggGws0QCvOPmDTnBJNDs=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1347618 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=rjKVSsCKFaBahSFxiOb43ggGws0QCvOPmDTnBJNDs= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/rjKVSsCKFaBahSFxiOb43ggGws0QCvOPmDTnBJNDs=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/rjKVSsCKFaBahSFxiOb43ggGws0QCvOPmDTnBJNDs=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..23b41bf30 --- /dev/null +++ b/typescript-generator-core/.nondex/rjKVSsCKFaBahSFxiOb43ggGws0QCvOPmDTnBJNDs=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.226 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/rjKVSsCKFaBahSFxiOb43ggGws0QCvOPmDTnBJNDs=/failures b/typescript-generator-core/.nondex/rjKVSsCKFaBahSFxiOb43ggGws0QCvOPmDTnBJNDs=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/rjKVSsCKFaBahSFxiOb43ggGws0QCvOPmDTnBJNDs=/invocations b/typescript-generator-core/.nondex/rjKVSsCKFaBahSFxiOb43ggGws0QCvOPmDTnBJNDs=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/rjKVSsCKFaBahSFxiOb43ggGws0QCvOPmDTnBJNDs=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/rlyvLEdSZjNouLEbevwpqic7LPlBvSgl9vQfVcs8C9k=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/rlyvLEdSZjNouLEbevwpqic7LPlBvSgl9vQfVcs8C9k=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..c9df2c441 --- /dev/null +++ b/typescript-generator-core/.nondex/rlyvLEdSZjNouLEbevwpqic7LPlBvSgl9vQfVcs8C9k=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/rlyvLEdSZjNouLEbevwpqic7LPlBvSgl9vQfVcs8C9k=/config b/typescript-generator-core/.nondex/rlyvLEdSZjNouLEbevwpqic7LPlBvSgl9vQfVcs8C9k=/config new file mode 100644 index 000000000..46e9e5ffa --- /dev/null +++ b/typescript-generator-core/.nondex/rlyvLEdSZjNouLEbevwpqic7LPlBvSgl9vQfVcs8C9k=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1347618 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=rlyvLEdSZjNouLEbevwpqic7LPlBvSgl9vQfVcs8C9k= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/rlyvLEdSZjNouLEbevwpqic7LPlBvSgl9vQfVcs8C9k=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/rlyvLEdSZjNouLEbevwpqic7LPlBvSgl9vQfVcs8C9k=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..8c1d15ce3 --- /dev/null +++ b/typescript-generator-core/.nondex/rlyvLEdSZjNouLEbevwpqic7LPlBvSgl9vQfVcs8C9k=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.222 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/rlyvLEdSZjNouLEbevwpqic7LPlBvSgl9vQfVcs8C9k=/failures b/typescript-generator-core/.nondex/rlyvLEdSZjNouLEbevwpqic7LPlBvSgl9vQfVcs8C9k=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/rlyvLEdSZjNouLEbevwpqic7LPlBvSgl9vQfVcs8C9k=/invocations b/typescript-generator-core/.nondex/rlyvLEdSZjNouLEbevwpqic7LPlBvSgl9vQfVcs8C9k=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/rlyvLEdSZjNouLEbevwpqic7LPlBvSgl9vQfVcs8C9k=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/s5Hn8Qoq0vZOv6gcIeUV0kfiiv9EGKgHrHLYOKmLSU=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/s5Hn8Qoq0vZOv6gcIeUV0kfiiv9EGKgHrHLYOKmLSU=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..b06d13667 --- /dev/null +++ b/typescript-generator-core/.nondex/s5Hn8Qoq0vZOv6gcIeUV0kfiiv9EGKgHrHLYOKmLSU=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/s5Hn8Qoq0vZOv6gcIeUV0kfiiv9EGKgHrHLYOKmLSU=/config b/typescript-generator-core/.nondex/s5Hn8Qoq0vZOv6gcIeUV0kfiiv9EGKgHrHLYOKmLSU=/config new file mode 100644 index 000000000..0aa5dbb44 --- /dev/null +++ b/typescript-generator-core/.nondex/s5Hn8Qoq0vZOv6gcIeUV0kfiiv9EGKgHrHLYOKmLSU=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=974622 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=s5Hn8Qoq0vZOv6gcIeUV0kfiiv9EGKgHrHLYOKmLSU= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/s5Hn8Qoq0vZOv6gcIeUV0kfiiv9EGKgHrHLYOKmLSU=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/s5Hn8Qoq0vZOv6gcIeUV0kfiiv9EGKgHrHLYOKmLSU=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..a3de4176c --- /dev/null +++ b/typescript-generator-core/.nondex/s5Hn8Qoq0vZOv6gcIeUV0kfiiv9EGKgHrHLYOKmLSU=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.143 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/s5Hn8Qoq0vZOv6gcIeUV0kfiiv9EGKgHrHLYOKmLSU=/failures b/typescript-generator-core/.nondex/s5Hn8Qoq0vZOv6gcIeUV0kfiiv9EGKgHrHLYOKmLSU=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/s5Hn8Qoq0vZOv6gcIeUV0kfiiv9EGKgHrHLYOKmLSU=/invocations b/typescript-generator-core/.nondex/s5Hn8Qoq0vZOv6gcIeUV0kfiiv9EGKgHrHLYOKmLSU=/invocations new file mode 100644 index 000000000..7ad7d1da8 --- /dev/null +++ b/typescript-generator-core/.nondex/s5Hn8Qoq0vZOv6gcIeUV0kfiiv9EGKgHrHLYOKmLSU=/invocations @@ -0,0 +1,2 @@ +COUNT:67 +SHUFFLES:67 diff --git a/typescript-generator-core/.nondex/s8kMxLf69ybVo7mGAkM4PT1icz78PVkaXwgwtCS4ts=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/s8kMxLf69ybVo7mGAkM4PT1icz78PVkaXwgwtCS4ts=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..aa44efea5 --- /dev/null +++ b/typescript-generator-core/.nondex/s8kMxLf69ybVo7mGAkM4PT1icz78PVkaXwgwtCS4ts=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/s8kMxLf69ybVo7mGAkM4PT1icz78PVkaXwgwtCS4ts=/config b/typescript-generator-core/.nondex/s8kMxLf69ybVo7mGAkM4PT1icz78PVkaXwgwtCS4ts=/config new file mode 100644 index 000000000..a46b88f5c --- /dev/null +++ b/typescript-generator-core/.nondex/s8kMxLf69ybVo7mGAkM4PT1icz78PVkaXwgwtCS4ts=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1223286 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=s8kMxLf69ybVo7mGAkM4PT1icz78PVkaXwgwtCS4ts= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/s8kMxLf69ybVo7mGAkM4PT1icz78PVkaXwgwtCS4ts=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/s8kMxLf69ybVo7mGAkM4PT1icz78PVkaXwgwtCS4ts=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..710c95160 --- /dev/null +++ b/typescript-generator-core/.nondex/s8kMxLf69ybVo7mGAkM4PT1icz78PVkaXwgwtCS4ts=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.229 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.229 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/s8kMxLf69ybVo7mGAkM4PT1icz78PVkaXwgwtCS4ts=/failures b/typescript-generator-core/.nondex/s8kMxLf69ybVo7mGAkM4PT1icz78PVkaXwgwtCS4ts=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/s8kMxLf69ybVo7mGAkM4PT1icz78PVkaXwgwtCS4ts=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/s8kMxLf69ybVo7mGAkM4PT1icz78PVkaXwgwtCS4ts=/invocations b/typescript-generator-core/.nondex/s8kMxLf69ybVo7mGAkM4PT1icz78PVkaXwgwtCS4ts=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/s8kMxLf69ybVo7mGAkM4PT1icz78PVkaXwgwtCS4ts=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/sD6Ylt1FBgXXZM1qccFucGn0P6QsA5ya99RQbHmm0J4=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/sD6Ylt1FBgXXZM1qccFucGn0P6QsA5ya99RQbHmm0J4=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..a5cf75fc5 --- /dev/null +++ b/typescript-generator-core/.nondex/sD6Ylt1FBgXXZM1qccFucGn0P6QsA5ya99RQbHmm0J4=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/sD6Ylt1FBgXXZM1qccFucGn0P6QsA5ya99RQbHmm0J4=/config b/typescript-generator-core/.nondex/sD6Ylt1FBgXXZM1qccFucGn0P6QsA5ya99RQbHmm0J4=/config new file mode 100644 index 000000000..db53aa43d --- /dev/null +++ b/typescript-generator-core/.nondex/sD6Ylt1FBgXXZM1qccFucGn0P6QsA5ya99RQbHmm0J4=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=4373030 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=sD6Ylt1FBgXXZM1qccFucGn0P6QsA5ya99RQbHmm0J4= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/sD6Ylt1FBgXXZM1qccFucGn0P6QsA5ya99RQbHmm0J4=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/sD6Ylt1FBgXXZM1qccFucGn0P6QsA5ya99RQbHmm0J4=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..66aae9f6c --- /dev/null +++ b/typescript-generator-core/.nondex/sD6Ylt1FBgXXZM1qccFucGn0P6QsA5ya99RQbHmm0J4=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.239 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/sD6Ylt1FBgXXZM1qccFucGn0P6QsA5ya99RQbHmm0J4=/failures b/typescript-generator-core/.nondex/sD6Ylt1FBgXXZM1qccFucGn0P6QsA5ya99RQbHmm0J4=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/sD6Ylt1FBgXXZM1qccFucGn0P6QsA5ya99RQbHmm0J4=/invocations b/typescript-generator-core/.nondex/sD6Ylt1FBgXXZM1qccFucGn0P6QsA5ya99RQbHmm0J4=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/sD6Ylt1FBgXXZM1qccFucGn0P6QsA5ya99RQbHmm0J4=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/sFOB+8LfuyGDadtB92RowXQ0PZUt7QNsi30GmjDiTw=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/sFOB+8LfuyGDadtB92RowXQ0PZUt7QNsi30GmjDiTw=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..cf1aac69a --- /dev/null +++ b/typescript-generator-core/.nondex/sFOB+8LfuyGDadtB92RowXQ0PZUt7QNsi30GmjDiTw=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/sFOB+8LfuyGDadtB92RowXQ0PZUt7QNsi30GmjDiTw=/config b/typescript-generator-core/.nondex/sFOB+8LfuyGDadtB92RowXQ0PZUt7QNsi30GmjDiTw=/config new file mode 100644 index 000000000..3be6ad2e4 --- /dev/null +++ b/typescript-generator-core/.nondex/sFOB+8LfuyGDadtB92RowXQ0PZUt7QNsi30GmjDiTw=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=2010722 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=sFOB+8LfuyGDadtB92RowXQ0PZUt7QNsi30GmjDiTw= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/sFOB+8LfuyGDadtB92RowXQ0PZUt7QNsi30GmjDiTw=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/sFOB+8LfuyGDadtB92RowXQ0PZUt7QNsi30GmjDiTw=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..7a6845a07 --- /dev/null +++ b/typescript-generator-core/.nondex/sFOB+8LfuyGDadtB92RowXQ0PZUt7QNsi30GmjDiTw=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.233 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.23 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/sFOB+8LfuyGDadtB92RowXQ0PZUt7QNsi30GmjDiTw=/failures b/typescript-generator-core/.nondex/sFOB+8LfuyGDadtB92RowXQ0PZUt7QNsi30GmjDiTw=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/sFOB+8LfuyGDadtB92RowXQ0PZUt7QNsi30GmjDiTw=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/sFOB+8LfuyGDadtB92RowXQ0PZUt7QNsi30GmjDiTw=/invocations b/typescript-generator-core/.nondex/sFOB+8LfuyGDadtB92RowXQ0PZUt7QNsi30GmjDiTw=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/sFOB+8LfuyGDadtB92RowXQ0PZUt7QNsi30GmjDiTw=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/sMMTTfvBOj8sF435cZ88z9rUB+RZWgKQCxwUExW6Hs=.run b/typescript-generator-core/.nondex/sMMTTfvBOj8sF435cZ88z9rUB+RZWgKQCxwUExW6Hs=.run new file mode 100644 index 000000000..c63036083 --- /dev/null +++ b/typescript-generator-core/.nondex/sMMTTfvBOj8sF435cZ88z9rUB+RZWgKQCxwUExW6Hs=.run @@ -0,0 +1,4 @@ +sMMTTfvBOj8sF435cZ88z9rUB+RZWgKQCxwUExW6Hs= +Y+A3kQ6gEmE1uubDd4zFlYhxu6b5TmVjrOHG21HjQI= +TQSeSuen+Zrsxb4hAkTid0ZWxPkrwEa5fI2RKKXWiFs= +clean_3Y6lEviGX1kiUG0mU5lly3B3Z+USXL4UxRRX1e+9tVo= diff --git a/typescript-generator-core/.nondex/sMMTTfvBOj8sF435cZ88z9rUB+RZWgKQCxwUExW6Hs=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/sMMTTfvBOj8sF435cZ88z9rUB+RZWgKQCxwUExW6Hs=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..dd02fb0f8 --- /dev/null +++ b/typescript-generator-core/.nondex/sMMTTfvBOj8sF435cZ88z9rUB+RZWgKQCxwUExW6Hs=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:140) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/sMMTTfvBOj8sF435cZ88z9rUB+RZWgKQCxwUExW6Hs=/config b/typescript-generator-core/.nondex/sMMTTfvBOj8sF435cZ88z9rUB+RZWgKQCxwUExW6Hs=/config new file mode 100644 index 000000000..a8635d26a --- /dev/null +++ b/typescript-generator-core/.nondex/sMMTTfvBOj8sF435cZ88z9rUB+RZWgKQCxwUExW6Hs=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=933178 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=sMMTTfvBOj8sF435cZ88z9rUB+RZWgKQCxwUExW6Hs= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/sMMTTfvBOj8sF435cZ88z9rUB+RZWgKQCxwUExW6Hs=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/sMMTTfvBOj8sF435cZ88z9rUB+RZWgKQCxwUExW6Hs=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..ae0d08b6c --- /dev/null +++ b/typescript-generator-core/.nondex/sMMTTfvBOj8sF435cZ88z9rUB+RZWgKQCxwUExW6Hs=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,20 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.155 sec <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.155 sec <<< FAILURE! +org.junit.ComparisonFailure: expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:140) + diff --git a/typescript-generator-core/.nondex/sMMTTfvBOj8sF435cZ88z9rUB+RZWgKQCxwUExW6Hs=/failures b/typescript-generator-core/.nondex/sMMTTfvBOj8sF435cZ88z9rUB+RZWgKQCxwUExW6Hs=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/sMMTTfvBOj8sF435cZ88z9rUB+RZWgKQCxwUExW6Hs=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/sMMTTfvBOj8sF435cZ88z9rUB+RZWgKQCxwUExW6Hs=/invocations b/typescript-generator-core/.nondex/sMMTTfvBOj8sF435cZ88z9rUB+RZWgKQCxwUExW6Hs=/invocations new file mode 100644 index 000000000..11ff8fe83 --- /dev/null +++ b/typescript-generator-core/.nondex/sMMTTfvBOj8sF435cZ88z9rUB+RZWgKQCxwUExW6Hs=/invocations @@ -0,0 +1,2 @@ +COUNT:61 +SHUFFLES:61 diff --git a/typescript-generator-core/.nondex/sMMTTfvBOj8sF435cZ88z9rUB+RZWgKQCxwUExW6Hs=/test_results.html b/typescript-generator-core/.nondex/sMMTTfvBOj8sF435cZ88z9rUB+RZWgKQCxwUExW6Hs=/test_results.html new file mode 100644 index 000000000..a94e71794 --- /dev/null +++ b/typescript-generator-core/.nondex/sMMTTfvBOj8sF435cZ88z9rUB+RZWgKQCxwUExW6Hs=/test_results.html @@ -0,0 +1 @@ +Test Results
Test Name9331789746221016066
cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces
\ No newline at end of file diff --git a/typescript-generator-core/.nondex/sV7HgOTg3etVi+341tNBvH1eIUqG9K7KmmLfvX70nw=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/sV7HgOTg3etVi+341tNBvH1eIUqG9K7KmmLfvX70nw=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..6df4ecbd5 --- /dev/null +++ b/typescript-generator-core/.nondex/sV7HgOTg3etVi+341tNBvH1eIUqG9K7KmmLfvX70nw=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,69 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/sV7HgOTg3etVi+341tNBvH1eIUqG9K7KmmLfvX70nw=/config b/typescript-generator-core/.nondex/sV7HgOTg3etVi+341tNBvH1eIUqG9K7KmmLfvX70nw=/config new file mode 100644 index 000000000..1b92cbc50 --- /dev/null +++ b/typescript-generator-core/.nondex/sV7HgOTg3etVi+341tNBvH1eIUqG9K7KmmLfvX70nw=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=974622 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=sV7HgOTg3etVi+341tNBvH1eIUqG9K7KmmLfvX70nw= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/sV7HgOTg3etVi+341tNBvH1eIUqG9K7KmmLfvX70nw=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/sV7HgOTg3etVi+341tNBvH1eIUqG9K7KmmLfvX70nw=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..db9d0967f --- /dev/null +++ b/typescript-generator-core/.nondex/sV7HgOTg3etVi+341tNBvH1eIUqG9K7KmmLfvX70nw=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.16 sec - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/sV7HgOTg3etVi+341tNBvH1eIUqG9K7KmmLfvX70nw=/failures b/typescript-generator-core/.nondex/sV7HgOTg3etVi+341tNBvH1eIUqG9K7KmmLfvX70nw=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/sV7HgOTg3etVi+341tNBvH1eIUqG9K7KmmLfvX70nw=/invocations b/typescript-generator-core/.nondex/sV7HgOTg3etVi+341tNBvH1eIUqG9K7KmmLfvX70nw=/invocations new file mode 100644 index 000000000..11ff8fe83 --- /dev/null +++ b/typescript-generator-core/.nondex/sV7HgOTg3etVi+341tNBvH1eIUqG9K7KmmLfvX70nw=/invocations @@ -0,0 +1,2 @@ +COUNT:61 +SHUFFLES:61 diff --git a/typescript-generator-core/.nondex/sgkStn4LXRSScWQmILsCyvkT0VR+5+FGNOSWoMggcu8=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/sgkStn4LXRSScWQmILsCyvkT0VR+5+FGNOSWoMggcu8=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..5a069ad54 --- /dev/null +++ b/typescript-generator-core/.nondex/sgkStn4LXRSScWQmILsCyvkT0VR+5+FGNOSWoMggcu8=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/sgkStn4LXRSScWQmILsCyvkT0VR+5+FGNOSWoMggcu8=/config b/typescript-generator-core/.nondex/sgkStn4LXRSScWQmILsCyvkT0VR+5+FGNOSWoMggcu8=/config new file mode 100644 index 000000000..d846281e6 --- /dev/null +++ b/typescript-generator-core/.nondex/sgkStn4LXRSScWQmILsCyvkT0VR+5+FGNOSWoMggcu8=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1554838 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=sgkStn4LXRSScWQmILsCyvkT0VR+5+FGNOSWoMggcu8= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/sgkStn4LXRSScWQmILsCyvkT0VR+5+FGNOSWoMggcu8=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/sgkStn4LXRSScWQmILsCyvkT0VR+5+FGNOSWoMggcu8=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..008410e34 --- /dev/null +++ b/typescript-generator-core/.nondex/sgkStn4LXRSScWQmILsCyvkT0VR+5+FGNOSWoMggcu8=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.217 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/sgkStn4LXRSScWQmILsCyvkT0VR+5+FGNOSWoMggcu8=/failures b/typescript-generator-core/.nondex/sgkStn4LXRSScWQmILsCyvkT0VR+5+FGNOSWoMggcu8=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/sgkStn4LXRSScWQmILsCyvkT0VR+5+FGNOSWoMggcu8=/invocations b/typescript-generator-core/.nondex/sgkStn4LXRSScWQmILsCyvkT0VR+5+FGNOSWoMggcu8=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/sgkStn4LXRSScWQmILsCyvkT0VR+5+FGNOSWoMggcu8=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/skO6l3jHNj2yM61NBW3ojBtS9Cg7sDpBpDqKlIv0M=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/skO6l3jHNj2yM61NBW3ojBtS9Cg7sDpBpDqKlIv0M=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..a7ccd20bf --- /dev/null +++ b/typescript-generator-core/.nondex/skO6l3jHNj2yM61NBW3ojBtS9Cg7sDpBpDqKlIv0M=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/skO6l3jHNj2yM61NBW3ojBtS9Cg7sDpBpDqKlIv0M=/config b/typescript-generator-core/.nondex/skO6l3jHNj2yM61NBW3ojBtS9Cg7sDpBpDqKlIv0M=/config new file mode 100644 index 000000000..baafd6d0e --- /dev/null +++ b/typescript-generator-core/.nondex/skO6l3jHNj2yM61NBW3ojBtS9Cg7sDpBpDqKlIv0M=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=4538806 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=skO6l3jHNj2yM61NBW3ojBtS9Cg7sDpBpDqKlIv0M= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/skO6l3jHNj2yM61NBW3ojBtS9Cg7sDpBpDqKlIv0M=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/skO6l3jHNj2yM61NBW3ojBtS9Cg7sDpBpDqKlIv0M=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..0ce9e98ec --- /dev/null +++ b/typescript-generator-core/.nondex/skO6l3jHNj2yM61NBW3ojBtS9Cg7sDpBpDqKlIv0M=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.237 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.236 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/skO6l3jHNj2yM61NBW3ojBtS9Cg7sDpBpDqKlIv0M=/failures b/typescript-generator-core/.nondex/skO6l3jHNj2yM61NBW3ojBtS9Cg7sDpBpDqKlIv0M=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/skO6l3jHNj2yM61NBW3ojBtS9Cg7sDpBpDqKlIv0M=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/skO6l3jHNj2yM61NBW3ojBtS9Cg7sDpBpDqKlIv0M=/invocations b/typescript-generator-core/.nondex/skO6l3jHNj2yM61NBW3ojBtS9Cg7sDpBpDqKlIv0M=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/skO6l3jHNj2yM61NBW3ojBtS9Cg7sDpBpDqKlIv0M=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/skYMTcwY9xunC0hv8jTIHvcn5hL6uxwyKWNkTB6Zo=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/skYMTcwY9xunC0hv8jTIHvcn5hL6uxwyKWNkTB6Zo=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..676a6a0fb --- /dev/null +++ b/typescript-generator-core/.nondex/skYMTcwY9xunC0hv8jTIHvcn5hL6uxwyKWNkTB6Zo=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,176 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:< +interface [CCircle2 extends IShape2 { + kind: "circle"; + radius: number; +} + +interface CRectangle2 extends IQuadrilateral2 { + kind: "rectangle"; + width: number; + height: number; +} + +interface IQuadrilateral2 extends IShape2 { + kind: "square" | "rectangle"; +} + +interface IShape2 { + kind: "circle" | "square" | "rectangle"; +} + +interface CSquare2 extends IQuadrilateral2 { + kind: "square"; + size: number]; +} + +type IShape2Uni...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/skYMTcwY9xunC0hv8jTIHvcn5hL6uxwyKWNkTB6Zo=/config b/typescript-generator-core/.nondex/skYMTcwY9xunC0hv8jTIHvcn5hL6uxwyKWNkTB6Zo=/config new file mode 100644 index 000000000..0a85bbd6a --- /dev/null +++ b/typescript-generator-core/.nondex/skYMTcwY9xunC0hv8jTIHvcn5hL6uxwyKWNkTB6Zo=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1181842 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=skYMTcwY9xunC0hv8jTIHvcn5hL6uxwyKWNkTB6Zo= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/skYMTcwY9xunC0hv8jTIHvcn5hL6uxwyKWNkTB6Zo=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/skYMTcwY9xunC0hv8jTIHvcn5hL6uxwyKWNkTB6Zo=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..01f214cd5 --- /dev/null +++ b/typescript-generator-core/.nondex/skYMTcwY9xunC0hv8jTIHvcn5hL6uxwyKWNkTB6Zo=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,100 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.219 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.219 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:< +interface [IShape2 { + kind: "circle" | "square" | "rectangle"; +} + +interface CSquare2 extends IQuadrilateral2 { + kind: "square"; + size: number; +} + +interface CRectangle2 extends IQuadrilateral2 { + kind: "rectangle"; + width: number; + height: number; +} + +interface CCircle2 extends IShape2 { + kind: "circle"; + radius: number; +} + +interface IQuadrilateral2 extends IShape2 { + kind: "square" | "rectangle"]; +} + +type IShape2Uni...> but was:< +interface [CCircle2 extends IShape2 { + kind: "circle"; + radius: number; +} + +interface CRectangle2 extends IQuadrilateral2 { + kind: "rectangle"; + width: number; + height: number; +} + +interface IQuadrilateral2 extends IShape2 { + kind: "square" | "rectangle"; +} + +interface IShape2 { + kind: "circle" | "square" | "rectangle"; +} + +interface CSquare2 extends IQuadrilateral2 { + kind: "square"; + size: number]; +} + +type IShape2Uni...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/skYMTcwY9xunC0hv8jTIHvcn5hL6uxwyKWNkTB6Zo=/failures b/typescript-generator-core/.nondex/skYMTcwY9xunC0hv8jTIHvcn5hL6uxwyKWNkTB6Zo=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/skYMTcwY9xunC0hv8jTIHvcn5hL6uxwyKWNkTB6Zo=/invocations b/typescript-generator-core/.nondex/skYMTcwY9xunC0hv8jTIHvcn5hL6uxwyKWNkTB6Zo=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/skYMTcwY9xunC0hv8jTIHvcn5hL6uxwyKWNkTB6Zo=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/stH7eR2Cxd2XWWLAZr4rxqQY+AscZ30paNfIIFRk5w=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/stH7eR2Cxd2XWWLAZr4rxqQY+AscZ30paNfIIFRk5w=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..b0852e517 --- /dev/null +++ b/typescript-generator-core/.nondex/stH7eR2Cxd2XWWLAZr4rxqQY+AscZ30paNfIIFRk5w=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/stH7eR2Cxd2XWWLAZr4rxqQY+AscZ30paNfIIFRk5w=/config b/typescript-generator-core/.nondex/stH7eR2Cxd2XWWLAZr4rxqQY+AscZ30paNfIIFRk5w=/config new file mode 100644 index 000000000..8a8ded2ae --- /dev/null +++ b/typescript-generator-core/.nondex/stH7eR2Cxd2XWWLAZr4rxqQY+AscZ30paNfIIFRk5w=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=3709926 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=stH7eR2Cxd2XWWLAZr4rxqQY+AscZ30paNfIIFRk5w= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/stH7eR2Cxd2XWWLAZr4rxqQY+AscZ30paNfIIFRk5w=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/stH7eR2Cxd2XWWLAZr4rxqQY+AscZ30paNfIIFRk5w=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..fe31f657c --- /dev/null +++ b/typescript-generator-core/.nondex/stH7eR2Cxd2XWWLAZr4rxqQY+AscZ30paNfIIFRk5w=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.201 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/stH7eR2Cxd2XWWLAZr4rxqQY+AscZ30paNfIIFRk5w=/failures b/typescript-generator-core/.nondex/stH7eR2Cxd2XWWLAZr4rxqQY+AscZ30paNfIIFRk5w=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/stH7eR2Cxd2XWWLAZr4rxqQY+AscZ30paNfIIFRk5w=/invocations b/typescript-generator-core/.nondex/stH7eR2Cxd2XWWLAZr4rxqQY+AscZ30paNfIIFRk5w=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/stH7eR2Cxd2XWWLAZr4rxqQY+AscZ30paNfIIFRk5w=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/t8YP6TrylCoyp9f0H1vINgUIkBIa9SabLcDaQT0Arww=/failures b/typescript-generator-core/.nondex/t8YP6TrylCoyp9f0H1vINgUIkBIa9SabLcDaQT0Arww=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/t9bZkram7RMlOYrOYM722fLSFwLPyynX12cXkXvvKI=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/t9bZkram7RMlOYrOYM722fLSFwLPyynX12cXkXvvKI=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..780b2dcc4 --- /dev/null +++ b/typescript-generator-core/.nondex/t9bZkram7RMlOYrOYM722fLSFwLPyynX12cXkXvvKI=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/t9bZkram7RMlOYrOYM722fLSFwLPyynX12cXkXvvKI=/config b/typescript-generator-core/.nondex/t9bZkram7RMlOYrOYM722fLSFwLPyynX12cXkXvvKI=/config new file mode 100644 index 000000000..cc09f837f --- /dev/null +++ b/typescript-generator-core/.nondex/t9bZkram7RMlOYrOYM722fLSFwLPyynX12cXkXvvKI=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1389062 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=t9bZkram7RMlOYrOYM722fLSFwLPyynX12cXkXvvKI= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/t9bZkram7RMlOYrOYM722fLSFwLPyynX12cXkXvvKI=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/t9bZkram7RMlOYrOYM722fLSFwLPyynX12cXkXvvKI=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..ea7270186 --- /dev/null +++ b/typescript-generator-core/.nondex/t9bZkram7RMlOYrOYM722fLSFwLPyynX12cXkXvvKI=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.249 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.243 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/t9bZkram7RMlOYrOYM722fLSFwLPyynX12cXkXvvKI=/failures b/typescript-generator-core/.nondex/t9bZkram7RMlOYrOYM722fLSFwLPyynX12cXkXvvKI=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/t9bZkram7RMlOYrOYM722fLSFwLPyynX12cXkXvvKI=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/t9bZkram7RMlOYrOYM722fLSFwLPyynX12cXkXvvKI=/invocations b/typescript-generator-core/.nondex/t9bZkram7RMlOYrOYM722fLSFwLPyynX12cXkXvvKI=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/t9bZkram7RMlOYrOYM722fLSFwLPyynX12cXkXvvKI=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/tM+1pc+h7yy7j6FAtj5zlZpYJCBJGpYJOQdJa6ma2GY=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/tM+1pc+h7yy7j6FAtj5zlZpYJCBJGpYJOQdJa6ma2GY=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..5d2f71d2b --- /dev/null +++ b/typescript-generator-core/.nondex/tM+1pc+h7yy7j6FAtj5zlZpYJCBJGpYJOQdJa6ma2GY=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/tM+1pc+h7yy7j6FAtj5zlZpYJCBJGpYJOQdJa6ma2GY=/config b/typescript-generator-core/.nondex/tM+1pc+h7yy7j6FAtj5zlZpYJCBJGpYJOQdJa6ma2GY=/config new file mode 100644 index 000000000..d4a491fca --- /dev/null +++ b/typescript-generator-core/.nondex/tM+1pc+h7yy7j6FAtj5zlZpYJCBJGpYJOQdJa6ma2GY=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1016066 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=tM+1pc+h7yy7j6FAtj5zlZpYJCBJGpYJOQdJa6ma2GY= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/tM+1pc+h7yy7j6FAtj5zlZpYJCBJGpYJOQdJa6ma2GY=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/tM+1pc+h7yy7j6FAtj5zlZpYJCBJGpYJOQdJa6ma2GY=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..2a0caf7a7 --- /dev/null +++ b/typescript-generator-core/.nondex/tM+1pc+h7yy7j6FAtj5zlZpYJCBJGpYJOQdJa6ma2GY=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.168 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/tM+1pc+h7yy7j6FAtj5zlZpYJCBJGpYJOQdJa6ma2GY=/failures b/typescript-generator-core/.nondex/tM+1pc+h7yy7j6FAtj5zlZpYJCBJGpYJOQdJa6ma2GY=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/tM+1pc+h7yy7j6FAtj5zlZpYJCBJGpYJOQdJa6ma2GY=/invocations b/typescript-generator-core/.nondex/tM+1pc+h7yy7j6FAtj5zlZpYJCBJGpYJOQdJa6ma2GY=/invocations new file mode 100644 index 000000000..7ad7d1da8 --- /dev/null +++ b/typescript-generator-core/.nondex/tM+1pc+h7yy7j6FAtj5zlZpYJCBJGpYJOQdJa6ma2GY=/invocations @@ -0,0 +1,2 @@ +COUNT:67 +SHUFFLES:67 diff --git a/typescript-generator-core/.nondex/tgXxYFZsKPgy0cLRDmVBsoZG0bW4hJMzZ8YrylvxhM=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/tgXxYFZsKPgy0cLRDmVBsoZG0bW4hJMzZ8YrylvxhM=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..66d538644 --- /dev/null +++ b/typescript-generator-core/.nondex/tgXxYFZsKPgy0cLRDmVBsoZG0bW4hJMzZ8YrylvxhM=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/tgXxYFZsKPgy0cLRDmVBsoZG0bW4hJMzZ8YrylvxhM=/config b/typescript-generator-core/.nondex/tgXxYFZsKPgy0cLRDmVBsoZG0bW4hJMzZ8YrylvxhM=/config new file mode 100644 index 000000000..10ec725e3 --- /dev/null +++ b/typescript-generator-core/.nondex/tgXxYFZsKPgy0cLRDmVBsoZG0bW4hJMzZ8YrylvxhM=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=4165810 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=tgXxYFZsKPgy0cLRDmVBsoZG0bW4hJMzZ8YrylvxhM= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/tgXxYFZsKPgy0cLRDmVBsoZG0bW4hJMzZ8YrylvxhM=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/tgXxYFZsKPgy0cLRDmVBsoZG0bW4hJMzZ8YrylvxhM=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..b76fb5595 --- /dev/null +++ b/typescript-generator-core/.nondex/tgXxYFZsKPgy0cLRDmVBsoZG0bW4hJMzZ8YrylvxhM=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.209 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.208 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/tgXxYFZsKPgy0cLRDmVBsoZG0bW4hJMzZ8YrylvxhM=/failures b/typescript-generator-core/.nondex/tgXxYFZsKPgy0cLRDmVBsoZG0bW4hJMzZ8YrylvxhM=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/tgXxYFZsKPgy0cLRDmVBsoZG0bW4hJMzZ8YrylvxhM=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/tgXxYFZsKPgy0cLRDmVBsoZG0bW4hJMzZ8YrylvxhM=/invocations b/typescript-generator-core/.nondex/tgXxYFZsKPgy0cLRDmVBsoZG0bW4hJMzZ8YrylvxhM=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/tgXxYFZsKPgy0cLRDmVBsoZG0bW4hJMzZ8YrylvxhM=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/tqT7VvJHoEszz720+0WcA5F0r8cU2+vBJQJbhzxNQk=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/tqT7VvJHoEszz720+0WcA5F0r8cU2+vBJQJbhzxNQk=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..f38ccb6ae --- /dev/null +++ b/typescript-generator-core/.nondex/tqT7VvJHoEszz720+0WcA5F0r8cU2+vBJQJbhzxNQk=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/tqT7VvJHoEszz720+0WcA5F0r8cU2+vBJQJbhzxNQk=/config b/typescript-generator-core/.nondex/tqT7VvJHoEszz720+0WcA5F0r8cU2+vBJQJbhzxNQk=/config new file mode 100644 index 000000000..ebc7b3a94 --- /dev/null +++ b/typescript-generator-core/.nondex/tqT7VvJHoEszz720+0WcA5F0r8cU2+vBJQJbhzxNQk=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=3461262 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=tqT7VvJHoEszz720+0WcA5F0r8cU2+vBJQJbhzxNQk= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/tqT7VvJHoEszz720+0WcA5F0r8cU2+vBJQJbhzxNQk=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/tqT7VvJHoEszz720+0WcA5F0r8cU2+vBJQJbhzxNQk=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..9f66b24e4 --- /dev/null +++ b/typescript-generator-core/.nondex/tqT7VvJHoEszz720+0WcA5F0r8cU2+vBJQJbhzxNQk=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.218 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.218 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/tqT7VvJHoEszz720+0WcA5F0r8cU2+vBJQJbhzxNQk=/failures b/typescript-generator-core/.nondex/tqT7VvJHoEszz720+0WcA5F0r8cU2+vBJQJbhzxNQk=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/tqT7VvJHoEszz720+0WcA5F0r8cU2+vBJQJbhzxNQk=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/tqT7VvJHoEszz720+0WcA5F0r8cU2+vBJQJbhzxNQk=/invocations b/typescript-generator-core/.nondex/tqT7VvJHoEszz720+0WcA5F0r8cU2+vBJQJbhzxNQk=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/tqT7VvJHoEszz720+0WcA5F0r8cU2+vBJQJbhzxNQk=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/u5HgQFP5Sw5s15QP9Ns4e6saBv8O83AAfyWL7Tg7k=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/u5HgQFP5Sw5s15QP9Ns4e6saBv8O83AAfyWL7Tg7k=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..79ad1db06 --- /dev/null +++ b/typescript-generator-core/.nondex/u5HgQFP5Sw5s15QP9Ns4e6saBv8O83AAfyWL7Tg7k=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/u5HgQFP5Sw5s15QP9Ns4e6saBv8O83AAfyWL7Tg7k=/config b/typescript-generator-core/.nondex/u5HgQFP5Sw5s15QP9Ns4e6saBv8O83AAfyWL7Tg7k=/config new file mode 100644 index 000000000..711e675ff --- /dev/null +++ b/typescript-generator-core/.nondex/u5HgQFP5Sw5s15QP9Ns4e6saBv8O83AAfyWL7Tg7k=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=4207254 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=u5HgQFP5Sw5s15QP9Ns4e6saBv8O83AAfyWL7Tg7k= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/u5HgQFP5Sw5s15QP9Ns4e6saBv8O83AAfyWL7Tg7k=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/u5HgQFP5Sw5s15QP9Ns4e6saBv8O83AAfyWL7Tg7k=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..8c1d15ce3 --- /dev/null +++ b/typescript-generator-core/.nondex/u5HgQFP5Sw5s15QP9Ns4e6saBv8O83AAfyWL7Tg7k=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.222 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/u5HgQFP5Sw5s15QP9Ns4e6saBv8O83AAfyWL7Tg7k=/failures b/typescript-generator-core/.nondex/u5HgQFP5Sw5s15QP9Ns4e6saBv8O83AAfyWL7Tg7k=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/u5HgQFP5Sw5s15QP9Ns4e6saBv8O83AAfyWL7Tg7k=/invocations b/typescript-generator-core/.nondex/u5HgQFP5Sw5s15QP9Ns4e6saBv8O83AAfyWL7Tg7k=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/u5HgQFP5Sw5s15QP9Ns4e6saBv8O83AAfyWL7Tg7k=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/uLjDBHC0c7JnQwINxAiXb23mu1DigjXDL9240GDDA=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/uLjDBHC0c7JnQwINxAiXb23mu1DigjXDL9240GDDA=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..f4abc0c83 --- /dev/null +++ b/typescript-generator-core/.nondex/uLjDBHC0c7JnQwINxAiXb23mu1DigjXDL9240GDDA=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:140) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/uLjDBHC0c7JnQwINxAiXb23mu1DigjXDL9240GDDA=/config b/typescript-generator-core/.nondex/uLjDBHC0c7JnQwINxAiXb23mu1DigjXDL9240GDDA=/config new file mode 100644 index 000000000..c0e1f3d69 --- /dev/null +++ b/typescript-generator-core/.nondex/uLjDBHC0c7JnQwINxAiXb23mu1DigjXDL9240GDDA=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1016066 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=uLjDBHC0c7JnQwINxAiXb23mu1DigjXDL9240GDDA= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/uLjDBHC0c7JnQwINxAiXb23mu1DigjXDL9240GDDA=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/uLjDBHC0c7JnQwINxAiXb23mu1DigjXDL9240GDDA=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..5cace1498 --- /dev/null +++ b/typescript-generator-core/.nondex/uLjDBHC0c7JnQwINxAiXb23mu1DigjXDL9240GDDA=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,20 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.155 sec <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.152 sec <<< FAILURE! +org.junit.ComparisonFailure: expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:140) + diff --git a/typescript-generator-core/.nondex/uLjDBHC0c7JnQwINxAiXb23mu1DigjXDL9240GDDA=/failures b/typescript-generator-core/.nondex/uLjDBHC0c7JnQwINxAiXb23mu1DigjXDL9240GDDA=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/uLjDBHC0c7JnQwINxAiXb23mu1DigjXDL9240GDDA=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/uLjDBHC0c7JnQwINxAiXb23mu1DigjXDL9240GDDA=/invocations b/typescript-generator-core/.nondex/uLjDBHC0c7JnQwINxAiXb23mu1DigjXDL9240GDDA=/invocations new file mode 100644 index 000000000..e066c9f34 --- /dev/null +++ b/typescript-generator-core/.nondex/uLjDBHC0c7JnQwINxAiXb23mu1DigjXDL9240GDDA=/invocations @@ -0,0 +1,2 @@ +COUNT:57 +SHUFFLES:57 diff --git a/typescript-generator-core/.nondex/uP+gJXw5iCTnnb03M3KBTRYoBS55AjR5uTB76nkT2TA=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/uP+gJXw5iCTnnb03M3KBTRYoBS55AjR5uTB76nkT2TA=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..89626a27e --- /dev/null +++ b/typescript-generator-core/.nondex/uP+gJXw5iCTnnb03M3KBTRYoBS55AjR5uTB76nkT2TA=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/uP+gJXw5iCTnnb03M3KBTRYoBS55AjR5uTB76nkT2TA=/config b/typescript-generator-core/.nondex/uP+gJXw5iCTnnb03M3KBTRYoBS55AjR5uTB76nkT2TA=/config new file mode 100644 index 000000000..56a885d6b --- /dev/null +++ b/typescript-generator-core/.nondex/uP+gJXw5iCTnnb03M3KBTRYoBS55AjR5uTB76nkT2TA=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=4870358 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=uP+gJXw5iCTnnb03M3KBTRYoBS55AjR5uTB76nkT2TA= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/uP+gJXw5iCTnnb03M3KBTRYoBS55AjR5uTB76nkT2TA=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/uP+gJXw5iCTnnb03M3KBTRYoBS55AjR5uTB76nkT2TA=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..4cf6588de --- /dev/null +++ b/typescript-generator-core/.nondex/uP+gJXw5iCTnnb03M3KBTRYoBS55AjR5uTB76nkT2TA=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.242 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/uP+gJXw5iCTnnb03M3KBTRYoBS55AjR5uTB76nkT2TA=/failures b/typescript-generator-core/.nondex/uP+gJXw5iCTnnb03M3KBTRYoBS55AjR5uTB76nkT2TA=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/uP+gJXw5iCTnnb03M3KBTRYoBS55AjR5uTB76nkT2TA=/invocations b/typescript-generator-core/.nondex/uP+gJXw5iCTnnb03M3KBTRYoBS55AjR5uTB76nkT2TA=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/uP+gJXw5iCTnnb03M3KBTRYoBS55AjR5uTB76nkT2TA=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/uVrF6s9t31jpItuwuO1rIwJ784G1wURKiaLofoEU8E=.run b/typescript-generator-core/.nondex/uVrF6s9t31jpItuwuO1rIwJ784G1wURKiaLofoEU8E=.run new file mode 100644 index 000000000..2782d6e5f --- /dev/null +++ b/typescript-generator-core/.nondex/uVrF6s9t31jpItuwuO1rIwJ784G1wURKiaLofoEU8E=.run @@ -0,0 +1,4 @@ +uVrF6s9t31jpItuwuO1rIwJ784G1wURKiaLofoEU8E= +Q92pbEw4nV9uJpP8eqR6J+L9rAZw8JKeGEjsIHR9c7E= +Yf1yPlWEwPEM9iFVhywlveov7KZjldiRTJiz2aH0xc= +clean_j1yTErkTFmtcYvkbc36o9bXcTSPKUmJd8600KWmI= diff --git a/typescript-generator-core/.nondex/uVrF6s9t31jpItuwuO1rIwJ784G1wURKiaLofoEU8E=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/uVrF6s9t31jpItuwuO1rIwJ784G1wURKiaLofoEU8E=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..1f82ead0f --- /dev/null +++ b/typescript-generator-core/.nondex/uVrF6s9t31jpItuwuO1rIwJ784G1wURKiaLofoEU8E=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,132 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:210) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/uVrF6s9t31jpItuwuO1rIwJ784G1wURKiaLofoEU8E=/config b/typescript-generator-core/.nondex/uVrF6s9t31jpItuwuO1rIwJ784G1wURKiaLofoEU8E=/config new file mode 100644 index 000000000..db477957f --- /dev/null +++ b/typescript-generator-core/.nondex/uVrF6s9t31jpItuwuO1rIwJ784G1wURKiaLofoEU8E=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=933178 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=uVrF6s9t31jpItuwuO1rIwJ784G1wURKiaLofoEU8E= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/uVrF6s9t31jpItuwuO1rIwJ784G1wURKiaLofoEU8E=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/uVrF6s9t31jpItuwuO1rIwJ784G1wURKiaLofoEU8E=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..9ff5c0c39 --- /dev/null +++ b/typescript-generator-core/.nondex/uVrF6s9t31jpItuwuO1rIwJ784G1wURKiaLofoEU8E=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,56 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.166 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.165 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:210) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) + at org.junit.runners.ParentRunner.run(ParentRunner.java:363) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/uVrF6s9t31jpItuwuO1rIwJ784G1wURKiaLofoEU8E=/failures b/typescript-generator-core/.nondex/uVrF6s9t31jpItuwuO1rIwJ784G1wURKiaLofoEU8E=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/uVrF6s9t31jpItuwuO1rIwJ784G1wURKiaLofoEU8E=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/uVrF6s9t31jpItuwuO1rIwJ784G1wURKiaLofoEU8E=/invocations b/typescript-generator-core/.nondex/uVrF6s9t31jpItuwuO1rIwJ784G1wURKiaLofoEU8E=/invocations new file mode 100644 index 000000000..7ad7d1da8 --- /dev/null +++ b/typescript-generator-core/.nondex/uVrF6s9t31jpItuwuO1rIwJ784G1wURKiaLofoEU8E=/invocations @@ -0,0 +1,2 @@ +COUNT:67 +SHUFFLES:67 diff --git a/typescript-generator-core/.nondex/uVrF6s9t31jpItuwuO1rIwJ784G1wURKiaLofoEU8E=/test_results.html b/typescript-generator-core/.nondex/uVrF6s9t31jpItuwuO1rIwJ784G1wURKiaLofoEU8E=/test_results.html new file mode 100644 index 000000000..cc9aae726 --- /dev/null +++ b/typescript-generator-core/.nondex/uVrF6s9t31jpItuwuO1rIwJ784G1wURKiaLofoEU8E=/test_results.html @@ -0,0 +1 @@ +Test Results
Test Name9331789746221016066
cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces
\ No newline at end of file diff --git a/typescript-generator-core/.nondex/ued4XXufYvnEvI29hQGnNmygv3DPvsKfhlFKwoTR8wg=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/ued4XXufYvnEvI29hQGnNmygv3DPvsKfhlFKwoTR8wg=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..149ce68bf --- /dev/null +++ b/typescript-generator-core/.nondex/ued4XXufYvnEvI29hQGnNmygv3DPvsKfhlFKwoTR8wg=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/ued4XXufYvnEvI29hQGnNmygv3DPvsKfhlFKwoTR8wg=/config b/typescript-generator-core/.nondex/ued4XXufYvnEvI29hQGnNmygv3DPvsKfhlFKwoTR8wg=/config new file mode 100644 index 000000000..41723cef7 --- /dev/null +++ b/typescript-generator-core/.nondex/ued4XXufYvnEvI29hQGnNmygv3DPvsKfhlFKwoTR8wg=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1637726 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=ued4XXufYvnEvI29hQGnNmygv3DPvsKfhlFKwoTR8wg= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/ued4XXufYvnEvI29hQGnNmygv3DPvsKfhlFKwoTR8wg=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/ued4XXufYvnEvI29hQGnNmygv3DPvsKfhlFKwoTR8wg=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..a9016fdb6 --- /dev/null +++ b/typescript-generator-core/.nondex/ued4XXufYvnEvI29hQGnNmygv3DPvsKfhlFKwoTR8wg=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.212 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/ued4XXufYvnEvI29hQGnNmygv3DPvsKfhlFKwoTR8wg=/failures b/typescript-generator-core/.nondex/ued4XXufYvnEvI29hQGnNmygv3DPvsKfhlFKwoTR8wg=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/ued4XXufYvnEvI29hQGnNmygv3DPvsKfhlFKwoTR8wg=/invocations b/typescript-generator-core/.nondex/ued4XXufYvnEvI29hQGnNmygv3DPvsKfhlFKwoTR8wg=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/ued4XXufYvnEvI29hQGnNmygv3DPvsKfhlFKwoTR8wg=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/usvaDLi+8yT5KWMYgSajM3dBKnHRiSrlp7dqBjax2k=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/usvaDLi+8yT5KWMYgSajM3dBKnHRiSrlp7dqBjax2k=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..539cc7161 --- /dev/null +++ b/typescript-generator-core/.nondex/usvaDLi+8yT5KWMYgSajM3dBKnHRiSrlp7dqBjax2k=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/usvaDLi+8yT5KWMYgSajM3dBKnHRiSrlp7dqBjax2k=/config b/typescript-generator-core/.nondex/usvaDLi+8yT5KWMYgSajM3dBKnHRiSrlp7dqBjax2k=/config new file mode 100644 index 000000000..77a237989 --- /dev/null +++ b/typescript-generator-core/.nondex/usvaDLi+8yT5KWMYgSajM3dBKnHRiSrlp7dqBjax2k=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=4290142 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=usvaDLi+8yT5KWMYgSajM3dBKnHRiSrlp7dqBjax2k= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/usvaDLi+8yT5KWMYgSajM3dBKnHRiSrlp7dqBjax2k=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/usvaDLi+8yT5KWMYgSajM3dBKnHRiSrlp7dqBjax2k=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..057d52f3e --- /dev/null +++ b/typescript-generator-core/.nondex/usvaDLi+8yT5KWMYgSajM3dBKnHRiSrlp7dqBjax2k=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.22 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/usvaDLi+8yT5KWMYgSajM3dBKnHRiSrlp7dqBjax2k=/failures b/typescript-generator-core/.nondex/usvaDLi+8yT5KWMYgSajM3dBKnHRiSrlp7dqBjax2k=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/usvaDLi+8yT5KWMYgSajM3dBKnHRiSrlp7dqBjax2k=/invocations b/typescript-generator-core/.nondex/usvaDLi+8yT5KWMYgSajM3dBKnHRiSrlp7dqBjax2k=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/usvaDLi+8yT5KWMYgSajM3dBKnHRiSrlp7dqBjax2k=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/v6qXSY8FsXoJ3Ut8yejoxENu748yknhCNx9wmyGdwc=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/v6qXSY8FsXoJ3Ut8yejoxENu748yknhCNx9wmyGdwc=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..9b04de911 --- /dev/null +++ b/typescript-generator-core/.nondex/v6qXSY8FsXoJ3Ut8yejoxENu748yknhCNx9wmyGdwc=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/v6qXSY8FsXoJ3Ut8yejoxENu748yknhCNx9wmyGdwc=/config b/typescript-generator-core/.nondex/v6qXSY8FsXoJ3Ut8yejoxENu748yknhCNx9wmyGdwc=/config new file mode 100644 index 000000000..05009f863 --- /dev/null +++ b/typescript-generator-core/.nondex/v6qXSY8FsXoJ3Ut8yejoxENu748yknhCNx9wmyGdwc=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=3875702 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=v6qXSY8FsXoJ3Ut8yejoxENu748yknhCNx9wmyGdwc= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/v6qXSY8FsXoJ3Ut8yejoxENu748yknhCNx9wmyGdwc=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/v6qXSY8FsXoJ3Ut8yejoxENu748yknhCNx9wmyGdwc=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..5f185c24d --- /dev/null +++ b/typescript-generator-core/.nondex/v6qXSY8FsXoJ3Ut8yejoxENu748yknhCNx9wmyGdwc=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.206 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/v6qXSY8FsXoJ3Ut8yejoxENu748yknhCNx9wmyGdwc=/failures b/typescript-generator-core/.nondex/v6qXSY8FsXoJ3Ut8yejoxENu748yknhCNx9wmyGdwc=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/v6qXSY8FsXoJ3Ut8yejoxENu748yknhCNx9wmyGdwc=/invocations b/typescript-generator-core/.nondex/v6qXSY8FsXoJ3Ut8yejoxENu748yknhCNx9wmyGdwc=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/v6qXSY8FsXoJ3Ut8yejoxENu748yknhCNx9wmyGdwc=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/vey1yLBh2UihjgIh+tsPKM92HP0CvfxywMkB1Fczno=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/vey1yLBh2UihjgIh+tsPKM92HP0CvfxywMkB1Fczno=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..e46b1b649 --- /dev/null +++ b/typescript-generator-core/.nondex/vey1yLBh2UihjgIh+tsPKM92HP0CvfxywMkB1Fczno=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,70 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/vey1yLBh2UihjgIh+tsPKM92HP0CvfxywMkB1Fczno=/config b/typescript-generator-core/.nondex/vey1yLBh2UihjgIh+tsPKM92HP0CvfxywMkB1Fczno=/config new file mode 100644 index 000000000..eb3de886f --- /dev/null +++ b/typescript-generator-core/.nondex/vey1yLBh2UihjgIh+tsPKM92HP0CvfxywMkB1Fczno=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1181842 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=vey1yLBh2UihjgIh+tsPKM92HP0CvfxywMkB1Fczno= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/vey1yLBh2UihjgIh+tsPKM92HP0CvfxywMkB1Fczno=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/vey1yLBh2UihjgIh+tsPKM92HP0CvfxywMkB1Fczno=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..1a6e19d38 --- /dev/null +++ b/typescript-generator-core/.nondex/vey1yLBh2UihjgIh+tsPKM92HP0CvfxywMkB1Fczno=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.184 sec - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/vey1yLBh2UihjgIh+tsPKM92HP0CvfxywMkB1Fczno=/failures b/typescript-generator-core/.nondex/vey1yLBh2UihjgIh+tsPKM92HP0CvfxywMkB1Fczno=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/vey1yLBh2UihjgIh+tsPKM92HP0CvfxywMkB1Fczno=/invocations b/typescript-generator-core/.nondex/vey1yLBh2UihjgIh+tsPKM92HP0CvfxywMkB1Fczno=/invocations new file mode 100644 index 000000000..11ff8fe83 --- /dev/null +++ b/typescript-generator-core/.nondex/vey1yLBh2UihjgIh+tsPKM92HP0CvfxywMkB1Fczno=/invocations @@ -0,0 +1,2 @@ +COUNT:61 +SHUFFLES:61 diff --git a/typescript-generator-core/.nondex/vhe2I0u7V9IPzzUpkbAx+JUstGvNZ+FkrCb4b1XrNI=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/vhe2I0u7V9IPzzUpkbAx+JUstGvNZ+FkrCb4b1XrNI=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..8e87de7e3 --- /dev/null +++ b/typescript-generator-core/.nondex/vhe2I0u7V9IPzzUpkbAx+JUstGvNZ+FkrCb4b1XrNI=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/vhe2I0u7V9IPzzUpkbAx+JUstGvNZ+FkrCb4b1XrNI=/config b/typescript-generator-core/.nondex/vhe2I0u7V9IPzzUpkbAx+JUstGvNZ+FkrCb4b1XrNI=/config new file mode 100644 index 000000000..00bb210e7 --- /dev/null +++ b/typescript-generator-core/.nondex/vhe2I0u7V9IPzzUpkbAx+JUstGvNZ+FkrCb4b1XrNI=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=2259386 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=vhe2I0u7V9IPzzUpkbAx+JUstGvNZ+FkrCb4b1XrNI= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/vhe2I0u7V9IPzzUpkbAx+JUstGvNZ+FkrCb4b1XrNI=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/vhe2I0u7V9IPzzUpkbAx+JUstGvNZ+FkrCb4b1XrNI=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..d4f325410 --- /dev/null +++ b/typescript-generator-core/.nondex/vhe2I0u7V9IPzzUpkbAx+JUstGvNZ+FkrCb4b1XrNI=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.203 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/vhe2I0u7V9IPzzUpkbAx+JUstGvNZ+FkrCb4b1XrNI=/failures b/typescript-generator-core/.nondex/vhe2I0u7V9IPzzUpkbAx+JUstGvNZ+FkrCb4b1XrNI=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/vhe2I0u7V9IPzzUpkbAx+JUstGvNZ+FkrCb4b1XrNI=/invocations b/typescript-generator-core/.nondex/vhe2I0u7V9IPzzUpkbAx+JUstGvNZ+FkrCb4b1XrNI=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/vhe2I0u7V9IPzzUpkbAx+JUstGvNZ+FkrCb4b1XrNI=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/vhzXxFAMNHliF5sz7KauZqYi30nbMUKREvXhnzW2vk=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/vhzXxFAMNHliF5sz7KauZqYi30nbMUKREvXhnzW2vk=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..43ed30537 --- /dev/null +++ b/typescript-generator-core/.nondex/vhzXxFAMNHliF5sz7KauZqYi30nbMUKREvXhnzW2vk=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,70 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/vhzXxFAMNHliF5sz7KauZqYi30nbMUKREvXhnzW2vk=/config b/typescript-generator-core/.nondex/vhzXxFAMNHliF5sz7KauZqYi30nbMUKREvXhnzW2vk=/config new file mode 100644 index 000000000..b011ae198 --- /dev/null +++ b/typescript-generator-core/.nondex/vhzXxFAMNHliF5sz7KauZqYi30nbMUKREvXhnzW2vk=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1098954 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=vhzXxFAMNHliF5sz7KauZqYi30nbMUKREvXhnzW2vk= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/vhzXxFAMNHliF5sz7KauZqYi30nbMUKREvXhnzW2vk=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/vhzXxFAMNHliF5sz7KauZqYi30nbMUKREvXhnzW2vk=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..d86a407cf --- /dev/null +++ b/typescript-generator-core/.nondex/vhzXxFAMNHliF5sz7KauZqYi30nbMUKREvXhnzW2vk=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.167 sec - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/vhzXxFAMNHliF5sz7KauZqYi30nbMUKREvXhnzW2vk=/failures b/typescript-generator-core/.nondex/vhzXxFAMNHliF5sz7KauZqYi30nbMUKREvXhnzW2vk=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/vhzXxFAMNHliF5sz7KauZqYi30nbMUKREvXhnzW2vk=/invocations b/typescript-generator-core/.nondex/vhzXxFAMNHliF5sz7KauZqYi30nbMUKREvXhnzW2vk=/invocations new file mode 100644 index 000000000..11ff8fe83 --- /dev/null +++ b/typescript-generator-core/.nondex/vhzXxFAMNHliF5sz7KauZqYi30nbMUKREvXhnzW2vk=/invocations @@ -0,0 +1,2 @@ +COUNT:61 +SHUFFLES:61 diff --git a/typescript-generator-core/.nondex/vxZ23uRq5cSotRs+vx+0uZjXYVfBc36g9Tjnlq0HrOk=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/vxZ23uRq5cSotRs+vx+0uZjXYVfBc36g9Tjnlq0HrOk=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..05622b1fd --- /dev/null +++ b/typescript-generator-core/.nondex/vxZ23uRq5cSotRs+vx+0uZjXYVfBc36g9Tjnlq0HrOk=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/vxZ23uRq5cSotRs+vx+0uZjXYVfBc36g9Tjnlq0HrOk=/config b/typescript-generator-core/.nondex/vxZ23uRq5cSotRs+vx+0uZjXYVfBc36g9Tjnlq0HrOk=/config new file mode 100644 index 000000000..fffc2cb9d --- /dev/null +++ b/typescript-generator-core/.nondex/vxZ23uRq5cSotRs+vx+0uZjXYVfBc36g9Tjnlq0HrOk=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=2839602 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=vxZ23uRq5cSotRs+vx+0uZjXYVfBc36g9Tjnlq0HrOk= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/vxZ23uRq5cSotRs+vx+0uZjXYVfBc36g9Tjnlq0HrOk=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/vxZ23uRq5cSotRs+vx+0uZjXYVfBc36g9Tjnlq0HrOk=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..6a1039e20 --- /dev/null +++ b/typescript-generator-core/.nondex/vxZ23uRq5cSotRs+vx+0uZjXYVfBc36g9Tjnlq0HrOk=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.284 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/vxZ23uRq5cSotRs+vx+0uZjXYVfBc36g9Tjnlq0HrOk=/failures b/typescript-generator-core/.nondex/vxZ23uRq5cSotRs+vx+0uZjXYVfBc36g9Tjnlq0HrOk=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/vxZ23uRq5cSotRs+vx+0uZjXYVfBc36g9Tjnlq0HrOk=/invocations b/typescript-generator-core/.nondex/vxZ23uRq5cSotRs+vx+0uZjXYVfBc36g9Tjnlq0HrOk=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/vxZ23uRq5cSotRs+vx+0uZjXYVfBc36g9Tjnlq0HrOk=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/wCfa4cAjZpJslhSIdLr1wpbTDhAujoGdFFjNhVPfY=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/wCfa4cAjZpJslhSIdLr1wpbTDhAujoGdFFjNhVPfY=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..86684660b --- /dev/null +++ b/typescript-generator-core/.nondex/wCfa4cAjZpJslhSIdLr1wpbTDhAujoGdFFjNhVPfY=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/wCfa4cAjZpJslhSIdLr1wpbTDhAujoGdFFjNhVPfY=/config b/typescript-generator-core/.nondex/wCfa4cAjZpJslhSIdLr1wpbTDhAujoGdFFjNhVPfY=/config new file mode 100644 index 000000000..0cc17cfd5 --- /dev/null +++ b/typescript-generator-core/.nondex/wCfa4cAjZpJslhSIdLr1wpbTDhAujoGdFFjNhVPfY=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=3585594 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=wCfa4cAjZpJslhSIdLr1wpbTDhAujoGdFFjNhVPfY= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/wCfa4cAjZpJslhSIdLr1wpbTDhAujoGdFFjNhVPfY=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/wCfa4cAjZpJslhSIdLr1wpbTDhAujoGdFFjNhVPfY=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..17319afcd --- /dev/null +++ b/typescript-generator-core/.nondex/wCfa4cAjZpJslhSIdLr1wpbTDhAujoGdFFjNhVPfY=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.226 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.224 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/wCfa4cAjZpJslhSIdLr1wpbTDhAujoGdFFjNhVPfY=/failures b/typescript-generator-core/.nondex/wCfa4cAjZpJslhSIdLr1wpbTDhAujoGdFFjNhVPfY=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/wCfa4cAjZpJslhSIdLr1wpbTDhAujoGdFFjNhVPfY=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/wCfa4cAjZpJslhSIdLr1wpbTDhAujoGdFFjNhVPfY=/invocations b/typescript-generator-core/.nondex/wCfa4cAjZpJslhSIdLr1wpbTDhAujoGdFFjNhVPfY=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/wCfa4cAjZpJslhSIdLr1wpbTDhAujoGdFFjNhVPfY=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/wGsghiSC7lq8ernpxgkVVUsX9O3gBnAZZoKWUEXA=/config b/typescript-generator-core/.nondex/wGsghiSC7lq8ernpxgkVVUsX9O3gBnAZZoKWUEXA=/config new file mode 100644 index 000000000..bab1e9a62 --- /dev/null +++ b/typescript-generator-core/.nondex/wGsghiSC7lq8ernpxgkVVUsX9O3gBnAZZoKWUEXA=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1016066 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=wGsghiSC7lq8ernpxgkVVUsX9O3gBnAZZoKWUEXA= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/wGsghiSC7lq8ernpxgkVVUsX9O3gBnAZZoKWUEXA=/failures b/typescript-generator-core/.nondex/wGsghiSC7lq8ernpxgkVVUsX9O3gBnAZZoKWUEXA=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/wGsghiSC7lq8ernpxgkVVUsX9O3gBnAZZoKWUEXA=/invocations b/typescript-generator-core/.nondex/wGsghiSC7lq8ernpxgkVVUsX9O3gBnAZZoKWUEXA=/invocations new file mode 100644 index 000000000..c164bf6ef --- /dev/null +++ b/typescript-generator-core/.nondex/wGsghiSC7lq8ernpxgkVVUsX9O3gBnAZZoKWUEXA=/invocations @@ -0,0 +1,2 @@ +COUNT:16 +SHUFFLES:16 diff --git a/typescript-generator-core/.nondex/wvkxol0OUU6KXVmbJMCB9Nh2ZOrL3yWYzwB2uRYR0s=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/wvkxol0OUU6KXVmbJMCB9Nh2ZOrL3yWYzwB2uRYR0s=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..47b84cd81 --- /dev/null +++ b/typescript-generator-core/.nondex/wvkxol0OUU6KXVmbJMCB9Nh2ZOrL3yWYzwB2uRYR0s=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/wvkxol0OUU6KXVmbJMCB9Nh2ZOrL3yWYzwB2uRYR0s=/config b/typescript-generator-core/.nondex/wvkxol0OUU6KXVmbJMCB9Nh2ZOrL3yWYzwB2uRYR0s=/config new file mode 100644 index 000000000..14da12987 --- /dev/null +++ b/typescript-generator-core/.nondex/wvkxol0OUU6KXVmbJMCB9Nh2ZOrL3yWYzwB2uRYR0s=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=2715270 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=wvkxol0OUU6KXVmbJMCB9Nh2ZOrL3yWYzwB2uRYR0s= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/wvkxol0OUU6KXVmbJMCB9Nh2ZOrL3yWYzwB2uRYR0s=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/wvkxol0OUU6KXVmbJMCB9Nh2ZOrL3yWYzwB2uRYR0s=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..2042d3318 --- /dev/null +++ b/typescript-generator-core/.nondex/wvkxol0OUU6KXVmbJMCB9Nh2ZOrL3yWYzwB2uRYR0s=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.331 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/wvkxol0OUU6KXVmbJMCB9Nh2ZOrL3yWYzwB2uRYR0s=/failures b/typescript-generator-core/.nondex/wvkxol0OUU6KXVmbJMCB9Nh2ZOrL3yWYzwB2uRYR0s=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/wvkxol0OUU6KXVmbJMCB9Nh2ZOrL3yWYzwB2uRYR0s=/invocations b/typescript-generator-core/.nondex/wvkxol0OUU6KXVmbJMCB9Nh2ZOrL3yWYzwB2uRYR0s=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/wvkxol0OUU6KXVmbJMCB9Nh2ZOrL3yWYzwB2uRYR0s=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/x1cGhgCx5MiEP5B+6xyXdrREGC4cX23jYecAAFzPCYg=/config b/typescript-generator-core/.nondex/x1cGhgCx5MiEP5B+6xyXdrREGC4cX23jYecAAFzPCYg=/config new file mode 100644 index 000000000..ca903ea3a --- /dev/null +++ b/typescript-generator-core/.nondex/x1cGhgCx5MiEP5B+6xyXdrREGC4cX23jYecAAFzPCYg=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1016066 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=x1cGhgCx5MiEP5B+6xyXdrREGC4cX23jYecAAFzPCYg= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/x1cGhgCx5MiEP5B+6xyXdrREGC4cX23jYecAAFzPCYg=/failures b/typescript-generator-core/.nondex/x1cGhgCx5MiEP5B+6xyXdrREGC4cX23jYecAAFzPCYg=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/x1cGhgCx5MiEP5B+6xyXdrREGC4cX23jYecAAFzPCYg=/invocations b/typescript-generator-core/.nondex/x1cGhgCx5MiEP5B+6xyXdrREGC4cX23jYecAAFzPCYg=/invocations new file mode 100644 index 000000000..c164bf6ef --- /dev/null +++ b/typescript-generator-core/.nondex/x1cGhgCx5MiEP5B+6xyXdrREGC4cX23jYecAAFzPCYg=/invocations @@ -0,0 +1,2 @@ +COUNT:16 +SHUFFLES:16 diff --git a/typescript-generator-core/.nondex/x2uByaqtn857kFvm2o5yP132EInjqkDx+oLUaujaLVc=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/x2uByaqtn857kFvm2o5yP132EInjqkDx+oLUaujaLVc=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..bb44a4f40 --- /dev/null +++ b/typescript-generator-core/.nondex/x2uByaqtn857kFvm2o5yP132EInjqkDx+oLUaujaLVc=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/x2uByaqtn857kFvm2o5yP132EInjqkDx+oLUaujaLVc=/config b/typescript-generator-core/.nondex/x2uByaqtn857kFvm2o5yP132EInjqkDx+oLUaujaLVc=/config new file mode 100644 index 000000000..93209c4d8 --- /dev/null +++ b/typescript-generator-core/.nondex/x2uByaqtn857kFvm2o5yP132EInjqkDx+oLUaujaLVc=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=3171154 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=x2uByaqtn857kFvm2o5yP132EInjqkDx+oLUaujaLVc= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/x2uByaqtn857kFvm2o5yP132EInjqkDx+oLUaujaLVc=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/x2uByaqtn857kFvm2o5yP132EInjqkDx+oLUaujaLVc=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..7c12efb3a --- /dev/null +++ b/typescript-generator-core/.nondex/x2uByaqtn857kFvm2o5yP132EInjqkDx+oLUaujaLVc=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.3 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.297 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/x2uByaqtn857kFvm2o5yP132EInjqkDx+oLUaujaLVc=/failures b/typescript-generator-core/.nondex/x2uByaqtn857kFvm2o5yP132EInjqkDx+oLUaujaLVc=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/x2uByaqtn857kFvm2o5yP132EInjqkDx+oLUaujaLVc=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/x2uByaqtn857kFvm2o5yP132EInjqkDx+oLUaujaLVc=/invocations b/typescript-generator-core/.nondex/x2uByaqtn857kFvm2o5yP132EInjqkDx+oLUaujaLVc=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/x2uByaqtn857kFvm2o5yP132EInjqkDx+oLUaujaLVc=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/x8VePkFRUyOmWfTC1XoioXdA98vLMM4CQNVNfR0m2Y=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/x8VePkFRUyOmWfTC1XoioXdA98vLMM4CQNVNfR0m2Y=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..d17081be9 --- /dev/null +++ b/typescript-generator-core/.nondex/x8VePkFRUyOmWfTC1XoioXdA98vLMM4CQNVNfR0m2Y=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/x8VePkFRUyOmWfTC1XoioXdA98vLMM4CQNVNfR0m2Y=/config b/typescript-generator-core/.nondex/x8VePkFRUyOmWfTC1XoioXdA98vLMM4CQNVNfR0m2Y=/config new file mode 100644 index 000000000..cd1247ae9 --- /dev/null +++ b/typescript-generator-core/.nondex/x8VePkFRUyOmWfTC1XoioXdA98vLMM4CQNVNfR0m2Y=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=974622 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=x8VePkFRUyOmWfTC1XoioXdA98vLMM4CQNVNfR0m2Y= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/x8VePkFRUyOmWfTC1XoioXdA98vLMM4CQNVNfR0m2Y=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/x8VePkFRUyOmWfTC1XoioXdA98vLMM4CQNVNfR0m2Y=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..c49e8bd00 --- /dev/null +++ b/typescript-generator-core/.nondex/x8VePkFRUyOmWfTC1XoioXdA98vLMM4CQNVNfR0m2Y=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.14 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/x8VePkFRUyOmWfTC1XoioXdA98vLMM4CQNVNfR0m2Y=/failures b/typescript-generator-core/.nondex/x8VePkFRUyOmWfTC1XoioXdA98vLMM4CQNVNfR0m2Y=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/x8VePkFRUyOmWfTC1XoioXdA98vLMM4CQNVNfR0m2Y=/invocations b/typescript-generator-core/.nondex/x8VePkFRUyOmWfTC1XoioXdA98vLMM4CQNVNfR0m2Y=/invocations new file mode 100644 index 000000000..7ad7d1da8 --- /dev/null +++ b/typescript-generator-core/.nondex/x8VePkFRUyOmWfTC1XoioXdA98vLMM4CQNVNfR0m2Y=/invocations @@ -0,0 +1,2 @@ +COUNT:67 +SHUFFLES:67 diff --git a/typescript-generator-core/.nondex/xGbMEYEgS1wEFrp7tZQHP09gPFkl4eEg3wfnIVvpGrQ=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/xGbMEYEgS1wEFrp7tZQHP09gPFkl4eEg3wfnIVvpGrQ=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..738c55f87 --- /dev/null +++ b/typescript-generator-core/.nondex/xGbMEYEgS1wEFrp7tZQHP09gPFkl4eEg3wfnIVvpGrQ=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,126 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:140) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) + at org.junit.runners.ParentRunner.run(ParentRunner.java:309) + at org.junit.runners.Suite.runChild(Suite.java:127) + at org.junit.runners.Suite.runChild(Suite.java:26) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) + at org.junit.runners.ParentRunner.run(ParentRunner.java:309) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:161) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/xGbMEYEgS1wEFrp7tZQHP09gPFkl4eEg3wfnIVvpGrQ=/config b/typescript-generator-core/.nondex/xGbMEYEgS1wEFrp7tZQHP09gPFkl4eEg3wfnIVvpGrQ=/config new file mode 100644 index 000000000..b7fa7ae4a --- /dev/null +++ b/typescript-generator-core/.nondex/xGbMEYEgS1wEFrp7tZQHP09gPFkl4eEg3wfnIVvpGrQ=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=974622 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=xGbMEYEgS1wEFrp7tZQHP09gPFkl4eEg3wfnIVvpGrQ= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/xGbMEYEgS1wEFrp7tZQHP09gPFkl4eEg3wfnIVvpGrQ=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/xGbMEYEgS1wEFrp7tZQHP09gPFkl4eEg3wfnIVvpGrQ=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..4e435d87a --- /dev/null +++ b/typescript-generator-core/.nondex/xGbMEYEgS1wEFrp7tZQHP09gPFkl4eEg3wfnIVvpGrQ=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,55 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.137 sec <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.137 sec <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:140) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:498) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) + at org.junit.runners.ParentRunner.run(ParentRunner.java:309) + at org.junit.runners.Suite.runChild(Suite.java:127) + at org.junit.runners.Suite.runChild(Suite.java:26) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) + at org.junit.runners.ParentRunner.run(ParentRunner.java:309) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:161) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121) + diff --git a/typescript-generator-core/.nondex/xGbMEYEgS1wEFrp7tZQHP09gPFkl4eEg3wfnIVvpGrQ=/failures b/typescript-generator-core/.nondex/xGbMEYEgS1wEFrp7tZQHP09gPFkl4eEg3wfnIVvpGrQ=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/xGbMEYEgS1wEFrp7tZQHP09gPFkl4eEg3wfnIVvpGrQ=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/xGbMEYEgS1wEFrp7tZQHP09gPFkl4eEg3wfnIVvpGrQ=/invocations b/typescript-generator-core/.nondex/xGbMEYEgS1wEFrp7tZQHP09gPFkl4eEg3wfnIVvpGrQ=/invocations new file mode 100644 index 000000000..e412a9f93 --- /dev/null +++ b/typescript-generator-core/.nondex/xGbMEYEgS1wEFrp7tZQHP09gPFkl4eEg3wfnIVvpGrQ=/invocations @@ -0,0 +1,2 @@ +COUNT:59 +SHUFFLES:59 diff --git a/typescript-generator-core/.nondex/xYKFI4WetJWxtJP0TaiT2zBTqaAjc+WbJvN40u+VjBc=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/xYKFI4WetJWxtJP0TaiT2zBTqaAjc+WbJvN40u+VjBc=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..7e14134d2 --- /dev/null +++ b/typescript-generator-core/.nondex/xYKFI4WetJWxtJP0TaiT2zBTqaAjc+WbJvN40u+VjBc=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/xYKFI4WetJWxtJP0TaiT2zBTqaAjc+WbJvN40u+VjBc=/config b/typescript-generator-core/.nondex/xYKFI4WetJWxtJP0TaiT2zBTqaAjc+WbJvN40u+VjBc=/config new file mode 100644 index 000000000..4209f8aef --- /dev/null +++ b/typescript-generator-core/.nondex/xYKFI4WetJWxtJP0TaiT2zBTqaAjc+WbJvN40u+VjBc=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=4621694 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=xYKFI4WetJWxtJP0TaiT2zBTqaAjc+WbJvN40u+VjBc= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/xYKFI4WetJWxtJP0TaiT2zBTqaAjc+WbJvN40u+VjBc=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/xYKFI4WetJWxtJP0TaiT2zBTqaAjc+WbJvN40u+VjBc=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..8eb292608 --- /dev/null +++ b/typescript-generator-core/.nondex/xYKFI4WetJWxtJP0TaiT2zBTqaAjc+WbJvN40u+VjBc=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.206 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.205 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/xYKFI4WetJWxtJP0TaiT2zBTqaAjc+WbJvN40u+VjBc=/failures b/typescript-generator-core/.nondex/xYKFI4WetJWxtJP0TaiT2zBTqaAjc+WbJvN40u+VjBc=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/xYKFI4WetJWxtJP0TaiT2zBTqaAjc+WbJvN40u+VjBc=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/xYKFI4WetJWxtJP0TaiT2zBTqaAjc+WbJvN40u+VjBc=/invocations b/typescript-generator-core/.nondex/xYKFI4WetJWxtJP0TaiT2zBTqaAjc+WbJvN40u+VjBc=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/xYKFI4WetJWxtJP0TaiT2zBTqaAjc+WbJvN40u+VjBc=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/xrZaoS1OvuSrRt3vZxFvhKdcnqul5wphetbw1vT2deU=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/xrZaoS1OvuSrRt3vZxFvhKdcnqul5wphetbw1vT2deU=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..c4d121d61 --- /dev/null +++ b/typescript-generator-core/.nondex/xrZaoS1OvuSrRt3vZxFvhKdcnqul5wphetbw1vT2deU=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:140) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/xrZaoS1OvuSrRt3vZxFvhKdcnqul5wphetbw1vT2deU=/config b/typescript-generator-core/.nondex/xrZaoS1OvuSrRt3vZxFvhKdcnqul5wphetbw1vT2deU=/config new file mode 100644 index 000000000..a478aeba4 --- /dev/null +++ b/typescript-generator-core/.nondex/xrZaoS1OvuSrRt3vZxFvhKdcnqul5wphetbw1vT2deU=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1016066 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=xrZaoS1OvuSrRt3vZxFvhKdcnqul5wphetbw1vT2deU= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/xrZaoS1OvuSrRt3vZxFvhKdcnqul5wphetbw1vT2deU=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/xrZaoS1OvuSrRt3vZxFvhKdcnqul5wphetbw1vT2deU=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..9518a0018 --- /dev/null +++ b/typescript-generator-core/.nondex/xrZaoS1OvuSrRt3vZxFvhKdcnqul5wphetbw1vT2deU=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,20 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.161 sec <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.159 sec <<< FAILURE! +org.junit.ComparisonFailure: expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:140) + diff --git a/typescript-generator-core/.nondex/xrZaoS1OvuSrRt3vZxFvhKdcnqul5wphetbw1vT2deU=/failures b/typescript-generator-core/.nondex/xrZaoS1OvuSrRt3vZxFvhKdcnqul5wphetbw1vT2deU=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/xrZaoS1OvuSrRt3vZxFvhKdcnqul5wphetbw1vT2deU=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/xrZaoS1OvuSrRt3vZxFvhKdcnqul5wphetbw1vT2deU=/invocations b/typescript-generator-core/.nondex/xrZaoS1OvuSrRt3vZxFvhKdcnqul5wphetbw1vT2deU=/invocations new file mode 100644 index 000000000..11ff8fe83 --- /dev/null +++ b/typescript-generator-core/.nondex/xrZaoS1OvuSrRt3vZxFvhKdcnqul5wphetbw1vT2deU=/invocations @@ -0,0 +1,2 @@ +COUNT:61 +SHUFFLES:61 diff --git a/typescript-generator-core/.nondex/yDBxqDeCRNFI+IWhRH8QliRjIEVVcyJaMtCYK+vo8Q=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/yDBxqDeCRNFI+IWhRH8QliRjIEVVcyJaMtCYK+vo8Q=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..befcccbc1 --- /dev/null +++ b/typescript-generator-core/.nondex/yDBxqDeCRNFI+IWhRH8QliRjIEVVcyJaMtCYK+vo8Q=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/yDBxqDeCRNFI+IWhRH8QliRjIEVVcyJaMtCYK+vo8Q=/config b/typescript-generator-core/.nondex/yDBxqDeCRNFI+IWhRH8QliRjIEVVcyJaMtCYK+vo8Q=/config new file mode 100644 index 000000000..ece766d0c --- /dev/null +++ b/typescript-generator-core/.nondex/yDBxqDeCRNFI+IWhRH8QliRjIEVVcyJaMtCYK+vo8Q=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1140398 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=yDBxqDeCRNFI+IWhRH8QliRjIEVVcyJaMtCYK+vo8Q= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/yDBxqDeCRNFI+IWhRH8QliRjIEVVcyJaMtCYK+vo8Q=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/yDBxqDeCRNFI+IWhRH8QliRjIEVVcyJaMtCYK+vo8Q=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..90ed138f8 --- /dev/null +++ b/typescript-generator-core/.nondex/yDBxqDeCRNFI+IWhRH8QliRjIEVVcyJaMtCYK+vo8Q=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.215 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/yDBxqDeCRNFI+IWhRH8QliRjIEVVcyJaMtCYK+vo8Q=/failures b/typescript-generator-core/.nondex/yDBxqDeCRNFI+IWhRH8QliRjIEVVcyJaMtCYK+vo8Q=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/yDBxqDeCRNFI+IWhRH8QliRjIEVVcyJaMtCYK+vo8Q=/invocations b/typescript-generator-core/.nondex/yDBxqDeCRNFI+IWhRH8QliRjIEVVcyJaMtCYK+vo8Q=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/yDBxqDeCRNFI+IWhRH8QliRjIEVVcyJaMtCYK+vo8Q=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/yXE5ZS2VfsR2hPf2CB2XOSMnTRkJs+4ncWnR+4wFMg=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/yXE5ZS2VfsR2hPf2CB2XOSMnTRkJs+4ncWnR+4wFMg=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..542b6719f --- /dev/null +++ b/typescript-generator-core/.nondex/yXE5ZS2VfsR2hPf2CB2XOSMnTRkJs+4ncWnR+4wFMg=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,92 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:140) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/yXE5ZS2VfsR2hPf2CB2XOSMnTRkJs+4ncWnR+4wFMg=/config b/typescript-generator-core/.nondex/yXE5ZS2VfsR2hPf2CB2XOSMnTRkJs+4ncWnR+4wFMg=/config new file mode 100644 index 000000000..24f988523 --- /dev/null +++ b/typescript-generator-core/.nondex/yXE5ZS2VfsR2hPf2CB2XOSMnTRkJs+4ncWnR+4wFMg=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1016066 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=yXE5ZS2VfsR2hPf2CB2XOSMnTRkJs+4ncWnR+4wFMg= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/yXE5ZS2VfsR2hPf2CB2XOSMnTRkJs+4ncWnR+4wFMg=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/yXE5ZS2VfsR2hPf2CB2XOSMnTRkJs+4ncWnR+4wFMg=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..aff2c6145 --- /dev/null +++ b/typescript-generator-core/.nondex/yXE5ZS2VfsR2hPf2CB2XOSMnTRkJs+4ncWnR+4wFMg=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,20 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.309 sec <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.308 sec <<< FAILURE! +org.junit.ComparisonFailure: expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:115) + at org.junit.Assert.assertEquals(Assert.java:144) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:140) + diff --git a/typescript-generator-core/.nondex/yXE5ZS2VfsR2hPf2CB2XOSMnTRkJs+4ncWnR+4wFMg=/failures b/typescript-generator-core/.nondex/yXE5ZS2VfsR2hPf2CB2XOSMnTRkJs+4ncWnR+4wFMg=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/yXE5ZS2VfsR2hPf2CB2XOSMnTRkJs+4ncWnR+4wFMg=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/yXE5ZS2VfsR2hPf2CB2XOSMnTRkJs+4ncWnR+4wFMg=/invocations b/typescript-generator-core/.nondex/yXE5ZS2VfsR2hPf2CB2XOSMnTRkJs+4ncWnR+4wFMg=/invocations new file mode 100644 index 000000000..11ff8fe83 --- /dev/null +++ b/typescript-generator-core/.nondex/yXE5ZS2VfsR2hPf2CB2XOSMnTRkJs+4ncWnR+4wFMg=/invocations @@ -0,0 +1,2 @@ +COUNT:61 +SHUFFLES:61 diff --git a/typescript-generator-core/.nondex/ykC2o1j8ntKRXpHSE5Y1lVdGcxRqbnCI0J94HFqmFSk=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/ykC2o1j8ntKRXpHSE5Y1lVdGcxRqbnCI0J94HFqmFSk=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..25d8db96c --- /dev/null +++ b/typescript-generator-core/.nondex/ykC2o1j8ntKRXpHSE5Y1lVdGcxRqbnCI0J94HFqmFSk=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/ykC2o1j8ntKRXpHSE5Y1lVdGcxRqbnCI0J94HFqmFSk=/config b/typescript-generator-core/.nondex/ykC2o1j8ntKRXpHSE5Y1lVdGcxRqbnCI0J94HFqmFSk=/config new file mode 100644 index 000000000..f9d5b8b1c --- /dev/null +++ b/typescript-generator-core/.nondex/ykC2o1j8ntKRXpHSE5Y1lVdGcxRqbnCI0J94HFqmFSk=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=2756714 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=ykC2o1j8ntKRXpHSE5Y1lVdGcxRqbnCI0J94HFqmFSk= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/ykC2o1j8ntKRXpHSE5Y1lVdGcxRqbnCI0J94HFqmFSk=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/ykC2o1j8ntKRXpHSE5Y1lVdGcxRqbnCI0J94HFqmFSk=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..3e026901f --- /dev/null +++ b/typescript-generator-core/.nondex/ykC2o1j8ntKRXpHSE5Y1lVdGcxRqbnCI0J94HFqmFSk=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.223 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/ykC2o1j8ntKRXpHSE5Y1lVdGcxRqbnCI0J94HFqmFSk=/failures b/typescript-generator-core/.nondex/ykC2o1j8ntKRXpHSE5Y1lVdGcxRqbnCI0J94HFqmFSk=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/ykC2o1j8ntKRXpHSE5Y1lVdGcxRqbnCI0J94HFqmFSk=/invocations b/typescript-generator-core/.nondex/ykC2o1j8ntKRXpHSE5Y1lVdGcxRqbnCI0J94HFqmFSk=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/ykC2o1j8ntKRXpHSE5Y1lVdGcxRqbnCI0J94HFqmFSk=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/yyuVus9hpQPbKXyIyztvArjhGgAO3H1xMf3fDnGiKU=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/yyuVus9hpQPbKXyIyztvArjhGgAO3H1xMf3fDnGiKU=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..7f1e198cb --- /dev/null +++ b/typescript-generator-core/.nondex/yyuVus9hpQPbKXyIyztvArjhGgAO3H1xMf3fDnGiKU=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/yyuVus9hpQPbKXyIyztvArjhGgAO3H1xMf3fDnGiKU=/config b/typescript-generator-core/.nondex/yyuVus9hpQPbKXyIyztvArjhGgAO3H1xMf3fDnGiKU=/config new file mode 100644 index 000000000..061b262d5 --- /dev/null +++ b/typescript-generator-core/.nondex/yyuVus9hpQPbKXyIyztvArjhGgAO3H1xMf3fDnGiKU=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1140398 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=yyuVus9hpQPbKXyIyztvArjhGgAO3H1xMf3fDnGiKU= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/yyuVus9hpQPbKXyIyztvArjhGgAO3H1xMf3fDnGiKU=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/yyuVus9hpQPbKXyIyztvArjhGgAO3H1xMf3fDnGiKU=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..a9016fdb6 --- /dev/null +++ b/typescript-generator-core/.nondex/yyuVus9hpQPbKXyIyztvArjhGgAO3H1xMf3fDnGiKU=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.212 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/yyuVus9hpQPbKXyIyztvArjhGgAO3H1xMf3fDnGiKU=/failures b/typescript-generator-core/.nondex/yyuVus9hpQPbKXyIyztvArjhGgAO3H1xMf3fDnGiKU=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/yyuVus9hpQPbKXyIyztvArjhGgAO3H1xMf3fDnGiKU=/invocations b/typescript-generator-core/.nondex/yyuVus9hpQPbKXyIyztvArjhGgAO3H1xMf3fDnGiKU=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/yyuVus9hpQPbKXyIyztvArjhGgAO3H1xMf3fDnGiKU=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/zG4EHfI1oF4KsSkVHaOOW0f7pqoxpIJhbXgfpNskTs=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/zG4EHfI1oF4KsSkVHaOOW0f7pqoxpIJhbXgfpNskTs=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..9b58438a1 --- /dev/null +++ b/typescript-generator-core/.nondex/zG4EHfI1oF4KsSkVHaOOW0f7pqoxpIJhbXgfpNskTs=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/zG4EHfI1oF4KsSkVHaOOW0f7pqoxpIJhbXgfpNskTs=/config b/typescript-generator-core/.nondex/zG4EHfI1oF4KsSkVHaOOW0f7pqoxpIJhbXgfpNskTs=/config new file mode 100644 index 000000000..6674d95b1 --- /dev/null +++ b/typescript-generator-core/.nondex/zG4EHfI1oF4KsSkVHaOOW0f7pqoxpIJhbXgfpNskTs=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=3046822 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=zG4EHfI1oF4KsSkVHaOOW0f7pqoxpIJhbXgfpNskTs= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/zG4EHfI1oF4KsSkVHaOOW0f7pqoxpIJhbXgfpNskTs=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/zG4EHfI1oF4KsSkVHaOOW0f7pqoxpIJhbXgfpNskTs=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..710c95160 --- /dev/null +++ b/typescript-generator-core/.nondex/zG4EHfI1oF4KsSkVHaOOW0f7pqoxpIJhbXgfpNskTs=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.229 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.229 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/zG4EHfI1oF4KsSkVHaOOW0f7pqoxpIJhbXgfpNskTs=/failures b/typescript-generator-core/.nondex/zG4EHfI1oF4KsSkVHaOOW0f7pqoxpIJhbXgfpNskTs=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/zG4EHfI1oF4KsSkVHaOOW0f7pqoxpIJhbXgfpNskTs=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/zG4EHfI1oF4KsSkVHaOOW0f7pqoxpIJhbXgfpNskTs=/invocations b/typescript-generator-core/.nondex/zG4EHfI1oF4KsSkVHaOOW0f7pqoxpIJhbXgfpNskTs=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/zG4EHfI1oF4KsSkVHaOOW0f7pqoxpIJhbXgfpNskTs=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/zQexJU38cAKBLwUWUhRrueCAcGV3Jil9N6vglQFfzdU=/config b/typescript-generator-core/.nondex/zQexJU38cAKBLwUWUhRrueCAcGV3Jil9N6vglQFfzdU=/config new file mode 100644 index 000000000..71ba7633d --- /dev/null +++ b/typescript-generator-core/.nondex/zQexJU38cAKBLwUWUhRrueCAcGV3Jil9N6vglQFfzdU=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=1016066 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=zQexJU38cAKBLwUWUhRrueCAcGV3Jil9N6vglQFfzdU= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/zQexJU38cAKBLwUWUhRrueCAcGV3Jil9N6vglQFfzdU=/failures b/typescript-generator-core/.nondex/zQexJU38cAKBLwUWUhRrueCAcGV3Jil9N6vglQFfzdU=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/zQexJU38cAKBLwUWUhRrueCAcGV3Jil9N6vglQFfzdU=/invocations b/typescript-generator-core/.nondex/zQexJU38cAKBLwUWUhRrueCAcGV3Jil9N6vglQFfzdU=/invocations new file mode 100644 index 000000000..c164bf6ef --- /dev/null +++ b/typescript-generator-core/.nondex/zQexJU38cAKBLwUWUhRrueCAcGV3Jil9N6vglQFfzdU=/invocations @@ -0,0 +1,2 @@ +COUNT:16 +SHUFFLES:16 diff --git a/typescript-generator-core/.nondex/zUL+vDwu8TOwwn50UJpbIZDUNJ5PXGYAyoLkT7ekBho=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/zUL+vDwu8TOwwn50UJpbIZDUNJ5PXGYAyoLkT7ekBho=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..e593c534b --- /dev/null +++ b/typescript-generator-core/.nondex/zUL+vDwu8TOwwn50UJpbIZDUNJ5PXGYAyoLkT7ekBho=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/zUL+vDwu8TOwwn50UJpbIZDUNJ5PXGYAyoLkT7ekBho=/config b/typescript-generator-core/.nondex/zUL+vDwu8TOwwn50UJpbIZDUNJ5PXGYAyoLkT7ekBho=/config new file mode 100644 index 000000000..768649e97 --- /dev/null +++ b/typescript-generator-core/.nondex/zUL+vDwu8TOwwn50UJpbIZDUNJ5PXGYAyoLkT7ekBho=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=4704582 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=zUL+vDwu8TOwwn50UJpbIZDUNJ5PXGYAyoLkT7ekBho= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/zUL+vDwu8TOwwn50UJpbIZDUNJ5PXGYAyoLkT7ekBho=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/zUL+vDwu8TOwwn50UJpbIZDUNJ5PXGYAyoLkT7ekBho=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..4e8052035 --- /dev/null +++ b/typescript-generator-core/.nondex/zUL+vDwu8TOwwn50UJpbIZDUNJ5PXGYAyoLkT7ekBho=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.255 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.255 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/zUL+vDwu8TOwwn50UJpbIZDUNJ5PXGYAyoLkT7ekBho=/failures b/typescript-generator-core/.nondex/zUL+vDwu8TOwwn50UJpbIZDUNJ5PXGYAyoLkT7ekBho=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/zUL+vDwu8TOwwn50UJpbIZDUNJ5PXGYAyoLkT7ekBho=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/zUL+vDwu8TOwwn50UJpbIZDUNJ5PXGYAyoLkT7ekBho=/invocations b/typescript-generator-core/.nondex/zUL+vDwu8TOwwn50UJpbIZDUNJ5PXGYAyoLkT7ekBho=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/zUL+vDwu8TOwwn50UJpbIZDUNJ5PXGYAyoLkT7ekBho=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/zVbeC0GqBbLpNC4DaaBXbi1FoyMkNtliiWlZ1fIpVHg=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/zVbeC0GqBbLpNC4DaaBXbi1FoyMkNtliiWlZ1fIpVHg=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..ad838f80e --- /dev/null +++ b/typescript-generator-core/.nondex/zVbeC0GqBbLpNC4DaaBXbi1FoyMkNtliiWlZ1fIpVHg=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) +]]> + ' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.' +Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.' +]]> + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/zVbeC0GqBbLpNC4DaaBXbi1FoyMkNtliiWlZ1fIpVHg=/config b/typescript-generator-core/.nondex/zVbeC0GqBbLpNC4DaaBXbi1FoyMkNtliiWlZ1fIpVHg=/config new file mode 100644 index 000000000..014800c23 --- /dev/null +++ b/typescript-generator-core/.nondex/zVbeC0GqBbLpNC4DaaBXbi1FoyMkNtliiWlZ1fIpVHg=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=4000034 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=zVbeC0GqBbLpNC4DaaBXbi1FoyMkNtliiWlZ1fIpVHg= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/zVbeC0GqBbLpNC4DaaBXbi1FoyMkNtliiWlZ1fIpVHg=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/zVbeC0GqBbLpNC4DaaBXbi1FoyMkNtliiWlZ1fIpVHg=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..6452e4920 --- /dev/null +++ b/typescript-generator-core/.nondex/zVbeC0GqBbLpNC4DaaBXbi1FoyMkNtliiWlZ1fIpVHg=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,60 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.341 s <<< FAILURE! - in cz.habarta.typescript.generator.TaggedUnionsTest +testTaggedUnionsWithInterfaces(cz.habarta.typescript.generator.TaggedUnionsTest) Time elapsed: 0.338 s <<< FAILURE! +org.junit.ComparisonFailure: +expected:<...d: "rectangle"; + [width: number; + height]: number; +} + +interfa...> but was:<...d: "rectangle"; + [height: number; + width]: number; +} + +interfa...> + at org.junit.Assert.assertEquals(Assert.java:117) + at org.junit.Assert.assertEquals(Assert.java:146) + at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:254) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:566) + at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) + at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) + at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) + at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.junit.runners.Suite.runChild(Suite.java:128) + at org.junit.runners.Suite.runChild(Suite.java:27) + at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) + at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) + at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) + at org.junit.runners.ParentRunner.run(ParentRunner.java:413) + at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) + at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) + at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) + diff --git a/typescript-generator-core/.nondex/zVbeC0GqBbLpNC4DaaBXbi1FoyMkNtliiWlZ1fIpVHg=/failures b/typescript-generator-core/.nondex/zVbeC0GqBbLpNC4DaaBXbi1FoyMkNtliiWlZ1fIpVHg=/failures new file mode 100644 index 000000000..c6496b318 --- /dev/null +++ b/typescript-generator-core/.nondex/zVbeC0GqBbLpNC4DaaBXbi1FoyMkNtliiWlZ1fIpVHg=/failures @@ -0,0 +1 @@ +cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces diff --git a/typescript-generator-core/.nondex/zVbeC0GqBbLpNC4DaaBXbi1FoyMkNtliiWlZ1fIpVHg=/invocations b/typescript-generator-core/.nondex/zVbeC0GqBbLpNC4DaaBXbi1FoyMkNtliiWlZ1fIpVHg=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/zVbeC0GqBbLpNC4DaaBXbi1FoyMkNtliiWlZ1fIpVHg=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/.nondex/zyzW8NTWFymftc+5J05Bu5aO6NPv0qDZAYeuVHjQ0XA=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/zyzW8NTWFymftc+5J05Bu5aO6NPv0qDZAYeuVHjQ0XA=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml new file mode 100644 index 000000000..f6dd52a93 --- /dev/null +++ b/typescript-generator-core/.nondex/zyzW8NTWFymftc+5J05Bu5aO6NPv0qDZAYeuVHjQ0XA=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/typescript-generator-core/.nondex/zyzW8NTWFymftc+5J05Bu5aO6NPv0qDZAYeuVHjQ0XA=/config b/typescript-generator-core/.nondex/zyzW8NTWFymftc+5J05Bu5aO6NPv0qDZAYeuVHjQ0XA=/config new file mode 100644 index 000000000..188e80369 --- /dev/null +++ b/typescript-generator-core/.nondex/zyzW8NTWFymftc+5J05Bu5aO6NPv0qDZAYeuVHjQ0XA=/config @@ -0,0 +1,11 @@ +nondexFilter=.* +nondexMode=FULL +nondexSeed=4455918 +nondexStart=0 +nondexEnd=9223372036854775807 +nondexPrintstack=false +nondexDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexJarDir=/home/codebind/typescript-generator/typescript-generator-core/.nondex +nondexExecid=zyzW8NTWFymftc+5J05Bu5aO6NPv0qDZAYeuVHjQ0XA= +nondexLogging=CONFIG +test= \ No newline at end of file diff --git a/typescript-generator-core/.nondex/zyzW8NTWFymftc+5J05Bu5aO6NPv0qDZAYeuVHjQ0XA=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/zyzW8NTWFymftc+5J05Bu5aO6NPv0qDZAYeuVHjQ0XA=/cz.habarta.typescript.generator.TaggedUnionsTest.txt new file mode 100644 index 000000000..963472eff --- /dev/null +++ b/typescript-generator-core/.nondex/zyzW8NTWFymftc+5J05Bu5aO6NPv0qDZAYeuVHjQ0XA=/cz.habarta.typescript.generator.TaggedUnionsTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: cz.habarta.typescript.generator.TaggedUnionsTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.225 s - in cz.habarta.typescript.generator.TaggedUnionsTest diff --git a/typescript-generator-core/.nondex/zyzW8NTWFymftc+5J05Bu5aO6NPv0qDZAYeuVHjQ0XA=/failures b/typescript-generator-core/.nondex/zyzW8NTWFymftc+5J05Bu5aO6NPv0qDZAYeuVHjQ0XA=/failures new file mode 100644 index 000000000..e69de29bb diff --git a/typescript-generator-core/.nondex/zyzW8NTWFymftc+5J05Bu5aO6NPv0qDZAYeuVHjQ0XA=/invocations b/typescript-generator-core/.nondex/zyzW8NTWFymftc+5J05Bu5aO6NPv0qDZAYeuVHjQ0XA=/invocations new file mode 100644 index 000000000..81f0e139d --- /dev/null +++ b/typescript-generator-core/.nondex/zyzW8NTWFymftc+5J05Bu5aO6NPv0qDZAYeuVHjQ0XA=/invocations @@ -0,0 +1,2 @@ +COUNT:153 +SHUFFLES:153 diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/TypeScriptGenerator.java.save b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/TypeScriptGenerator.java.save new file mode 100644 index 000000000..fb064d9b8 --- /dev/null +++ b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/TypeScriptGenerator.java.save @@ -0,0 +1,245 @@ + +package cz.habarta.typescript.generator; + +import cz.habarta.typescript.generator.compiler.ModelCompiler; +import cz.habarta.typescript.generator.emitter.Emitter; +import cz.habarta.typescript.generator.emitter.InfoJsonEmitter; +import cz.habarta.typescript.generator.emitter.NpmPackageJson; +import cz.habarta.typescript.generator.emitter.NpmPackageJsonEmitter; +import cz.habarta.typescript.generator.emitter.TsModel; +import cz.habarta.typescript.generator.parser.GsonParser; +import cz.habarta.typescript.generator.parser.Jackson1Parser; +import cz.habarta.typescript.generator.parser.Jackson2Parser; +import cz.habarta.typescript.generator.parser.JsonbParser; +import cz.habarta.typescript.generator.parser.Model; +import cz.habarta.typescript.generator.parser.ModelParser; +import cz.habarta.typescript.generator.parser.RestApplicationParser; +import cz.habarta.typescript.generator.util.Utils; +import java.io.File; +import java.io.InputStream; +import java.io.StringWriter; +import java.util.ArrayList; +import java.util.Collections; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Objects; +import java.util.Properties; +import java.util.regex.Pattern; +import java.util.stream.Collectors; +import java.util.stream.Stream; + + +public class TypeScriptGenerator { + + public static final String Version = getVersion(); + + private static Logger logger = new Logger(); + + private final Settings settings; + private TypeProcessor commonTypeProcessor = null; + private ModelParser modelParser = null; + private ModelCompiler modelCompiler = null; + private Emitter emitter = null; + private InfoJsonEmitter infoJsonEmitter = null; + private NpmPackageJsonEmitter npmPackageJsonEmitter = null; + + public static Logger getLogger() { + return logger; + } + + public static void setLogger(Logger logger) { + TypeScriptGenerator.logger = logger; + } + + public TypeScriptGenerator() { + this (new Settings()); + } + + public TypeScriptGenerator(Settings settings) { + this.settings = settings; + settings.validate(); + } + + public static void printVersion() { + TypeScriptGenerator.getLogger().info("Running TypeScriptGenerator version " + Version); + } + + public String generateTypeScript(Input input) { + final StringWriter stringWriter = new StringWriter(); + generateTypeScript(input, Output.to(stringWriter)); + return stringWriter.toString(); + } + + public void generateTypeScript(Input input, Output output) { + generateTypeScript(input, output, false, 0); + } + + @Deprecated + public void generateEmbeddableTypeScript(Input input, Output output, boolean addExportKeyword, int initialIndentationLevel) { + generateTypeScript(input, output, addExportKeyword, initialIndentationLevel); + } + + private void generateTypeScript(Input input, Output output, boolean forceExportKeyword, int initialIndentationLevel) { + final Model model = getModelParser().parseModel(input.getSourceTypes()); + final TsModel tsModel = getModelCompiler().javaToTypeScript(model); + generateTypeScript(tsModel, output, forceExportKeyword, initialIndentationLevel); + generateInfoJson(tsModel, output); + generateNpmPackageJson(output); + } + + private void generateTypeScript(TsModel tsModel, Output output, boolean forceExportKeyword, int initialIndentationLevel) { + getEmitter().emit(tsModel, output.getWriter(), output.getName(), output.shouldCloseWriter(), forceExportKeyword, initialIndentationLevel); + } + + private void generateInfoJson(TsModel tsModel, Output output) { + if (settings.generateInfoJson) { + if (output.getName() == null) { + throw new RuntimeException("Generating info JSON can only be used when output is specified using file name"); + } + final File outputFile = new File(output.getName()); + final Output out = Output.to(new File(outputFile.getParent(), "typescript-generator-info.json")); + getInfoJsonEmitter().emit(tsModel, out.getWriter(), out.getName(), out.shouldCloseWriter()); + } + } + + private void generateNpmPackageJson(Output output) { + if (settings.generateNpmPackageJson) { + if (output.getName() == null) { + throw new RuntimeException("Generating NPM package.json can only be used when output is specified using file name"); + } + final File outputFile = new File(output.getName()); + final Output npmOutput = Output.to(new File(outputFile.getParent(), "package.json")); + final NpmPackageJson npmPackageJson = new NpmPackageJson(); + npmPackageJson.name = settings.npmName; + npmPackageJson.version = settings.npmVersion; + npmPackageJson.types = outputFile.getName(); + npmPackageJson.dependencies = new LinkedHashMap<>(); + if (settings.moduleDependencies != null) { + for (ModuleDependency dependency : settings.moduleDependencies) { + npmPackageJson.dependencies.put(dependency.npmPackageName, dependency.npmVersionRange); + } + } + if (settings.outputFileType == TypeScriptFileType.implementationFile) { + npmPackageJson.types = Utils.replaceExtension(outputFile, ".d.ts").getName(); + npmPackageJson.main = Utils.replaceExtension(outputFile, ".js").getName(); + npmPackageJson.dependencies.putAll(settings.npmPackageDependencies); + npmPackageJson.devDependencies = Collections.singletonMap("typescript", settings.typescriptVersion); + final String npmBuildScript = settings.npmBuildScript != null + ? settings.npmBuildScript + : "tsc --module umd --moduleResolution node --typeRoots --target es5 --lib es6 --declaration --sourceMap $outputFile"; + final String build = npmBuildScript.replaceAll(Pattern.quote("$outputFile"), outputFile.getName()); + npmPackageJson.scripts = Collections.singletonMap("build", build); + } + if (npmPackageJson.dependencies.isEmpty()) { + npmPackageJson.dependencies = null; + } + getNpmPackageJsonEmitter().emit(npmPackageJson, npmOutput.getWriter(), npmOutput.getName(), npmOutput.shouldCloseWriter()); + } + } + + public TypeProcessor getCommonTypeProcessor() { + if (commonTypeProcessor == null) { + final List restFactories = settings.getRestApplicationParserFactories(); + final ModelParser.Factory modelParserFactory = getModelParserFactory(); + final List specificTypeProcessors = Stream + .concat( + restFactories.stream().map(factory -> factory.getSpecificTypeProcessor()), + Stream.of(modelParserFactory.getSpecificTypeProcessor()) + ) + .filter(Objects::nonNull) + .collect(Collectors.toList()); + commonTypeProcessor = createTypeProcessor(specificTypeProcessors); + } + return commonTypeProcessor; + } + + private TypeProcessor createTypeProcessor(List specificTypeProcessors) { + final List processors = new ArrayList<>(); + processors.add(new ExcludingTypeProcessor(settings.getExcludeFilter())); + if (settings.customTypeProcessor != null) { + processors.add(settings.customTypeProcessor); + } + processors.add(new CustomMappingTypeProcessor(settings.getValidatedCustomTypeMappings())); + processors.addAll(specificTypeProcessors); + processors.add(new DefaultTypeProcessor(settings.getLoadedDataLibraries())); + final TypeProcessor typeProcessor = new TypeProcessor.Chain(processors); + return typeProcessor; + } + + public ModelParser getModelParser() { + if (modelParser == null) { + modelParser = createModelParser(); + } + return modelParser; + } + + private ModelParser createModelParser() { + final List factories = settings.getRestApplicationParserFactories(); + final List restApplicationParsers = factories.stream() + .map(factory -> factory.create(settings, getCommonTypeProcessor())) + .collect(Collectors.toList()); + return getModelParserFactory().create(settings, getCommonTypeProcessor(), restApplicationParsers); + } + + private ModelParser.Factory getModelParserFactory() { + switch (settings.jsonLibrary) { + case jackson1: + return new Jackson1Parser.Factory(); + case jackson2: + return new Jackson2Parser.Jackson2ParserFactory(); + case jaxb: + return new Jackson2Parser.JaxbParserFactory(); + case gson: + return new GsonParser.Factory(); + case jsonb: + return new JsonbParser.Factory(); + default: + throw new RuntimeException(); + } + } + + public ModelCompiler getModelCompiler() { + if (modelCompiler == null) { + modelCompiler = new ModelCompiler(settings, getCommonTypeProcessor()); + } + return modelCompiler; + } + + public Emitter getEmitter() { + if (emitter == null) { + emitter = new Emitter(settings); + } + return emitter; + } + + public InfoJsonEmitter getInfoJsonEmitter() { + if (infoJsonEmitter == null) { + infoJsonEmitter = new InfoJsonEmitter(); + } + return infoJsonEmitter; + } + + public NpmPackageJsonEmitter getNpmPackageJsonEmitter() { + if (npmPackageJsonEmitter == null) { + npmPackageJsonEmitter = new NpmPackageJsonEmitter(); + } + return npmPackageJsonEmitter; + } + + private static String getVersion() { + try { + final InputStream inputStream = TypeScriptGenerator.class.getResourceAsStream( + "/META-INF/maven/cz.habarta.typescript-generator/typescript-generator-core/pom.properties"); + if (inputStream != null) { + final Properties properties = new Properties(); + properties.load(inputStream); + return (String) properties.get("version"); + } + return null; + } catch (Exception e) { + return null; + } + } + +} + diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/Emitter.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/Emitter.java index a1d6c9f41..2eccfe883 100644 --- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/Emitter.java +++ b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/Emitter.java @@ -19,6 +19,25 @@ import java.util.Map; import java.util.stream.Collectors; +import cz.habarta.typescript.generator.emitter.TsAliasModel; +import cz.habarta.typescript.generator.emitter.TsEnumModel; +import cz.habarta.typescript.generator.emitter.TsDeclarationModel; +import cz.habarta.typescript.generator.emitter.TsPropertyModel; +import cz.habarta.typescript.generator.emitter.TsMethodModel; +import cz.habarta.typescript.generator.emitter.TsParameterModel; +import cz.habarta.typescript.generator.emitter.TsAccessibilityModifier; +import cz.habarta.typescript.generator.emitter.TsDecorator; +import cz.habarta.typescript.generator.emitter.TsReturnStatement; +import cz.habarta.typescript.generator.emitter.TsIfStatement; +import cz.habarta.typescript.generator.emitter.TsExpressionStatement; +import cz.habarta.typescript.generator.emitter.TsStatement; + + +import java.util.Comparator; +import java.util.Collections; + + + public class Emitter implements EmitterExtension.Writer { @@ -67,7 +86,9 @@ private void emitFileComment() { private void emitReferences() { if (settings.referencedFiles != null && !settings.referencedFiles.isEmpty()) { writeNewLine(); - for (String reference : settings.referencedFiles) { + ArrayList sortedFiles = new ArrayList(settings.referencedFiles); + Collections.sort(sortedFiles); + for (String reference : sortedFiles) {//here maybe writeIndentedLine("/// "); } } @@ -76,13 +97,22 @@ private void emitReferences() { private void emitImports() { if (settings.moduleDependencies != null && !settings.moduleDependencies.isEmpty()) { writeNewLine(); - for (ModuleDependency dependency : settings.moduleDependencies) { + + ArrayList sortedDependencies = new ArrayList(settings.moduleDependencies); + sortedDependencies.sort(Comparator.comparing(x->x.importAs)); + + for (ModuleDependency dependency : sortedDependencies) {// writeIndentedLine("import * as " + dependency.importAs + " from " + quote(dependency.importFrom, settings) + ";"); } + } if (settings.importDeclarations != null && !settings.importDeclarations.isEmpty()) { writeNewLine(); - for (String importDeclaration : settings.importDeclarations) { + + ArrayList sortedImports = new ArrayList(settings.importDeclarations); + Collections.sort(sortedImports); + + for (String importDeclaration : sortedImports) {// writeIndentedLine(importDeclaration + ";"); } } @@ -135,20 +165,34 @@ private void emitElements(TsModel model, boolean exportKeyword, boolean declareK emitExtensions(model, exportKeyword); } - private void emitBeans(TsModel model, boolean exportKeyword, boolean declareKeyword) { - for (TsBeanModel bean : model.getBeans()) { + private void emitBeans(TsModel model, boolean exportKeyword, boolean declareKeyword) {// + + ArrayList sortedBeans = new ArrayList(model.getBeans()); + sortedBeans.sort(Comparator.comparing(bean->bean.getName().toString())); + + for (TsBeanModel bean : sortedBeans) { emitFullyQualifiedDeclaration(bean, exportKeyword, declareKeyword); } } - private void emitTypeAliases(TsModel model, boolean exportKeyword, boolean declareKeyword) { - for (TsAliasModel alias : model.getTypeAliases()) { + private void emitTypeAliases(TsModel model, boolean exportKeyword, boolean declareKeyword) {// + + ArrayList sortedAliases = new ArrayList(model.getTypeAliases()); + sortedAliases.sort(Comparator.comparing((TsAliasModel alias) -> alias.getName().toString())); + + + for (TsAliasModel alias : sortedAliases) { emitFullyQualifiedDeclaration(alias, exportKeyword, declareKeyword); } } - private void emitLiteralEnums(TsModel model, boolean exportKeyword, boolean declareKeyword) { - for (TsEnumModel enumModel : model.getEnums()) { + private void emitLiteralEnums(TsModel model, boolean exportKeyword, boolean declareKeyword) {// + + ArrayList sortedEnums = new ArrayList(model.getEnums()); + sortedEnums.sort(Comparator.comparing((TsEnumModel enumModel) -> enumModel.getName().toString())); + + + for (TsEnumModel enumModel : sortedEnums) { emitFullyQualifiedDeclaration(enumModel, exportKeyword, declareKeyword); } } @@ -378,15 +422,25 @@ private void emitLiteralEnum(TsEnumModel enumModel, boolean exportKeyword, boole writeIndentedLine("}"); } - private void emitHelpers(TsModel model) { - for (TsHelper helper : model.getHelpers()) { + private void emitHelpers(TsModel model) {// + + ArrayList sortedHelpers = new ArrayList(model.getHelpers()); + sortedHelpers.sort(Comparator.comparing(helper -> String.join("\n", helper.getLines()))); + + + for (TsHelper helper : sortedHelpers) { writeNewLine(); writeTemplate(this, settings, helper.getLines(), null); } } - private void emitExtensions(TsModel model, boolean exportKeyword) { - for (EmitterExtension emitterExtension : settings.extensions) { + private void emitExtensions(TsModel model, boolean exportKeyword) {// + + + ArrayList sortedExtensions = new ArrayList(settings.extensions); + sortedExtensions.sort(Comparator.comparing(extension->extension.getClass().getName())); + + for (EmitterExtension emitterExtension : sortedExtensions) { final List extensionLines = new ArrayList<>(); final EmitterExtension.Writer extensionWriter = new EmitterExtension.Writer() { @Override diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/BeanModel.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/BeanModel.java index 3e7922f36..cee6c60c2 100644 --- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/BeanModel.java +++ b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/BeanModel.java @@ -7,6 +7,8 @@ import java.util.List; import java.util.Objects; +import java.util.Comparator; + public class BeanModel extends DeclarationModel { @@ -53,6 +55,11 @@ public List getParentAndInterfaces() { ancestors.add(parent); } ancestors.addAll(interfaces); + ancestors.sort(Comparator.comparing(Type::getTypeName)); + System.out.println("Ancestors:"); + for (Type t : ancestors) { + System.out.println(" " + t.getTypeName()); + } return ancestors; } diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/Jackson2Parser.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/Jackson2Parser.java index cd91fdccc..4782c5335 100644 --- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/Jackson2Parser.java +++ b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/parser/Jackson2Parser.java @@ -67,6 +67,9 @@ import java.util.stream.Collectors; import java.util.stream.Stream; +import java.util.Comparator; + + public class Jackson2Parser extends ModelParser { @@ -318,6 +321,12 @@ private BeanModel parseBean(SourceType> sourceClass, List class for (Type aInterface : interfaces) { addBeanToQueue(new SourceType<>(aInterface, sourceClass.type, "")); } + + if (taggedUnionClasses != null) { + taggedUnionClasses.sort(Comparator.comparing(Class::getTypeName)); + } + interfaces.sort(Comparator.comparing(Type::getTypeName)); + return new BeanModel(sourceClass.type, superclass, taggedUnionClasses, discriminantProperty, discriminantLiteral, interfaces, properties, classComments); } diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/type/JWildcardType.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/type/JWildcardType.java index 9a50e3c47..fb9ac182e 100644 --- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/type/JWildcardType.java +++ b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/type/JWildcardType.java @@ -55,10 +55,10 @@ public boolean equals(Object obj) { @Override public String toString() { final String upper = upperBounds.length > 0 && !Objects.equals(upperBounds[0], Object.class) - ? " extends " + Stream.of(upperBounds).map(Type::getTypeName).collect(Collectors.joining(" & ")) + ? " extends " + Stream.of(upperBounds).map(Type::getTypeName).sorted().collect(Collectors.joining(" & ")) : ""; final String lower = lowerBounds.length > 0 - ? " extends " + Stream.of(lowerBounds).map(Type::getTypeName).collect(Collectors.joining(" & ")) + ? " extends " + Stream.of(lowerBounds).map(Type::getTypeName).sorted().collect(Collectors.joining(" & ")) : ""; return "?" + upper + lower; } diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/TaggedUnionsTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/TaggedUnionsTest.java index 25bcc80fa..89b5a83fb 100644 --- a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/TaggedUnionsTest.java +++ b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/TaggedUnionsTest.java @@ -221,16 +221,28 @@ public void testTaggedUnions() { public void testTaggedUnionsWithInterfaces() { final Settings settings = TestUtils.settings(); final String output = new TypeScriptGenerator(settings).generateTypeScript(Input.from(IShape2.class)); + System.out.println(output); final String expected = ( + "\n" + + "interface IQuadrilateral2 extends IShape2 {\n" + + " kind: 'square' | 'rectangle';\n" + + "}\n" + "\n" + - "interface IShape2 {\n" + - " kind: 'circle' | 'square' | 'rectangle';\n" + + "interface CCircle2 extends IShape2 {\n" + + " kind: 'circle';\n" + + " radius: number;\n" + "}\n" + "\n" + "interface CSquare2 extends IQuadrilateral2 {\n" + " kind: 'square';\n" + " size: number;\n" + "}\n" + + "\n" + + "interface IShape2 {\n" + + " kind: 'circle' | 'square' | 'rectangle';\n" + + "}\n" + + + "\n" + "interface CRectangle2 extends IQuadrilateral2 {\n" + " kind: 'rectangle';\n" + @@ -238,16 +250,7 @@ public void testTaggedUnionsWithInterfaces() { " height: number;\n" + "}\n" + "\n" + - "interface CCircle2 extends IShape2 {\n" + - " kind: 'circle';\n" + - " radius: number;\n" + - "}\n" + - "\n" + - "interface IQuadrilateral2 extends IShape2 {\n" + - " kind: 'square' | 'rectangle';\n" + - "}\n" + - "\n" + - "type IShape2Union = CSquare2 | CRectangle2 | CCircle2;\n" + + "type IShape2Union = CCircle2 | CRectangle2 | CSquare2;\n" + "" ).replace('\'', '"'); Assert.assertEquals(expected, output);