forked from arquillian/arquillian.github.io
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html.haml
More file actions
156 lines (152 loc) · 5.52 KB
/
index.html.haml
File metadata and controls
156 lines (152 loc) · 5.52 KB
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
---
layout: base
title: The revolutionary Java middleware testing platform
javascripts: [ /javascripts/slides.js ]
body_class: home
---
#main
.container
.logline
%h2 Arquillian: the revolutionary Java middleware testing platform
%p No more mocks. No more container lifecycle and deployment hassles. Just <u><em>real</em></u> tests!
.cta
%a.primary{:href=>'/guides/getting_started'} Get Started!
#slides
.slide
.container.layout1
.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
%li Creates a test archive that provides classpath isolation
%li Injects the CDI bean from the application code
%li Specifies a test method for asserting behavior
.visual
:textile
div(filetab). GreeterTest.java
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"));
}
}
notextile.
.slide
.layout3
.container
.headline
%p.link
%a{:href=>'/blog/2011/10/02/arquillian-wins-a-duke-choice-award/'} Arquillian wins a Duke's Choice Award at JavaOne 2011
.visual{:style=>'background: url(\'/images/dukeschoiceaward2011_enhanced.jpg\') top center no-repeat'}
.slide
.container.layout2
.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/guides/arquillian_tutorial_junit_green_bar.png', :style=>'margin-left: -25em;'}
:javascript
$(function() {
var winWidth = $(window).width();
// waiting on responsive to be implemented correctly
$('.slide').css('width', winWidth);
var startSlide = 1;
if (window.location.hash) {
startSlide = window.location.hash.replace('#','');
}
$('#slides').slides({
//reponsive: true,
height: $('#slides').height(),
width: winWidth,
navigation: false,
playInterval: 10000,
pauseInterval: 60000,
preload: {
active: false
},
fade: {
interval: 500
},
slide: {
browserWindow: false,
interval: 750
},
startAtSlide: startSlide,
navigateEnd: function(current) {
window.location.hash = '#' + current;
}
});
//window.setTimeout(function() {
// $('#slides').slides('play');
//}, 10000 + 1000);
$('.slide').css('cursor', 'pointer').children().click(function(e) {
if (e.target.tagName === 'A' || $(e.target).parent().get(0).tagName === 'A') {
return true;
}
e.preventDefault();
$('#slides').slides('next');
});
window.setInterval(function() {
var winWidth = $(window).width();
$('.slideContainer').css('width', winWidth);
$('.slideController').css('width', winWidth);
$('.slide').css('width', winWidth);
}, 500);
});
.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)
%p= summarize(html_to_text(post.content), 50)
.more
%a{ :href=>'/blog' } View all blog entries »
#spotlight
%h2.icon.crown Featured Noble
- nbl = site.identity(site.featured_user)
%ul
%li
%a{:href=>nbl.jboss.url}
%img{:src=>"#{nbl.avatar_url}?s=44", :width=>44, :height=>44}
%h3{:style=>'margin-bottom: 0.2em'}= 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
%a{:href=>session.event_url}= session.event
%div.location= session.event_location
%p<>
#{session.speaker_names.join(' and ')} will be presenting on
%a{:href=>session.detail_url}= session.title
= '.'
.more
%a{ :href=>'/invasion/events' } View all events »