Skip to content

Commit

Permalink
documented eclipse template
Browse files Browse the repository at this point in the history
  • Loading branch information
maciejmikosik committed Aug 15, 2018
1 parent d8110f3 commit b9927c3
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
13 changes: 13 additions & 0 deletions main/doc/eclipse_templates.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Eclipse templates

Creates new class annotated with `@RunWith(QuackeryRunner.class)`. Defines single method annotated with `@Quackery` returning empty suite.

```
@${rw:newType(org.junit.runner.RunWith)}(${qr:newType(org.quackery.junit.QuackeryRunner)}.class)
public class ${primary_type_name} {
@${q:newType(org.quackery.Quackery)}
public static ${test:newType(org.quackery.Test)} test() {
return ${staticImport:importStatic(org.quackery.Suite.suite)}suite(${primary_type_name}.class.getName())${cursor};
}
}
```
7 changes: 6 additions & 1 deletion main/doc/tutorial.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
[built-in contracts](#built-in-contracts) |
[defining you own contracts](#defining-your-own-contracts) |
[running](#running) |
[integration](#integration)
[integration](#integration) |
[extra](#extra)

# built-in contracts
[collection contract](#collection-contract)
Expand Down Expand Up @@ -351,3 +352,7 @@ There are many problems that may occur during initialization. Method annotated w
`@org.junit.Ignore` does not work on methods annotated with `@Quackery`. However ignoring whole class will ignore also quackery tests.

Watch out for name collision between `org.quackery.Test` and `org.junit.Test`!

# extra

- [Eclipse templates](eclipse_templates.md)

0 comments on commit b9927c3

Please sign in to comment.