Manged to get separate test ant - can't understand error log

Hi,
I managed to get a simple example of Junit running through ANT building but not testing correctly.
my example test class looks like:
package com.sims.test;
public class HelloWorldTest extends junit.framework.TestCase {
    public void testNothing() {
    public void testWillAlwaysFail() {
        assertEquals("", "");
}this runs fine through eclipse with as a JUnit application.
my buildfile looks like:
<project name="TestHelloWorld" default="test" basedir=".">
     <property name="test" location="C:/myProjects/runway_core/guitools/sims/build/classes/com/sims/test"/>
     <property name="tests.src" location="${basedir}"/>
     <path id="test.class.path">
     <pathelement path="C:/eclipse-SDK-3.2.1-win32/eclipse/plugins/org.junit_3.8.1/junit.jar"/>                   
     <!-- the test classes are all in here -->
     <pathelement location="${test}"/>
     </path>
     <!-- Build of the Junit test -->
     <target name="build-tests" description="Build the Junit test">
       <javac srcdir="${tests.src}" destdir="${test}">
         <classpath refid="test.class.path"/>
       </javac>
     </target>
     <!-- Run of the Junit test -->
     <target name="test" description="Run the Junit test"
                depends="build-tests">
       <junit printsummary="yes" haltonfailure="no">
         <classpath refid="test.class.path"/>
           <formatter type="plain"/>
           <test name="com.sims.test.HelloWorldTest" outfile="result"
                    todir="${test}"/>
       </junit>
     </target> 
     </project>Now it build fine, but when I click on 'test' in the Ant perspective of Eclipse it returns:
Buildfile: C:\myProjects\runway_core\guitools\sims\src\com\sims\test\fileListingbuild.xml
build-tests:
test:
[junit] Running com.sims.test.HelloWorldTest
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
[junit] Test com.sims.test.HelloWorldTest FAILED
BUILD SUCCESSFUL
Total time: 1 second
to the console.
and there is a log file with:
Testsuite: com.sims.test.HelloWorldTest
Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
     Caused an ERROR
com.sims.test.HelloWorldTest
java.lang.ClassNotFoundException: com.sims.test.HelloWorldTest
     at java.net.URLClassLoader$1.run(Unknown Source)
     at java.security.AccessController.doPrivileged(Native Method)
     at java.net.URLClassLoader.findClass(Unknown Source)
     at java.lang.ClassLoader.loadClass(Unknown Source)
     at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
     at java.lang.ClassLoader.loadClass(Unknown Source)
     at java.lang.ClassLoader.loadClass(Unknown Source)
     at java.lang.ClassLoader.loadClassInternal(Unknown Source)
     at java.lang.Class.forName0(Native Method)
     at java.lang.Class.forName(Unknown Source)
     at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
     at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
     at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
I know I probably am doing something simple wrong but can't figure it out.
Thanks,
Tri

java.lang.ClassNotFoundException: com.sims.test.HelloWorldTestThat's about as clear as they get right there.
Check your CLASSPATH and make sure that your "[subfolders]/com/sims/test" directory is included there.

Similar Messages

  • Can't understand Error Activation

    I downloaded Adobe Digital edition 3.0 at first i can authorize my computer but i cant add the ebook that i purchased. So what i did I changed my Adobe Id and entered it again to authorize my computer It did authorize my computer but when i am adding my ebook there is an Error ! Check activation. i can't understand this.
    What happen next was I can't authorize my computer anymore.. Any solutions for this? Thank you.

    I revised my code to
    File source = new File("C:\\"+file);
                   URL url = new URL("ftp://"+user+":"+password+"@"+host+"/%2F"+path+"/"+file);
                   URLConnection connection = url.openConnection();
                   connection.setDoOutput(true);
                   connection.connect();
                   BufferedOutputStream bos = new BufferedOutputStream(connection.getOutputStream());
                   BufferedInputStream bis = new BufferedInputStream(new FileInputStream(source.getName()));
                   int i;
                   while ((i = bis.read()) != -1){
                        bos.write(i);
    I still the get the same error posted earlier. Anybody have any other ideas?

  • How can I display error log of a standard program in my custom program?

    Hello Experts,
    I have a requirement where I submit a standard program from my custom module pool program as a background job. I use the TO SAP-SPOOL and thus the log is available when I go to SM37 and check the spool list. I have a requirement that I display this log in a tab within my module pool after the completion of the program. I am unable to fins a proper solution to this. I have both the spool number & the log number but I am unable to find function modules which will help me print them within my program. I found many ways to display it but as full screen and not with in my program.
    Could someone please help me with this.
    Thank You

    Hi,
    FM to read a spool request is "RSPO_RETURN_ABAP_SPOOLJOB".
    If the error log is displayed as a list output in the standard program, you can also use the syntax SUBMIT Program... and RETURN with export to memory addition.
    Then you will be able to read the list output from memory.
    Regards,
    Munesh.

  • Kernel panic. Someone can read/understand this log?

    Hi:
    I have experienced 3 systems panics during last 3 months, after some upgrading: ATI X800 board and a second display. This happened the three times while the machine was iddle, I mean left my desk for 1 hour or so and when I come back I found the fans blowing full power. Never had any problem while working (video editing and graphic design).
    I hope someone can read this error message and give me some directions about where could be the reason:
    panic(cpu 1 caller 0x0028C234): mget MCHECK: m_type=3611 m=520ece00
    Latest stack backtrace for cpu 1:
    Backtrace:
    0x00095138 0x00095650 0x00026898 0x0028C234 0x002913A8 0x00282F3C 0x0027ED98 0x0027EC68
    0x002AAE28 0x000AB930 0x8048300D
    Proceeding back via exception chain:
    Exception state (sv=0x5A73F500)
    PC=0x90119D44; MSR=0x0000F030; DAR=0xE1701000; DSISR=0x42000000; LR=0x9B879CAC; R1=0xF060AEB0; XCP=0x00000030 (0xC00 - System call)
    Kernel version:
    Darwin Kernel Version 8.8.0: Fri Sep 8 17:18:57 PDT 2006; root:xnu-792.12.6.obj~1/RELEASE_PPCModel: PowerMac7,2, BootROM 5.1.5f0, 2 processors, PowerPC 970 (2.2), 1.8 GHz, 3 GB
    Graphics: ATI Radeon X800 XT, ATY,R420, AGP, 256 MB
    Memory Module: DIMM0/J11, 256 MB, DDR SDRAM, PC3200U-30330
    Memory Module: DIMM1/J12, 256 MB, DDR SDRAM, PC3200U-30330
    Memory Module: DIMM2/J13, 256 MB, DDR SDRAM, PC3200U-30330
    Memory Module: DIMM3/J14, 256 MB, DDR SDRAM, PC3200U-30330
    Memory Module: DIMM4/J41, 1 GB, DDR SDRAM, PC3200U-30330
    Memory Module: DIMM5/J42, 1 GB, DDR SDRAM, PC3200U-30330
    Modem: MicroDash, UCJ, V.92, 1.0F, APPLE VERSION 2.6.6
    Network Service: Ethernet incorporada, PPP (PPPoE), ppp0
    Serial ATA Device: ST3160023AS, 149.05 GB
    Serial ATA Device: WDC WD2500JS-00MHB0, 232.89 GB
    Parallel ATA Device: SONY DVD RW DW-U10A,
    USB Device: Hub, , Up to 12 Mb/sec, 500 mA
    USB Device: Studio Display, , Up to 1.5 Mb/sec, 500 mA
    USB Device: Hub in Apple Pro Keyboard, Mitsumi Electric, Up to 12 Mb/sec, 500 mA
    USB Device: Apple Optical USB Mouse, Logitech, Up to 1.5 Mb/sec, 100 mA
    USB Device: Apple Pro Keyboard, Mitsumi Electric, Up to 12 Mb/sec, 250 mA
    FireWire Device: LaCie 1394 Disk drive LUN 0, LaCie Group SA, Up to 400 Mb/sec
    Any comments will be appreciated. Let me know if you need more information.
    Thanks in advance !
      Alberto

    Unresolved kernel trap(cpu 1): 0x300 - Data access DAR=0x000000006C617466 PC=0x000000000003FE3C
    Latest crash info for cpu 1:
    Exception state (sv=0x50EA3A00)
    PC=0x0003FE3C; MSR=0x00009030; DAR=0x6C617466; DSISR=0x00200000; LR=0x0003FE24; R1=0x21E0BBE0; XCP=0x0000000C (0x300 - Data access)
    Backtrace:
    0x02A97BD0 0x0002BC34 0x002FAE84 0x00300A98 0x002CD558 0x002C093C
    0x002C10E4 0x000A9314
    Proceeding back via exception chain:
    Exception state (sv=0x50EA3A00)
    previously dumped as "Latest" state. skipping...
    Exception state (sv=0x39EC5500)
    PC=0x00000000; MSR=0x0000D030; DAR=0x00000000; DSISR=0x00000000; LR=0x00000000; R1=0x00000000; XCP=0x00000000 (Unknown)
    Kernel version:
    Darwin Kernel Version 8.8.0: Fri Sep 8 17:18:57 PDT 2006; root:xnu-792.12.6.obj~1/RELEASE_PPC
    panic(cpu 1 caller 0xFFFF0003): 0x300 - Data access
    Latest stack backtrace for cpu 1:
    Backtrace:
    0x00095138 0x00095650 0x00026898 0x000A7E04 0x000AB780
    Proceeding back via exception chain:
    Exception state (sv=0x50EA3A00)
    PC=0x0003FE3C; MSR=0x00009030; DAR=0x6C617466;
    i have this 1. i believe we r experiencing the same thigs. check these two other links.
    http://discussions.apple.com/thread.jspa?threadID=808703&tstart=0
    http://discussions.apple.com/thread.jspa?threadID=816106&tstart=0
    let me know if anything else bc im having this same prob and i want this solved. is your powermac g5 a 1st gen?

  • Tried to add JUnit Test in Eclipse -- "Test type does not exist" error

    Hi guys,
    I'm developing an assignment whose details I won't bother going into -- it's enough to say that we were introduced to JUnit testing a couple of weeks ago in university tutorials, and I've stupidly tried to add one to my project without fully understanding it all. This is in eclipse 3.1.1.
    Basically, I followed eclipse's built-in tutorial called "Writing and running JUnit tests ".
    1) Created class "TestFailure" with method "testFailure".
    public void testFailure() throws Exception {
        fail();
    } 2) This then appeared as a .java file in my project (as well as on my UML diagram, courtesy of Omondo's UML plugin).
    3) I decided it was too risky mucking around with this stuff in a "live" project, so went ahead and deleted the TestFailure icon on my class diagram.
    4) I closed down eclipse.
    5) I went ahead and deleted TestFailure.java and TestFailure.class from my project folders.
    6) I opened my project again, and tried to execute...
    ... and now I keep getting a Test type does not exist error when I try and run it.
    How on earth do I get rid of this?
    Any advice/guidance is greatly appriciated -- oh, how I wish I'd not started messing with JUnit testing!!! :)

    Um, okay -- I fully hold my hands up and admit that I don't know what I'm doing with JUnit testing (we only had a half hour intro to it) but figured I may as well learn by using the official tutorials. It's always a good place to start! Although obviously using a current assignment isn't the best idea ;)
    I was executing my main class (obviously with my main method in there) to execute the program after I'd deleted test case classes, but strangely I've just shut down my machine and restarted and it's working fine. I'm not sure what the deal is here -- lesson learnt though, study new topics on a dummy project! :)
    Anyway, if I waited until I understood the software and code I'm producing to its fullest, I think hell'd freeze over before I executed any code! :) Using a tutorial to learn a new aspect of software I'm already familiar with wasn't a bad move, IMHO. Just using it on this particular project was... Needless stress and all that.

  • When I facetime the ipad (email address) it calls my phone. The accounts are completely separate. How can I get this to only call the ipad and not my phone as well?

    When I facetime the ipad (email address) it calls my phone. The accounts are completely separate. How can I get this to only call the ipad and not my phone as well?
    It calls both the ipad and iphone when calling the associated email address for the ipad. However, when I call the iphone it does not call the IPAD.
    Thanks for your help

    Are you trying to message another Apple device?
    Using FaceTime http://support.apple.com/kb/ht4319
    Troubleshooting FaceTime http://support.apple.com/kb/TS3367
    The Complete Guide to FaceTime + iMessage: Setup, Use, and Troubleshooting
    http://tinyurl.com/a7odey8
    Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/TS4268
    Using FaceTime and iMessage behind a firewall
    http://support.apple.com/kb/HT4245
    iOS: About Messages
    http://support.apple.com/kb/HT3529
    Set up iMessage
    http://www.apple.com/ca/ios/messages/
    Troubleshooting Messages
    http://support.apple.com/kb/TS2755
    Setting Up Multiple iOS Devices for iMessage and Facetime
    http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l
    FaceTime and iMessage not accepting Apple ID password
    http://www.ilounge.com/index.php/articles/comments/facetime-and-imessage-not-acc epting-apple-id-password/
    Unable to use FaceTime and iMessage with my apple ID
    https://discussions.apple.com/thread/4649373?tstart=90
     Cheers, Tom

  • Where can i get sample tests for sun certification(programmer level)??

    where can i get sample tests for sun certification(programmer level)??
    advanced thanks
    anu

    Hi,
    Check this link.
    www.javaranch.com/maha
    Goto the Mock Exams section. There is a table with links to free and paid Mock exams
    on net. They are also rated for being close to the real exams and helping you learn.
    Even the resources here is very good. They are also rated by users.
    This is one of the best sites I have visited to prepare for the SJCP exam.
    Hope this info helps.
    Regards,
    Roopasri Vittal
    Developer Technical Support
    Sun Microsystems
    http://sun.com/developers/support

  • How can i get separate passwords between Apple and iCloud?

    how can i get separate passwords between Apple and iCloud?

    There the same account at this point so theres no way to segragate the password.
    You could however make an icloud email address that is different then your primary apple ID that you use for messaging and itunes and apps stores but at this point you cant undo the password merge.

  • My Mac is doing strange things: delaying between users, mouse flickering and bouncing, gets stuck with rainbow wheel flickering. I ran the appel hardware test and it detected an error: 4MOT/4/40000003:HDD-1233 Does anybody know what that means? HELP!

    My imac is doing strange things:
    -delaying between users: when closing session it goes to blue, then takes a while to appear users signin box, and then wont recognize mouse command to enter until a couple of minutes later... then everything seems alright until....
    -it gets stuck between things, the rainbow wheel appears and its just delays there forever....
    -and every now and then the mouse starts flickering and bouncing wildly onscreen.
    I ran the appel hardware test and it detected an error:
    4MOT/4/40000003:HDD-1233
    Does anybody know what that means? HELP!

    WZZZ answered about where to get iStat. And do check the SMART status. If it is an overheating problem due to a fan or logic board problem, your hard drive is possibly cooking itself to death. If so it isn't a faulty hard drive even though the hard drive might fail. So assuming it's a temperature problem, even if you are able to repair things on the disk with software, that is working on symptoms, not causes. I could be wrong however.
    RE: AppleCare: Your iMac came with one year of AppleCare (Apple's warranty program), but within the first year you can buy 2 more years. You have to extend by the one year anniversary of purchase of the computer. Your 10,1 is too old to still be in the first year, and since you asked what it was, I'm sure you don't have it. Bottom line meaning is that whatever this problem turns out to be, you'll have to pay for it. Unless there is something like this. It is for 2011 iMacs with certain Seagate drives. You can put in your serial number for fun, but it looks like yours is too old. Lastly, some people have had Apple help them anyway if it is just out of warranty, but many have not. Your machine is one of these. Type in 10,1 in the search box. Is there an Apple Store near you? Just b/c it's out of warranty doesn't mean you shouldn't have it looked at by Apple. But no one here can say at all what Apple will or will not do.
    Hope you get it taken care of!

  • I have an iMac, iPad 2 and one child has an iTouch and the other an iPhone 4S.  How do we get separate facetimes?

    Hello, I have an iMac and an iPad 2.  one of my kids have an iTouch and the other an iPhone 4S. 
    When their friends call, it shows up on my iPad 2 and the list of friends is the list of friends for my child
    who has the iPhone 4S.    To my knowledge, we all have to share an APPLE ID to share music and apps?...
    So is that the problem....what happens if we have separate APPLE ID's....?
    Even though we are an APple fam, I am still not sure how the whole thing works....
    How do we get separate facetimes?  Thank you so much in advance.  

    Actually you can have separate apple ID's for icloud and facetime but use the family one for purchases so you can share your apps, music..
    Each owner opens up a Apple ID for only their device(s).. Log into icloud using new apple ID on each device for each person. Hit facetime in settings, and input your new apple id as facetime ID.. Done..
    Now go to settings > store and make sure your family account is inputed there on all the devices so you can share your purcahsed music, apps, videos, etc....
    I am sharing purcahses with my entire family but we all have separate icloud, facetime, apple ID etc.. Its imperative you have split Apple ID's for icloud otherwise all your phonebooks will mix and match.....
    Also as far as iphone goes.. Iphone can be set up to use apple ID to call or phonenumber (by default) So if you facetime a number it will ring only on that phone, if you facetime an apple ID that is on the iphone it will ring on all devices associated with that apple ID

  • How can I import a movie into iMovie 09 from a hard drive?  The movie will open and play in idvd but breaks into separate files that can't be downloaded when I try to import.  Can it be done?

    How can I import a movie into iMovie 09 from a hard drive?  The movie will open and play in idvd but breaks into separate files that can't be downloaded when I try to import.  Can it be done? I am trying to create a disc of player highlights for a collegiate coach, and I am using movie files downloaded to my hard drive from a DVD created on a PC. 

    No unfortunately it won't open in quicktime either.  It does the same thing that Imovie does, separates it into two file folders audio and video, and if i select video it opens to reveal 8 files that cannot be selected.  VIDEO_TS.BUP, VIDEO_TS.IFO, VIDEO_TS.VOB,VTS_01_0.BUP, VTS_01_0.IFO, VTS_01_1.VOB, VTS_01_2.VB, VTS_01_3.VOB.  All of which cannot be opened or selected.
    Opening it in Idvd and folllowing your suggestion works and I get a format code of NTSC.  Is that the same?  Thank you for your time and response.
    CaCanuck

  • Is it possible for me to get separate bills for everyone on my line?

    Is it at all possible that I can get separate bills sent to different addresses for the people on my line?

        Hi Marie9312,
    I understand you would like to know if it possible for to get separate bills for everyone on your line. We are not able to send them but it  is possible for you to get them and print them for the ones you want to have the bills. Here's a link to help http://vz.to/1xiAkiJ. Once you view the bill, you can click the print tab and select the amount of copies you want.
    Thank you!
    EdW_VZW
    Follow us on twitter @VZWSupport

  • I used to use Firefox, then couldn't browse. ISP said trble was in browser, then I realized all I had was IE, and it's not working. How do I get Firefox if I can't browse? I'm on borrrowed computer. Thanks.

    I used to use Firefox, then couldn't browse. ISP said trble was in browser, then I realized all I had was IE, and it's not working. How do I get Firefox if I can't browse? I'm on borrrowed computer. Thanks.
    == This happened ==
    Every time Firefox opened
    == 2 weeks ago ==
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB6.5)

    If you have a separate FTP client, you could use that (link: ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/3.6.3/win32/en-US/ )
    If you have email on the machine, have a friend email you the installer file.
    Else you'd have to use an external storage device (USB drive, external hard disk or some such).

  • When I sync my iPad to download new pictures to my library, my existing library gets deleted. How can I stop this from happening?

    When I sync my iPad to download new pictures to my library, my existing library gets deleted. How can I stop this from happening?

    The way I sync mine is to have an 'master' folder on my computer, and underneath it I have separate folders for the photos that I want to sync to the iPad - I then select the master folder in iTunes and the folders underneath it are synced to the iPad, each getting their own album.
    There is some info on syncing folders on this page http://support.apple.com/kb/HT4236

  • Everytime I try to export my slideshow I get the "The operation can't be completed because the item can't be found." message. How do I fix?

    Trying to export a pretty basic slideshow to our desktop/iTunes and I keep getting the "The operation can’t be completed because the item can’t be found." message when I try to export. What am I doing wrong?

    What is your iPhoto version?
    Your slideshow may contain a photo or a video where the original file cannot be found. Try to find the offending item.
    You could duplicate the slideshow (select it in the source list, ctrl-click, and the select "Duplicate").
    Then remove half of the photos from the copy and try to export this partial slideshow. if it works, you will know, the problematic photo or video is in the other half.
    Keep duplicating the slideshow, removing photos from the copy and testing with smaller sets of photos, until you know exactly, which photo it is.
    Then select this photo and use the command "File > Reveal Original" to see, if the original file is still there.
    Check the revealed original, if Preview can display it. If the file is o.k., copy it and remport it. Add the new imported photo or video to your slideshow.
    If the original file should really be missing, restore it from your backup.

Maybe you are looking for

  • Changing event's name in iCal

    I want to modify the names of events in the event list of iCal any idea???? thanks philippe

  • AP 1200 print issue

    We have a Cisco AP 1200 that has been configured with the standard config. Users have no issues authenticating and associating with the AP, however, they can't seem to print from it. They can print with a wired connection and I can ping the printer f

  • Kodak Photo CD (PCD) files

    Hi, is there any way I can open my PCD files with Photoshop CS5 Ext. or Photoshop CC from all the Kodak Photo CD's I have?? Thanks in advance, greetings from Austria, Peter

  • Trying to learn to download ring tones to my iphone5

    Trying to download ringtones to my iphone 5.

  • Camera Roll iCloud Storage

    Does anyone know how the camera roll is handled when you purchase more space on iCloud than you have available on your iPhone?  Does the camera roll expand out wirelessly and virtually on the iPhone to use the extra storage in the iCloud?  I'm not ta