[svn:osmf:] 12422: Adding null param to URL constructor in unit test.

Revision: 12422
Revision: 12422
Author:   [email protected]
Date:     2009-12-03 01:43:59 -0800 (Thu, 03 Dec 2009)
Log Message:
Adding null param to URL constructor in unit test.
Modified Paths:
    osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/metadata/TestCompositeMetadata.as

To Neoreborn:
If I understand right, Shale only provides some mock core JSF objects and extends JUnit so that you can do junit test to your java classes.
What I concern is to test Pages(JSP) rather than java classes. I want to assert component attribute values within all lifecycle including rendered HTML script. Currently, there isn't any good tools to do this kind of JSP Unit test, am I right?

Similar Messages

  • [svn:osmf:] 13351: Adding a new TimeUtil class and corresponding unit tests .

    Revision: 13351
    Revision: 13351
    Author:   [email protected]
    Date:     2010-01-07 16:19:20 -0800 (Thu, 07 Jan 2010)
    Log Message:
    Adding a new TimeUtil class and corresponding unit tests.
    Modified Paths:
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/MediaFrameworkTests.as
    Added Paths:
        osmf/trunk/framework/MediaFramework/org/osmf/utils/TimeUtil.as
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/utils/TestTimeUtil.as

    HI
    add that fileds in the all locations where you need it like
    in internal table declaration , write statement , select statement
    these are the main areas where you have to add that 2 fileds

  • [svn:osmf:] 11045: Increasing timer interval in attempt to fix unit test on the build server.

    Revision: 11045
    Author:   [email protected]
    Date:     2009-10-21 02:32:45 -0700 (Wed, 21 Oct 2009)
    Log Message:
    Increasing timer interval in attempt to fix unit test on the build server.
    Modified Paths:
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/composition/TestParallelViewableTrai t.as

    In general theory, one now has the Edit button for their posts, until someone/anyone Replies to it. I've had Edit available for weeks, as opposed to the old forum's ~ 30 mins.
    That, however, is in theory. I've posted, and immediately seen something that needed editing, only to find NO Replies, yet the Edit button is no longer available, only seconds later. Still, in that same thread, I'd have the Edit button from older posts, to which there had also been no Replies even after several days/weeks. Found one that had to be over a month old, and Edit was still there.
    Do not know the why/how of this behavior. At first, I thought that maybe there WAS a Reply, that "ate" my Edit button, but had not Refreshed on my screen. Refresh still showed no Replies, just no Edit either. In those cases, I just Reply and mention the [Edit].
    Also, it seems that the buttons get very scrambled at times, and Refresh does not always clear that up. I end up clicking where I "think" the right button should be and hope for the best. Seems that when the buttons do bunch up they can appear at random around the page, often three atop one another, and maybe one way the heck out in left-field.
    While I'm on a role, it would be nice to be able to switch between Flattened and Threaded Views on the fly. Each has a use, and having to go to Options and then come back down to the thread is a very slow process. Jive is probably incapable of this, but I can dream.
    Hunt

  • [svn:osmf:] 12910: Refactor and integrate some additional composite trait unit tests.

    Revision: 12910
    Revision: 12910
    Author:   [email protected]
    Date:     2009-12-14 10:51:45 -0800 (Mon, 14 Dec 2009)
    Log Message:
    Refactor and integrate some additional composite trait unit tests.
    Modified Paths:
        osmf/trunk/framework/MediaFramework/org/osmf/composition/CompositeMediaTraitFactory.as
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/MediaFrameworkTests.as
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/composition/TestSerialElement.as
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/composition/TestSerialElementWithAud ioTrait.as
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/composition/TestSerialElementWithPla yTrait.as

    Revision: 12910
    Revision: 12910
    Author:   [email protected]
    Date:     2009-12-14 10:51:45 -0800 (Mon, 14 Dec 2009)
    Log Message:
    Refactor and integrate some additional composite trait unit tests.
    Modified Paths:
        osmf/trunk/framework/MediaFramework/org/osmf/composition/CompositeMediaTraitFactory.as
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/MediaFrameworkTests.as
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/composition/TestSerialElement.as
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/composition/TestSerialElementWithAud ioTrait.as
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/composition/TestSerialElementWithPla yTrait.as

  • [svn:osmf:] 11184: Adding new temporal metadata support, including sample app and unit tests.

    Revision: 11184
    Author:   [email protected]
    Date:     2009-10-27 11:08:21 -0700 (Tue, 27 Oct 2009)
    Log Message:
    Adding new temporal metadata support, including sample app and unit tests.
    Added Paths:
        osmf/trunk/apps/samples/framework/CuePointSample/
        osmf/trunk/apps/samples/framework/CuePointSample/.actionScriptProperties
        osmf/trunk/apps/samples/framework/CuePointSample/.flexProperties
        osmf/trunk/apps/samples/framework/CuePointSample/.project
        osmf/trunk/apps/samples/framework/CuePointSample/html-template/
        osmf/trunk/apps/samples/framework/CuePointSample/html-template/AC_OETags.js
        osmf/trunk/apps/samples/framework/CuePointSample/html-template/history/
        osmf/trunk/apps/samples/framework/CuePointSample/html-template/history/history.css
        osmf/trunk/apps/samples/framework/CuePointSample/html-template/history/history.js
        osmf/trunk/apps/samples/framework/CuePointSample/html-template/history/historyFrame.html
        osmf/trunk/apps/samples/framework/CuePointSample/html-template/index.template.html
        osmf/trunk/apps/samples/framework/CuePointSample/html-template/playerProductInstall.swf
        osmf/trunk/apps/samples/framework/CuePointSample/libs/
        osmf/trunk/apps/samples/framework/CuePointSample/src/
        osmf/trunk/apps/samples/framework/CuePointSample/src/CuePointSample.css
        osmf/trunk/apps/samples/framework/CuePointSample/src/CuePointSample.mxml
        osmf/trunk/framework/MediaFramework/org/osmf/metadata/TemporalFacet.as
        osmf/trunk/framework/MediaFramework/org/osmf/metadata/TemporalFacetEvent.as
        osmf/trunk/framework/MediaFramework/org/osmf/metadata/TemporalIdentifier.as
        osmf/trunk/framework/MediaFramework/org/osmf/video/CuePoint.as
        osmf/trunk/framework/MediaFramework/org/osmf/video/CuePointType.as
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/metadata/TestTemporalFacet.as
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/video/TestCuePoint.as

    Greg -
        The metadata sample demonstrates how metadata can be placed on an IMediaResource, and used to  give the framework more information about the resource.  The MediaFactory uses this information to determine which type of media a given resource points to.  One of the intial problems we encountered when creating a media factory that created MediaElements from URLResources, was the inability to distinguish between image, video, and audio urls, since the extension isn't a guaranteed way.
    The Metadata framework, that was developed last sprint was provided to enable metadata such as XMP, Namevalue, and Cuepoints.  Not all specific classes that hold this data haven't been created yet however.  The logic to add metadata automatically hasn't been placed in the framework yet.
    It's currenty possible to retrieve onPlaystatus, onMetadata, onXMPData, onImagedata, and onCuepoint callbacks:
    var videoElement:VideoElement
    [After videoElement loads]
    videoElement.client.addHandler(NetStreamCodes.ON_XMP_DATA, onXMPData);
    function onXMPData(info:Object):void
       //Process XMP here.
    Hope this helps.

  • [svn:osmf:] 13916: Added DynamicDRMTrait, Composite Unit tests for parallel and serial compositions.

    Revision: 13916
    Revision: 13916
    Author:   [email protected]
    Date:     2010-02-01 16:42:09 -0800 (Mon, 01 Feb 2010)
    Log Message:
    Added DynamicDRMTrait, Composite Unit tests for parallel and serial compositions.  Bug fixes in CompositeDRMTrait.
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/composition/CompositeDRMTrait.as
        osmf/trunk/framework/OSMFTest/org/osmf/OSMFTests.as
        osmf/trunk/framework/OSMFTest/org/osmf/utils/DynamicMediaElement.as
    Added Paths:
        osmf/trunk/framework/OSMFTest/org/osmf/composition/TestParallelElementDRMTrait.as
        osmf/trunk/framework/OSMFTest/org/osmf/composition/TestSerialElementDRMTrait.as
        osmf/trunk/framework/OSMFTest/org/osmf/utils/DynamicDRMTrait.as

  • [svn:osmf:] 10648: Adding first MAST unit tests and added some ASDocs

    Revision: 10648
    Author:   [email protected]
    Date:     2009-09-28 10:28:12 -0700 (Mon, 28 Sep 2009)
    Log Message:
    Adding first MAST unit tests and added some ASDocs
    Modified Paths:
        osmf/trunk/framework/MediaFrameworkFlexTest/.actionScriptProperties
        osmf/trunk/framework/MediaFrameworkFlexTest/org/openvideoplayer/MediaFrameworkTests.as
        osmf/trunk/plugins/MASTPlugin/org/openvideoplayer/mast/adapter/MASTAdapter.as
        osmf/trunk/plugins/MASTPlugin/org/openvideoplayer/mast/loader/MASTDocumentProcessedEvent. as
        osmf/trunk/plugins/MASTPlugin/org/openvideoplayer/mast/loader/MASTDocumentProcessor.as
        osmf/trunk/plugins/MASTPlugin/org/openvideoplayer/mast/loader/MASTLoadedContext.as
        osmf/trunk/plugins/MASTPlugin/org/openvideoplayer/mast/loader/MASTLoader.as
        osmf/trunk/plugins/MASTPlugin/org/openvideoplayer/mast/managers/MASTConditionManager.as
    Added Paths:
        osmf/trunk/framework/MediaFrameworkFlexTest/org/openvideoplayer/mast/
        osmf/trunk/framework/MediaFrameworkFlexTest/org/openvideoplayer/mast/MASTTestConstants.as
        osmf/trunk/framework/MediaFrameworkFlexTest/org/openvideoplayer/mast/loader/
        osmf/trunk/framework/MediaFrameworkFlexTest/org/openvideoplayer/mast/loader/TestMASTLoade r.as
        osmf/trunk/plugins/MASTLib/
        osmf/trunk/plugins/MASTLib/.actionScriptProperties
        osmf/trunk/plugins/MASTLib/.flexLibProperties
        osmf/trunk/plugins/MASTLib/.project
        osmf/trunk/plugins/MASTLib/src/

    These are automated emails from the OSMF forums.  To unsubscribe, go here:
    http://forums.adobe.com/community/opensource/osmf/commits
    -- Brian

  • [svn:osmf:] 11341: Added some unit tests to get the metadata package above 80%

    Revision: 11341
    Author:   [email protected]
    Date:     2009-10-30 16:24:35 -0700 (Fri, 30 Oct 2009)
    Log Message:
    Added some unit tests to get the metadata package above 80%
    Modified Paths:
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/metadata/TestTemporalFacet.as

    The nature of the Media class is that it accesses it asynchronously. This means that when you create an instance of it, and then immediately query it, the data you want may not be available yet. This is all in the Javadoc, see the doc for Media:
    The media information is obtained asynchronously and so not necessarily available immediately after instantiation of the class. All information should however be available if the instance has been associated with a MediaPlayer and that player has transitioned to MediaPlayer.Status.READY statusSo you could associate the Media with a MediaPlayer, and then wait until it goes to the Status READY, and then read the length of the Media.
    As for your 2nd question, getMetadata() returns a Map. You can just loop through it:
      for(Map.Entry<String, Object> entry : media.getMetadata()) {
        // etc
      }However, the same restrictions apply as with Media -- you will probably need to wait before the information is available -- that's why the Listener approach works, because it will notify you as soon as the information is added to the map.

  • [svn:osmf:] 11293: Adding unit tests for ContentDownloadableTrait.

    Revision: 11293
    Author:   [email protected]
    Date:     2009-10-30 02:38:42 -0700 (Fri, 30 Oct 2009)
    Log Message:
    Adding unit tests for ContentDownloadableTrait.
    Modified Paths:
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/MediaFrameworkTests.as
    Added Paths:
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/content/TestContentDownloadableTrait .as

  • [svn:osmf:] 12455: Adding unit test for CompositeMetadataEvent.

    Revision: 12455
    Revision: 12455
    Author:   [email protected]
    Date:     2009-12-03 09:51:47 -0800 (Thu, 03 Dec 2009)
    Log Message:
    Adding unit test for CompositeMetadataEvent.
    Modified Paths:
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/metadata/TestCompositeMetadata.as

    Revision: 12455
    Revision: 12455
    Author:   [email protected]
    Date:     2009-12-03 09:51:47 -0800 (Thu, 03 Dec 2009)
    Log Message:
    Adding unit test for CompositeMetadataEvent.
    Modified Paths:
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/metadata/TestCompositeMetadata.as

  • [svn:osmf:] 14907: Adding comments, removing test URL.

    Revision: 14907
    Revision: 14907
    Author:   [email protected]
    Date:     2010-03-22 05:50:23 -0700 (Mon, 22 Mar 2010)
    Log Message:
    Adding comments, removing test URL.
    Modified Paths:
        osmf/trunk/apps/samples/framework/OSMFPlayer/html-template/index.template.html
        osmf/trunk/apps/samples/framework/OSMFPlayer/src/OSMFPlayer.as

    Thanks for the architecture comments. I'm interested in this topic because ALARM brought me to arch (although I've replaced the raspberry pi with an Intel-based machine now).
    Well, I'm afraid of starting some kind of flame war by suggesting this officially as a lowly arch noob. I'll leave it up to the people who might profit by something like this (i.e. ALARM – or maybe they don't care and are fine with the current solution, in which case the change is not required at all). For the record, I like the glob solution. It's more flexible than just 'all' and it's easier to memorize the difference between 'any' and '*' compared to 'any' and 'all'.
    It turned out the "adding users" topic is not an issue, because I realized I can simply set "User=nobody / Group=audio" in the systemd unit file to get rid of root privileges while keeping the permission to play audio without logging in. I also set up a minimal Arch VM to test if gnome-icon-theme can be dropped. I found no problems without that package, so I think I'm now ready to upload the modified PKGBUILD (and related files) to the AUR.
    I'll flag this topic as solved. Feel free to add more comments though. Thanks everyone

  • [svn:osmf:] 11200: Adding readme.txt for the CuePointSample app.

    Revision: 11200
    Author:   [email protected]
    Date:     2009-10-27 14:11:04 -0700 (Tue, 27 Oct 2009)
    Log Message:
    Adding readme.txt for the CuePointSample app.
    Added Paths:
        osmf/trunk/apps/samples/framework/CuePointSample/readme.txt

    Thanks to some help from another forum...here is the (simplified) code in case anyone needs it
    // create a container and add it to the Display List
    container = new MediaContainer  ;
    addChild(container);
    // create a video element and add it to the container
    mediaElement = new VideoElement(new URLResource(url)); // url --> your h.264 video
    container.addMediaElement(mediaElement);
    // create a player and add the video to it
    player = new MediaPlayer;
    // create timelinemetadata, pass the media element to it
    dynamicTimelineMetadata = new TimelineMetadata(mediaElement);
    // create a new cuepoint
    var cuePoint:CuePoint = new CuePoint(CuePointType.ACTIONSCRIPT, 1, "good point", null); // time = 1, name = "good point"
    // add the cuepoint to the timeline by using "add marker"
    dynamicTimelineMetadata.addMarker(cuePoint);
    // listen for when the cue point is reached
    dynamicTimelineMetadata.addEventListener(TimelineMetadataEvent.MARKER_TIME_REACHED, onCuePoint);
    function onCuePoint(event:TimelineMetadataEvent):void
    var cuePoint:CuePoint = event.marker as CuePoint;
    trace("Cue Point at " + cuePoint.time);

  • [svn:osmf:] 11848: Added check for argument error DRM subsystem throws while generating a DRMContentInfo Object .

    Revision: 11848
    Revision: 11848
    Author:   [email protected]
    Date:     2009-11-16 10:00:48 -0800 (Mon, 16 Nov 2009)
    Log Message:
    Added check for argument error DRM subsystem throws while generating a DRMContentInfo Object.
    Modified Paths:
        osmf/trunk/framework/MediaFramework/org/osmf/drm/DRMServices.as

    Well, I can tell you that this kind of error is not OS related, but rather a HW thing.  It happens where there is a general detection of something going wrong.  Sometimes it can happen randomly and might not be an indication of a problem.  But sometimes it can be caused by things that are improperly functioning within the system like bad capacitors. 
    Unfortunately I don't really know what to do about such things except give you machine a proper inspection.  But if things are working fine, and continue to do so, I wouldn't worry about it.  If it becomes a regular occurance, then I'd worry.

  • [svn:osmf:] 14905: Adding file missing from previous commit.

    Revision: 14905
    Revision: 14905
    Author:   [email protected]
    Date:     2010-03-22 05:37:59 -0700 (Mon, 22 Mar 2010)
    Log Message:
    Adding file missing from previous commit.
    Added Paths:
        osmf/trunk/apps/samples/framework/OSMFPlayer/src/assets/fonts/
        osmf/trunk/apps/samples/framework/OSMFPlayer/src/assets/fonts/Standard0755.swf
        osmf/trunk/apps/samples/framework/OSMFPlayer/src/assets/fonts/readme.txt

    If you're confident that the DP contains the new file, try deleting the deployment and re-doing it (not the deployment type - just the deployment to your test collection).
    Gerry Hampson | Blog:
    www.gerryhampsoncm.blogspot.ie | LinkedIn:
    Gerry Hampson | Twitter:
    @gerryhampson

  • [svn:osmf:] 14904: Adding file missing from previous commit.

    Revision: 14904
    Revision: 14904
    Author:   [email protected]
    Date:     2010-03-22 05:32:49 -0700 (Mon, 22 Mar 2010)
    Log Message:
    Adding file missing from previous commit.
    Added Paths:
        osmf/trunk/libs/ChromeLibrary/org/osmf/chrome/hint/
        osmf/trunk/libs/ChromeLibrary/org/osmf/chrome/hint/Hint.as

    If you're confident that the DP contains the new file, try deleting the deployment and re-doing it (not the deployment type - just the deployment to your test collection).
    Gerry Hampson | Blog:
    www.gerryhampsoncm.blogspot.ie | LinkedIn:
    Gerry Hampson | Twitter:
    @gerryhampson

Maybe you are looking for

  • Importing Problem with one specific CD

    I have previously imported this disc. It is disc 2 of a 2 disc set. I have no problem getting iTunes to recognize the other disc in the set. Now after clearing all previous info and files related to this CD I cannot get iTunes to import it. The iTune

  • How to encode a fileHandler to output french characters ?

    Hi everyone, I'm trying to encode a fileHandler to create a file that contains french special characters (è, é, . . . .). I tried the following code: fileHandler.setEncoding("ISO-8859-1"); and the following fileHandler.setEncoding("UTF-8"); But still

  • Ship to address on the service contract

    Hello The service contracts are getting created without ship to address from OM and IB. Is there a way to get the ship to on to service contract automatically? Regards Srini

  • Help: Ipod Stuck  on Restoring iPod Firmware

    I left my iPod touch (1G) on overnight to let it update,some error popped up and said I have to restore my iPod, so I did. I left it on to restore and has it is taken 2 hours so far and is stuck on the Restoring iPod Firmware. Is there a solution to

  • Burnt a disc now can't eject it, please help, thank you.

    I can't eject a disc after I burnt it. Maybe someones knows how to fix this problem. Thank you.