Quick Search:

Line History

line history graph

Show Arbitrary Diff

From to

Supports revisions and tags.

History

trunk 1276 1076 11 1.1.0 1172

latest revision download Branch trunk

1276 annotated / raw | Diffs: previous, other | Lines: 116 ( +30, -2 )

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: 88 ( +35, -5 )

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).

1076 annotated / raw | Diffs: previous, other | Lines: 58 ( +2, -2 )

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

Branch point for: 1.1.0

Tags: 1.1-rc2 1.1-rc3 1.1.0

1039 annotated / raw | Diffs: previous, other | Lines: 58 ( +1, -1 )

Created: 2008-06-25 20:02:40 +0300 (20 months ago) | Author: inhuman | Changeset: 1039

Fix https://www.laughingpanda.org/jira/browse/JDAVE-33

Tags: 1.1-rc1

1000 annotated / raw | Diffs: previous, other | Lines: 58 ( +3, -16 )

Created: 2008-02-18 20:47:31 +0200 (2 years ago) | Author: inhuman | Changeset: 1000

apply https://www.laughingpanda.org/jira/browse/JDAVE-25

could not take the specs since we can't currently use jdave in jdave-core. we could change this though

769 annotated / raw | Diffs: previous, other | Lines: 71 ( +15, -2 )

Created: 2007-08-13 18:29:30 +0300 (2 years 6 months ago) | Author: inhuman | Changeset: 769

use reverese ordering when looping the contexts. sun's virtual machines seem to return inner classes in a reverse order.
applied a patch from https://www.laughingpanda.org/jira/browse/JDAVE-15

Tags: 1.0-rc1 1.0

582 annotated / raw | Diffs: previous, other | Lines: 58 ( +20, -42 )

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

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

Created: 2007-04-25 21:24:11 +0300 (2 years 10 months ago) | Author: inhuman | Changeset: 512

missed callback call

Tags: 0.8.0

470 annotated / raw | Diffs: previous, other | Lines: 79 ( +2, -2 )

Created: 2007-04-14 13:28:56 +0300 (2 years 10 months ago) | Author: inhuman | Changeset: 470

Verify mocks at core runner and never let exceptions propagate to Junit runners.
This makes it much easier to write the runners.

Tags: 0.7.0

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

Created: 2007-04-11 13:20:31 +0300 (2 years 11 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.

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

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: 73 ( +1, -1 )

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

Don't treat private classes as contexts.

316 annotated / raw | Diffs: previous, other | Lines: 73 ( +4, -4 )

Created: 2007-02-23 16:46:40 +0200 (3 years ago) | Author: inhuman | Changeset: 316

Consolidate naming. Specification method is now known as Behavior.

Specification
  Context
     Behavior

Tags: 0.5.0

291 annotated / raw | Diffs: previous, other | Lines: 73 ( +23, -2 )

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: 52 ( +9, -0 )

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

Abstract inner classes are not contexts.

171 annotated / raw | Diffs: previous, other | Lines: 43 ( +1, -1 )

Created: 2007-01-16 23:11:56 +0200 (3 years 1 month ago) | Author: lkoskela | Changeset: 171

Renamed "Callback" to "SpecRunnerCallback".

Tags: 0.3.0

170 annotated / raw | Diffs: previous, other | Lines: 43 ( +0, -5 )

Created: 2007-01-16 23:10:53 +0200 (3 years 1 month ago) | Author: lkoskela | Changeset: 170

Converted member type "SpecRunner$Callback" to a top-level interface in the same package.

159 annotated / raw | Diffs: previous, other | Lines: 48 ( +1, -1 )

Created: 2007-01-16 15:43:36 +0200 (3 years 1 month ago) | Author: inhuman | Changeset: 159

Change callback API to fix a bug in junit3 launcher.

154 annotated / raw | Diffs: previous, other | Lines: 48 ( +2, -2 )

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

Fix exception handling.

126 annotated / raw | Diffs: previous, other | Lines: 48 ( +14, -3 )

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

static inner classes are not contexts.

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

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

Add jmock integration.

94 annotated / raw | Diffs: previous, other | Lines: 37 ( +0, -9 )

Created: 2006-12-20 10:05:39 +0200 (3 years 2 months ago) | Author: penberg | Changeset: 94

Move SpecRunner.Results to SpecificationMethod where it now belongs.

93 annotated / raw | Diffs: previous, other | Lines: 46 ( +1, -1 )

Created: 2006-12-20 10:00:55 +0200 (3 years 2 months ago) | Author: penberg | Changeset: 93

Remove static modifier from interface.

75 annotated / raw | Diffs: previous, other | Lines: 46 ( +1, -1 )

Created: 2006-12-19 16:17:34 +0200 (3 years 2 months ago) | Author: inhuman | Changeset: 75

Fix API to support multiple types of Specifications.

49 annotated / raw | Diffs: previous, other | Lines: 46 ( +8, -66 )

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

Enhance junit integration.

48 annotated / raw | Diffs: previous, other | Lines: 104 ( +4, -2 )

Created: 2006-12-15 11:34:53 +0200 (3 years 2 months ago) | Author: penberg | Changeset: 48

Use constant for context initializer name instead of open-coding it.

47 annotated / raw | Diffs: previous, other | Lines: 102 ( +5, -5 )

Created: 2006-12-15 11:28:36 +0200 (3 years 2 months ago) | Author: penberg | Changeset: 47

Code cleanups to SpecRunner.executeSpecificationMethod

46 annotated / raw | Diffs: previous, other | Lines: 102 ( +37, -32 )

Created: 2006-12-15 11:03:33 +0200 (3 years 2 months ago) | Author: penberg | Changeset: 46

Code cleanups to SpecRunner.run()

45 annotated / raw | Diffs: previous, other | Lines: 97 ( +4, -3 )

Created: 2006-12-15 10:52:41 +0200 (3 years 2 months ago) | Author: penberg | Changeset: 45

Throw NoContextInitializerSpecifiedMethod if context has no initializer.

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

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()

43 annotated / raw | Diffs: previous, other | Lines: 94 ( +0, -5 )

Created: 2006-12-15 10:20:50 +0200 (3 years 2 months ago) | Author: penberg | Changeset: 43

Class.getMethods() only returns public methods, so remove redundant check.

42 annotated / raw | Diffs: previous, other | Lines: 99 ( +3, -3 )

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.

38 annotated / raw | Diffs: previous, other | Lines: 99 ( +5, -6 )

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

Fixup generics.

34 annotated / raw | Diffs: previous, other | Lines: 100 ( +1, -2 )

Created: 2006-12-14 23:46:14 +0200 (3 years 2 months ago) | Author: inhuman | Changeset: 34

Remove useless class.

31 annotated / raw | Diffs: previous, other | Lines: 101 ( +12, -2 )

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.

29 annotated / raw | Diffs: previous, other | Lines: 91 ( +2, -2 )

Created: 2006-12-14 20:38:11 +0200 (3 years 2 months ago) | Author: inhuman | Changeset: 29

Add missing features.

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

Created: 2006-12-14 14:29:40 +0200 (3 years 2 months ago) | Author: inhuman | Changeset: 28

Add failing test.

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

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

Fix tests.

22 annotated / raw | Diffs: previous, other | Lines: 81 ( +21, -2 )

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

Invoke context() method and assign it to 'be'.

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

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

Invoke methods.

17 annotated / raw | Diffs: previous, other | Lines: 53 ( +5, -4 )

Created: 2006-12-13 16:53:54 +0200 (3 years 2 months ago) | Author: penberg | Changeset: 17

Use static import to clean up code.

16 annotated / raw | Diffs: previous, other | Lines: 52 ( +12, -4 )

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

Extract method to reduce nesting.

15 annotated / raw | Diffs: previous, other | Lines: 44 ( +2, -2 )

Created: 2006-12-13 16:46:32 +0200 (3 years 2 months ago) | Author: penberg | Changeset: 15

Add Methods.isPublic to clean up code.

14 annotated / raw | Diffs: previous, other | Lines: 44 ( +5, -3 )

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

Get all methods (expect the ones defined in Object.class).

13 annotated / raw | Diffs: previous, other | Lines: 42 ( +4, -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: 39 ( +39, -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: 58 ( +58, -0 )

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

Creating branch for temporarily mantenance