IDEA-108454 (test added)

This commit is contained in:
Roman Shevchenko
2014-03-04 17:42:29 +01:00
parent 7ba0d5326a
commit c6947e3831
5 changed files with 44 additions and 13 deletions

View File

@@ -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();
}

View File

@@ -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;
}
}
}

View File

@@ -1,5 +1,6 @@
// "Implement Methods" "true"
enum E {
<caret>A;
public abstract void foo();
<caret>A;
public abstract int foo();
}

View File

@@ -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> { }
}

View File

@@ -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();
}