Quick Search:

Line History

line history graph

Show Arbitrary Diff

From to

Supports revisions and tags.

History

trunk 1276 1121 11 1.1.0 1172

latest revision download Branch trunk

1276 annotated / raw | Diffs: previous, other | Lines: 366 ( +99, -55 )

Created: 2009-07-16 11:40:14 +0300 (7 months ago) | Author: lkoskela | Changeset: 1276

Added support for 'public static void onceBefore()' and public static void onceAfter()' for Specification classes.

1275 annotated / raw | Diffs: previous, other | Lines: 322 ( +37, -3 )

Created: 2009-06-01 00:42:24 +0300 (9 months ago) | Author: lkoskela | Changeset: 1275

SpecRunner now ignores contexts that have been annotated with org.junit.Ignore.

I added this because the common convention right now for temporarily ignoring a context seems to be to make it package-protected, which is rather implicit. Explicitly marking a context @Ignored is much better, in my opinion.

Other possible mechanisms for ignoring a context could be a marker interface. We could also provide a JDave-specific annotation, "jdave.Ignored" (although that might lead to name-clashes and ugly fully-qualified references).

1121 annotated / raw | Diffs: previous, other | Lines: 288 ( +16, -9 )

Created: 2008-10-27 16:27:20 +0200 (16 months ago) | Author: inhuman | Changeset: 1121

add a spec since I wasn't sure if inheriting from BaseContext works as expected (it did)

Branch point for: 1.1.0

Tags: 1.1.0

1086 annotated / raw | Diffs: previous, other | Lines: 281 ( +3, -1 )

Created: 2008-10-13 21:02:48 +0300 (16 months ago) | Author: inhuman | Changeset: 1086

do not try to instantiate static inner classes
https://www.laughingpanda.org/jira/browse/JDAVE-40

Tags: 1.1-rc3

1076 annotated / raw | Diffs: previous, other | Lines: 279 ( +22, -9 )

Created: 2008-10-12 15:48:10 +0300 (16 months ago) | Author: inhuman | Changeset: 1076

Run superclass contexes too.
https://www.laughingpanda.org/jira/browse/JDAVE-36

Tags: 1.1-rc2

1046 annotated / raw | Diffs: previous, other | Lines: 266 ( +28, -4 )

Created: 2008-06-27 07:03:14 +0300 (20 months ago) | Author: thrantal | Changeset: 1046

JDAVE-34: Specification.destroy() is now called even if a context destroy() of fireAfterContextDestroy() throws exception.
Cleanups welcome :)

Tags: 1.1-rc1

1004 annotated / raw | Diffs: previous, other | Lines: 242 ( +4, -0 )

Created: 2008-03-02 21:07:07 +0200 (2 years ago) | Author: inhuman | Changeset: 1004

do not try to execute behavior method which takes parameters

883 annotated / raw | Diffs: previous, other | Lines: 238 ( +19, -11 )

Created: 2007-11-12 19:40:55 +0200 (2 years 3 months ago) | Author: inhuman | Changeset: 883

convert all junit3 tests to junit4 tests

Tags: 1.0-rc1 1.0

773 annotated / raw | Diffs: previous, other | Lines: 230 ( +32, -0 )

Created: 2007-08-31 14:48:04 +0300 (2 years 6 months ago) | Author: inhuman | Changeset: 773

Make create method optional. Sometimes a context is so complex that there's no logical root object which is a context.
Then all instance fields define the context.

582 annotated / raw | Diffs: previous, other | Lines: 198 ( +3, -0 )

Created: 2007-05-28 10:52:18 +0300 (2 years 9 months ago) | Author: inhuman | Changeset: 582

skip context if it does not contain any behaviors

Tags: 0.9.0

568 annotated / raw | Diffs: previous, other | Lines: 195 ( +26, -0 )

Created: 2007-05-10 18:42:15 +0300 (2 years 10 months ago) | Author: inhuman | Changeset: 568

Report error if specification constructor fails.
Fixes https://www.laughingpanda.org/jira/browse/JDAVE-13

459 annotated / raw | Diffs: previous, other | Lines: 169 ( +6, -0 )

Created: 2007-04-11 13:20:31 +0300 (2 years 10 months ago) | Author: inhuman | Changeset: 459

Add a new listener method ISpecVisitor.
Revert a change which I made earlier, it is safer to notify satrt/end for contexts too.

Tags: 0.7.0 0.8.0

381 annotated / raw | Diffs: previous, other | Lines: 163 ( +6, -0 )

Created: 2007-03-09 12:49:25 +0200 (3 years ago) | Author: inhuman | Changeset: 381

only public non-abstract classes are contexes.

Tags: 0.6.0

378 annotated / raw | Diffs: previous, other | Lines: 157 ( +3, -0 )

Created: 2007-03-08 21:49:52 +0200 (3 years ago) | Author: mpe | Changeset: 378

Don't treat private classes as contexts.

307 annotated / raw | Diffs: previous, other | Lines: 154 ( +12, -0 )

Created: 2007-02-21 19:09:27 +0200 (3 years ago) | Author: inhuman | Changeset: 307

Add specification.create() method. Constructor can't be used as initializer since if constructor fails,
we can't call destroy() since the object creation failed.

Tags: 0.5.0

302 annotated / raw | Diffs: previous, other | Lines: 142 ( +10, -7 )

Created: 2007-02-20 22:17:02 +0200 (3 years ago) | Author: inhuman | Changeset: 302

Sort methods to make test deterministic.

295 annotated / raw | Diffs: previous, other | Lines: 139 ( +22, -5 )

Created: 2007-02-20 20:18:48 +0200 (3 years ago) | Author: inhuman | Changeset: 295

Add destroy method for specification.

291 annotated / raw | Diffs: previous, other | Lines: 122 ( +5, -5 )

Created: 2007-02-20 18:25:36 +0200 (3 years ago) | Author: inhuman | Changeset: 291

Add visit method to SpecRunner. This is needed for junit 4 integration to build the test descriptions, without creating
the context object.

281 annotated / raw | Diffs: previous, other | Lines: 122 ( +3, -0 )

Created: 2007-02-07 20:22:43 +0200 (3 years 1 month ago) | Author: inhuman | Changeset: 281

Abstract inner classes are not contexts.

154 annotated / raw | Diffs: previous, other | Lines: 119 ( +4, -4 )

Created: 2007-01-16 13:42:01 +0200 (3 years 1 month ago) | Author: inhuman | Changeset: 154

Fix exception handling.

Tags: 0.3.0

126 annotated / raw | Diffs: previous, other | Lines: 119 ( +5, -1 )

Created: 2007-01-08 20:39:45 +0200 (3 years 2 months ago) | Author: inhuman | Changeset: 126

static inner classes are not contexts.

125 annotated / raw | Diffs: previous, other | Lines: 115 ( +9, -9 )

Created: 2007-01-08 20:32:42 +0200 (3 years 2 months ago) | Author: inhuman | Changeset: 125

Fix test fixture.

124 annotated / raw | Diffs: previous, other | Lines: 115 ( +0, -3 )

Created: 2007-01-08 20:26:34 +0200 (3 years 2 months ago) | Author: inhuman | Changeset: 124

Remove @Context annotation. It is redundant.

117 annotated / raw | Diffs: previous, other | Lines: 118 ( +24, -9 )

Created: 2007-01-08 18:49:29 +0200 (3 years 2 months ago) | Author: inhuman | Changeset: 117

Add disposer method for contexts.

116 annotated / raw | Diffs: previous, other | Lines: 103 ( +7, -1 )

Created: 2007-01-08 18:28:22 +0200 (3 years 2 months ago) | Author: inhuman | Changeset: 116

fix fixture

115 annotated / raw | Diffs: previous, other | Lines: 97 ( +1, -1 )

Created: 2007-01-08 18:24:18 +0200 (3 years 2 months ago) | Author: inhuman | Changeset: 115

Rename context() method as create().

73 annotated / raw | Diffs: previous, other | Lines: 97 ( +0, -1 )

Created: 2006-12-19 15:07:09 +0200 (3 years 2 months ago) | Author: penberg | Changeset: 73

Remove unused import.

52 annotated / raw | Diffs: previous, other | Lines: 98 ( +1, -1 )

Created: 2006-12-18 11:57:17 +0200 (3 years 2 months ago) | Author: inhuman | Changeset: 52

fix test

49 annotated / raw | Diffs: previous, other | Lines: 98 ( +11, -3 )

Created: 2006-12-18 09:10:56 +0200 (3 years 2 months ago) | Author: inhuman | Changeset: 49

Enhance junit integration.

44 annotated / raw | Diffs: previous, other | Lines: 90 ( +4, -7 )

Created: 2006-12-15 10:38:53 +0200 (3 years 2 months ago) | Author: penberg | Changeset: 44

Report unexpected thrown exceptions in specification methods via SpecRunner.Results.error()

42 annotated / raw | Diffs: previous, other | Lines: 93 ( +5, -7 )

Created: 2006-12-15 10:19:46 +0200 (3 years 2 months ago) | Author: penberg | Changeset: 42

Pass ExpectationFailedException to SpecRunner.Results.unexpected() so that we can report the
error to user.

31 annotated / raw | Diffs: previous, other | Lines: 95 ( +5, -5 )

Created: 2006-12-14 22:22:21 +0200 (3 years 2 months ago) | Author: inhuman | Changeset: 31

Change API. We need to give spec class to runner, not instance.

26 annotated / raw | Diffs: previous, other | Lines: 95 ( +8, -0 )

Created: 2006-12-14 14:22:04 +0200 (3 years 2 months ago) | Author: inhuman | Changeset: 26

Fix tests.

20 annotated / raw | Diffs: previous, other | Lines: 87 ( +8, -7 )

Created: 2006-12-14 09:10:35 +0200 (3 years 2 months ago) | Author: penberg | Changeset: 20

Use List<String> for recording method invocations.

19 annotated / raw | Diffs: previous, other | Lines: 86 ( +16, -0 )

Created: 2006-12-13 18:40:58 +0200 (3 years 2 months ago) | Author: inhuman | Changeset: 19

Invoke methods.

18 annotated / raw | Diffs: previous, other | Lines: 70 ( +1, -1 )

Created: 2006-12-13 16:57:09 +0200 (3 years 2 months ago) | Author: penberg | Changeset: 18

Update test name to match reality.

13 annotated / raw | Diffs: previous, other | Lines: 70 ( +10, -1 )

Created: 2006-12-13 16:33:07 +0200 (3 years 2 months ago) | Author: inhuman | Changeset: 13

Invoke only public methods.

11 new annotated / raw | Lines: 61 ( +61, -0 )

Created: 2006-12-13 13:11:23 +0200 (3 years 2 months ago) | Author: penberg | Changeset: 11

First test!

latest revision download Branch 1.1.0

1172 new annotated / raw | Diffs: previous, other | Lines: 288 ( +288, -0 )

Created: 2008-12-11 08:35:23 +0200 (14 months ago) | Author: msibakov | Changeset: 1172

Creating branch for temporarily mantenance