[picocontainer-scm] [scm-git][1/1] Allow for async value population.

Michael Rimov <git-yCVjj/[email protected]> Tue, 25 Jun 2013 09:46:00 -0500 (CDT)
Newsgroups gmane.comp.java.picocontainer.cvs
Message-ID <[email protected]>
--b1df9f8fc7b8f2ebacaf518cf99c4fca6df2f8d6
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

commit 10e1a56ac877eb4b1e9c69bc2f88eac1bcaf9447=0AAuthor:     Michael Rimov=
 <[email protected]>=0AAuthorDate: Tue, 25 Jun 2013 07:40:55 -0700=
=0ACommit:     Michael Rimov <[email protected]>=0ACommitDate: Tue,=
 25 Jun 2013 07:40:55 -0700=0A=0A    Allow for async value population.=0A=
=0Adiff --git a/web/examples/struts2-webapp-with-pwr/src/test/com/picoconta=
iner/web/sample/struts2/pwr/selenium/ListAddCheese.java b/web/examples/stru=
ts2-webapp-with-pwr/src/test/com/picocontainer/web/sample/struts2/pwr/selen=
ium/ListAddCheese.java=0Aindex 35a0007..d561ed0 100644=0A--- a/web/examples=
/struts2-webapp-with-pwr/src/test/com/picocontainer/web/sample/struts2/pwr/=
selenium/ListAddCheese.java=0A+++ b/web/examples/struts2-webapp-with-pwr/sr=
c/test/com/picocontainer/web/sample/struts2/pwr/selenium/ListAddCheese.java=
=0A@@ -16,8 +16,10 @@ public class ListAddCheese {=0A 		assertTrue(selenium=
.isTextPresent("Brie"));=0A 		assertTrue(selenium.isTextPresent("France"));=
=0A 		assertTrue(selenium.isElementPresent("css=3Dinput[type=3D\"submit\"]"=
));=0A+		=0A+		=0A 		assertTrue(selenium.isElementPresent("name=3Dcount"));=
=0A-		assertEquals("4", selenium.getValue("name=3Dcount"));=0A+		selenium.w=
aitForCondition("selenium.browserbot.getCurrentWindow().document.countForm.=
count.value =3D=3D 4", "10");=0A 	}=0A 	=0A 	=0A=0A=0A=0A=

--b1df9f8fc7b8f2ebacaf518cf99c4fca6df2f8d6
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;">10e1a56ac877eb4=
b1e9c69bc2f88eac1bcaf9447</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;">Micha=
el Rimov &lt;[email protected]&gt;</dd>=0A<dt style=3D"font-size: 1=
2px; float: left; font-weight: bold; min-width: 6em;">Date</dt>=0A<dd style=
=3D"font-size: 12px;">Tue, 25 Jun 2013 07:40:55 -0700</dd>=0A<dt style=3D"f=
ont-size: 12px; float: left; font-weight: bold; min-width: 6em;">Message</d=
t>=0A<dd class=3D"" style=3D"font-size: 12px;">Allow for async value popula=
tion.</dd>=0A</dl>=0A<h2 id=3D"web/examples/struts2-webapp-with-pwr/src/tes=
t/com/picocontainer/web/sample/struts2/pwr/selenium/ListAddCheese.java" sty=
le=3D"font-size: 12px; font-family: Verdana; font-weight: bold; line-height=
: 25px; margin-bottom: 2px; padding-left: 5px; background-color: #bbb;">Cha=
nged file web/examples/struts2-webapp-with-pwr/src/test/com/picocontainer/w=
eb/sample/struts2/pwr/selenium/ListAddCheese.java</h2>=0A=0A<table style=3D=
"font-size: 12px; width: 100%; border-collapse: collapse;">=0A<tr style=3D"=
font-size: 12px;">=0A<td class=3D"ln" style=3D"font-size: 12px; color: #000=
; font-family: 'Bitstream Vera Sans Mono','Monaco','Courier',monospace; wid=
th: 23px; text-align: right; background-color: #ccc;" align=3D"right" bgcol=
or=3D"#ccc">16</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">16</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=A0assertTrue(selenium.isTextPresent("Brie=
"));</td>=0A</tr>=0A<tr style=3D"font-size: 12px;">=0A<td class=3D"ln" styl=
e=3D"font-size: 12px; color: #000; font-family: 'Bitstream Vera Sans Mono',=
'Monaco','Courier',monospace; width: 23px; text-align: right; background-co=
lor: #ccc;" align=3D"right" bgcolor=3D"#ccc">17</td>=0A<td class=3D"ln" sty=
le=3D"font-size: 12px; color: #000; font-family: 'Bitstream Vera Sans Mono'=
,'Monaco','Courier',monospace; width: 23px; text-align: right; background-c=
olor: #ccc;" align=3D"right" bgcolor=3D"#ccc">17</td>=0A<td style=3D"font-s=
ize: 12px; color: #000; font-family: 'Bitstream Vera Sans Mono','Monaco','C=
ourier',monospace;">=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0assertT=
rue(selenium.isTextPresent("France"));</td>=0A</tr>=0A<tr style=3D"font-siz=
e: 12px;">=0A<td class=3D"ln" style=3D"font-size: 12px; color: #000; font-f=
amily: 'Bitstream Vera Sans Mono','Monaco','Courier',monospace; width: 23px=
; text-align: right; background-color: #ccc;" align=3D"right" bgcolor=3D"#c=
cc">18</td>=0A<td class=3D"ln" style=3D"font-size: 12px; color: #000; font-=
family: 'Bitstream Vera Sans Mono','Monaco','Courier',monospace; width: 23p=
x; text-align: right; background-color: #ccc;" align=3D"right" bgcolor=3D"#=
ccc">18</td>=0A<td style=3D"font-size: 12px; color: #000; font-family: 'Bit=
stream Vera Sans Mono','Monaco','Courier',monospace;">=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0assertTrue(selenium.isElementPresent("css=3Dinpu=
t[type=3D\"submit\"]"));</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',monospace; width: 23px; text-align: right; background-col=
or: #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-col=
or: #ccc;" align=3D"right" bgcolor=3D"#ccc">19</td>=0A<td style=3D"font-siz=
e: 12px; color: #000; font-family: 'Bitstream Vera Sans Mono','Monaco','Cou=
rier',monospace;">=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=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">20</td>=0A<td style=3D"font-size: 12px; color: #000; font-fa=
mily: 'Bitstream Vera Sans Mono','Monaco','Courier',monospace;">=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0</td>=0A</tr>=0A<tr style=3D"f=
ont-size: 12px;">=0A<td class=3D"ln" style=3D"font-size: 12px; color: #000;=
 font-family: 'Bitstream Vera Sans Mono','Monaco','Courier',monospace; widt=
h: 23px; text-align: right; background-color: #ccc;" align=3D"right" bgcolo=
r=3D"#ccc">19</td>=0A<td class=3D"ln" style=3D"font-size: 12px; color: #000=
; font-family: 'Bitstream Vera Sans Mono','Monaco','Courier',monospace; wid=
th: 23px; text-align: right; background-color: #ccc;" align=3D"right" bgcol=
or=3D"#ccc">21</td>=0A<td style=3D"font-size: 12px; color: #000; font-famil=
y: 'Bitstream Vera Sans Mono','Monaco','Courier',monospace;">=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0assertTrue(selenium.isElementPresent("n=
ame=3Dcount"));</td>=0A</tr>=0A<tr class=3D"r" style=3D"font-size: 12px; ba=
ckground-color: #fdd;" bgcolor=3D"#fdd">=0A<td class=3D"ln" style=3D"font-s=
ize: 12px; color: #000; font-family: 'Bitstream Vera Sans Mono','Monaco','C=
ourier',monospace; width: 23px; text-align: right; background-color: #ccc;"=
 align=3D"right" bgcolor=3D"#ccc">20</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"></td>=0A<td style=3D"font-size: 12px; co=
lor: #000; font-family: 'Bitstream Vera Sans Mono','Monaco','Courier',monos=
pace;">=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0assertEquals("=
4",=C2=A0selenium.getValue("name=3Dcount"));</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: 'Bitstrea=
m Vera Sans Mono','Monaco','Courier',monospace; width: 23px; text-align: ri=
ght; 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: rig=
ht; background-color: #ccc;" align=3D"right" bgcolor=3D"#ccc">22</td>=0A<td=
 style=3D"font-size: 12px; color: #000; font-family: 'Bitstream Vera Sans M=
ono','Monaco','Courier',monospace;">=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0selenium.waitForCondition("selenium.browserbot.getCurrentWin=
dow().document.countForm.count.value=C2=A0=3D=3D=C2=A04",=C2=A0"10");</td>=
=0A</tr>=0A<tr style=3D"font-size: 12px;">=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">21</td>=0A<td class=3D"ln" style=3D"fon=
t-size: 12px; color: #000; font-family: 'Bitstream Vera Sans Mono','Monaco'=
,'Courier',monospace; width: 23px; text-align: right; background-color: #cc=
c;" align=3D"right" bgcolor=3D"#ccc">23</td>=0A<td style=3D"font-size: 12px=
; color: #000; font-family: 'Bitstream Vera Sans Mono','Monaco','Courier',m=
onospace;">=C2=A0=C2=A0=C2=A0=C2=A0}</td>=0A</tr>=0A<tr style=3D"font-size:=
 12px;">=0A<td class=3D"ln" style=3D"font-size: 12px; color: #000; font-fam=
ily: 'Bitstream Vera Sans Mono','Monaco','Courier',monospace; width: 23px; =
text-align: right; background-color: #ccc;" align=3D"right" bgcolor=3D"#ccc=
">22</td>=0A<td class=3D"ln" style=3D"font-size: 12px; color: #000; font-fa=
mily: 'Bitstream Vera Sans Mono','Monaco','Courier',monospace; width: 23px;=
 text-align: right; background-color: #ccc;" align=3D"right" bgcolor=3D"#cc=
c">24</td>=0A<td style=3D"font-size: 12px; color: #000; font-family: 'Bitst=
ream Vera Sans Mono','Monaco','Courier',monospace;">=C2=A0=C2=A0=C2=A0=C2=
=A0</td>=0A</tr>=0A<tr style=3D"font-size: 12px;">=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-col=
or: #ccc;" align=3D"right" bgcolor=3D"#ccc">23</td>=0A<td class=3D"ln" styl=
e=3D"font-size: 12px; color: #000; font-family: 'Bitstream Vera Sans Mono',=
'Monaco','Courier',monospace; width: 23px; text-align: right; background-co=
lor: #ccc;" align=3D"right" bgcolor=3D"#ccc">25</td>=0A<td style=3D"font-si=
ze: 12px; color: #000; font-family: 'Bitstream Vera Sans Mono','Monaco','Co=
urier',monospace;">=C2=A0=C2=A0=C2=A0=C2=A0</td>=0A</tr>=0A</table>=0A<br s=
tyle=3D"font-size: 12px;"><br style=3D"font-size: 12px;">=0A</body>=0A</htm=
l>=0A=

--b1df9f8fc7b8f2ebacaf518cf99c4fca6df2f8d6--