This code keeps giving me errors why why why

import junit.framework.TestCase;
* A JUnit test case class.
* Every method starting with the word "test" will be called when running
* the test with JUnit.
public class HouseTester extends TestCase {
* A test method.
* (Replace "X" with a name describing the test. You may write as
* many "testSomething" methods in this class as you wish, and each
* one will be called when running JUnit over this class.)
public void testGetMethods(){
House house = new House("101");
assertEquals("101", house.getHouseNumber());
}

Ahhahh a friend!
I am using Dr java and as the name suggest it automatically creates this bit of the code:
import junit.framework.TestCase;
* A JUnit test case class.
* Every method starting with the word "test" will be called when running
* the test with JUnit.
public class HouseTester extends TestCase {
* A test method.
* (Replace "X" with a name describing the test. You may write as
* many "testSomething" methods in this class as you wish, and each
* one will be called when running JUnit over this class.)
The rest is my doing ;)

Similar Messages

  • HT1692 iPod keeps giving the error "unknown error" when trying to sign in.Why?

    iPod keeps giving "unknown error" when signing in.  Why?

    Signing into what?
    Is "unknown error" the complete error number?

  • TS4036 why cant i backup my iphone with itunes or icloud it keep giving me error * iphone cant be backup because sesion cant be start* -_-

    why cant i backup my iphone with itunes or icloud it keep giving me error * iphone cant be backup because sesion cant be start* -_-

    Delete your most recent backup in iTunes (iTunes Preferences>Devices, click on the backup, click Delete Backup), if using a PC click Reset Sync History (also in Devices), then close iTunes, restart your device, connect your device again, open iTunes and try syncing again.

  • Hello this is the first time I have ever had a problem. I am trying to down load a movie and it keeps giving me error -50. I have signed out and back in and deleated the download and tryed again and still will not download.

    Hello this is the first time I have ever had a problem. I am trying to down load a movie and it keeps giving me error -50. I have signed out and back in and deleated the download and tryed again and still will not download.

    Perhaps try the "Error -50," "-5000," "8003," "8008," or "-42023" section in the Specific Conditions and Alert Messages: (Mac OS X / Windows) section of the following document:
    iTunes: Advanced iTunes Store troubleshooting

  • HT4528 my i phone four will not re-set it keeps giving me error code 1611 any ideas

    my i phone four will not re-set it keeps giving me error code 1611 any ideas?         

    Turned out that I had to delete the password first before I could change it.
    That's the first time I ever had to do that.
    In the past it would just accept the password that I entered when asked for it.
    Now I will remember - i hope! :)

  • I am trying to change my Apple ID. Try to do this I keep getting an error message saying 'This email address is designated as your rescue email address and cannot be used as your Apple ID or Primary email address. Please choose another.' The email address

    I am trying to change my Apple ID. Try to do this I keep getting an error message saying ‘This email address is designated as your rescue email address and cannot be used as your Apple ID or Primary email address. Please choose another.’ The email address that I want to use did use to be my recovery email but I have changed it, so that address is no lonegr associated with my account. I do not understand why I cannot use it as my Apple ID now.  Can anyone help?

    Contact iTunes customer support for assistance.

  • I forgot my passcode for the ipad and i can't connect to iTunes because it keeps giving me error message that i have to unlcok the ipad first... any advice on how to restore the ipad or unlock it?

    i forgot my passcode for the ipad and i can't connect to iTunes because it keeps giving me error message that i have to unlcok the ipad first... any advice on how to restore the ipad or unlock it?

    You have to restore the device within iTunes. You want to use the same computer that you always sync with so that you can restore your app data and settings. You can restore with any other computer, but you will lose everything on the iPad.
    This will tell you how to restore
    http://support.apple.com/kb/HT1414
    You will probably need to use recovery mode
    http://support.apple.com/kb/ht4097

  • Using 10.5.8 when open mac mail keeps giving Certificate error

    trying to help someone with a mac book
    10.5.8
    when open mac mail keeps giving certificate error.
    checked and everything seems fine with settings
    ssl is not turned on for incoming and outgoing
    not sure what is giving them this error and trying to assist them
    any suggestions would be appreciated

    * Download a new copy of the Firefox program: http://www.mozilla.com/firefox/all.html
    * Trash the current Firefox application to do a clean (re)install.
    * Install the new version that you have downloaded.
    Your profile data is stored elsewhere in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder], so you won't lose your bookmarks and other personal data.

  • Trying to update my Blackerry 9300's software to 6.0, keeps giving an error

    Pls i have been tyring to update my fone's software for the past week...keeps giving an error  message when its about to start downloading the software. the error says check ur internet connection or try again later..
    my internet connection is fine and i cant seem to figure out what the problem is... Pls ireally need help as this is beginning to be very upsetting and disappointing

    Hello angelflexy044,
    Have you verified that this version of device software is available from your wireless service provider?
    You can do so here:
    http://us.blackberry.com/support/downloads/download_sites.jsp
    If it is available you can attempt the update using one of the following methods:
    http://www.blackberry.com/btsc/KB03901
    Cheers,
    -FB
    Come follow your BlackBerry Technical Team on Twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.
    Click "Accept as a Solution" for posts that have solved your issue(s)!

  • HT201210 I have tried to restore my i phone via itunes after doing the update and it keeps giving unknown error occurred (3194) please help

    I have tried to restore my i phone via  itunes after doing the update and it keeps giving unknown error occurred (3194) please help

    Hello Sam-marchesi,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    iTunes: Specific update-and-restore error messages and advanced troubleshooting
    http://support.apple.com/kb/TS3694#error3194
    Unable to contact the iOS software update server gs.apple.com
    Error 1004, 1013, 1638, 3014, 3194: These errors may be the result of the connection to gs.apple.com being redirected or blocked. Follow these steps to resolve these errors:
    Install the latest version of iTunes.
    Check security software and ensure that communication to gs.apple.com is allowed. Follow these stepsfor assistance with security software.
    Check the hosts file. The restore will fail if there is an active entry to redirect gs.apple.com. Follow theadvanced iTunes Store troubleshooting steps to edit the hosts file or revert to a default hosts file. See "Blocked by configuration: (Mac OS X/Windows) > Rebuild network information."
    Try to restore from another known-good computer and network.
    If the errors persist on another computer, the device may need service.
    Best of luck,
    Mario

  • TS3694 im trying to reset my iphone 4 att. but it keeps giving me error 3194. i dont know the restriction ow

    im trying to reset my iphone 4 att. but it keeps giving me error 3194. i dont know the restriction pw
    it dose not let me update software

    Error 1004, 1013, 1638, 3194: These errors may be the result of the connection to gs.apple.com being redirected or blocked. Follow these steps to resolve these errors:
    Install the latest version of iTunes.
    Check security software. Ensure that communication to gs.apple.com is allowed. Follow this article for assistance with security software. iTunes for Windows: Troubleshooting security software issues.
    Check the hosts file. The restore will fail if there is an active entry to redirect gs.apple.com. Follow iTunes: Advanced iTunes Store troubleshooting to edit the hosts file or revert to a default hosts file. See section "Blocked by configuration: (Mac OS X/Windows) > Rebuild network information".
    Try to restore from another known-good computer and network.
    If the errors persist on another computer, the device may need service.

  • I cant update ,y ipod touch 4 , i tried everything but it keep giving me error 3194, i cant update ,y ipod touch 4 , i tried everything but it keep giving me error 3194

    i cant update ,y ipod touch 4 , i tried everything but it keep giving me error 3194, i cant update ,y ipod touch 4 , i tried everything but it keep giving me error 3194

    Did you try the actions specified here:
    - iTunes: Specific update-and-restore error messages and advanced troubleshooting
    - 3194-How do I reset the hosts file back to the default?
    - http://support.apple.com/kb/ts1275
    Saying "i tried everything " provides us with no information as to what you arelady tried?

  • I have purchased three different audiobooks over the last two months and none will download. It keeps giving me error 3259. What is wrong?

    I have purchased three different audiobooks and none of them will download. It keeps giving me error 3259. It will let me download tv shows no problem. What is the problem?

    <after three tries, decided that it's just not worth responding to>

  • I cant purchase storage on icloud, it keeps saying unknown error, why?

    i cant seem to purchase the icloud storage, it keeps saying unknow error occured, why? and i also cannot access icloud from the my laptop it also says unknown error occured, but i can open the website to access it. but why does this happen

    I get the same unknown error occurred. I can't believe no answer yet.
    I think it is Beta only for a few users.

  • This code cannot possibly fail. Why is it failing?

    LV 2010 (yes, 2010), Win Vista.
    I have a DISPLAY UPDATE event, occurring at 2 Hz.
    The event carries an array of values, one for each channel.
    Four CHANNEL SELECTORS drive an ARRAY INDEX operation.
    The four selected channels are shown separately on numeric indicators, then combined on to a waveform chart.
    The little subVIs are there to produce a NaN for charting if the channel selector is -1 (none).
    Currently they are changed to output a "123.0" value, for debugging purposes.
    The HELP says that the ARRAY INDEX will produce a default 0 if the input index is outside the bounds of the array.
    Yet, under certain circumstances (see JING at http://screencast.com/t/0kO0GDhlo0E), the "CHART VALUE" indicators fail to update.
    In that video, I set the indicators to values of 1, 2, 3, 4 before starting the program.
    I DO NOT set the DEFAULT, just enter those numbers into the panel indicators.
    The two which have selected channels are updated seemingly normally.  The other two, which are left at NONE (-1) do not update.
    I would expect them to show a zero, or SOMETHING, but the "3" and "4" never change.
    This code is called, as evidenced by the chart advancing, but the values do not change.
    If I change the channel to a live channel, then back to NONE, it will return to 0.  That's expected.
    But why doesn't it update at first?
    If I swap the channel selectors around, the problem swaps with it. Any selector set on NONE has the corresponding indicator unchanged from the starting value.
    ABOUT THE CODE:
    This is a REENTRANT VI,  inserted into a SUBPANEL.
    Here's the insertion code:
    The idea is that each control on the page is a subpanel, each will receive an instance of this one VI.
    For each subpanel, I open a new re-entrant ref to this VI (it's set to be reentrant), and insert that ref into the subpanel.
    I set a couple of control values, and start it running.
    KEY FACTS:
    1... If I change OPTIONS = 8 to OPTIONS = 0 in the above, the problem goes away. Everything works as expected.
    2... The N=1 in the above, is simply to limit the number of instances, for debugging purposes.
    3... I get no errors at any time.
    4... I've tried with and without a wire to the TYPE SPECIFIER VI REFNUM input of OPEN VI REFERENCE.  No change.
    A search on this topic brings up some 2008 issues with LV 8.0, and a suggestion there to use a VIT as the item inserted had no effect here.
    So, why does the indicator NOT update if the index is -1, at first?  It's as if the code is not there.
    And why does making it non-reentrant fix it?
    (I have to have it reentrant so I can have multiple instances).
    Steve Bird
    Culverson Software - Elegant software that is a pleasure to use.
    Culverson.com
    Blog for (mostly LabVIEW) programmers: Tips And Tricks
    Solved!
    Go to Solution.

    I don't know how to probe that in the real situation.
    If I put a probe there, it doesn't tell me anything, because it's a re-entrant copy that's actually running: the probe is on the original VI which isn't.
    If I make it non-reentrant, the problem goes away.
    KEY FACTS:
    8... Moving the indicators OFF the tab page does nothing different.
    9... another page of the inner tab has more text indicators (20) instead of a chart. (see pic below).  That page shows the same behavior.  Any selector inditialized to -1 fails to update until it is first set to an active channel.
    10... It doesn't matter if the selector values are converted to I32 or not (not that I would expect it to).
    11.. The selectors are given a STRINGS & VALUES property of ["< None >", -1] by the init code, or ["Speed", 2} or ["Torque", 3] or something if the channel is found in the settings file.  When you click on it, I populated the menu with all channels and all indexes.  Wonder if there's something wonky with that.
    Steve Bird
    Culverson Software - Elegant software that is a pleasure to use.
    Culverson.com
    Blog for (mostly LabVIEW) programmers: Tips And Tricks

Maybe you are looking for

  • Is there a way to monitor Time Machine's current backup task?

    I started a second Time Machine backup to a NAS yesterday (in addition to my local TM Backup, which will now be taken offsite). It took a good 24hrs to finish, which was expected over WiFi. Since the initial backup, all the hourly backups have seemed

  • How to - Select Multiple Filter Values w/o Navigation ability

    Just FYI, I had a requirement to allow users to select multiple characteristic filter values.  Something like a capabilities a combo box would afford us. To do this just use a Generic Nav Block Web Item and in the Web Item configuration just uncheck

  • Problem user

    I have a user with constant outlook issues. ie freezing and messages getting stuck in the outbox. We don't use roaming profiles, and this is the case on several freshly built devices. I've created a new mailbox - which hasn't made a difference so I'm

  • How to consume 3rd Party WSDL which contains the Include statement

    I have a 3rd Party WSDL I am trying to consume using the BizTalk WCF Consume Wizard. When I try and consume the WSDL it gives me blank XSDs and Binding files. It does produce the Port Types in an Orchestration. This article mentions how to use the sv

  • Variable table name in insert

    In forms i want to give variable as table name. e.g When_button_press Insert into :txt1 values (select * from abc1) return error on :txt1. how can i do this.