forked from arquillian/arquillian.github.io
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html.haml
135 lines (126 loc) · 5.75 KB
/
index.html.haml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
---
layout: base
body_class: home
---
#main
%header#intro(role='intro')
.container
.logline
:textile
h2. So _you_ can rule your code. Not the bugs.
No more mocks. No more container lifecycle and deployment hassles. Just _real_ tests!
.cta
%a.primary(href='/guides/getting_started/?utm_source=cta') Get Started!
-# .slide required to fix IE bug in bootstrap < 2.1
#slideshow.carousel.slide
.carousel-inner
.item.active
.layout-title{:style=>'background-image: url(\'/images/invasion.jpg\')'}
.visual
.container
.headline
:textile
h2. "Arquillian 1.0.3 has arrived!":/blog/2012/10/19/arquillian-core-1-0-3-Final/
.item
.container.layout-sample
.headline
:textile
h2. Don't write another test until you study this <span class="bind">one %(arrow)▶%</span>
# Delegates execution of the test to Arquillian, which runs the test inside the active container
# Creates an archive to isolate classes and resources for the test scenario
# Wires the component from the archive to the test case
# Invokes a method on the component and validates its return value
.visual
:textile
bc(prettify).. @RunWith(Arquillian.class) // (1)
public class GreeterTest {
@Deployment // (2)
public static JavaArchive createDeployment() {
return ShrinkWrap.create(JavaArchive.class)
.addClass(Greeter.class)
.addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml");
}
@Inject // (3)
Greeter greeter;
@Test // (4)
public void should_create_greeting() {
assertEquals("Hello, Earthling!", greeter.greet("Earthling"));
}
}
.item
.layout-photo{:style=>'background-image: url(\'/images/team_receiving_dukes_choice_award_1600.jpg\'); background-size: 1500px auto; background-position: center -110px;'}
.visual
.container
.headline
:textile
h2. "Arquillian wins a Duke's Choice Award at JavaOne 2011":/blog/2011/10/02/arquillian-wins-a-duke-choice-award/
This award goes out to the entire Arquillian community: coders, bloggers and evangelists. Excellent work!
p(more). "Read more":/blog/2011/10/02/arquillian-wins-a-duke-choice-award/ »
.item
.container.layout-gallery
.visual
:textile
!/images/screenshot-guides-index.png!:/guides/getting_started
.headline
:textile
h2. Earn your first Arquillian green bar!
Follow the "Getting Started":/guides/getting_started/ guide to learn how to add the Arquillian infrastructure to your test suite, write your first test and get it to pass. Get started now!
*(greenbar)Green bar.*
!(trim)/images/junit_green_bar.png!
%a.carousel-control.left(href="#slideshow" data-slide="prev") ‹
%a.carousel-control.right(href="#slideshow" data-slide="next") ›
%script $(function() { activateSlideshow() })
%hr.taper
.container
%p.question What's been happening lately?
#activity
.container
#spotlight
%h2.icon.crown Contributor Spotlight
- sel = Date.today.cweek % site.featured.length
- spotlight = site.identities.lookup(site.featured[sel].user)
%ul
%li
%a{:href=>spotlight.jbosscommunity.url}
%img{:src=>spotlight.avatar_url(44), :width=>44, :height=>44}
%h3{:style=>'line-height: 1; margin-bottom: 0;'}= spotlight.name
%em{:style=>'display: block; margin-bottom: 1em;'}= spotlight.location
:textile
#{site.featured[sel].bio}
.more
%a(href='/community/contributors') View all contributors »
#news
%h2.icon.news Latest News
%ul
- for post in site.posts[0,3]
%li
%h3
%a{:href=>post.url}= post.title
- if (post.content.length > 0)
- cut_at = post.content.index(/<pre[^>]*>/)
-#%p= summarize(html_to_text(cut_at ? post.content[0,cut_at] : post.content), 50)
- text = html_to_text(cut_at ? post.content[0, cut_at] : post.content)
-# might want to use 'white-space: pre-line;' here
- first_sentence = text.index(/[\.\!]( |$)/)
- second_sentence = text.index(/[\.\!]( |$)/, [ first_sentence + 1, text.length - 1].min) || text.index(/[ ]/, [ first_sentence + 1, text.length - 1 ].min)
- summary = text[0..second_sentence]
%p<= summary + '...'
.more
%a(href='/blog') View all blog entries »
#events
%h2.icon.invasion Upcoming Events
%ul
- for session in site.sessions[0,3]
%li
%span.date<
%abbr><= session.start_datetime.strftime('%b')
= session.start_datetime.strftime('%d')
%h3(style='line-height: 1; margin-bottom: 0;')
%a{:href=>session.event_url}= session.event
%em.location(style='display: block; margin-bottom: .5em;')= session.event_location
%p<>
#{session.speaker_names.join(', ').sub(/(.*), /, '\1 and ')} will present:
%br
%a{:href=>session.detail_url}= session.title
.more
%a(href='/invasion/events') View all events »