mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[maven] IDEA-375474 fix EarFacetImporterCustomizationTest.regenerateAppXmlFileIfContentShouldChange
GitOrigin-RevId: 1b8c9e7ed9efd5c137aa42fabe657dbfbbf8b974
This commit is contained in:
committed by
intellij-monorepo-bot
parent
5e6e944406
commit
31b1d524ea
+1
-7
@@ -1,10 +1,10 @@
|
||||
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package org.jetbrains.idea.maven.server.ssl
|
||||
|
||||
import com.intellij.maven.testFramework.assertNormalizedEquals
|
||||
import com.intellij.testFramework.UsefulTestCase
|
||||
import com.intellij.util.ArrayUtilRt
|
||||
import com.intellij.util.ResourceUtil
|
||||
import junit.framework.TestCase
|
||||
import java.io.ByteArrayOutputStream
|
||||
import java.util.*
|
||||
|
||||
@@ -32,12 +32,6 @@ class SslDelegateHandlerStateMachineTest : UsefulTestCase() {
|
||||
assertNormalizedEquals(expected, actual)
|
||||
}
|
||||
|
||||
private fun assertNormalizedEquals(expected: String, actual: String) {
|
||||
TestCase.assertEquals(expected.normalizeLineEndings(), actual.normalizeLineEndings())
|
||||
}
|
||||
|
||||
private fun String.normalizeLineEndings(): String = this.replace("\r\n", "\n").replace("\r", "\n")
|
||||
|
||||
private fun fromFile(file: String): Array<String> {
|
||||
ResourceUtil.getResourceAsStream(SslDelegateHandlerStateMachineTest::class.java.classLoader, "org/jetbrains/maven/server/ssl", file).use { stream ->
|
||||
Scanner(stream).use { scanner ->
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package com.intellij.maven.testFramework
|
||||
|
||||
import junit.framework.TestCase
|
||||
|
||||
fun assertNormalizedEquals(expected: String, actual: String) {
|
||||
TestCase.assertEquals(expected.normalizeLineEndings(), actual.normalizeLineEndings())
|
||||
}
|
||||
|
||||
private fun String.normalizeLineEndings(): String = this.replace("\r\n", "\n").replace("\r", "\n")
|
||||
Reference in New Issue
Block a user