Test Code on iPad

At my current job, we write a web based application that utilizes C#, .NET, Telerik HTML, and MySQL. One of our primary customers will be accessing the web app through the iPad. Is there any way to test code written in Visual Studio 2010 on the iPad without rolling the application out to production?
To be clear, I don't need to write any code on the iPad. I essentially need a way to test my current code written in Visual Studio.
Thanks.

Sorry, but I'm not quite sure what you are trying to do. If you want to test a web application, why can you not just get an iPad, set up the web app on a test server, and go to the URL of that test system from the iPad's web browser?
Perhaps someone else will understand better what you wish to do, but you may need to explain further your scenario and what and how you need to test.
Regards.

Similar Messages

  • How can I acess my ipad content from the pc, without enter the security code on ipad? I broke the screen and it doesn´t work. theres a way to enter the code on the pc?

    how can I acess my ipad content from the pc, without enter the security code on ipad? I broke the screen and it doesn´t work. theres a way to enter the code on the pc? thank you

    No. Get it fix by making an appointment with the Apple genius bar.

  • Is there a reference test code for Android to see if GPU acceleration is working on a device or not?

    The subject says it all:
    Is there a reference test code (available for downloading) for Android to see if GPU acceleration is working on a device or not once the AIR RC1 with GPU is installed ?
    Perhaps something 'like' away3d info panel which shows if GPU is active or not...
    I will try to build one in the meantime.  Just didnt want to reinvent the wheel here.
    TIA for any pointers.  //GH

    I agree with the above posts, it would be great to have a place with a list of already known problems, and a way for those of us with the time and interest to participate in making the FiOS experience better. Several thoughts:
    1) Send a PM to a moderator here asking to participate in a test, or asking for improvements to the Forum. I have done that, some of the improvements I suggested have occurred (thanks Kathleen and CharlotteS), hoping more will; it can't hurt. And I understand my request to be a beta tester has been forward to development. At least one poster put that kind of request in a forum post and I think his was also forwarded.
    2) Go to the following Verizon Products Trial site and sign up to test new things: https://www36.verizon.com/MM/Protected/TestTrack/SignIn.aspx. No guarantees, not much on the site right now, but if you sign up you might get to participate in the future.
    3) Consider using the Verizon Direct forum at http://www.dslreports.com to report problems rather than the FSC (or after a frustrating experience with the FSC). You have to be a registered user to post in that forum, but I have had a good experience using it. Verizon employees monitor the forum and respond, and only they and you can see the details of your and their posts (one of the things I have suggested to the moderators here is something like Verizon Direct here). 
    I am retired, I have time to put into an effort to improve FiOS TV. Plus I have quite a bit of experience in testing new computer hardware and software before announcment and/or delivery to customers (IBM), so I think I could help (and I really don't think I could hurt it...). Plus in two more days I will have had FiOS TV for three full years, I have gone through all of the good (and a little bad.....) along the way.
    FWIW...
    Justin
    Verizon FiOS TV, Internet, and phone
    IMG 1.5.0
    Keller, TX

  • Unit Test code using wrong persistence unit

    In the midst of learning Maven, I created a simple application in which I am using JPA (Java Persistence 1.0.2) with EclipseLink implementation (2.0.2).
    Note: This is an Application Managed environment. So I manually control EntityManager's life cycle.
    The persistence.xml file used by the main source code is different from the one that unit test code uses. Main code uses an Oracle DB and the test code uses an in-memory Derby.
    Running unit tests was updating the Oracle DB (!) and I eventually managed to fix that by using two different persistence-units in the XML files.
    However, I don't understand why that fixed the problem. I manually create and shut down the entity managers and they are not running concurrently. I'm pretty sure Maven (or the way I set it up) doesn't mess up the resources (XML files). In fact by looking at Maven's debug output I can see it's using the right XML file for unit tests.
    Could someone enlighten me, please?

    Do you have both persistence.xml files on your classpath? If so, and they contain the same name for their respective persistence units, you should be getting a warning or error since they must have unique names. There is no way to tell which one you want to access otherwise.
    Best Regards,
    Chris

  • Is $99 sign up required before you can test code on a device (iphone/itouch

    Hi
    Is the $99 sign up required before you can test code on an iPhone/ Itouch device?
    I am just trying to compile a simple program and run it on the device, but I get a CodeSign error. Is Codesign something that can be done without signing up for $99, or is there a special code given during sign up to use unique to the developer? Just want to test code on a real device, not in the simulator. Seems a bit much to require me to pay a $99 fee to do so if I'm just writing stuff for myself at this point.

    Even after paying the $99 fee, I don't believe this provides for being able to install your own developed app on your iPhone - not via the simulator only, or does it?

  • How do I get past the pass code on iPad running on Ios7.1 because j have forgotten it and I don not own a computer so it has to be with our a computer

    How do I get past the pass code on iPad running on Ios7.1 because j have forgotten it and I don not own a computer so it has to be with out
    a computer

    Use a friend's computer. Your iPad will be erased.
    How can I unlock my iPad if I forgot the passcode?
    http://www.everymac.com/systems/apple/ipad/ipad-troubleshooting-repair-faq/ipad- how-to-unlock-open-forgot-code-passcode-password-login.html
    iOS: Device disabled after entering wrong passcode
    http://support.apple.com/kb/ht1212
    How can I unlock my iPad if I forgot the passcode?
    http://tinyurl.com/7ndy8tb
    How to Reset a Forgotten Password for an iOS Device
    http://www.wikihow.com/Reset-a-Forgotten-Password-for-an-iOS-Device
    Using iPhone/iPad Recovery Mode
    http://ipod.about.com/od/iphonetroubleshooting/a/Iphone-Recovery-Mode.htm
    You may have to do this several times.
    Saw this solution on another post about an iPad in a school environment. Might work on your iPad so you won't lose everything.
    ~~~~~~~~~~~~~
    ‘iPad is disabled’ fix without resetting using iTunes
    Today I met my match with an iPad that had a passcode entered too many times, resulting in it displaying the message ‘iPad is disabled – Connect to iTunes’. This was a student iPad and since they use Notability for most of their work there was a chance that her files were not all backed up to the cloud. I really wanted to just re-activate the iPad instead of totally resetting it back to our default image.
    I reached out to my PLN on Twitter and had some help from a few people through retweets and a couple of clarification tweets. I love that so many are willing to help out so quickly. Through this I also learned that I look like Lt. Riker from Star Trek (thanks @FillineMachine).
    Through some trial and error (and a little sheer luck), I was able to reactivate the iPad without loosing any data. Note, this will only work on the computer it last synced with. Here’s how:
    1. Configurator is useless in reactivating a locked iPad. You will only be able to completely reformat the iPad using Configurator. If that’s ok with you, go for it – otherwise don’t waste your time trying to figure it out.
    2. Open iTunes with the iPad disconnected.
    3. Connect the iPad to the computer and wait for it to show up in the devices section in iTunes.
    4. Click on the iPad name when it appears and you will be given the option to restore a backup or setup as a new iPad (since it is locked).
    5. Click ‘Setup as new iPad’ and then click restore.
    6. The iPad will start backing up before it does the full restore and sync. CANCEL THE BACKUP IMMEDIATELY. You do this by clicking the small x in the status window in iTunes.
    7. When the backup cancels, it immediately starts syncing – cancel this as well using the same small x in the iTunes status window.
    8. The first stage in the restore process unlocks the iPad, you are basically just canceling out the restore process as soon as it reactivates the iPad.
    If done correctly, you will experience no data loss and the result will be a reactivated iPad. I have now tried this with about 5 iPads that were locked identically by students and each time it worked like a charm.
    ~~~~~~~~~~~~~
    Try it and good luck. You have nothing more to lose if it doesn't work for you.
     Cheers, Tom

  • What is the imei code of ipad air 32gb space gray australia

    what is the imei code of ipad air 32gb space gray australia
    URGENT need

    I'm not sure what you're asking. If you're asking us to tell you the IMEI for your particular iPad, that's impossible. None of us, your fellow users, will have any access to such information. If you're asking how to find the IMEI for your iPad, that would be labeled as such on the box, or found by these additional possibilities:
    http://support.apple.com/kb/HT4061
    Regards.

  • I forgot restrictions cod in ipad air1 and don't off it , please help me for recovery this cod

    i forgot restrictions cod in ipad air1 and don't off it , please help me for recovery this cod...

    Locked Out, Forgot Lock or Restrictions Passcode, or Need to Restore Your Device: Several Alternative Solutions
    A
    1. iOS- Forgotten passcode or device disabled after entering wrong passcode
    2. iPhone, iPad, iPod touch: Wrong passcode results in red disabled screen
    3. Restoring iPod touch after forgotten passcode
    4. What to Do If You've Forgotten Your iPhone's Passcode
    5. iOS- Understanding passcodes
    6. iTunes 10 for Mac- Update and restore software on iPod, iPhone, or iPad
    7. iOS - Unable to update or restore
    Forgotten Restrictions Passcode Help
                iPad,iPod,iPod Touch Recovery Mode
    You will need to restore your device as New to remove a Restrictions passcode. Go through the normal process to restore your device, but when you see the options to restore as New or from a backup, be sure to choose New.
    You can restore from a backup if you have one from BEFORE you set the restrictions passcode.
    Also, see iTunes- Restoring iOS software.
    And also see How to Recover Forgotten iPhone, iPad Restrictions Passcode.

  • HT4061 how to find puk code to iPad

    how to find puk code to iPad

    It is located on the card that held your sim, if you do not have that, you need to contact your carrier.

  • Could this Fibonacci sequence generator and prime tester code be made more

    Hey,
    Could this Fibonacci sequence generator and prime tester code be made more efficient?
    package sideprojects;
    public class Exam2008Question2F
         public static boolean isPrime(int n)
              int div=2;
              while(div*div<=n)
                   if(n%div==0)
                        return(false);
                   div++;
              return true;
         public static void main (String [] args)
              int prev = 1, curr = 1;
              System.out.println(prev+": It's a prime number.");
              for(int i=0;i<10;i++)
                   if(isPrime(curr))
                        System.out.println(curr + ": It's a prime number.");
                   else
                        System.out.println(curr + ": It's not a prime number.");
                   int next = prev + curr;
                   prev = curr;
                   curr = next;
    1: It's a prime number.
    1: It's a prime number.
    2: It's a prime number.
    3: It's a prime number.
    5: It's a prime number.
    8: It's not a prime number.
    13: It's a prime number.
    21: It's not a prime number.
    34: It's not a prime number.
    55: It's not a prime number.
    89: It's a prime number.Edited by: woodie_woodpeck on Apr 26, 2009 3:42 AM

    corlettk wrote:
    Not what you expected? Or are you saying something about the performance of long arithmetic verses int?No, I thought you posted your method using long's as well. When you implement them both using int's (or long's), the 6-increment should run quicker:
    public class PrimeTester {
        public static boolean isPrimeInc2(long n) {
            if(n < 2) return false;
            if(n == 2) return true;
            if(n%2 == 0) return false;
            long sqrtN = 1+(long)Math.sqrt(n);
            for(long i = 3; i <= sqrtN; i += 2) {
                if(n%i == 0) return false;
            return true;
        public static boolean isPrimeInc6(long n) {
            if(n < 2) return false;
            if(n == 2 || n == 3) return true;
            if(n%2 == 0 || n%3 == 0) return false;
            long sqrtN = 1+(long)Math.sqrt(n);
            for(long i = 6L; i <= sqrtN; i += 6) {
                if(n%(i-1) == 0 || n%(i+1) == 0) return false;
            return true;
        public static boolean isPrimeCached(long n) {
            if(n == 2) return true;
            if(n < 2) return false;
            long[] cache = {2,3,5,7,11,13,17,19,23,29,31};
            for(long c : cache) {
                if(n == c) return true;
                if(n%c == 0) return false;
            long stop = (long)Math.sqrt(n);
            for(long i = cache[cache.length-1]; i <= stop; i += 2) {
                if(n%i == 0) return false;
            return true;
        public static void main(String[] args) {
            long N = 1000000, start = 0, end = 0, repeat = 5;
            while(repeat-- > 0) {
                start = System.currentTimeMillis();
                for(long i = 1; i <= N; i++) isPrimeInc2(i);
                end = System.currentTimeMillis();
                System.out.println("isPrimeInc2(...) upto "+N+" took "+(end-start)+" ms.");
                start = System.currentTimeMillis();
                for(long i = 1; i <= N; i++) isPrimeInc6(i);
                end = System.currentTimeMillis();
                System.out.println("isPrimeInc6(...) upto "+N+" took "+(end-start)+" ms.");
                start = System.currentTimeMillis();
                for(long i = 1; i <= N; i++) isPrimeCached(i);
                end = System.currentTimeMillis();
                System.out.println("isPrimeCached(...) upto "+N+" took "+(end-start)+" ms.\n");
    }

  • Macbook Pro w/Retina-Hardware Test code: 4BAT/1/40000000: 0x87c4cd90

    Has anyone taken in their Macbook Pro w/ Retina Display to get serviced for this Hardware Test code: 4BAT/1/40000000: 0x87c4cd90
    What in Jesus name is this? I would like to know what I'm getting myself into (money-wise).
    I would love to get the opinion of someone that has experienced this issue themselves and has taken it in to get serviced. I believe Apple will try to upsell me and say there's a lot other things wrong with my laptop to get more money out of me.
    Specs:
    Apple Macbook Pro 13" w/ Retina Display (2012 Model)
    2.5GHz i5
    Just if your wondering, I checked to see if my laptop was under warranty and it seems it's still under warranty! But issue is that I'm not the original buyer...I bought this from someone so I'm not sure if they'll grant the warranty for me. I hope it does!
    Thanks in advance!

    Welcome to Apple Support Communities
    We don't have information about that error, as it's strange. Take the MacBook to an Apple Store or reseller to get it repaired.
    You shouldn't have any problem with warranty, but you should register the MacBook to your Apple ID in http://supportprofile.apple.com. Moreover, did the old owner deauthorize the Mac? If not, contact with him/her and tell him/her to contact with Apple and deauthorize the MacBook from his/her Apple ID > http://support.apple.com/kb/HE57

  • Problems creating testing code for char[]

    I'm trying to create code to test other code i've written but i keep getting errors..
    This is the code i've written and it all looks ok with no errors
    public class myString
    private char[] a;
    public myString(char[] a){
    public void copy(){
            for (int i = 0; i < a.length-1; i++){
                char[] copy = new char[a.length];
                copy[i] = a;
    }*and this is the tester code*public class myStringTester
    public static void main(String[] args){
    char[] a = {'a', 'r', 'r', 'a', 'y'};
    myString.copy(a);
    }when i run this i get this error
    copy() in myString cannot be applied to (char[])
    help please
    Thanks in advance
    Edited by: Hackzor on Aug 27, 2008 5:02 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Umm, your code doesn't compile.
    You are trying to call a method, a static copy(char[]), which doesn't exist.

  • My iMac won't start up -- makes the usual start up sound, get the gray screen with the apple, and whirling icon goes endlessly below it.  apple hardware test code is 4MOT/2/40000004:0x3d2fdb90

    Prior to shutting it down, I had to force quit Safari.  I has been running a little slow lately, but nothing major.
    Apple Hardware Test code shows
    4MOT/2/40000004:0x3d2fdb90
    anyone know what that means?
    I have a late 2006 intel-based iMac with the iSight camera, running Snow Leopard

    Thanks SO MUCH!  I am having nightmares about all that could be lost.  If the fan can be fixed, then I can cope with the backing up and maybe relieve the hard drive so it gets faster.  As Murphy's law would have it, I just bought an external drive but haven't had a chance to set it up to automatically back up.  Your reply makes me feel much better... There is hope that I can lip along with this old iMac until I can afford a new one.

  • I am new here,i need to find out how to get an activation code from ipad for my netflix acct...so i ca watch them on ipad2. thanks, gracefromvt

    hi folks i got this ipad for christmas. i have tried in vain to get the code so i can hook up netflix.  i pay for acct. i see the serial inscribed on back but i do not think that is the code.  i have roku and the code can change over &amp;over. help please, don't want to pay anymore . my wonderful dh got this for me as i am very ill.
    thanks for any help!!!!
    smiles,
    gracefromvt

    Bless you pj,thank you so much!!!!  my mistake is that i downloaded the incorrect app, i downloaded the netflix preview movies instead, that was definitely the wrong app !!!  YOUR HELP HAS REALLY MADE MY DAY !!!
    BLESS YOU, GRACEFROMVT

  • Trouble w unit test code

    this code compiles fine, but my unit tests starting with the lines
    public static class AllTests extends TestCase {
    are failing with a null pointer exception. i was advised that
    '>
    The testCreateAccount is failing because you're using a local variable,newAccount,
    in the setUp method(), which has the same name as the class instance variable,newAccount.
    Since the testCreateAccount uses the class instance variable, it is null.
    protected void setUp() {
    anAccountServiceImpl = new AccountServiceImpl();
    AccountEntryStruct newAccount = new AccountEntryStruct();'-so i changed all instances of newAccount to newAccount2 in my unit tests (you
    will see towards
    the bottom of my code). it looks like the testCreateAccount method is still
    using a
    null value. i'm not sure if i'm following the advice correctly...
    code is below:
    // AccountServiceImpl.java: The AccountService Implementation
    package com.kafein.accountServices;
    import java.util.Hashtable;
    import java.util.Calendar;
    import java.util.GregorianCalendar;
    import junit.framework.TestCase;
    import junit.framework.Test;
    import junit.framework.TestSuite;
    import org.omg.PortableServer.*;
    import com.kafein.idl.accountServices.AccountServicePOA;
    import com.kafein.idl.accountServices.AccountEntryStruct;
    import com.kafein.idl.accountServices.AccountStruct;
    import com.kafein.idl.utilities.DateTimeStruct;
    import com.kafein.idl.exceptions.NotFoundException;
    import com.kafein.idl.exceptions.DataValidationException;
    import com.kafein.idl.errorCodes.DataValidationErrorCodes;
    import com.kafein.utils.ServiceHandler;
    import com.kafein.utils.Log;
    public class AccountServiceImpl extends AccountServicePOA {
    POA poa;
    private Hashtable accounts = new Hashtable(); // collection of Accounts
    private static int nextAccountID = 1; // global account ID
    * Construct an instance.
    public AccountServiceImpl(POA aPOA) {
    super();
    poa = aPOA;
    * Overloaded constructor for unit tests.
    protected AccountServiceImpl() {
    poa = null;
    * createAccount is used by administrator to add a new Account
    * in the system.
    * @param newAccount AccountEntryStruct containing data for new account
    * @return int the new unique Account ID
    * @exception com.kafein.idl.exceptions.DataValidationException
    public int createAccount(AccountEntryStruct newAccount) throws
    DataValidationException {
    validateData (newAccount); // throws DataValidationException;
    int accountID = getNextID();
    // Create new Account.
    Account anAccount = new Account(accountID,
    newAccount.userName,
    newAccount.userEmail,
    newAccount.creditCardType,
    newAccount.creditCardNumber,
    newAccount.creditCardExpirationDate.year,
    newAccount.creditCardExpirationDate.month,
    newAccount.userPassword,
    newAccount.initialBalance);
    accounts.put(accountID,anAccount);
    return accountID;
    * isAccountValid is used to validate a user logon.
    * @param accountID AccountID
    * @param userPassword String
    * @return boolean true to indicate an existing Account
    public boolean isValidAccount (int accountID, String userPassword) {
    // Get account with key equal to accountID.
    AccountStruct anAccount;
    try {
    anAccount = (AccountStruct) getAccount (accountID);
    catch (NotFoundException e) {
    return false;
    // Verify password.
    return (anAccount.userPassword.equals(userPassword) ? true : false);
    * getAccount is used to retrieve an existing Account in the system
    * @param int AccountID
    * @return AccountStruct containing data for the existing Account
    * @exception com.kafein.idl.exceptions.NotFoundException
    public AccountStruct getAccount(int accountID)throws
    NotFoundException {
    // Verify that accountID is within an appropriate interval.
    if (accountID < 1 || accountID > accounts.size()) {
    throw new NotFoundException(DataValidationErrorCodes.INVALID_ACCOUNT_ID,
    "Account ID not found");
    // Get Account and convert to AccountStruct (which is returned).
    Account anAccount = (Account) accounts.get(accountID);
    return anAccount.getAccountStruct();
    * getAllAccounts is used to retrieve all existing Accounts in the system
    * @return AccountStruct[] containing all existing Accounts.
    * @fyi returns an empty sequence if no Accounts exist
    public AccountStruct[] getAllAccounts() {
    // Allocate the array of AccountStructs.
    int lastKey = accounts.size();
    AccountStruct[] accountSequence = new AccountStruct[lastKey];
    if (lastKey==0) {
    return accountSequence;
    // DAR:Sort accounts by accountID (int).
    // Create AccountStructs from Accounts.
    for (int i = 1; i <= lastKey; i++) {
    Account anAccount = (Account) accounts.get(i);
    accountSequence[i-1] = anAccount.getAccountStruct();
    return accountSequence;
    * validateData is used to check new account data.
    * @param newAccount AccountEntryStruct containing data for new account
    * @exception com.kafein.idl.exceptions.DataValidationException
    protected void validateData(AccountEntryStruct newAccount) throws
    DataValidationException {
    // Check all of the member data in newAccount.
    if (newAccount.userName.equals("")) {
    throw new DataValidationException(
    DataValidationErrorCodes.INVALID_USER_NAME,
    "User Name must not be empty");
    if (newAccount.userEmail.equals("")) {
    throw new DataValidationException(
    DataValidationErrorCodes.INVALID_USER_EMAIL,
    "User Email must not be empty");
    if (newAccount.creditCardType.equals("")) {
    throw new DataValidationException(
    DataValidationErrorCodes.INVALID_CREDIT_CARD_TYPE,
    "Credit card type must not be empty");
    if (newAccount.creditCardNumber.equals("")) {
    throw new DataValidationException(
    DataValidationErrorCodes.INVALID_CREDIT_CARD_NUMBER,
    "Credit card number must not be empty");
    // Compare creditCardExpirationDate to current date
    // (we only consider year and month).
    GregorianCalendar now = new GregorianCalendar();
    DateTimeStruct proposed = newAccount.creditCardExpirationDate;
    if (proposed.year < now.get (Calendar.YEAR) ||
    (proposed.year == now.get (Calendar.YEAR) &&
    proposed.month < now.get (Calendar.MONTH) + 1)) {
    throw new DataValidationException(
    DataValidationErrorCodes.INVALID_CREDIT_CARD_EXPIRATION_DATE,
    "Credit card has expired");
    if (newAccount.userPassword.equals("")) {
    throw new DataValidationException(
    DataValidationErrorCodes.INVALID_USER_PASSWORD,
    "Password must not be empty");
    else if
    (!newAccount.userPassword.equals(newAccount.userPasswordVerification)) {
    throw new DataValidationException(
    DataValidationErrorCodes.INVALID_USER_PASSWORD,
    "Password verification failure");
    if (newAccount.initialBalance < 0.0F) {
    throw new DataValidationException(
    DataValidationErrorCodes.INVALID_BALANCE,
    "Account Balance cannot have a negative balance");
    * getNextID is used to generate a unique ID.
    * Needs a much better implementation that generates a globally unique ID!
    * @return int an Account ID
    protected synchronized int getNextID() {
    nextAccountID++;
    return nextAccountID - 1;
    * override defaultPOA to return this servant's POA, not Root POA
    public POA defaultPOA() {
    return poa;
    * AllTests is used for unit testing the AccountServiceImpl Class. It
    extends the
    * JUnit testing framework's TestCase class.
    * To execute in graphic mode:
    * java junit.swingui.TestRunner
    com.kafein.accountServices.AccountServiceImpl$AllTests
    * To execute in text mode:
    * java com.kafein.accountServices.AccountServiceImpl$AllTests
    public static class AllTests extends TestCase {
    private AccountServiceImpl anAccountServiceImpl;
    private Hashtable accounts = new Hashtable();
    private Account anAccount;
    private AccountEntryStruct newAccount2;
    public AllTests(String name) {
    super(name);
    protected void setUp() {
    anAccountServiceImpl = new AccountServiceImpl();
    AccountEntryStruct newAccount2 = new AccountEntryStruct();
    newAccount2.userName = "testName";
    newAccount2.userEmail = "test@email";
    newAccount2.creditCardType = "testCreditCardType";
    newAccount2.creditCardNumber = "0123456789";
    newAccount2.creditCardExpirationDate = new DateTimeStruct();
    newAccount2.creditCardExpirationDate.year = 2005;
    newAccount2.creditCardExpirationDate.month = 6;
    newAccount2.creditCardExpirationDate.day = -1; // not applicable data
    newAccount2.creditCardExpirationDate.hour = -1;
    newAccount2.creditCardExpirationDate.minute = -1;
    newAccount2.userPassword = "kafein";
    newAccount2.userPasswordVerification = "kafein";
    newAccount2.initialBalance = 0.0F;
    protected void tearDown() {
    public static void main (String[] args) {
    junit.textui.TestRunner.run(suite());
    public static Test suite() {
    return new TestSuite(AllTests.class);
    public void testGetAllAccountsSizeZero() {
    AccountStruct[] results =
    anAccountServiceImpl.getAllAccounts();
    assertTrue(results != null);
    assertTrue(results.length == 0);
    public void testCreateAccount() {
    try {
    int testAccountID = anAccountServiceImpl.createAccount(newAccount2);
    //fail(); // shouldn't get here
    assertTrue(testAccountID == 1);
    AccountStruct[] results = anAccountServiceImpl.getAllAccounts();
    assertTrue(results[0].userName.equals("testName"));
    assertTrue(anAccountServiceImpl.isValidAccount(1, "kafein"));
    } catch(DataValidationException e) {
    public void testGetAllAccounts() {
    AccountStruct[] results = anAccountServiceImpl.getAllAccounts();
    assertTrue(results[0].userName.equals("testName"));
    public void testIsValidAccount() {
    assertTrue(anAccountServiceImpl.isValidAccount(1, "kafein"));
    }

    thanks again all
    my code now looks like
            public static class AllTests extends TestCase {
              private AccountServiceImpl anAccountServiceImpl;
              private Hashtable accounts = new Hashtable();
              private Account anAccount;
              private AccountEntryStruct newAccount2;
              public AllTests(String name) {
                            super(name);
                    protected void setUp() {
              anAccountServiceImpl = new AccountServiceImpl();
              newAccount2 = new AccountEntryStruct();
              newAccount2.userName = "testName";
                    newAccount2.userEmail = "test@email";
                    newAccount2.creditCardType = "testCreditCardType";
                   newAccount2.creditCardNumber = "0123456789";
                    newAccount2.creditCardExpirationDate = new DateTimeStruct();
                    newAccount2.creditCardExpirationDate.year = 2005;
                    newAccount2.creditCardExpirationDate.month = 6;
                    newAccount2.creditCardExpirationDate.day = -1; // not applicable data
                    newAccount2.creditCardExpirationDate.hour = -1;
                    newAccount2.creditCardExpirationDate.minute = -1;
                    newAccount2.userPassword = "kafein";
                    newAccount2.userPasswordVerification = "kafein";
                    newAccount2.initialBalance = 0.0F;
                    protected void tearDown() {
                    public static void main (String[] args) {
                            junit.textui.TestRunner.run(suite());
                    public static Test suite() {
                            return new TestSuite(AllTests.class);
              public void testGetAllAccountsSizeZero() {
                        AccountStruct[] results = anAccountServiceImpl.getAllAccounts();
                        assertTrue(results != null);
                        assertTrue(results.length == 0);
                    public void testCreateAccount() {
                    try {
              int testAccountID = anAccountServiceImpl.createAccount(newAccount2);
              assertTrue(testAccountID == 1);
              AccountStruct[] results = anAccountServiceImpl.getAllAccounts();
              assertTrue(results[0].userName.equals("testName"));
              assertTrue(anAccountServiceImpl.isValidAccount(1, "kafein"));
                      //fail(); // shouldn't get here
              } catch(DataValidationException e) {
                    public void testGetAllAccounts() {
              AccountStruct[] results = anAccountServiceImpl.getAllAccounts();
              assertTrue(results[0].userName.equals("testName"));
                    public void testIsValidAccount() {
              assertTrue(anAccountServiceImpl.isValidAccount(1, "kafein"));
    }-it compiles cleanly. unit tests testGetAllAccounts() and testIsValidAccount() are failing still, however. i'm not sure how to initialize the struct outside of the setUp method and have the struct be available to methods outside of setUp()

Maybe you are looking for