[picocontainer-scm] [scm-git][1/1] java dep guard

Paul Hammant <git-yCVjj/[email protected]> Sun, 28 Jul 2013 16:39:42 -0500 (CDT)
Newsgroups gmane.comp.java.picocontainer.cvs
Message-ID <[email protected]>
--04f236f03077e5159963e8f1d05af73da1eaa75f
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

commit 00c3ef4002d629b1f01a63204c8ee7da414e265b=0AAuthor:     Paul Hammant =
<[email protected]>=0AAuthorDate: Sun, 28 Jul 2013 16:39:05 -0500=0ACommit: =
    Paul Hammant <[email protected]>=0ACommitDate: Sun, 28 Jul 2013 16:39:05=
 -0500=0A=0A    java dep guard=0A=0Adiff --git a/web/web-core/src/test/com/=
picocontainer/web/JavaVersionTestCase.java b/web/web-core/src/test/com/pico=
container/web/JavaVersionTestCase.java=0Anew file mode 100644=0Aindex 00000=
00..e84416c=0A--- /dev/null=0A+++ b/web/web-core/src/test/com/picocontainer=
/web/JavaVersionTestCase.java=0A@@ -0,0 +1,18 @@=0A+package com.picocontain=
er.web;=0A+=0A+import org.junit.Test;=0A+=0A+import static org.hamcrest.Mat=
chers.startsWith;=0A+import static org.junit.Assert.assertThat;=0A+=0A+publ=
ic class JavaVersionTestCase {=0A+=0A+    @Test=0A+    public void javaVers=
ionShouldBeJdkSevenOrAboveBecauseServletApiVersionRequiresThatDuringCompila=
tion() {=0A+=0A+        String ver =3D System.getProperty("java.runtime.ver=
sion");=0A+        assertThat(ver, startsWith("1.7"));=0A+=0A+    }=0A+=0A+=
}=0A=0A=0A=0A=

--04f236f03077e5159963e8f1d05af73da1eaa75f
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w=
3.org/TR/REC-html40/loose.dtd">=0A<html style=3D"font-size: 12px;">=0A<head=
><meta http-equiv=3D"Content-type" content=3D"text/html; charset=3Dutf-8"><=
/head>=0A<body style=3D"font-size: 12px;">=0A<style type=3D"text/css">=0Adt=
:after { content: ':' !important; }=0A></style>=0A<dl class=3D"title" style=
=3D"font-size: 12px; font-family: Verdana; background-color: #ddd; padding:=
 10px;">=0A<dt style=3D"font-size: 12px; float: left; font-weight: bold; mi=
n-width: 6em;">Commit</dt>=0A<dd style=3D"font-size: 12px;">00c3ef4002d629b=
1f01a63204c8ee7da414e265b</dd>=0A<dt style=3D"font-size: 12px; float: left;=
 font-weight: bold; min-width: 6em;">Branch</dt>=0A<dd style=3D"font-size: =
12px;">master</dd>=0A<dt style=3D"font-size: 12px; float: left; font-weight=
: bold; min-width: 6em;">Author</dt>=0A<dd style=3D"font-size: 12px;">Paul =
Hammant &lt;[email protected]&gt;</dd>=0A<dt style=3D"font-size: 12px; float=
: left; font-weight: bold; min-width: 6em;">Date</dt>=0A<dd style=3D"font-s=
ize: 12px;">Sun, 28 Jul 2013 16:39:05 -0500</dd>=0A<dt style=3D"font-size: =
12px; float: left; font-weight: bold; min-width: 6em;">Message</dt>=0A<dd c=
lass=3D"" style=3D"font-size: 12px;">java dep guard</dd>=0A</dl>=0A<h2 id=
=3D"web/web-core/src/test/com/picocontainer/web/JavaVersionTestCase.java" s=
tyle=3D"font-size: 12px; font-family: Verdana; font-weight: bold; line-heig=
ht: 25px; margin-bottom: 2px; padding-left: 5px; background-color: #bbb;">A=
dded file web/web-core/src/test/com/picocontainer/web/JavaVersionTestCase.j=
ava</h2>=0A=0A<table style=3D"font-size: 12px; width: 100%; border-collapse=
: collapse;">=0A<tr class=3D"a" style=3D"font-size: 12px; background-color:=
 #dfd;" bgcolor=3D"#dfd">=0A<td class=3D"ln" style=3D"font-size: 12px; colo=
r: #000; font-family: 'Bitstream Vera Sans Mono','Monaco','Courier',monospa=
ce; width: 23px; text-align: right; background-color: #ccc;" align=3D"right=
" bgcolor=3D"#ccc"></td>=0A<td class=3D"ln" style=3D"font-size: 12px; color=
: #000; font-family: 'Bitstream Vera Sans Mono','Monaco','Courier',monospac=
e; width: 23px; text-align: right; background-color: #ccc;" align=3D"right"=
 bgcolor=3D"#ccc">1</td>=0A<td style=3D"font-size: 12px; color: #000; font-=
family: 'Bitstream Vera Sans Mono','Monaco','Courier',monospace;">=C2=A0pac=
kage=C2=A0com.picocontainer.web;</td>=0A</tr>=0A<tr class=3D"a" style=3D"fo=
nt-size: 12px; background-color: #dfd;" bgcolor=3D"#dfd">=0A<td class=3D"ln=
" style=3D"font-size: 12px; color: #000; font-family: 'Bitstream Vera Sans =
Mono','Monaco','Courier',monospace; width: 23px; text-align: right; backgro=
und-color: #ccc;" align=3D"right" bgcolor=3D"#ccc"></td>=0A<td class=3D"ln"=
 style=3D"font-size: 12px; color: #000; font-family: 'Bitstream Vera Sans M=
ono','Monaco','Courier',monospace; width: 23px; text-align: right; backgrou=
nd-color: #ccc;" align=3D"right" bgcolor=3D"#ccc">2</td>=0A<td style=3D"fon=
t-size: 12px; color: #000; font-family: 'Bitstream Vera Sans Mono','Monaco'=
,'Courier',monospace;">=C2=A0</td>=0A</tr>=0A<tr class=3D"a" style=3D"font-=
size: 12px; background-color: #dfd;" bgcolor=3D"#dfd">=0A<td class=3D"ln" s=
tyle=3D"font-size: 12px; color: #000; font-family: 'Bitstream Vera Sans Mon=
o','Monaco','Courier',monospace; width: 23px; text-align: right; background=
-color: #ccc;" align=3D"right" bgcolor=3D"#ccc"></td>=0A<td class=3D"ln" st=
yle=3D"font-size: 12px; color: #000; font-family: 'Bitstream Vera Sans Mono=
','Monaco','Courier',monospace; width: 23px; text-align: right; background-=
color: #ccc;" align=3D"right" bgcolor=3D"#ccc">3</td>=0A<td style=3D"font-s=
ize: 12px; color: #000; font-family: 'Bitstream Vera Sans Mono','Monaco','C=
ourier',monospace;">=C2=A0import=C2=A0org.junit.Test;</td>=0A</tr>=0A<tr cl=
ass=3D"a" style=3D"font-size: 12px; background-color: #dfd;" bgcolor=3D"#df=
d">=0A<td class=3D"ln" style=3D"font-size: 12px; color: #000; font-family: =
'Bitstream Vera Sans Mono','Monaco','Courier',monospace; width: 23px; text-=
align: right; background-color: #ccc;" align=3D"right" bgcolor=3D"#ccc"></t=
d>=0A<td class=3D"ln" style=3D"font-size: 12px; color: #000; font-family: '=
Bitstream Vera Sans Mono','Monaco','Courier',monospace; width: 23px; text-a=
lign: right; background-color: #ccc;" align=3D"right" bgcolor=3D"#ccc">4</t=
d>=0A<td style=3D"font-size: 12px; color: #000; font-family: 'Bitstream Ver=
a Sans Mono','Monaco','Courier',monospace;">=C2=A0</td>=0A</tr>=0A<tr class=
=3D"a" style=3D"font-size: 12px; background-color: #dfd;" bgcolor=3D"#dfd">=
=0A<td class=3D"ln" style=3D"font-size: 12px; color: #000; font-family: 'Bi=
tstream Vera Sans Mono','Monaco','Courier',monospace; width: 23px; text-ali=
gn: right; background-color: #ccc;" align=3D"right" bgcolor=3D"#ccc"></td>=
=0A<td class=3D"ln" style=3D"font-size: 12px; color: #000; font-family: 'Bi=
tstream Vera Sans Mono','Monaco','Courier',monospace; width: 23px; text-ali=
gn: right; background-color: #ccc;" align=3D"right" bgcolor=3D"#ccc">5</td>=
=0A<td style=3D"font-size: 12px; color: #000; font-family: 'Bitstream Vera =
Sans Mono','Monaco','Courier',monospace;">=C2=A0import=C2=A0static=C2=A0org=
.hamcrest.Matchers.startsWith;</td>=0A</tr>=0A<tr class=3D"a" style=3D"font=
-size: 12px; background-color: #dfd;" bgcolor=3D"#dfd">=0A<td class=3D"ln" =
style=3D"font-size: 12px; color: #000; font-family: 'Bitstream Vera Sans Mo=
no','Monaco','Courier',monospace; width: 23px; text-align: right; backgroun=
d-color: #ccc;" align=3D"right" bgcolor=3D"#ccc"></td>=0A<td class=3D"ln" s=
tyle=3D"font-size: 12px; color: #000; font-family: 'Bitstream Vera Sans Mon=
o','Monaco','Courier',monospace; width: 23px; text-align: right; background=
-color: #ccc;" align=3D"right" bgcolor=3D"#ccc">6</td>=0A<td style=3D"font-=
size: 12px; color: #000; font-family: 'Bitstream Vera Sans Mono','Monaco','=
Courier',monospace;">=C2=A0import=C2=A0static=C2=A0org.junit.Assert.assertT=
hat;</td>=0A</tr>=0A<tr class=3D"a" style=3D"font-size: 12px; background-co=
lor: #dfd;" bgcolor=3D"#dfd">=0A<td class=3D"ln" style=3D"font-size: 12px; =
color: #000; font-family: 'Bitstream Vera Sans Mono','Monaco','Courier',mon=
ospace; width: 23px; text-align: right; background-color: #ccc;" align=3D"r=
ight" bgcolor=3D"#ccc"></td>=0A<td class=3D"ln" style=3D"font-size: 12px; c=
olor: #000; font-family: 'Bitstream Vera Sans Mono','Monaco','Courier',mono=
space; width: 23px; text-align: right; background-color: #ccc;" align=3D"ri=
ght" bgcolor=3D"#ccc">7</td>=0A<td style=3D"font-size: 12px; color: #000; f=
ont-family: 'Bitstream Vera Sans Mono','Monaco','Courier',monospace;">=C2=
=A0</td>=0A</tr>=0A<tr class=3D"a" style=3D"font-size: 12px; background-col=
or: #dfd;" bgcolor=3D"#dfd">=0A<td class=3D"ln" style=3D"font-size: 12px; c=
olor: #000; font-family: 'Bitstream Vera Sans Mono','Monaco','Courier',mono=
space; width: 23px; text-align: right; background-color: #ccc;" align=3D"ri=
ght" bgcolor=3D"#ccc"></td>=0A<td class=3D"ln" style=3D"font-size: 12px; co=
lor: #000; font-family: 'Bitstream Vera Sans Mono','Monaco','Courier',monos=
pace; width: 23px; text-align: right; background-color: #ccc;" align=3D"rig=
ht" bgcolor=3D"#ccc">8</td>=0A<td style=3D"font-size: 12px; color: #000; fo=
nt-family: 'Bitstream Vera Sans Mono','Monaco','Courier',monospace;">=C2=A0=
public=C2=A0class=C2=A0JavaVersionTestCase=C2=A0{</td>=0A</tr>=0A<tr class=
=3D"a" style=3D"font-size: 12px; background-color: #dfd;" bgcolor=3D"#dfd">=
=0A<td class=3D"ln" style=3D"font-size: 12px; color: #000; font-family: 'Bi=
tstream Vera Sans Mono','Monaco','Courier',monospace; width: 23px; text-ali=
gn: right; background-color: #ccc;" align=3D"right" bgcolor=3D"#ccc"></td>=
=0A<td class=3D"ln" style=3D"font-size: 12px; color: #000; font-family: 'Bi=
tstream Vera Sans Mono','Monaco','Courier',monospace; width: 23px; text-ali=
gn: right; background-color: #ccc;" align=3D"right" bgcolor=3D"#ccc">9</td>=
=0A<td style=3D"font-size: 12px; color: #000; font-family: 'Bitstream Vera =
Sans Mono','Monaco','Courier',monospace;">=C2=A0</td>=0A</tr>=0A<tr class=
=3D"a" style=3D"font-size: 12px; background-color: #dfd;" bgcolor=3D"#dfd">=
=0A<td class=3D"ln" style=3D"font-size: 12px; color: #000; font-family: 'Bi=
tstream Vera Sans Mono','Monaco','Courier',monospace; width: 23px; text-ali=
gn: right; background-color: #ccc;" align=3D"right" bgcolor=3D"#ccc"></td>=
=0A<td class=3D"ln" style=3D"font-size: 12px; color: #000; font-family: 'Bi=
tstream Vera Sans Mono','Monaco','Courier',monospace; width: 23px; text-ali=
gn: right; background-color: #ccc;" align=3D"right" bgcolor=3D"#ccc">10</td=
>=0A<td style=3D"font-size: 12px; color: #000; font-family: 'Bitstream Vera=
 Sans Mono','Monaco','Courier',monospace;">=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0@T=
est</td>=0A</tr>=0A<tr class=3D"a" style=3D"font-size: 12px; background-col=
or: #dfd;" bgcolor=3D"#dfd">=0A<td class=3D"ln" style=3D"font-size: 12px; c=
olor: #000; font-family: 'Bitstream Vera Sans Mono','Monaco','Courier',mono=
space; width: 23px; text-align: right; background-color: #ccc;" align=3D"ri=
ght" bgcolor=3D"#ccc"></td>=0A<td class=3D"ln" style=3D"font-size: 12px; co=
lor: #000; font-family: 'Bitstream Vera Sans Mono','Monaco','Courier',monos=
pace; width: 23px; text-align: right; background-color: #ccc;" align=3D"rig=
ht" bgcolor=3D"#ccc">11</td>=0A<td style=3D"font-size: 12px; color: #000; f=
ont-family: 'Bitstream Vera Sans Mono','Monaco','Courier',monospace;">=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0public=C2=A0void=C2=A0javaVersionShouldBeJdkSeve=
nOrAboveBecauseServletApiVersionRequiresThatDuringCompilation()=C2=A0{</td>=
=0A</tr>=0A<tr class=3D"a" style=3D"font-size: 12px; background-color: #dfd=
;" bgcolor=3D"#dfd">=0A<td class=3D"ln" style=3D"font-size: 12px; color: #0=
00; font-family: 'Bitstream Vera Sans Mono','Monaco','Courier',monospace; w=
idth: 23px; text-align: right; background-color: #ccc;" align=3D"right" bgc=
olor=3D"#ccc"></td>=0A<td class=3D"ln" style=3D"font-size: 12px; color: #00=
0; font-family: 'Bitstream Vera Sans Mono','Monaco','Courier',monospace; wi=
dth: 23px; text-align: right; background-color: #ccc;" align=3D"right" bgco=
lor=3D"#ccc">12</td>=0A<td style=3D"font-size: 12px; color: #000; font-fami=
ly: 'Bitstream Vera Sans Mono','Monaco','Courier',monospace;">=C2=A0</td>=
=0A</tr>=0A<tr class=3D"a" style=3D"font-size: 12px; background-color: #dfd=
;" bgcolor=3D"#dfd">=0A<td class=3D"ln" style=3D"font-size: 12px; color: #0=
00; font-family: 'Bitstream Vera Sans Mono','Monaco','Courier',monospace; w=
idth: 23px; text-align: right; background-color: #ccc;" align=3D"right" bgc=
olor=3D"#ccc"></td>=0A<td class=3D"ln" style=3D"font-size: 12px; color: #00=
0; font-family: 'Bitstream Vera Sans Mono','Monaco','Courier',monospace; wi=
dth: 23px; text-align: right; background-color: #ccc;" align=3D"right" bgco=
lor=3D"#ccc">13</td>=0A<td style=3D"font-size: 12px; color: #000; font-fami=
ly: 'Bitstream Vera Sans Mono','Monaco','Courier',monospace;">=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0String=C2=A0ver=C2=A0=3D=C2=A0Sys=
tem.getProperty("java.runtime.version");</td>=0A</tr>=0A<tr class=3D"a" sty=
le=3D"font-size: 12px; background-color: #dfd;" bgcolor=3D"#dfd">=0A<td cla=
ss=3D"ln" style=3D"font-size: 12px; color: #000; font-family: 'Bitstream Ve=
ra Sans Mono','Monaco','Courier',monospace; width: 23px; text-align: right;=
 background-color: #ccc;" align=3D"right" bgcolor=3D"#ccc"></td>=0A<td clas=
s=3D"ln" style=3D"font-size: 12px; color: #000; font-family: 'Bitstream Ver=
a Sans Mono','Monaco','Courier',monospace; width: 23px; text-align: right; =
background-color: #ccc;" align=3D"right" bgcolor=3D"#ccc">14</td>=0A<td sty=
le=3D"font-size: 12px; color: #000; font-family: 'Bitstream Vera Sans Mono'=
,'Monaco','Courier',monospace;">=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0assertThat(ver,=C2=A0startsWith("1.7"));</td>=0A</tr>=0A<tr cla=
ss=3D"a" style=3D"font-size: 12px; background-color: #dfd;" bgcolor=3D"#dfd=
">=0A<td class=3D"ln" style=3D"font-size: 12px; color: #000; font-family: '=
Bitstream Vera Sans Mono','Monaco','Courier',monospace; width: 23px; text-a=
lign: right; background-color: #ccc;" align=3D"right" bgcolor=3D"#ccc"></td=
>=0A<td class=3D"ln" style=3D"font-size: 12px; color: #000; font-family: 'B=
itstream Vera Sans Mono','Monaco','Courier',monospace; width: 23px; text-al=
ign: right; background-color: #ccc;" align=3D"right" bgcolor=3D"#ccc">15</t=
d>=0A<td style=3D"font-size: 12px; color: #000; font-family: 'Bitstream Ver=
a Sans Mono','Monaco','Courier',monospace;">=C2=A0</td>=0A</tr>=0A<tr class=
=3D"a" style=3D"font-size: 12px; background-color: #dfd;" bgcolor=3D"#dfd">=
=0A<td class=3D"ln" style=3D"font-size: 12px; color: #000; font-family: 'Bi=
tstream Vera Sans Mono','Monaco','Courier',monospace; width: 23px; text-ali=
gn: right; background-color: #ccc;" align=3D"right" bgcolor=3D"#ccc"></td>=
=0A<td class=3D"ln" style=3D"font-size: 12px; color: #000; font-family: 'Bi=
tstream Vera Sans Mono','Monaco','Courier',monospace; width: 23px; text-ali=
gn: right; background-color: #ccc;" align=3D"right" bgcolor=3D"#ccc">16</td=
>=0A<td style=3D"font-size: 12px; color: #000; font-family: 'Bitstream Vera=
 Sans Mono','Monaco','Courier',monospace;">=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0}<=
/td>=0A</tr>=0A<tr class=3D"a" style=3D"font-size: 12px; background-color: =
#dfd;" bgcolor=3D"#dfd">=0A<td class=3D"ln" style=3D"font-size: 12px; color=
: #000; font-family: 'Bitstream Vera Sans Mono','Monaco','Courier',monospac=
e; width: 23px; text-align: right; background-color: #ccc;" align=3D"right"=
 bgcolor=3D"#ccc"></td>=0A<td class=3D"ln" style=3D"font-size: 12px; color:=
 #000; font-family: 'Bitstream Vera Sans Mono','Monaco','Courier',monospace=
; width: 23px; text-align: right; background-color: #ccc;" align=3D"right" =
bgcolor=3D"#ccc">17</td>=0A<td style=3D"font-size: 12px; color: #000; font-=
family: 'Bitstream Vera Sans Mono','Monaco','Courier',monospace;">=C2=A0</t=
d>=0A</tr>=0A<tr class=3D"a" style=3D"font-size: 12px; background-color: #d=
fd;" bgcolor=3D"#dfd">=0A<td class=3D"ln" style=3D"font-size: 12px; color: =
#000; font-family: 'Bitstream Vera Sans Mono','Monaco','Courier',monospace;=
 width: 23px; text-align: right; background-color: #ccc;" align=3D"right" b=
gcolor=3D"#ccc"></td>=0A<td class=3D"ln" style=3D"font-size: 12px; color: #=
000; font-family: 'Bitstream Vera Sans Mono','Monaco','Courier',monospace; =
width: 23px; text-align: right; background-color: #ccc;" align=3D"right" bg=
color=3D"#ccc">18</td>=0A<td style=3D"font-size: 12px; color: #000; font-fa=
mily: 'Bitstream Vera Sans Mono','Monaco','Courier',monospace;">=C2=A0}</td=
>=0A</tr>=0A</table>=0A<br style=3D"font-size: 12px;"><br style=3D"font-siz=
e: 12px;">=0A</body>=0A</html>=0A=

--04f236f03077e5159963e8f1d05af73da1eaa75f--