mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-19 21:11:28 +07:00
IDEA-108454 (test added)
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
// "Implement Methods" "true"
|
||||
enum E {
|
||||
A {
|
||||
public void foo() {
|
||||
|
||||
}
|
||||
};
|
||||
abstract void foo();
|
||||
A {
|
||||
@Override
|
||||
public int foo() {
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
|
||||
public abstract int foo();
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
// "Implement Methods" "true"
|
||||
class Test {
|
||||
class A<T> {
|
||||
public class Inner { }
|
||||
}
|
||||
|
||||
interface B<T> {
|
||||
T foo();
|
||||
}
|
||||
|
||||
class D implements B<A<String>.Inner> {
|
||||
@Override
|
||||
public A<String>.Inner foo() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
// "Implement Methods" "true"
|
||||
enum E {
|
||||
<caret>A;
|
||||
public abstract void foo();
|
||||
<caret>A;
|
||||
|
||||
public abstract int foo();
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
// "Implement Methods" "true"
|
||||
class Test {
|
||||
class A<T> {
|
||||
public class Inner { }
|
||||
}
|
||||
|
||||
interface B<T> {
|
||||
T foo();
|
||||
}
|
||||
|
||||
<caret>class D implements B<A<String>.Inner> { }
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2013 JetBrains s.r.o.
|
||||
* Copyright 2000-2014 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.
|
||||
@@ -15,13 +15,12 @@
|
||||
*/
|
||||
package com.intellij.codeInsight;
|
||||
|
||||
import com.intellij.codeInsight.daemon.quickFix.LightQuickFixAvailabilityTestCase;
|
||||
import com.intellij.codeInsight.daemon.quickFix.LightQuickFixParameterizedTestCase;
|
||||
|
||||
/**
|
||||
* User: anna
|
||||
* Date: 10/7/11
|
||||
* @author anna
|
||||
*/
|
||||
public class ImplementMethodsTest extends LightQuickFixAvailabilityTestCase {
|
||||
public class ImplementMethodsTest extends LightQuickFixParameterizedTestCase {
|
||||
public void test() throws Exception {
|
||||
doAllTests();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user