From 22c455a01e04372f1554efea53a834def400a4a5 Mon Sep 17 00:00:00 2001 From: "Vitaliy.Bibaev" Date: Thu, 21 Dec 2017 00:50:36 +0300 Subject: [PATCH] Add base test case for the sequence execution tests --- .../kotlin/exec/sequence/OperationsTestCase.kt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 idea/tests/com/intellij/debugger/streams/kotlin/exec/sequence/OperationsTestCase.kt diff --git a/idea/tests/com/intellij/debugger/streams/kotlin/exec/sequence/OperationsTestCase.kt b/idea/tests/com/intellij/debugger/streams/kotlin/exec/sequence/OperationsTestCase.kt new file mode 100644 index 00000000000..38f00236a2b --- /dev/null +++ b/idea/tests/com/intellij/debugger/streams/kotlin/exec/sequence/OperationsTestCase.kt @@ -0,0 +1,16 @@ +// Copyright 2000-2017 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. +package com.intellij.debugger.streams.kotlin.exec.sequence + +import com.intellij.debugger.streams.kotlin.exec.KotlinTraceEvaluationTestCase +import com.intellij.debugger.streams.kotlin.lib.sequence.KotlinSequenceSupportProvider +import com.intellij.debugger.streams.lib.LibrarySupportProvider + +abstract class OperationsTestCase(private val packageName: String) : KotlinTraceEvaluationTestCase() { + override val appName: String = "sequence" + override val librarySupport: LibrarySupportProvider = KotlinSequenceSupportProvider() + + fun doTestWithResult() = doTest(false, fullyQualifiedClassName()) + fun doTestWithoutResult() = doTest(true, fullyQualifiedClassName()) + + private fun fullyQualifiedClassName() = "$packageName.${getTestName(false)}" +} \ No newline at end of file