Override/Implement: Use function body template when generating functions with default body

#KT-11807 Fixed
This commit is contained in:
Alexey Sedunov
2016-04-18 16:33:17 +03:00
parent df07554764
commit 1635018fe7
60 changed files with 165 additions and 116 deletions
@@ -5,6 +5,6 @@ import org.junit.runners.Parameterized
class A {
@Parameterized.Parameters
fun data(): Collection<Array<Any>> {
throw UnsupportedOperationException()
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
}
}
@@ -5,6 +5,6 @@ import org.junit.Before
class A {
@Before
fun setUp() {
throw UnsupportedOperationException()
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
}
}
@@ -5,7 +5,7 @@ import org.junit.Before
class A {
@org.testng.annotations.BeforeMethod
fun setUp() {
throw UnsupportedOperationException()
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
}
@Before
@@ -5,6 +5,6 @@ import org.junit.After
class A {
@After
fun tearDown() {
throw UnsupportedOperationException()
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
}
}
@@ -5,7 +5,7 @@ import org.junit.After
class A {
@org.testng.annotations.AfterMethod
fun tearDown() {
throw UnsupportedOperationException()
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
}
@After
@@ -5,6 +5,6 @@ import org.junit.Test
class A {
@Test
fun name() {
throw UnsupportedOperationException()
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
}
}
@@ -4,6 +4,6 @@ import junit.framework.TestCase
class A : TestCase() {
fun testName() {
throw UnsupportedOperationException()
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
}
}
@@ -6,6 +6,6 @@ import org.testng.annotations.Test
@Test class A {
@DataProvider(name = "name")
fun name(): Array<Array<Any>> {
throw UnsupportedOperationException()
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
}
}
@@ -6,6 +6,6 @@ import org.testng.annotations.Test
@Test class A {
@BeforeMethod
fun setUp() {
throw UnsupportedOperationException()
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
}
}
@@ -6,6 +6,6 @@ import org.testng.annotations.Test
@Test class A {
@AfterMethod
fun tearDown() {
throw UnsupportedOperationException()
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
}
}
@@ -5,6 +5,6 @@ import org.testng.annotations.Test
@Test class A {
@Test
fun testName() {
throw UnsupportedOperationException()
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
}
}