Removed old injava completion test (all cases are covered by common source/binary tests).
This commit is contained in:
committed by
Pavel V. Talanov
parent
d502c5af64
commit
461b64e0e7
@@ -1,9 +0,0 @@
|
|||||||
public class Testing {
|
|
||||||
public static void test() {
|
|
||||||
jettesting.some.<caret>
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// EXIST: ClassFromJet
|
|
||||||
// EXIST: SomePackage
|
|
||||||
// NUMBER: 2
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
package jettesting.some
|
|
||||||
|
|
||||||
fun foo() = 1
|
|
||||||
|
|
||||||
class ClassFromJet {
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
public class Testing {
|
|
||||||
public static void test() {
|
|
||||||
ClassFr<caret>
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// EXIST: ClassFromJet
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
package jettesting
|
|
||||||
|
|
||||||
class ClassFromJet {
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
public class Testing {
|
|
||||||
public static void test() {
|
|
||||||
kotlin.enums.KtEnumColor.<caret>
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// EXIST: RED, GREEN, BLUE
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
package kotlin.enums
|
|
||||||
|
|
||||||
enum class KtEnumColor(val rgb : Int) {
|
|
||||||
RED : Color(0xFF0000)
|
|
||||||
GREEN : Color(0x00FF00)
|
|
||||||
BLUE : Color(0x0000FF)
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
public class Testing {
|
|
||||||
public static void test() {
|
|
||||||
KtEnum<caret>
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// EXIST: KtEnumDirection, KtEnumColor, KtEnumList
|
|
||||||
@@ -1,31 +0,0 @@
|
|||||||
package kotlin.enums
|
|
||||||
|
|
||||||
enum class KtEnumDirection {
|
|
||||||
NORTH
|
|
||||||
SOUTH
|
|
||||||
WEST
|
|
||||||
EAST
|
|
||||||
}
|
|
||||||
|
|
||||||
enum class KtEnumColor(val rgb : Int) {
|
|
||||||
RED : Color(0xFF0000)
|
|
||||||
GREEN : Color(0x00FF00)
|
|
||||||
BLUE : Color(0x0000FF)
|
|
||||||
}
|
|
||||||
|
|
||||||
//enum class KtEnumProtocolState {
|
|
||||||
// WAITING {
|
|
||||||
// override fun signal() = TALKING
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// TALKING {
|
|
||||||
// override fun signal() = WAITING
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// abstract fun signal() : ProtocolState
|
|
||||||
//}
|
|
||||||
|
|
||||||
enum class KtEnumList<out T>(val size : Int) {
|
|
||||||
Nil : List<Nothing>(0)
|
|
||||||
Cons<T>(h : T, t : List<T>) : List<T>(t.size + 1)
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
public class Testing {
|
|
||||||
public static void main(String[] args) {
|
|
||||||
kotlin.testing.TestingPackage.<caret>
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// EXIST: someFun
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
package kotlin.testing
|
|
||||||
|
|
||||||
fun someFun() : Int {
|
|
||||||
return 12
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
public class Testing {
|
|
||||||
public static void test() {
|
|
||||||
testing.<caret>
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// EXIST: jet1
|
|
||||||
// ABSENT: jet2
|
|
||||||
|
|
||||||
// Only two proposals expected
|
|
||||||
// NUMBER: 1
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
package testing.jet1.jet2
|
|
||||||
|
|
||||||
fun somefun() {
|
|
||||||
}
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
public class Testing implements TraitFr<caret> {
|
|
||||||
public static void test() {
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// EXIST: TraitFromJet
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
package jettesting.traits
|
|
||||||
|
|
||||||
trait TraitFromJet {
|
|
||||||
}
|
|
||||||
@@ -1,61 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright 2010-2013 JetBrains s.r.o.
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
package org.jetbrains.jet.completion;
|
|
||||||
|
|
||||||
import org.jetbrains.jet.plugin.PluginTestCaseBase;
|
|
||||||
|
|
||||||
public class JetInJavaCompletionTest extends JetCompletionMultiTestBase {
|
|
||||||
|
|
||||||
public void testJetClassInJava() {
|
|
||||||
doFileTest();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void testJetSubpackage() {
|
|
||||||
doFileTest();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void testClassFromPackage() {
|
|
||||||
doFileTest();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void testJetFunction() {
|
|
||||||
doFileTest();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void testTraitInJava() {
|
|
||||||
doFileTest();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void testJetEnums() {
|
|
||||||
doFileTest();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void testJetEnumFields() {
|
|
||||||
doFileTest();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
protected String getTestDataPath() {
|
|
||||||
return PluginTestCaseBase.getTestDataPathBase() + "/completion/injava/";
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
String[] getFileNameList() {
|
|
||||||
String fileName = getTestName(false);
|
|
||||||
return new String[]{fileName + ".java", fileName + ".kt"};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user