[vala/wip/valadate: 74/101] Drop testfixture.vala
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/valadate: 74/101] Drop testfixture.vala
- Date: Sat, 7 Oct 2017 10:56:12 +0000 (UTC)
commit e09c9470d139de011c31cf7611d2a6bc01482623
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Mon Sep 26 19:54:36 2016 +0200
Drop testfixture.vala
valadate/Makefile.am | 1 -
valadate/test.vala | 6 ++++++
valadate/testcase.vala | 8 +-------
valadate/testfixture.vala | 28 ----------------------------
valadate/testsuite.vala | 6 ------
5 files changed, 7 insertions(+), 42 deletions(-)
---
diff --git a/valadate/Makefile.am b/valadate/Makefile.am
index 2893d66..1d6dbf7 100644
--- a/valadate/Makefile.am
+++ b/valadate/Makefile.am
@@ -26,7 +26,6 @@ libvaladate_la_VALASOURCES = \
testcase.vala \
testconfig.vala \
testexplorer.vala \
- testfixture.vala \
testiterator.vala \
testresult.vala \
testrunner.vala \
diff --git a/valadate/test.vala b/valadate/test.vala
index 1789f7e..51c24ec 100644
--- a/valadate/test.vala
+++ b/valadate/test.vala
@@ -48,4 +48,10 @@ public interface Valadate.Test : Object {
public virtual TestIterator iterator() {
return new TestIterator (this);
}
+
+ public virtual void set_up () {
+ }
+
+ public virtual void tear_down () {
+ }
}
diff --git a/valadate/testcase.vala b/valadate/testcase.vala
index aaef016..2a92377 100644
--- a/valadate/testcase.vala
+++ b/valadate/testcase.vala
@@ -34,7 +34,7 @@ public errordomain Valadate.TestError {
*/
public delegate void Valadate.TestMethod ();
-public abstract class Valadate.TestCase : Object, Test, TestFixture {
+public abstract class Valadate.TestCase : Object, Test {
/**
* the name of the TestCase
@@ -98,12 +98,6 @@ public abstract class Valadate.TestCase : Object, Test, TestFixture {
public virtual void run (TestResult result) {
}
-
- public virtual void set_up() {
- }
-
- public virtual void tear_down() {
- }
}
private class Valadate.TestAdaptor : Object, Test {
diff --git a/valadate/testsuite.vala b/valadate/testsuite.vala
index ee75ea3..37762ad 100644
--- a/valadate/testsuite.vala
+++ b/valadate/testsuite.vala
@@ -76,10 +76,4 @@ public class Valadate.TestSuite : Object, Test {
public Test get_test (int index) {
return _tests.nth_data((uint)index);
}
-
- public virtual void set_up () {
- }
-
- public virtual void tear_down () {
- }
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]