forked from arquillian/arquillian.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html.haml
135 lines (132 loc) · 5.57 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
-#%h2 A revolutionary open source testing platform for Java
%h2 So <u>you</u> can rule your code. Not the bugs.
%p No more mocks. No more container lifecycle and deployment hassles. Just <em>real</em> tests!
.cta
%a.primary{:href=>'/guides/getting_started'} Get Started!
-# .slide required to fix IE bug in bootstrap < 2.1
#slideshow.carousel.slide
.carousel-inner
.item.active
.container.layout-sample
.headline
%h2 Don't write another test until you study this one <img src="/images/right_arrow.png" alt=">"/>
%ol
%li Delegates execution of the test to Arquillian, which runs the test inside the active container
%li Creates an archive to isolate classes and resources for the test scenario
%li Wires the component from the archive to the test case
%li 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
%h2
%a{:href=>'/blog/2011/10/02/arquillian-wins-a-duke-choice-award/'} Arquillian wins a Duke's Choice Award at JavaOne 2011
%p This award goes out to the entire Arquillian community: coders, bloggers and evangelists. Excellent work!
%p.more
%a{:href=>'/blog/2011/10/02/arquillian-wins-a-duke-choice-award/'} Read more
»
.item
.container.layout-gallery
.visual
%a{:href=>'guides/getting_started'}
%img{:src=>'/images/screenshot-guides-index.png'}
.headline
%h2 Earn your first Arquillian green bar!
:textile
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.*
%img.trim{:src=>'/images/junit_green_bar.png'}
%a.carousel-control.left(href="#slideshow" data-slide="prev") ‹
%a.carousel-control.right(href="#slideshow" data-slide="next") ›
-# TODO put me in the arquillian-site.js file
:javascript
$(function() {
var start = window.location.hash ? window.location.hash.replace('#', '') : 1;
if (start > 1) {
var items = $('#slideshow .item');
$(items[start - 1]).addClass('active');
$(items[0]).removeClass('active');
}
$('#slideshow').carousel({
pause: ''
})
.on('slid', function(e) {
var active = $('#slideshow').find('.active');
var pos = active.parent().children().index(active);
window.location.hash = '#' + (pos + 1);
})
.carousel('pause');
});
%hr.taper
.container
%p.question What's been happening lately?
#activity
.container
#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)
.more
%a{ :href=>'/blog' } View all blog entries »
#spotlight
%h2.icon.crown Featured Noble
- nbl = site.identities.lookup(site.featured.user)
%ul
%li
%a{:href=>nbl.jbosscommunity.url}
%img{:src=>nbl.avatar_url(44), :width=>44, :height=>44}
%h3{:style=>'line-height: 1; margin-bottom: 0;'}= nbl.name
%em{:style=>'display: block; margin-bottom: 1em;'}= nbl.location
:textile
#{site.featured.bio}
.more
%a{ :href=>'/community/nobles' } View all nobles »
#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(' and ')} will present on
%br
%a{:href=>session.detail_url}= session.title
.more
%a{ :href=>'/invasion/events' } View all events »