You can subscribe to this list here.
| 2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(58) |
Dec
(4) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2005 |
Jan
(23) |
Feb
(3) |
Mar
(6) |
Apr
(4) |
May
(15) |
Jun
(22) |
Jul
(18) |
Aug
(3) |
Sep
(25) |
Oct
(7) |
Nov
(86) |
Dec
(9) |
| 2006 |
Jan
(20) |
Feb
(44) |
Mar
(59) |
Apr
(23) |
May
(37) |
Jun
(35) |
Jul
|
Aug
(2) |
Sep
(3) |
Oct
(21) |
Nov
(17) |
Dec
(22) |
| 2007 |
Jan
(13) |
Feb
(7) |
Mar
(1) |
Apr
(13) |
May
(4) |
Jun
(2) |
Jul
(5) |
Aug
(8) |
Sep
(13) |
Oct
(22) |
Nov
(3) |
Dec
|
| 2008 |
Jan
(2) |
Feb
(3) |
Mar
(1) |
Apr
(3) |
May
|
Jun
(2) |
Jul
(34) |
Aug
(10) |
Sep
(5) |
Oct
(6) |
Nov
(8) |
Dec
|
| 2009 |
Jan
(1) |
Feb
(10) |
Mar
(4) |
Apr
(12) |
May
(10) |
Jun
(27) |
Jul
|
Aug
(1) |
Sep
(3) |
Oct
|
Nov
(6) |
Dec
(1) |
| 2010 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
(2) |
Oct
|
Nov
|
Dec
|
| 2011 |
Jan
|
Feb
|
Mar
(5) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2017 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Luke B. <lb...@gm...> - 2005-11-17 18:57:32
|
Thanks for the feedback Keith. We have definitely been talking about direction lately and getting input from the community really helps us make decisions. I'm glad you're up and running... Luke Bayes www.asunit.org <http://www.asunit.org> |
|
From: Matt F. <mat...@gm...> - 2005-11-17 06:31:38
|
Hey Guys, How would you go about adding custom Class Templates for the XUL UI? Cheers Matt |
|
From: Keith P. <kp...@bi...> - 2005-11-17 01:54:03
|
Thanks Luke. Got it all working now. I'm hoping you continue to develop and enhance the AS2 Flash 8 version, not just concentrate the AS3 version. AS3 is cool, but still in alpha. I have a good year or two of solid AS2 development ahead of me, with a really huge project starting this week. ASUnit will be a big part of it. Keith _____ From: asu...@li... [mailto:asu...@li...] On Behalf Of Luke Bayes Sent: Wednesday, November 16, 2005 3:41 PM To: asu...@li... Subject: Re: [Asunit-users] xul ui instructions If you installed the 2.7 sources, it should have installed the correct AsUnit UI.SWF file into your [%Macro-Configuration%]/WindowSWF/ folder. This build *should* speak to that UI effectively - might need to restart the Flash IDE and hit the "Refresh" button in the AsUnit UI. If none of that works, you can always go to: http://www.asunit.com/AsUnitUi-2.7.swf Or for older builds: http://www.asunit.com/AsUnitUi.swf Both of those swf files can be downloaded and run from wherever you want - including the WindowSWF folder with Macro. There was originally a button at the bottom of the XUL UI that launches the UI Swf, but I removed it because it's not necessary for AsUnit 3.x. The swf file should still be getting distributed though, and if you run it in a valid Flash Player, it should work. Now that I think about it, there were problems with Local Connection in the Flex Builder Alpha, so if you're running off of your desktop with that player - there could definitely be issues. It's important to note that with AsUnit 3.x we have done away with the stupid LocalConnection mess thanks to a dramatically improved display list... Please let me know if those installers or alternatives don't work for you. Thanks, Luke Bayes www.asunit.org |
|
From: Luke B. <lb...@gm...> - 2005-11-16 23:41:28
|
If you installed the 2.7 sources, it should have installed the correct AsUnit UI.SWF file into your [%Macro-Configuration%]/WindowSWF/ folder. Thi= s build *should* speak to that UI effectively - might need to restart the Flash IDE and hit the "Refresh" button in the AsUnit UI. If none of that works, you can always go to: http://www.asunit.com/AsUnitUi-2.7.swf Or for older builds: http://www.asunit.com/AsUnitUi.swf Both of those swf files can be downloaded and run from wherever you want - including the WindowSWF folder with Macro. There was originally a button at the bottom of the XUL UI that launches the UI Swf, but I removed it because it's not necessary for AsUnit 3.x. The swf file should still be getting distributed though, and if you run it in a valid Flash Player, it should work. Now that I think about it, there were problems with Local Connection in the Flex Builder Alpha, so if you're running off of your desktop with that player - there could definitely be issues. It's important to note that with AsUnit 3.x we have done away with the stupid LocalConnection mess thanks to a dramatically improved display list... Please let me know if those installers or alternatives don't work for you. Thanks, Luke Bayes www.asunit.org <http://www.asunit.org> |
|
From: Luke B. <lb...@gm...> - 2005-11-16 23:34:21
|
I just got this question from another thread and thought it would probably help to spread the word to the rest of the list... >> Hey Luke, one more question. The zip doesn't contain any of the >> actual asunit AS class files. So now I'm just realizing that the XUL >> UI zip is just the UI. So which class files should I be using with this >> for Flash 8, AS2 development? ASUnit 2, 2.7, or 3? This is an excellent question! We separated these files because the XUL UI is on it's own development path that is essentially independent of the particular AsUnit source code. The templates that it generates can be expected to work with whatever sources you build from. The only caveat has to do with whether you use ActionScript 2 or 3. You'll need the appropriate sources to compile what the XUL UI outputs, but the XUL UI itself doesn't actually *require* any sources to work... Please let me know if this clears things up. Thanks, Luke Bayes www.asunit.org <http://www.asunit.org> |
|
From: Keith P. <kp...@bi...> - 2005-11-16 23:32:52
|
OK, so I have the XUL UI up and running and creating classes. But the actual ASUnit classes do not come with that distribution, so my test project will not compile. So I installed the classes from the 2.7 release, and now it compiles, but does not show output anywhere. It doesn't trace it out in the old ASUnit panel in the Flash IDE. From what I can see, a new XUL window should pop up, but that's not happening either. Keith |
|
From: Luke B. <lb...@gm...> - 2005-11-16 23:27:59
|
That's great to hear - I'll look into the possibility of some hidden dependencies... It's truly unfortunate that I haven't found (or built) a Unit Test Framewor= k for XUL development!!! ;-) Thanks much to those of you that have been working through these bugs with us. Luke Bayes www.asunit.org <http://www.asunit.org> |
|
From: Keith P. <kp...@bi...> - 2005-11-16 22:31:02
|
Yeah, I was able to make an AS3 one, but still not AS2. Anyway, I've = been going back and forth with Luke and gone through a couple more builds, = and we're up to one that works for me. I think he'll be putting that one up soon. Keith=20 > -----Original Message----- > From: asu...@li...=20 > [mailto:asu...@li...] On Behalf=20 > Of Matt Freer > Sent: Wednesday, November 16, 2005 2:25 PM > To: asu...@li... > Subject: Re: [Asunit-users] xul ui instructions >=20 > Hey Keith, >=20 > I had a similar problem the first time I attempted to create=20 > an AS2 based test. I then attempted to create an AS3 test=20 > (based on an AS3 template from Zorn), which worked fine.=20 > After which I tried again with an AS2 template (same session=20 > in the XUL UI) and voila it worked. >=20 > So it seems like a bug creating the first AS2 based test with=20 > the XUL UI. >=20 > Cheers > Matt >=20 > On 11/17/05, Keith Peters <kp...@bi...> wrote: > > > > Trying to get Asunit working with Flash 8. I have the latest XUL UI=20 > > files, and got xulrunner up and I have the XUL UI running.=20 > But no idea=20 > > how to get it working right. > > > > I've set a source folder and test folder and class path,=20 > selected the=20 > > AS2 template, enter a class name in the class name field and hit=20 > > "Create" and get the following: > > > > File creation failed because of: > > Type error: this.tokenFactory has no properties. > > > > I hit OK and get: > > > > Type error: myClass has no properties. > > > > I've seen this URL > > http://sourceforge.net/project/shownotes.php?release_id=3D369555 > > which is supposed to contain some instructions, but just comes up=20 > > saying "Group Problem. Problem creating group object." > > > > so I'm kind of stuck. > > > > Keith >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by the JBoss Inc. Get=20 > Certified Today Register for a JBoss Training Course. Free=20 > Certification Exam for All Training Attendees Through End of=20 > 2005. For more info visit: > http://ads.osdn.com/?ad_idv28&alloc_id=16845&op=3Dick > _______________________________________________ > Asunit-users mailing list > Asu...@li... > https://lists.sourceforge.net/lists/listinfo/asunit-users >=20 >=20 |
|
From: Matt F. <mat...@gm...> - 2005-11-16 22:25:14
|
Hey Keith, I had a similar problem the first time I attempted to create an AS2 based test. I then attempted to create an AS3 test (based on an AS3 template from Zorn), which worked fine. After which I tried again with an AS2 template (same session in the XUL UI) and voila it worked. So it seems like a bug creating the first AS2 based test with the XUL UI. Cheers Matt On 11/17/05, Keith Peters <kp...@bi...> wrote: > > Trying to get Asunit working with Flash 8. I have the latest XUL UI files= , > and got xulrunner up and I have the XUL UI running. But no idea how to ge= t > it working right. > > I've set a source folder and test folder and class path, selected the AS2 > template, enter a class name in the class name field and hit "Create" and > get the following: > > File creation failed because of: > Type error: this.tokenFactory has no properties. > > I hit OK and get: > > Type error: myClass has no properties. > > I've seen this URL > http://sourceforge.net/project/shownotes.php?release_id=3D369555 > which is supposed to contain some instructions, but just comes up saying > "Group Problem. Problem creating group object." > > so I'm kind of stuck. > > Keith |
|
From: Keith P. <kp...@bi...> - 2005-11-16 16:51:57
|
Trying to get Asunit working with Flash 8. I have the latest XUL UI files, and got xulrunner up and I have the XUL UI running. But no idea how to get it working right. I've set a source folder and test folder and class path, selected the AS2 template, enter a class name in the class name field and hit "Create" and get the following: File creation failed because of: Type error: this.tokenFactory has no properties. I hit OK and get: Type error: myClass has no properties. I've seen this URL http://sourceforge.net/project/shownotes.php?release_id=369555 which is supposed to contain some instructions, but just comes up saying "Group Problem. Problem creating group object." so I'm kind of stuck. Keith |
|
From: Luke B. <lb...@gm...> - 2005-11-15 09:58:35
|
Hey Jeremy, Thanks for contributing the tutorial! I'll get a link to it up on asunit.org<http://asunit.org>tomorrow. Ali and I talked about this feature today a little more, and I'm leaning toward implementing it - I think that it really could add value to the development process and help make it more efficient to build incrementally.Shamefully, our current development process currently involve= s commenting out test methods when we're in a big Test Case... I believe that would be precisely the use case for this feature! Thanks so much for bringing this up! Luke Bayes www.asunit.org <http://www.asunit.org> |
|
From: Luke B. <lb...@gm...> - 2005-11-15 09:53:43
|
That's a really interesting problem Grant, thanks for the feedback! I have definitely struggled with the same issue extensively. Generally, whe= n I find a smell that's bothering me in my test code, I go start searching junit.org <http://junit.org> to see if some java person has had similar issues, as it turns out with this particular problem - fortunately - we're not alone! The first and most important thing that you can possibly do, is stop testin= g your server with your client. Your client and server should each be tested independently of the network and of each other. There are quite a few great articles on junit.org <http://junit.org>discussing this very topic for Java applications. Here are a few links I found: Writing Networked Unit Tests: http://www.javaworld.com/javaworld/jw-07-2002/jw-0719-networkunittest.html Mock Objects 1: http://www-128.ibm.com/developerworks/library/j-mocktest.html Mock Objects 2: http://www.onjava.com/pub/a/onjava/2004/02/11/mocks.html JUnit.org Articles Index: http://www.junit.org/news/article/index.htm I hope this helps! Thanks, Luke Bayes www.asunit.org <http://www.asunit.org> |
|
From: Grant C. <gr...@dv...> - 2005-11-15 08:55:35
|
Hi Luke, I have not looked at these recent additions to AsUnit (too busy with other projects right now), but one problem I have had with AsUnit in the past is related to what you just said - thinking all the cases are passing when in fact they aren't being run. Specifically, the issues I have had are related to Remoting functions which rely heavily on callbacks, and when something fails (perhaps on the server side) my callbacks may fail and the tests do not complete. Our solution to this was to manually count the number of passing tests we should have and add this as a comment in the main AsUnit application, and to check this whenever we ran the tests (and of course increment it as tests were added). But as you can imagine, this sucks. Do you know of any Actionscript code coverage tools, or have any plans to implement something basic into AsUnit? Even as simple as displaying how many asserts were not run would be fine - unfortunately I just can't think of how this would be accomplished without a pre-processing step. Regards, Grant Cox Luke Bayes wrote: > Hey Jeremy, > > That's a great question. During the Java-to-AS3 migration, I couldn't > help but notice that JUnit does support this. Unfortunately, we chose > not to add this capability to the current build. > > I haven't really been able to come up with a good reason for this > feature that would justify the implementation time. > > My understanding (and practice) has been that one should execute the > entire fixture whenever it is technically reasonable and it seemed to > me like this feature would allow developers (especially me) to *think* > that all of my test cases were being executed when in fact only a > small subset was actually being executed. > > Do you use this feature in development? > > What circumstances lead you to use this? > > Thanks, > > > Luke Bayes > |
|
From: jeremy lu <wa...@gm...> - 2005-11-15 08:34:16
|
well, acutally I don't use this feature too often either, just curious how close it is to JUnit :P there's one scenerio I can come up with, during a test-driven process, one might write several tests first then started implement the real class, he might want to test one method a time, so he can put the method in question inside suite() then run it. but surely this could be done just by commenting out those test methods not needed :-) btw, I wrote a simple tutorial in chinese here : http://ria.richtechmedia.com/?p=3D296 jeremy. On 11/15/05, Luke Bayes <lb...@gm...> wrote: > > Hey Jeremy, > > That's a great question. During the Java-to-AS3 migration, I couldn't hel= p > but notice that JUnit does support this. Unfortunately, we chose not to a= dd > this capability to the current build. > > I haven't really been able to come up with a good reason for this feature > that would justify the implementation time. > > My understanding (and practice) has been that one should execute the > entire fixture whenever it is technically reasonable and it seemed to me > like this feature would allow developers (especially me) to *think* that = all > of my test cases were being executed when in fact only a small subset was > actually being executed. > > Do you use this feature in development? > > What circumstances lead you to use this? > > Thanks, > > > Luke Bayes > > |
|
From: Luke B. <lb...@gm...> - 2005-11-14 18:02:40
|
Hey Tan, I wonder if there are any good walk throughs on how to get 2.7 working wit= h > FAMES. > Here is a link that's found at the bottom of www.asunit.org<http://www.asunit.org> : http://flashant.org/index.php?p=3D375&more=3D1&c=3D1 It seems to work for most folks, but please make sure to pull down the 2.7alpha build rather than the one that the tutorial links to. (Aral, are you ever going to change that link?!) ;-P Paul Spitzer also has some tools/info to make integration work a little better: http://paulspitzer.com/blog/index.cfm?data=3D20050527#215C4F20-508B-A707-A2= 857184BCE1097A It's important to note that AsUnit 2.x only works with ActionScript 2.0 and AsUnit 3.x only works with ActionScript 3.0... Thanks to improvements in th= e DisplayList for ActionScript 3.0, we no longer need to use the external output panel in AsUnit 3, so there are some minor differences involved in setup/configuration. Hope that helps... Thanks, Luke Bayes www.asunit.org <http://www.asunit.org> |
|
From: Luke B. <lb...@gm...> - 2005-11-14 17:47:13
|
Hello Pooja, Thanks very much for your interest. My business partner Ali Mills and I are currently booked through January. Please keep us in mind for any opportunities that begin on or after February 1, 2006. Thanks, Luke Bayes On 11/13/05, puja sharma <ps...@li...> wrote: > > Hi Luke! > > My name is Pooja Sharma and I am a Resource Manager with Lintas LLC, > a global management consulting and services firm based in Chicago. > We have a long term contract position for a Macromedia Flex developer > in the Midwest. > > This position requires expert skills in Macromedia Flex & Cold Fusion, > and good working knowledge of Oracle, Java, and XML. > > Please email me your updated resume alongwith, your contact information > and an expected hourly rate. You can also contact me at (312) 329-0899 > for more information about this position. > > Thanks, > > Sincerely! > Pooja > > > Pooja Sharma > LINTAS, LLC. > (312) 324-0899 - Phone > (312) 681-5400 - Main > (312) 681-5454 - Fax > <http://www.lintas.com/xdoc/images/index.html?ps...@li...> > LINTAS > Pooja sharma > > |
|
From: Luke B. <lb...@gm...> - 2005-11-14 17:45:53
|
Hey Jeremy, That's a great question. During the Java-to-AS3 migration, I couldn't help but notice that JUnit does support this. Unfortunately, we chose not to add this capability to the current build. I haven't really been able to come up with a good reason for this feature that would justify the implementation time. My understanding (and practice) has been that one should execute the entire fixture whenever it is technically reasonable and it seemed to me like this feature would allow developers (especially me) to *think* that all of my test cases were being executed when in fact only a small subset was actuall= y being executed. Do you use this feature in development? What circumstances lead you to use this? Thanks, Luke Bayes |
|
From: jeremy lu <wa...@gm...> - 2005-11-14 17:10:36
|
thanks ! that's a big help.
btw, could i use something like this :
public static function suite():TestSuite{
var s:TestSuite =3D new TestSuite();
s.addTest(new TestMoney("testAddMoney"));
s.addTest(new TestMoney("testAddEqual"));
return s;
}
say if there are 10 methods in the test class but I just want to put two of
them in the suite() function ?
I tried it already but seems it will just accept the whole class.
jeremy.
On 11/14/05, Luke Bayes <lb...@gm...> wrote:
>
> Thanks Alias,
>
> It's obvious that we need to get something more direct!
>
> Perhaps a big, link on asunit.org <http://asunit.org> would help...
>
>
> Thanks,
>
>
> Luke
> www.asunit.org <http://www.asunit.org>
>
|
|
From: Luke B. <lb...@gm...> - 2005-11-14 06:17:41
|
Thanks Alias, It's obvious that we need to get something more direct! Perhaps a big, link on asunit.org <http://asunit.org> would help... Thanks, Luke www.asunit.org <http://www.asunit.org> |
|
From: Alias <ali...@gm...> - 2005-11-14 00:17:23
|
HI guys, I think it's worth pointing out that Luke has actually *already* written a pointer on how to get this going - full text can be found here: http://lukebayes.blogspot.com/2005/09/asunit-meets-xulrunner.html here's the relevant excerpt: # Download the zipped files AsUnit 2.7 (alpha) # Download the latest build of XULRunner from Mozilla. # Unzip the createclass.zip file to somewhere on your system that won't cha= nge. # Copy the com folder out of the unpacked classpath folder and put it into some directory that your compiler references. This should be either some place where you tell MTASC to look or if you're using the Flash IDE on windows, it will be somewhere like: C:\Documents and Settings\lbayes\Local Settings\Application Data\Macromedia\Flash MX 2004\en\Configuration\Classes # Unzip the files you downloaded from Mozilla to some place that won't change. I put mine into: C:\Program Files\Mozilla\XulRunner # Update your system PATH variable to include the location of xulrunner.exe On windows, this can be done by: * Using Windows Explorer, go to the folder that contains xulrunner.exe * Select the text that appears in the address/location field * Copy it to your clip board * Right-Click My Computer * Choose properties * Select the Advanced tab * Click Environment Variables * In the System Variables, choose the one that says, "Path" * Click the edit button * In the Variable Value field, go all the way to the right, add a semi-colon ";" * Paste the contents of your clip board into this field * Keep choosing OK until the panels all go away # Open up a command prompt (Cygwin if you have it) # Navigate to the folder where you unzipped createclass.zip, step into the xulCreateClass folder # Enter: xulrunner application.ini # Start Playing! Hope this helps, Alias On 11/13/05, jeremy lu <wa...@gm...> wrote: > > hi luke, > > how about a simple instruction on getting the xul ui started working ? := -) > > a few lines of instructions would be good enough. > > ps. currently all i know is drag and drop the *.xul file onto fireworks = and > to no avail. > also tried asunit.html but nothing showed up. > > but the code and test suite itself are really great. > > thanks. > > jeremy. > |
|
From: jeremy lu <wa...@gm...> - 2005-11-13 15:41:19
|
hi luke, how about a simple instruction on getting the xul ui started working ? :-) a few lines of instructions would be good enough. ps. currently all i know is drag and drop the *.xul file onto fireworks and to no avail. also tried asunit.html but nothing showed up. but the code and test suite itself are really great. thanks. jeremy. |
|
From: puja s. <ps...@li...> - 2005-11-13 14:14:53
|
Hi Luke! My name is Pooja Sharma and I am a Resource Manager with Lintas LLC, a global management consulting and services firm based in Chicago. We have a long term contract position for a Macromedia Flex developer in the Midwest. This position requires expert skills in Macromedia Flex & Cold Fusion, and good working knowledge of Oracle, Java, and XML. Please email me your updated resume alongwith, your contact information and an expected hourly rate. You can also contact me at (312) 329-0899 for more information about this position. Thanks, Sincerely! Pooja Pooja Sharma LINTAS, LLC. (312) 324-0899 - Phone (312) 681-5400 - Main (312) 681-5454 - Fax <http://www.lintas.com/xdoc/images/index.html?ps...@li...> LINTAS Pooja sharma |
|
From: Luke B. <lb...@gm...> - 2005-11-13 04:35:09
|
SORRY - that last note about patching AsUnit.xul won't really work unless you also update and run build.sh... Another alternative is to rename the AsUnit.jar file to AsUnit.zip and replace the AsUnit.xul file in there with the modified one... Sorry about that! Luke Bayes www.asunit.org <http://www.asunit.org> |
|
From: Luke B. <lb...@gm...> - 2005-11-13 04:32:40
|
Thanks for the heads up Rob! FYI - I just discovered an issue with ActionScript 2.0 projects in the XUL UI. The "Add Packages Prefix" checkbox is broken and cannot be selected. This will be fixed in the next release, but if you're anxious to use this feature (as I was), you can replace line 180 of AsUnit.xul with the following: <checkbox id=3D"addPackagesPrefix" accesskey=3D"x" label=3D"Add __Packages = Prefix (Extends MovieClip)" oncommand=3D"model.setAddPackagesPrefix(this.checked);= " persist=3D"checked disabled" flex=3D"1" /> Thanks, Luke Bayes www.asunit.org <http://www.asunit.org> |
|
From: Alias <ali...@gm...> - 2005-11-13 01:55:06
|
Hi Luke, Just tried the createclass XUL application - that's pretty neat. It actually seems to work much better than the JSFL version. Good stuff :) I'll let you know if I manage to break it. Alias On 11/13/05, Matt Freer <mat...@gm...> wrote: > Hey Luke, > > Thanks for your reply. > > >> events in AS 3.0 fire synchronously, so I usually test them by > triggering the event and > >> then checking the state of the object in a regular TestCase. > > The approach I have been using sounds the same: > 1) In my TestCase I write a test designed to test the state of the > object after an Event has fired. > 2) In my Testcase I override the run method and trigger the event > (subscribing to it) > 3) In the event handler I call super.run(); > > The problem I find with this approach is that if the event doesn't > fire (for whatever reason) then super.run() is never called and hence > no tests run/no tests fail! > In larger projects when you have perhaps 100s of tests it becomes > harder to track the exact number of tests expected to run. Hence you > can be in a situation when all your tests appear to be passing, but in > reality all your tests aren't running. > > I have experimented with including timeout checks (to test whether the > event fired) however I find this to be pretty messy and generally find > that the TestCases don't scale particularly well in such when this is > implemented. > > Do you also find this a problem? > > > >> Mock Objects are also useful when testing abstract classes > > I had actually been using Concrete implementations of Abstract Classes > designed specifically for testing purposes, so this seems to fit with > the description of Mock Objects. > > Thanks for all the info > > Cheers > Matt > > > > On 11/13/05, Luke Bayes <lb...@gm...> wrote: > > Hey Matt, > > > > Thanks for the kind words! > > > > I'm really glad to hear that someone got the XUL UI and AsUnit 3.x up = and > > running! > > > > > > > I wondering if the new Event Model in AS3, with its bubble nature > > > will make it easier to test event based code? > > > > That's actually a very good idea, I haven't really messed with the bub= ble > > feature much yet... If you get something going like that, I would love = to > > see it. > > > > As far as using AsynchronousTestCase to test event based code, I'm not= sure > > that's really the best way because events in AS 3.0 fire synchronously,= so I > > usually test them by triggering the event and then checking the state o= f the > > object in a regular TestCase. > > > > We created the AsynchronousTestCase and Example because there are occa= sions > > where we wanted to test functionality that isn't compiled into the swf = file. > > EG: Loaders and Sockets. > > > > This actually leads nicely into your next question: > > > > > > > Also can you please explain the nature of Mock Object Test Cases - an= d > > > when we might choose to use one? > > > > Generally, when you want to test an object that consumes asynchronous > > functionaliy (like the client of a Socket connection), you should typic= ally > > build a Mock Object of the Socket and use that instead of the Socket it= self. > > This is different from testing the Socket. As mentioned before, an > > AsynchronousTestCase would be used to validate the Socket, but then a > > SocketMock would be used to test it's clients. > > > > http://c2.com/cgi/wiki?MockObject > > > > Mock Objects are also useful when testing abstract classes. Of course = AS > > 3.0 doesn't natively support the abstract keyword, but we have been > > implementing abstract classes by throwing an error in the constructor, = then > > using a Mock object to validate it's functionality. > > > > Thanks, > > > > Luke Bayes > > www.asunit.org > > > > > > > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. Downl= oad > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > Asunit-users mailing list > Asu...@li... > https://lists.sourceforge.net/lists/listinfo/asunit-users > |