1761727 converted unit test programs to JUnit tests and updated the build targets

This commit is contained in:
clay_shooter
2007-07-27 03:28:44 +00:00
parent bfdc36ad30
commit 78c7ddf199
71 changed files with 1459 additions and 1257 deletions

View File

@@ -9,20 +9,22 @@ package com.jacob.test.windowsmedia;
* Look in the docs area at the Jacob usage document for command line options.
*/
import com.jacob.activeX.*;
import com.jacob.test.BaseTestCase;
public class WMPlayer {
public class WMPlayer extends BaseTestCase {
public static void main(String[] args){
public void testOpenWMPlayer() {
ActiveXComponent wmp = null;
wmp = new ActiveXComponent("WMPlayer.OCX");
// the sourceforge posting didn't post all the code so this is all we have
// we need some other information on how to set the document
// the sourceforge posting didn't post all the code so this is all we
// have we need some other information on how to set the document
// so that we have a url to open
for ( int i= 0 ; i < 1000 ; i++){
System.out.println("the wmp url is "+ wmp.getProperty("URL").toString());
for (int i = 0; i < 1000; i++) {
System.out.println("the wmp url is "
+ wmp.getProperty("URL").toString());
}
}
}
}