Permalink
Browse files

Fix Source examples in README to use MarkDown syntax and not GitHub e…

…nhanced MarkDown
  • Loading branch information...
aslakknutsen committed May 28, 2012
1 parent 6a81921 commit 7638daf6a1060abad76253b777262b23eb0ff93a
@@ -7,26 +7,23 @@ without defining them directly in the @Deployemnt method and do runtime enrichme
Extension will add the library "org.mockito:mockito-all" to the @Deployment if a @Mock field is defined on the TestClass.
When executed in-container the @Mock fields will be enriched by mocking them in Mockito and injected into the test instance.
-```java
-@RunWith(Arquillian.class)
-public class MyTestCase {
-
- @Deployment
- public static WebArchive deploy() {
- return ShrinkWrap.create(WebArchive.class)
- .addClass(AccountService.class);
- }
-
- @Mock
- private AccountService service;
-
- @Test
- public void shouldBeAbleToAccessMockito() {
- service.withdraw(100);
- }
-}
-```
-
+ @RunWith(Arquillian.class)
+ public class MyTestCase {
+
+ @Deployment
+ public static WebArchive deploy() {
+ return ShrinkWrap.create(WebArchive.class)
+ .addClass(AccountService.class);
+ }
+
+ @Mock
+ private AccountService service;
+
+ @Test
+ public void shouldBeAbleToAccessMockito() {
+ service.withdraw(100);
+ }
+ }
Following SPI's are used:
@@ -4,23 +4,20 @@ Declarative Dependency Extension
Extension showing how you can append additional classes / resources to your @Deployment,
without defining them directly in the @Deployemnt method.
-```java
-@Library("org.mockito:mickito-all:1.8.3")
-@RunWith(Arquillian.class)
-public class MyTestCase {
-
- @Deployment
- public static WebArchive deploy() {
- return ShrinkWrap.create(WebArchive.class);
- }
-
- @Test
- public void shouldBeAbleToAccessMockito() {
- Class.forName("org.mockito.Mock");
- }
-}
-```
-
+ @Library("org.mockito:mickito-all:1.8.3")
+ @RunWith(Arquillian.class)
+ public class MyTestCase {
+
+ @Deployment
+ public static WebArchive deploy() {
+ return ShrinkWrap.create(WebArchive.class);
+ }
+
+ @Test
+ public void shouldBeAbleToAccessMockito() {
+ Class.forName("org.mockito.Mock");
+ }
+ }
Following SPI's are used:
@@ -5,20 +5,17 @@ Extension showing how you can replace the default behavior of defining the @Depl
We're implementing the DeploymentScenarioGenerator to read mapping between TestClass and Archive from a external source, arquillian.xml.
-```java
-@RunWith(Arquillian.class)
-public class MyTestCase {
-
- @Inject
- private AccountService service;
-
- @Test
- public void shouldBeAbleTo() {
- service.withdraw(100);
- }
-}
-```
-
+ @RunWith(Arquillian.class)
+ public class MyTestCase {
+
+ @Inject
+ private AccountService service;
+
+ @Test
+ public void shouldBeAbleTo() {
+ service.withdraw(100);
+ }
+ }
Following SPI's are used:
@@ -3,32 +3,29 @@ Lifecycle Callback Extension
Extension showing how you can hook into the internal Arquillian lifecycle events and expose callbacks in your TestClass.
-```java
-@RunWith(Arquillian.class)
-public class MyTestCase {
-
- @Deployment
- public static WebArchive deploy() {
- return ShrinkWrap.create(WebArchive.class);
- }
-
- @BeforeDeploy
- public static void doBeforeDeploy() {}
-
- @AfterDeploy
- public static void doAfterDeploy() {}
-
- @BeforeUnDeploy
- public static void doBeforeUnDeploy() {}
-
- @AfterUnDeploy
- public static void doAfterUnDeploy() {}
-
- @Test
- public void shouldBeAbleTo() {}
-}
-```
-
+ @RunWith(Arquillian.class)
+ public class MyTestCase {
+
+ @Deployment
+ public static WebArchive deploy() {
+ return ShrinkWrap.create(WebArchive.class);
+ }
+
+ @BeforeDeploy
+ public static void doBeforeDeploy() {}
+
+ @AfterDeploy
+ public static void doAfterDeploy() {}
+
+ @BeforeUnDeploy
+ public static void doBeforeUnDeploy() {}
+
+ @AfterUnDeploy
+ public static void doAfterUnDeploy() {}
+
+ @Test
+ public void shouldBeAbleTo() {}
+ }
Following SPI's are used:
@@ -3,19 +3,15 @@ AutoDiscover System Properties Extension
Extension showing how you can filter and copy client side System Properties over to the Container side via a File in the Deployment.
-
-```xml
-<?xml version="1.0" encoding="UTF-8"?>
-<arquillian xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns="http://jboss.org/schema/arquillian"
- xsi:schemaLocation="http://jboss.org/schema/arquillian http://jboss.org/schema/arquillian/arquillian_1_0.xsd">
-
- <extension qualifier="systemproperties">
- <property name="prefix">ARQT_</property>
- </extension>
-</arquillian>
-```
-
+ <?xml version="1.0" encoding="UTF-8"?>
+ <arquillian xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns="http://jboss.org/schema/arquillian"
+ xsi:schemaLocation="http://jboss.org/schema/arquillian http://jboss.org/schema/arquillian/arquillian_1_0.xsd">
+
+ <extension qualifier="systemproperties">
+ <property name="prefix">ARQT_</property>
+ </extension>
+ </arquillian>
Following SPI's are used:

0 comments on commit 7638daf

Please sign in to comment.