Barry, does the code that assigns this variable is under source root? If no please add it there so inspection could search for that usage. If yes would you please provide me with that code so I could analyze the problem.
Thank you. -- Best regards, Maxim Shafirov JetBrains, Inc / IntelliJ Software http://www.intellij.com "Develop with pleasure!" "Barry Kaplan" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Inspection is telling me that I can add the final modifier to > 'createCashAccountPersistenceException'. But this is not so. That > variable is set by the test to cause the mock to throw the exception. > Were it be final, no test could set the value. > > Is this a bug, or do I not understand something? > > > > public boolean createCashAccountCalled; > > public com.its.trading.domain.account.Account createCashAccountReturn; > > public com.technoetic.tornado.PersistenceException createCashAccountPersistenceException; > > public java.lang.String createCashAccountAccountId; > > public com.its.trading.domain.account.Account createCashAccount(java.lang.String accountId) throws com.technoetic.tornado.PersistenceException { > > createCashAccountCalled = true; > > createCashAccountAccountId = accountId; > > if (createCashAccountPersistenceException != null) { > > throw createCashAccountPersistenceException; > > } > > return createCashAccountReturn; > > } > > _______________________________________________ Eap-features mailing list [EMAIL PROTECTED] http://lists.jetbrains.com/mailman/listinfo/eap-features
