Revision: 35
Author:
perica.m...@gmail.com
Date: Sat Dec 1 16:22:49 2012
Log: source code formated, 2 spaces indentation
http://code.google.com/p/mozzes/source/detail?r=35
Modified:
/trunk/mozzesApplication/mozzesApplicationCommon/src/main/java/org/mozzes/application/common/client/MozzesClient.java
/trunk/mozzesApplication/mozzesApplicationCommon/src/main/java/org/mozzes/application/common/client/MozzesClientConfiguration.java
/trunk/mozzesApplication/mozzesApplicationCommon/src/main/java/org/mozzes/application/common/client/package-info.java
/trunk/mozzesApplication/mozzesApplicationCommon/src/main/java/org/mozzes/application/common/exceptions/AuthorizationFailedException.java
/trunk/mozzesApplication/mozzesApplicationCommon/src/main/java/org/mozzes/application/common/exceptions/ClientLoggingException.java
/trunk/mozzesApplication/mozzesApplicationCommon/src/main/java/org/mozzes/application/common/exceptions/MozzesException.java
/trunk/mozzesApplication/mozzesApplicationCommon/src/main/java/org/mozzes/application/common/exceptions/MozzesRuntimeException.java
/trunk/mozzesApplication/mozzesApplicationCommon/src/main/java/org/mozzes/application/common/exceptions/UndeclaredServiceException.java
/trunk/mozzesApplication/mozzesApplicationCommon/src/main/java/org/mozzes/application/common/exceptions/package-info.java
/trunk/mozzesApplication/mozzesApplicationCommon/src/main/java/org/mozzes/application/common/package-info.java
/trunk/mozzesApplication/mozzesApplicationCommon/src/main/java/org/mozzes/application/common/service/LookupService.java
/trunk/mozzesApplication/mozzesApplicationCommon/src/main/java/org/mozzes/application/common/service/SessionService.java
/trunk/mozzesApplication/mozzesApplicationCommon/src/main/java/org/mozzes/application/common/service/package-info.java
/trunk/mozzesApplication/mozzesApplicationCommon/src/main/java/org/mozzes/application/common/session/SessionException.java
/trunk/mozzesApplication/mozzesApplicationCommon/src/main/java/org/mozzes/application/common/session/SessionExpiredException.java
/trunk/mozzesApplication/mozzesApplicationCommon/src/main/java/org/mozzes/application/common/session/SessionIdProvider.java
/trunk/mozzesApplication/mozzesApplicationCommon/src/main/java/org/mozzes/application/common/session/package-info.java
/trunk/mozzesApplication/mozzesApplicationCommon/src/main/java/org/mozzes/application/common/transaction/TransactionIgnored.java
/trunk/mozzesApplication/mozzesApplicationCommon/src/main/java/org/mozzes/application/common/transaction/Transactional.java
/trunk/mozzesApplication/mozzesApplicationCommon/src/main/java/org/mozzes/application/common/transaction/package-info.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/apps/TestBase.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/apps/TestClientLogin.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/apps/TestLookupService.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/apps/internal/TestBlockingClients.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/apps/internal/TestInternalServices.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/apps/internal/package-info.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/apps/package-info.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/apps/scoped/TestRequestScopedInternalService.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/apps/scoped/TestRequestScopedService.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/apps/scoped/TestSessionScopedService.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/apps/scoped/package-info.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/apps/scopedata/TestRequestScope.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/apps/scopedata/TestSessionScope.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/apps/scopedata/TestTransactionScope.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/apps/scopedata/package-info.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/apps/simple/TestServerStarted.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/apps/simple/TestServiceCalls.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/apps/simple/TestServiceCalls2.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/apps/simple/TestServiceInjecting.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/apps/simple/TestServiceInjectingBad.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/apps/simple/package-info.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/mockups/MAuthorizationManager.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/mockups/MIgnoredException.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/mockups/MTransactionManager.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/mockups/ServerStarter.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/mockups/SimpleOjbect.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/mockups/package-info.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/mockups/scopedata/AbstractScopeData.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/mockups/scopedata/MRequestData.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/mockups/scopedata/MSessionData.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/mockups/scopedata/MTransactionData.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/mockups/scopedata/package-info.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/mockups/services/basic/BasicService.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/mockups/services/basic/ServiceThatInjectOtherService.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/mockups/services/basic/ServiceThatThrowsExceptions.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/mockups/services/basic/impl/BasicServiceImpl.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/mockups/services/basic/impl/ServiceThatInjectOtherServiceImpl.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/mockups/services/basic/impl/ServiceThatInjectOtherServiceImplBad.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/mockups/services/basic/impl/ServiceThatThrowsExceptionsImpl.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/mockups/services/basic/impl/package-info.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/mockups/services/basic/package-info.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/mockups/services/internal/PublicServiceCallingInternal.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/mockups/services/internal/SimpleInternalService.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/mockups/services/internal/impl/PublicServiceCallingInternalImpl.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/mockups/services/internal/impl/SimpleInternalServiceImpl.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/mockups/services/package-info.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/mockups/services/scoped/package-info.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/mockups/services/scoped/request/RequestScopedService.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/mockups/services/scoped/request/RequestScopedService2.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/mockups/services/scoped/request/RequestScopedService3.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/mockups/services/scoped/request/impl/RequestScopedService2Impl.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/mockups/services/scoped/request/impl/RequestScopedService3Impl.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/mockups/services/scoped/request/impl/RequestScopedServiceImpl.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/mockups/services/scoped/request/impl/package-info.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/mockups/services/scoped/request/package-info.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/mockups/services/scoped/session/SessionScopedService.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/mockups/services/scoped/session/impl/SessionScopedServiceImpl.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/mockups/services/scoped/session/impl/package-info.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/mockups/services/scoped/session/package-info.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/mockups/services/scopedata/ServiceWithRequestData.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/mockups/services/scopedata/ServiceWithRequestData2.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/mockups/services/scopedata/ServiceWithSessionData.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/mockups/services/scopedata/ServiceWithTransactionData.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/mockups/services/scopedata/ServiceWithTransactionDataNewTransaction.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/mockups/services/scopedata/impl/ServiceWithRequestData2Impl.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/mockups/services/scopedata/impl/ServiceWithRequestDataImpl.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/mockups/services/scopedata/impl/ServiceWithSessionDataImpl.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/mockups/services/scopedata/impl/ServiceWithTransactionDataImpl.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/mockups/services/scopedata/impl/ServiceWithTransactionDataNewTransactionImpl.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/mockups/services/scopedata/impl/package-info.java
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/mockups/services/scopedata/package-info.java
/trunk/mozzesApplication/mozzesApplicationExample/mozzesApplicationExampleCommon/src/main/java/org/mozzes/application/example/common/ExampleConstants.java
/trunk/mozzesApplication/mozzesApplicationExample/mozzesApplicationExampleCommon/src/main/java/org/mozzes/application/example/common/domain/Match.java
/trunk/mozzesApplication/mozzesApplicationExample/mozzesApplicationExampleCommon/src/main/java/org/mozzes/application/example/common/domain/Result.java
/trunk/mozzesApplication/mozzesApplicationExample/mozzesApplicationExampleCommon/src/main/java/org/mozzes/application/example/common/domain/Team.java
/trunk/mozzesApplication/mozzesApplicationExample/mozzesApplicationExampleCommon/src/main/java/org/mozzes/application/example/common/exception/ExampleException.java
/trunk/mozzesApplication/mozzesApplicationExample/mozzesApplicationExampleCommon/src/main/java/org/mozzes/application/example/common/service/Administration.java
/trunk/mozzesApplication/mozzesApplicationExample/mozzesApplicationExampleCommon/src/main/java/org/mozzes/application/example/common/service/MatchAdministration.java
/trunk/mozzesApplication/mozzesApplicationExample/mozzesApplicationExampleCommon/src/main/java/org/mozzes/application/example/common/service/TeamAdministration.java
/trunk/mozzesApplication/mozzesApplicationExample/mozzesApplicationExampleRestJersey/src/main/java/org/mozzes/application/example/rest/jersey/RestOneTeamService.java
/trunk/mozzesApplication/mozzesApplicationExample/mozzesApplicationExampleRestJersey/src/main/java/org/mozzes/application/example/rest/jersey/RestTeamsService.java
/trunk/mozzesApplication/mozzesApplicationExample/mozzesApplicationExampleServer/src/main/java/org/mozzes/application/example/server/ExampleServer.java
/trunk/mozzesApplication/mozzesApplicationExample/mozzesApplicationExampleServer/src/main/java/org/mozzes/application/example/server/dao/MatchDAO.java
/trunk/mozzesApplication/mozzesApplicationExample/mozzesApplicationExampleServer/src/main/java/org/mozzes/application/example/server/dao/TeamDAO.java
/trunk/mozzesApplication/mozzesApplicationExample/mozzesApplicationExampleServer/src/main/java/org/mozzes/application/example/server/service/MatchAdministrationImpl.java
/trunk/mozzesApplication/mozzesApplicationExample/mozzesApplicationExampleServer/src/main/java/org/mozzes/application/example/server/service/TeamAdministrationImpl.java
/trunk/mozzesApplication/mozzesApplicationExample/mozzesApplicationExampleVaadin/src/main/java/org/mozzes/application/example/vaadin/ExampleApplication.java
/trunk/mozzesApplication/mozzesApplicationExample/mozzesApplicationExampleVaadin/src/main/java/org/mozzes/application/example/vaadin/ExampleConfig.java
/trunk/mozzesApplication/mozzesApplicationExample/mozzesApplicationExampleVaadin/src/main/java/org/mozzes/application/example/vaadin/gui/MainWindow.java
/trunk/mozzesApplication/mozzesApplicationExample/mozzesApplicationExampleVaadin/src/main/java/org/mozzes/application/example/vaadin/gui/MatchEditWindow.java
/trunk/mozzesApplication/mozzesApplicationExample/mozzesApplicationExampleVaadin/src/main/java/org/mozzes/application/example/vaadin/gui/TeamEditWindow.java
/trunk/mozzesApplication/mozzesApplicationHibernate/src/main/java/org/mozzes/application/hibernate/HibernateConfigurationType.java
/trunk/mozzesApplication/mozzesApplicationHibernate/src/main/java/org/mozzes/application/hibernate/HibernatePlugin.java
/trunk/mozzesApplication/mozzesApplicationHibernate/src/main/java/org/mozzes/application/hibernate/dao/GenericDAO.java
/trunk/mozzesApplication/mozzesApplicationHibernate/src/main/java/org/mozzes/application/hibernate/dao/GenericHibernateDAO.java
/trunk/mozzesApplication/mozzesApplicationHibernate/src/main/java/org/mozzes/application/hibernate/dao/HibernateDAOBase.java
/trunk/mozzesApplication/mozzesApplicationHibernate/src/main/java/org/mozzes/application/hibernate/transaction/HibernateTransaction.java
/trunk/mozzesApplication/mozzesApplicationHibernate/src/main/java/org/mozzes/application/hibernate/transaction/HibernateTransactionManager.java
/trunk/mozzesApplication/mozzesApplicationHibernate/src/main/java/org/mozzes/application/hibernate/transaction/HibernateUtil.java
/trunk/mozzesApplication/mozzesApplicationJDBC/src/main/java/org/mozzes/application/jdbc/JDBCPlugin.java
/trunk/mozzesApplication/mozzesApplicationJDBC/src/main/java/org/mozzes/application/jdbc/exposed/DbConnectionProvider.java
/trunk/mozzesApplication/mozzesApplicationJDBC/src/main/java/org/mozzes/application/jdbc/impl/ServerManagedConnection.java
/trunk/mozzesApplication/mozzesApplicationJDBC/src/main/java/org/mozzes/application/jdbc/impl/ServerManagedConnectionProvider.java
/trunk/mozzesApplication/mozzesApplicationJDBC/src/main/java/org/mozzes/application/jdbc/impl/ServerManagedTransactionContext.java
/trunk/mozzesApplication/mozzesApplicationJDBC/src/main/java/org/mozzes/application/jdbc/impl/ServerManagedTransactionManager.java
/trunk/mozzesApplication/mozzesApplicationJDBC/src/main/java/org/mozzes/application/jdbc/required/DbConnectionManager.java
/trunk/mozzesApplication/mozzesApplicationModule/src/main/java/org/mozzes/application/module/ApplicationModule.java
/trunk/mozzesApplication/mozzesApplicationModule/src/main/java/org/mozzes/application/module/DefaultApplicationModule.java
/trunk/mozzesApplication/mozzesApplicationModule/src/main/java/org/mozzes/application/module/ServerInitializationException.java
/trunk/mozzesApplication/mozzesApplicationModule/src/main/java/org/mozzes/application/module/ServerLifecycleListener.java
/trunk/mozzesApplication/mozzesApplicationModule/src/main/java/org/mozzes/application/module/ServiceConfiguration.java
/trunk/mozzesApplication/mozzesApplicationModule/src/main/java/org/mozzes/application/module/package-info.java
/trunk/mozzesApplication/mozzesApplicationModule/src/main/java/org/mozzes/application/module/scope/ApplicationScoped.java
/trunk/mozzesApplication/mozzesApplicationModule/src/main/java/org/mozzes/application/module/scope/RequestScoped.java
/trunk/mozzesApplication/mozzesApplicationModule/src/main/java/org/mozzes/application/module/scope/ScopeCleanUp.java
/trunk/mozzesApplication/mozzesApplicationModule/src/main/java/org/mozzes/application/module/scope/SessionScoped.java
/trunk/mozzesApplication/mozzesApplicationModule/src/main/java/org/mozzes/application/module/scope/TransactionScoped.java
/trunk/mozzesApplication/mozzesApplicationModule/src/main/java/org/mozzes/application/module/scope/package-info.java
/trunk/mozzesApplication/mozzesApplicationPlugin/src/main/java/org/mozzes/application/plugin/ApplicationPlugin.java
/trunk/mozzesApplication/mozzesApplicationPlugin/src/main/java/org/mozzes/application/plugin/authorization/AuthorizationManager.java
/trunk/mozzesApplication/mozzesApplicationPlugin/src/main/java/org/mozzes/application/plugin/authorization/AuthorizationPlugin.java
/trunk/mozzesApplication/mozzesApplicationPlugin/src/main/java/org/mozzes/application/plugin/authorization/SimpleAuthorizationPlugin.java
/trunk/mozzesApplication/mozzesApplicationPlugin/src/main/java/org/mozzes/application/plugin/request/RequestProcessor.java
/trunk/mozzesApplication/mozzesApplicationPlugin/src/main/java/org/mozzes/application/plugin/transaction/SimpleTransactionPlugion.java
/trunk/mozzesApplication/mozzesApplicationPlugin/src/main/java/org/mozzes/application/plugin/transaction/TransactionException.java
/trunk/mozzesApplication/mozzesApplicationPlugin/src/main/java/org/mozzes/application/plugin/transaction/TransactionManager.java
/trunk/mozzesApplication/mozzesApplicationPlugin/src/main/java/org/mozzes/application/plugin/transaction/TransactionPlugin.java
/trunk/mozzesApplication/mozzesApplicationRemoting/mozzesApplicationRemotingClient/src/main/java/org/mozzes/application/remoting/client/NettyRemoteClientConfiguration.java
/trunk/mozzesApplication/mozzesApplicationRemoting/mozzesApplicationRemotingClient/src/main/java/org/mozzes/application/remoting/client/RemoteClientConfiguration.java
/trunk/mozzesApplication/mozzesApplicationRemoting/mozzesApplicationRemotingClient/src/main/java/org/mozzes/application/remoting/client/RemoteInvocationHandler.java
/trunk/mozzesApplication/mozzesApplicationRemoting/mozzesApplicationRemotingClient/src/main/java/org/mozzes/application/remoting/client/package-info.java
/trunk/mozzesApplication/mozzesApplicationRemoting/mozzesApplicationRemotingCommon/src/main/java/org/mozzes/application/remoting/common/RemoteInvocationConstants.java
/trunk/mozzesApplication/mozzesApplicationRemoting/mozzesApplicationRemotingCommon/src/main/java/org/mozzes/application/remoting/common/package-info.java
/trunk/mozzesApplication/mozzesApplicationRemoting/mozzesApplicationRemotingServer/src/main/java/org/mozzes/application/remoting/server/InvocationActionExecutor.java
/trunk/mozzesApplication/mozzesApplicationRemoting/mozzesApplicationRemotingServer/src/main/java/org/mozzes/application/remoting/server/InvocationActionMapping.java
/trunk/mozzesApplication/mozzesApplicationRemoting/mozzesApplicationRemotingServer/src/main/java/org/mozzes/application/remoting/server/InvocationExecutorProvider.java
/trunk/mozzesApplication/mozzesApplicationRemoting/mozzesApplicationRemotingServer/src/main/java/org/mozzes/application/remoting/server/NettyRemotingPlugin.java
/trunk/mozzesApplication/mozzesApplicationRemoting/mozzesApplicationRemotingServer/src/main/java/org/mozzes/application/remoting/server/NettyRemotingServerListener.java
/trunk/mozzesApplication/mozzesApplicationRemoting/mozzesApplicationRemotingServer/src/main/java/org/mozzes/application/remoting/server/RemotingExecutorsPlugin.java
/trunk/mozzesApplication/mozzesApplicationRemoting/mozzesApplicationRemotingServer/src/main/java/org/mozzes/application/remoting/server/RemotingPlugin.java
/trunk/mozzesApplication/mozzesApplicationRemoting/mozzesApplicationRemotingServer/src/main/java/org/mozzes/application/remoting/server/RemotingServerListener.java
/trunk/mozzesApplication/mozzesApplicationRemoting/mozzesApplicationRemotingServer/src/main/java/org/mozzes/application/remoting/server/RemotingServerPort.java
/trunk/mozzesApplication/mozzesApplicationRemoting/mozzesApplicationRemotingServer/src/main/java/org/mozzes/application/remoting/server/package-info.java
/trunk/mozzesApplication/mozzesApplicationRestJersey/src/main/java/org/mozzes/rest/jersey/RestJerseyConfiguration.java
/trunk/mozzesApplication/mozzesApplicationRestJersey/src/main/java/org/mozzes/rest/jersey/RestJerseyModule.java
/trunk/mozzesApplication/mozzesApplicationRestJersey/src/main/java/org/mozzes/rest/jersey/RestJerseyServerListener.java
/trunk/mozzesApplication/mozzesApplicationRestJersey/src/main/java/org/mozzes/rest/jersey/guice/MozzesGuiceFactory.java
/trunk/mozzesApplication/mozzesApplicationRestJersey/src/main/java/org/mozzes/rest/jersey/guice/MozzesGuiceProvider.java
/trunk/mozzesApplication/mozzesApplicationRestJersey/src/main/java/org/mozzes/rest/jersey/guice/MozzesGuiceProviderFactory.java
/trunk/mozzesApplication/mozzesApplicationServer/src/main/java/org/mozzes/application/server/MozzesServer.java
/trunk/mozzesApplication/mozzesApplicationServer/src/main/java/org/mozzes/application/server/MozzesServerConfiguration.java
/trunk/mozzesApplication/mozzesApplicationServer/src/main/java/org/mozzes/application/server/authorization/impl/AuthorizationManagerImpl.java
/trunk/mozzesApplication/mozzesApplicationServer/src/main/java/org/mozzes/application/server/authorization/impl/package-info.java
/trunk/mozzesApplication/mozzesApplicationServer/src/main/java/org/mozzes/application/server/authorization/package-info.java
/trunk/mozzesApplication/mozzesApplicationServer/src/main/java/org/mozzes/application/server/client/LocalInvocationHandler.java
/trunk/mozzesApplication/mozzesApplicationServer/src/main/java/org/mozzes/application/server/client/MozzesInternalClient.java
/trunk/mozzesApplication/mozzesApplicationServer/src/main/java/org/mozzes/application/server/client/MozzesInternalClientConfiguration.java
/trunk/mozzesApplication/mozzesApplicationServer/src/main/java/org/mozzes/application/server/client/MozzesLocalClientConfiguration.java
/trunk/mozzesApplication/mozzesApplicationServer/src/main/java/org/mozzes/application/server/client/package-info.java
/trunk/mozzesApplication/mozzesApplicationServer/src/main/java/org/mozzes/application/server/internal/AbstractContext.java
/trunk/mozzesApplication/mozzesApplicationServer/src/main/java/org/mozzes/application/server/internal/AbstractContextScope.java
/trunk/mozzesApplication/mozzesApplicationServer/src/main/java/org/mozzes/application/server/internal/MozzesAbstractProvider.java
/trunk/mozzesApplication/mozzesApplicationServer/src/main/java/org/mozzes/application/server/internal/MozzesInternal.java
/trunk/mozzesApplication/mozzesApplicationServer/src/main/java/org/mozzes/application/server/internal/package-info.java
/trunk/mozzesApplication/mozzesApplicationServer/src/main/java/org/mozzes/application/server/lifecycle/KeepAliveThread.java
/trunk/mozzesApplication/mozzesApplicationServer/src/main/java/org/mozzes/application/server/lifecycle/MozzesServerLifeCycleManager.java
/trunk/mozzesApplication/mozzesApplicationServer/src/main/java/org/mozzes/application/server/lifecycle/MozzesServerLifeCycleStatus.java
/trunk/mozzesApplication/mozzesApplicationServer/src/main/java/org/mozzes/application/server/lifecycle/package-info.java
/trunk/mozzesApplication/mozzesApplicationServer/src/main/java/org/mozzes/application/server/package-info.java
/trunk/mozzesApplication/mozzesApplicationServer/src/main/java/org/mozzes/application/server/request/RequestManager.java
/trunk/mozzesApplication/mozzesApplicationServer/src/main/java/org/mozzes/application/server/request/impl/RequestContext.java
/trunk/mozzesApplication/mozzesApplicationServer/src/main/java/org/mozzes/application/server/request/impl/RequestContextProvider.java
/trunk/mozzesApplication/mozzesApplicationServer/src/main/java/org/mozzes/application/server/request/impl/RequestManagerImpl.java
/trunk/mozzesApplication/mozzesApplicationServer/src/main/java/org/mozzes/application/server/request/impl/RequestProcessorImpl.java
/trunk/mozzesApplication/mozzesApplicationServer/src/main/java/org/mozzes/application/server/request/impl/package-info.java
/trunk/mozzesApplication/mozzesApplicationServer/src/main/java/org/mozzes/application/server/request/package-info.java
/trunk/mozzesApplication/mozzesApplicationServer/src/main/java/org/mozzes/application/server/service/InternalLookupService.java
/trunk/mozzesApplication/mozzesApplicationServer/src/main/java/org/mozzes/application/server/service/ServerLifeCycleService.java
/trunk/mozzesApplication/mozzesApplicationServer/src/main/java/org/mozzes/application/server/service/impl/ImplementationAnnotationInfo.java
/trunk/mozzesApplication/mozzesApplicationServer/src/main/java/org/mozzes/application/server/service/impl/LookupServiceImpl.java
/trunk/mozzesApplication/mozzesApplicationServer/src/main/java/org/mozzes/application/server/service/impl/ServerLifeCycleServiceImpl.java
/trunk/mozzesApplication/mozzesApplicationServer/src/main/java/org/mozzes/application/server/service/impl/SessionServiceImpl.java
/trunk/mozzesApplication/mozzesApplicationServer/src/main/java/org/mozzes/application/server/service/impl/package-info.java
/trunk/mozzesApplication/mozzesApplicationServer/src/main/java/org/mozzes/application/server/service/package-info.java
/trunk/mozzesApplication/mozzesApplicationServer/src/main/java/org/mozzes/application/server/session/SessionManager.java
/trunk/mozzesApplication/mozzesApplicationServer/src/main/java/org/mozzes/application/server/session/impl/SessionContext.java
/trunk/mozzesApplication/mozzesApplicationServer/src/main/java/org/mozzes/application/server/session/impl/SessionContextProvider.java
/trunk/mozzesApplication/mozzesApplicationServer/src/main/java/org/mozzes/application/server/session/impl/SessionIdGenerator.java
/trunk/mozzesApplication/mozzesApplicationServer/src/main/java/org/mozzes/application/server/session/impl/SessionManagerCleanupThread.java
/trunk/mozzesApplication/mozzesApplicationServer/src/main/java/org/mozzes/application/server/session/impl/SessionManagerImpl.java
/trunk/mozzesApplication/mozzesApplicationServer/src/main/java/org/mozzes/application/server/session/impl/package-info.java
/trunk/mozzesApplication/mozzesApplicationServer/src/main/java/org/mozzes/application/server/session/package-info.java
/trunk/mozzesApplication/mozzesApplicationServer/src/main/java/org/mozzes/application/server/transaction/impl/TransactionContext.java
/trunk/mozzesApplication/mozzesApplicationServer/src/main/java/org/mozzes/application/server/transaction/impl/TransactionContextProvider.java
/trunk/mozzesApplication/mozzesApplicationServer/src/main/java/org/mozzes/application/server/transaction/impl/TransactionInterceptor.java
/trunk/mozzesApplication/mozzesApplicationServer/src/main/java/org/mozzes/application/server/transaction/impl/TransactionManagerImpl.java
/trunk/mozzesApplication/mozzesApplicationServer/src/main/java/org/mozzes/application/server/transaction/impl/TransactionStack.java
/trunk/mozzesApplication/mozzesApplicationServer/src/main/java/org/mozzes/application/server/transaction/impl/TransactionStackProvider.java
/trunk/mozzesApplication/mozzesApplicationServer/src/main/java/org/mozzes/application/server/transaction/impl/package-info.java
/trunk/mozzesApplication/mozzesApplicationServer/src/main/java/org/mozzes/application/server/transaction/package-info.java
/trunk/mozzesApplication/mozzesApplicationServer/src/test/java/org/mozzes/application/server/MozzesTestBase.java
/trunk/mozzesApplication/mozzesApplicationServer/src/test/java/org/mozzes/application/server/TestMozzesServer.java
/trunk/mozzesApplication/mozzesApplicationServer/src/test/java/org/mozzes/application/server/lifecycle/TestLifeCycleManager.java
/trunk/mozzesApplication/mozzesApplicationServer/src/test/java/org/mozzes/application/server/mockups/MockUpAuthorizationService.java
/trunk/mozzesApplication/mozzesApplicationServer/src/test/java/org/mozzes/application/server/mockups/MockUpIgnoredException.java
/trunk/mozzesApplication/mozzesApplicationServer/src/test/java/org/mozzes/application/server/mockups/MockUpInjector.java
/trunk/mozzesApplication/mozzesApplicationServer/src/test/java/org/mozzes/application/server/mockups/MockUpInvocation.java
/trunk/mozzesApplication/mozzesApplicationServer/src/test/java/org/mozzes/application/server/mockups/MockUpRequestManager.java
/trunk/mozzesApplication/mozzesApplicationServer/src/test/java/org/mozzes/application/server/mockups/MockUpSessionManager.java
/trunk/mozzesApplication/mozzesApplicationServer/src/test/java/org/mozzes/application/server/mockups/MockUpTransactionProvider.java
/trunk/mozzesApplication/mozzesApplicationServer/src/test/java/org/mozzes/application/server/mockups/MockuUpInvocationHandler.java
/trunk/mozzesApplication/mozzesApplicationServer/src/test/java/org/mozzes/application/server/mockups/MockupTransactionStackProvider.java
/trunk/mozzesApplication/mozzesApplicationServer/src/test/java/org/mozzes/application/server/mockups/ServerService1.java
/trunk/mozzesApplication/mozzesApplicationServer/src/test/java/org/mozzes/application/server/mockups/ServerService1Impl.java
/trunk/mozzesApplication/mozzesApplicationServer/src/test/java/org/mozzes/application/server/request/impl/TestRequestProcessor.java
/trunk/mozzesApplication/mozzesApplicationServer/src/test/java/org/mozzes/application/server/service/impl/TestSessionService.java
/trunk/mozzesApplication/mozzesApplicationServer/src/test/java/org/mozzes/application/server/session/impl/TestSessionContext.java
/trunk/mozzesApplication/mozzesApplicationServer/src/test/java/org/mozzes/application/server/session/impl/TestSessionManager.java
/trunk/mozzesApplication/mozzesApplicationServer/src/test/java/org/mozzes/application/server/session/impl/TestSessionManagerCleanupThread.java
/trunk/mozzesApplication/mozzesApplicationServer/src/test/java/org/mozzes/application/server/transaction/impl/TestTransactionInterceptor.java
/trunk/mozzesApplication/mozzesApplicationServer/src/test/java/org/mozzes/application/server/transaction/impl/TestTransactionStack.java
/trunk/mozzesApplication/mozzesApplicationVaadin/src/main/java/org/mozzes/application/vaadin/VaadinServlet.java
/trunk/mozzesApplication/mozzesApplicationVaadin/src/main/java/org/mozzes/application/vaadin/VaadinServletConfig.java
/trunk/mozzesInvocation/mozzesInvocationCommon/src/main/java/org/mozzes/invocation/common/Invocation.java
/trunk/mozzesInvocation/mozzesInvocationCommon/src/main/java/org/mozzes/invocation/common/InvocationProxy.java
/trunk/mozzesInvocation/mozzesInvocationCommon/src/main/java/org/mozzes/invocation/common/handler/ImplementationInvocationHandler.java
/trunk/mozzesInvocation/mozzesInvocationCommon/src/main/java/org/mozzes/invocation/common/handler/InvocationHandler.java
/trunk/mozzesInvocation/mozzesInvocationCommon/src/main/java/org/mozzes/invocation/common/interceptor/InvocationInterceptor.java
/trunk/mozzesInvocation/mozzesInvocationCommon/src/main/java/org/mozzes/invocation/common/interceptor/InvocationInterceptorChain.java
/trunk/mozzesInvocation/mozzesInvocationGuice/src/main/java/org/mozzes/invocation/guice/InternalInjectorProvider.java
/trunk/mozzesInvocation/mozzesInvocationGuice/src/main/java/org/mozzes/invocation/guice/ServiceChainConfiguration.java
/trunk/mozzesRemoting/mozzesRemotingClient/src/main/java/org/mozzes/remoting/client/RemotingClient.java
/trunk/mozzesRemoting/mozzesRemotingClient/src/main/java/org/mozzes/remoting/client/RemotingClientFactory.java
/trunk/mozzesRemoting/mozzesRemotingClient/src/main/java/org/mozzes/remoting/client/RemotingExecutorProviderFactory.java
/trunk/mozzesRemoting/mozzesRemotingClient/src/main/java/org/mozzes/remoting/client/core/DefaultRemotingClientFactory.java
/trunk/mozzesRemoting/mozzesRemotingClient/src/main/java/org/mozzes/remoting/client/core/RemotingClientImpl.java
/trunk/mozzesRemoting/mozzesRemotingClient/src/main/java/org/mozzes/remoting/client/netty/MozzesClientHandler.java
/trunk/mozzesRemoting/mozzesRemotingClient/src/main/java/org/mozzes/remoting/client/netty/MozzesClientPipelineFactory.java
/trunk/mozzesRemoting/mozzesRemotingClient/src/main/java/org/mozzes/remoting/client/netty/NettyRemotingClient.java
/trunk/mozzesRemoting/mozzesRemotingClient/src/main/java/org/mozzes/remoting/client/netty/NettyRemotingClientProvider.java
/trunk/mozzesRemoting/mozzesRemotingClient/src/main/java/org/mozzes/remoting/client/netty/NettyRemotingClientTest.java
/trunk/mozzesRemoting/mozzesRemotingClient/src/main/java/org/mozzes/remoting/client/netty/UptimeClientHandler.java
/trunk/mozzesRemoting/mozzesRemotingClient/src/main/java/org/mozzes/remoting/client/ondemand/RemotingClientOnDemand.java
/trunk/mozzesRemoting/mozzesRemotingClient/src/main/java/org/mozzes/remoting/client/ondemand/RemotingOnDemandClientProvider.java
/trunk/mozzesRemoting/mozzesRemotingClient/src/main/java/org/mozzes/remoting/client/pool/RemotingClientPool.java
/trunk/mozzesRemoting/mozzesRemotingClient/src/main/java/org/mozzes/remoting/client/pool/RemotingClientPoolWrapper.java
/trunk/mozzesRemoting/mozzesRemotingClient/src/main/java/org/mozzes/remoting/client/simple/SimpleClientProvider.java
/trunk/mozzesRemoting/mozzesRemotingClient/src/test/java/org/mozzes/remoting/client/pool/MockupRemotingClientFactory.java
/trunk/mozzesRemoting/mozzesRemotingClient/src/test/java/org/mozzes/remoting/client/pool/MockupServer.java
/trunk/mozzesRemoting/mozzesRemotingClient/src/test/java/org/mozzes/remoting/client/pool/RemotingExecutorPoolManagerConfigurationTest.java
/trunk/mozzesRemoting/mozzesRemotingClient/src/test/java/org/mozzes/remoting/client/pool/ResetTest.java
/trunk/mozzesRemoting/mozzesRemotingClient/src/test/java/org/mozzes/remoting/client/pool/StressTest.java
/trunk/mozzesRemoting/mozzesRemotingCommon/src/main/java/org/mozzes/remoting/common/RemotingAction.java
/trunk/mozzesRemoting/mozzesRemotingCommon/src/main/java/org/mozzes/remoting/common/RemotingActionExecutor.java
/trunk/mozzesRemoting/mozzesRemotingCommon/src/main/java/org/mozzes/remoting/common/RemotingActionExecutorProvider.java
/trunk/mozzesRemoting/mozzesRemotingCommon/src/main/java/org/mozzes/remoting/common/RemotingClientListener.java
/trunk/mozzesRemoting/mozzesRemotingCommon/src/main/java/org/mozzes/remoting/common/RemotingConfiguration.java
/trunk/mozzesRemoting/mozzesRemotingCommon/src/main/java/org/mozzes/remoting/common/RemotingException.java
/trunk/mozzesRemoting/mozzesRemotingCommon/src/main/java/org/mozzes/remoting/common/RemotingProtocol.java
/trunk/mozzesRemoting/mozzesRemotingCommon/src/main/java/org/mozzes/remoting/common/RemotingResponse.java
/trunk/mozzesRemoting/mozzesRemotingCommon/src/main/java/org/mozzes/remoting/common/netty/ClientIdentificationMessage.java
/trunk/mozzesRemoting/mozzesRemotingCommon/src/main/java/org/mozzes/remoting/common/netty/FutureAction.java
/trunk/mozzesRemoting/mozzesRemotingCommon/src/main/java/org/mozzes/remoting/common/netty/MessagePropertyDecoder.java
/trunk/mozzesRemoting/mozzesRemotingCommon/src/main/java/org/mozzes/remoting/common/netty/MessagePropertyEncoder.java
/trunk/mozzesRemoting/mozzesRemotingCommon/src/main/java/org/mozzes/remoting/common/netty/MozzesObjectDecoder.java
/trunk/mozzesRemoting/mozzesRemotingCommon/src/main/java/org/mozzes/remoting/common/netty/MozzesObjectEncoder.java
/trunk/mozzesRemoting/mozzesRemotingCommon/src/main/java/org/mozzes/remoting/common/netty/Unique.java
/trunk/mozzesRemoting/mozzesRemotingServer/src/main/java/org/mozzes/remoting/server/RemotingActionDispatcher.java
/trunk/mozzesRemoting/mozzesRemotingServer/src/main/java/org/mozzes/remoting/server/RemotingActionMapping.java
/trunk/mozzesRemoting/mozzesRemotingServer/src/main/java/org/mozzes/remoting/server/RemotingClientInfo.java
/trunk/mozzesRemoting/mozzesRemotingServer/src/main/java/org/mozzes/remoting/server/RemotingClientListener.java
/trunk/mozzesRemoting/mozzesRemotingServer/src/main/java/org/mozzes/remoting/server/RemotingClientManager.java
/trunk/mozzesRemoting/mozzesRemotingServer/src/main/java/org/mozzes/remoting/server/RemotingServer.java
/trunk/mozzesRemoting/mozzesRemotingServer/src/main/java/org/mozzes/remoting/server/RemotingServerFactory.java
/trunk/mozzesRemoting/mozzesRemotingServer/src/main/java/org/mozzes/remoting/server/netty/ClientGroup.java
/trunk/mozzesRemoting/mozzesRemotingServer/src/main/java/org/mozzes/remoting/server/netty/ClientIdentity.java
/trunk/mozzesRemoting/mozzesRemotingServer/src/main/java/org/mozzes/remoting/server/netty/IdentificationHandler.java
/trunk/mozzesRemoting/mozzesRemotingServer/src/main/java/org/mozzes/remoting/server/netty/MozzesServerHandler.java
/trunk/mozzesRemoting/mozzesRemotingServer/src/main/java/org/mozzes/remoting/server/netty/MozzesServerPipelineFactory.java
/trunk/mozzesRemoting/mozzesRemotingServer/src/main/java/org/mozzes/remoting/server/netty/NettyRemotingServer.java
/trunk/mozzesRemoting/mozzesRemotingServer/src/main/java/org/mozzes/remoting/server/netty/NettyServerConfiguration.java
/trunk/mozzesRemoting/mozzesRemotingServer/src/main/java/org/mozzes/remoting/server/netty/OneResponse.java
/trunk/mozzesRemoting/mozzesRemotingServer/src/main/java/org/mozzes/remoting/server/netty/ServerListener.java
/trunk/mozzesUtils/src/main/java/org/mozzes/utils/ClassBasedObjectMappingRepository.java
/trunk/mozzesUtils/src/main/java/org/mozzes/utils/CollectionUtils.java
/trunk/mozzesUtils/src/main/java/org/mozzes/utils/JavaUtils.java
/trunk/mozzesUtils/src/main/java/org/mozzes/utils/StringUtils.java
/trunk/mozzesUtils/src/main/java/org/mozzes/utils/filtering/ComparePropertyFilter.java
/trunk/mozzesUtils/src/main/java/org/mozzes/utils/filtering/EQPropertyFilter.java
/trunk/mozzesUtils/src/main/java/org/mozzes/utils/filtering/ExpressionFilter.java
/trunk/mozzesUtils/src/main/java/org/mozzes/utils/filtering/FakeFilter.java
/trunk/mozzesUtils/src/main/java/org/mozzes/utils/filtering/Filter.java
/trunk/mozzesUtils/src/main/java/org/mozzes/utils/filtering/FilterChangeListener.java
/trunk/mozzesUtils/src/main/java/org/mozzes/utils/filtering/FilterContainer.java
/trunk/mozzesUtils/src/main/java/org/mozzes/utils/filtering/FilterUtils.java
/trunk/mozzesUtils/src/main/java/org/mozzes/utils/filtering/FilterWrapper.java
/trunk/mozzesUtils/src/main/java/org/mozzes/utils/filtering/GEPropertyFilter.java
/trunk/mozzesUtils/src/main/java/org/mozzes/utils/filtering/GTPropertyFilter.java
/trunk/mozzesUtils/src/main/java/org/mozzes/utils/filtering/InFilter.java
/trunk/mozzesUtils/src/main/java/org/mozzes/utils/filtering/InInternalCollectionFilter.java
/trunk/mozzesUtils/src/main/java/org/mozzes/utils/filtering/InPropertyFilter.java
/trunk/mozzesUtils/src/main/java/org/mozzes/utils/filtering/LEPropertyFilter.java
/trunk/mozzesUtils/src/main/java/org/mozzes/utils/filtering/LTPropertyFilter.java
/trunk/mozzesUtils/src/main/java/org/mozzes/utils/filtering/LikePropertyFilter.java
/trunk/mozzesUtils/src/main/java/org/mozzes/utils/filtering/NEPropertyFilter.java
/trunk/mozzesUtils/src/main/java/org/mozzes/utils/filtering/NoResultsFilter.java
/trunk/mozzesUtils/src/main/java/org/mozzes/utils/filtering/NotFilter.java
/trunk/mozzesUtils/src/main/java/org/mozzes/utils/filtering/PropertyFilter.java
/trunk/mozzesUtils/src/main/java/org/mozzes/utils/filtering/PropertyInInternalCollection.java
/trunk/mozzesUtils/src/main/java/org/mozzes/utils/misc/BooleanComparator.java
/trunk/mozzesUtils/src/main/java/org/mozzes/utils/misc/DateComparator.java
/trunk/mozzesUtils/src/main/java/org/mozzes/utils/reflection/Invoker.java
/trunk/mozzesUtils/src/main/java/org/mozzes/utils/reflection/MethodDeclaration.java
/trunk/mozzesUtils/src/main/java/org/mozzes/utils/reflection/ReflectionException.java
/trunk/mozzesUtils/src/main/java/org/mozzes/utils/reflection/ReflectionUtils.java
/trunk/mozzesUtils/src/main/java/org/mozzes/utils/reflection/ReflectiveMethod.java
/trunk/mozzesUtils/src/main/java/org/mozzes/utils/rulesengine/Rule.java
/trunk/mozzesUtils/src/main/java/org/mozzes/utils/rulesengine/RulesEngine.java
/trunk/mozzesUtils/src/main/java/org/mozzes/utils/rulesengine/rules/CompositeRule.java
/trunk/mozzesUtils/src/main/java/org/mozzes/utils/rulesengine/rules/InvertedRule.java
/trunk/mozzesUtils/src/main/java/org/mozzes/utils/rulesengine/rules/IsNull.java
/trunk/mozzesUtils/src/main/java/org/mozzes/utils/rulesengine/rules/TrueRule.java
/trunk/mozzesUtils/src/test/java/org/mozzes/utils/CollectionUtilsTest.java
/trunk/mozzesUtils/src/test/java/org/mozzes/utils/JavaUtilsTest.java
/trunk/mozzesUtils/src/test/java/org/mozzes/utils/StringUtilsTest.java
/trunk/mozzesUtils/src/test/java/org/mozzes/utils/filtering/ComparePropertyFilterTest.java
/trunk/mozzesUtils/src/test/java/org/mozzes/utils/filtering/DummyClass.java
/trunk/mozzesUtils/src/test/java/org/mozzes/utils/filtering/EQPropertyFilterTest.java
/trunk/mozzesUtils/src/test/java/org/mozzes/utils/filtering/ExpressionFilterTest.java
/trunk/mozzesUtils/src/test/java/org/mozzes/utils/filtering/FakeFilterTest.java
/trunk/mozzesUtils/src/test/java/org/mozzes/utils/filtering/FilterUtilsTest.java
/trunk/mozzesUtils/src/test/java/org/mozzes/utils/filtering/FilterWrapperTest.java
/trunk/mozzesUtils/src/test/java/org/mozzes/utils/filtering/GEPropertyFilterTest.java
/trunk/mozzesUtils/src/test/java/org/mozzes/utils/filtering/GTPropertyFilterTest.java
/trunk/mozzesUtils/src/test/java/org/mozzes/utils/filtering/InFilterTest.java
/trunk/mozzesUtils/src/test/java/org/mozzes/utils/filtering/InInternalCollectionFilterTest.java
/trunk/mozzesUtils/src/test/java/org/mozzes/utils/filtering/InPropertyFilterTest.java
/trunk/mozzesUtils/src/test/java/org/mozzes/utils/filtering/LEPropertyFilterTest.java
/trunk/mozzesUtils/src/test/java/org/mozzes/utils/filtering/LTPropertyFilterTest.java
/trunk/mozzesUtils/src/test/java/org/mozzes/utils/filtering/LikeContainsPropertyFilterTest.java
/trunk/mozzesUtils/src/test/java/org/mozzes/utils/filtering/LikePropertyFilterTest.java
/trunk/mozzesUtils/src/test/java/org/mozzes/utils/filtering/NEPropertyFilterTest.java
/trunk/mozzesUtils/src/test/java/org/mozzes/utils/filtering/NoResultsFilterTest.java
/trunk/mozzesUtils/src/test/java/org/mozzes/utils/filtering/NotFilterTest.java
/trunk/mozzesUtils/src/test/java/org/mozzes/utils/filtering/PropertyFilterTest.java
/trunk/mozzesUtils/src/test/java/org/mozzes/utils/filtering/PropertyInInternalCollectionTest.java
/trunk/mozzesUtils/src/test/java/org/mozzes/utils/misc/BooleanComparatorTest.java
/trunk/mozzesUtils/src/test/java/org/mozzes/utils/misc/DateComparatorTest.java
/trunk/mozzesUtils/src/test/java/org/mozzes/utils/reflection/ReflectionUtilsTest.java
=======================================
---
/trunk/mozzesApplication/mozzesApplicationCommon/src/main/java/org/mozzes/application/common/client/MozzesClient.java
Sat Feb 27 06:56:25 2010
+++
/trunk/mozzesApplication/mozzesApplicationCommon/src/main/java/org/mozzes/application/common/client/MozzesClient.java
Sat Dec 1 16:22:49 2012
@@ -42,77 +42,77 @@
*/
public class MozzesClient implements SessionIdProvider {
- private String sessionId;
+ private String sessionId;
- private final Injector injector;
+ private final Injector injector;
- /**
- * Instantiates a new mozzes client based on provided configuration.
- */
- public MozzesClient(MozzesClientConfiguration clientConfiguration) {
- this(clientConfiguration, new ArrayList<Module>());
- }
+ /**
+ * Instantiates a new mozzes client based on provided configuration.
+ */
+ public MozzesClient(MozzesClientConfiguration clientConfiguration) {
+ this(clientConfiguration, new ArrayList<Module>());
+ }
- /**
- * Instantiates a new mozzes client based on provided configuration with
additional custom guice modules.
- */
- public MozzesClient(MozzesClientConfiguration clientConfiguration,
List<Module> customModules) {
- injector = clientConfiguration.createInjector(this, customModules);
- }
+ /**
+ * Instantiates a new mozzes client based on provided configuration with
additional custom guice modules.
+ */
+ public MozzesClient(MozzesClientConfiguration clientConfiguration,
List<Module> customModules) {
+ injector = clientConfiguration.createInjector(this, customModules);
+ }
- /**
- * Method for logging user on the server.
- *
- * @see SessionService#login(String, String)
- */
- public void login(String username, String password) throws
AuthorizationFailedException {
- sessionId = getService(SessionService.class).login(username, password);
- }
+ /**
+ * Method for logging user on the server.
+ *
+ * @see SessionService#login(String, String)
+ */
+ public void login(String username, String password) throws
AuthorizationFailedException {
+ sessionId = getService(SessionService.class).login(username, password);
+ }
- /**
- * @see SessionService#logout()
- */
- public void logout() {
- getService(SessionService.class).logout();
- sessionId = null;
- }
+ /**
+ * @see SessionService#logout()
+ */
+ public void logout() {
+ getService(SessionService.class).logout();
+ sessionId = null;
+ }
- /**
- * @see <a
- *
href="
http://google-guice.googlecode.com/svn/trunk/javadoc/index.html?com/google/inject/Injector.html">Injector
- * API</a>
- */
- public final <I> I getService(Class<I> serviceInterface) {
- return injector.getInstance(serviceInterface);
- }
+ /**
+ * @see <a
+ *
href="
http://google-guice.googlecode.com/svn/trunk/javadoc/index.html?com/google/inject/Injector.html">Injector
+ * API</a>
+ */
+ public final <I> I getService(Class<I> serviceInterface) {
+ return injector.getInstance(serviceInterface);
+ }
- /**
- * @see <a
- *
href="
http://google-guice.googlecode.com/svn/trunk/javadoc/index.html?com/google/inject/Injector.html">Injector
- * API</a>
- */
- public final void injectServices(Object o) {
- injector.injectMembers(o);
- }
+ /**
+ * @see <a
+ *
href="
http://google-guice.googlecode.com/svn/trunk/javadoc/index.html?com/google/inject/Injector.html">Injector
+ * API</a>
+ */
+ public final void injectServices(Object o) {
+ injector.injectMembers(o);
+ }
- /**
- * @see <a
- *
href="
http://google-guice.googlecode.com/svn/trunk/javadoc/index.html?com/google/inject/Injector.html">Injector
- * API</a>
- */
- public final <I> Provider<I> getServiceProvider(Class<I>
serviceInterface) {
- return injector.getProvider(serviceInterface);
- }
+ /**
+ * @see <a
+ *
href="
http://google-guice.googlecode.com/svn/trunk/javadoc/index.html?com/google/inject/Injector.html">Injector
+ * API</a>
+ */
+ public final <I> Provider<I> getServiceProvider(Class<I>
serviceInterface) {
+ return injector.getProvider(serviceInterface);
+ }
- /*
- * @see SessionIdProvider#getSessionId()
- */
- @Override
- public String getSessionId() {
- return sessionId;
- }
+ /*
+ * @see SessionIdProvider#getSessionId()
+ */
+ @Override
+ public String getSessionId() {
+ return sessionId;
+ }
- protected void setSessionId(String sessionId) {
- this.sessionId = sessionId;
- }
+ protected void setSessionId(String sessionId) {
+ this.sessionId = sessionId;
+ }
}
=======================================
---
/trunk/mozzesApplication/mozzesApplicationCommon/src/main/java/org/mozzes/application/common/client/MozzesClientConfiguration.java
Sat Feb 27 06:56:25 2010
+++
/trunk/mozzesApplication/mozzesApplicationCommon/src/main/java/org/mozzes/application/common/client/MozzesClientConfiguration.java
Sat Dec 1 16:22:49 2012
@@ -46,232 +46,231 @@
*/
public abstract class MozzesClientConfiguration {
- private static final Logger logger =
LoggerFactory.getLogger(MozzesClientConfiguration.class);
-
- /** Interceptors that will be called when client executes server's
service methods. */
- protected final List<Class<? extends InvocationInterceptor>>
userInterceptors = new ArrayList<Class<? extends InvocationInterceptor>>();
+ private static final Logger logger =
LoggerFactory.getLogger(MozzesClientConfiguration.class);
- /**
- * adds new interceptor that will wrap around client calls to the server
service methods
- */
- public final void addServiceInterceptor(Class<? extends
InvocationInterceptor> interceptor) {
- userInterceptors.add(interceptor);
- }
+ /** Interceptors that will be called when client executes server's
service methods. */
+ protected final List<Class<? extends InvocationInterceptor>>
userInterceptors = new ArrayList<Class<? extends InvocationInterceptor>>();
- protected List<String> getServices(Injector injector) {
- return injector.getInstance(LookupService.class).getServices();
- }
+ /**
+ * adds new interceptor that will wrap around client calls to the server
service methods
+ */
+ public final void addServiceInterceptor(Class<? extends
InvocationInterceptor> interceptor) {
+ userInterceptors.add(interceptor);
+ }
- /**
- * Creates injector for the provided sessionId. Injector is configured
with the available server's services.
- */
- protected Injector createInjector(SessionIdProvider sessionIDProvider,
List<Module> customModules) {
+ protected List<String> getServices(Injector injector) {
+ return injector.getInstance(LookupService.class).getServices();
+ }
- // first we need to create "partial" injector to reach the server and
see what services are available
- AbstractModule defaultModule = createDefaultModule(sessionIDProvider);
+ /**
+ * Creates injector for the provided sessionId. Injector is configured
with the available server's services.
+ */
+ protected Injector createInjector(SessionIdProvider sessionIDProvider,
List<Module> customModules) {
- // now create empty injector provider
- InternalInjectorProvider injectorProvider = new
InternalInjectorProvider();
+ // first we need to create "partial" injector to reach the server and
see what services are available
+ AbstractModule defaultModule = createDefaultModule(sessionIDProvider);
- // create interceptor configuration
- ServiceChainConfiguration serviceChainConfiguration = new
ServiceChainConfiguration(injectorProvider);
- serviceChainConfiguration.addInterceptors(userInterceptors);
+ // now create empty injector provider
+ InternalInjectorProvider injectorProvider = new
InternalInjectorProvider();
- List<Module> allModules = new ArrayList<Module>(customModules.size() +
2);
+ // create interceptor configuration
+ ServiceChainConfiguration serviceChainConfiguration = new
ServiceChainConfiguration(injectorProvider);
+ serviceChainConfiguration.addInterceptors(userInterceptors);
- allModules.add(defaultModule);
- allModules.add(new
UserModule(getServices(Guice.createInjector(defaultModule)),
sessionIDProvider,
- serviceChainConfiguration));
+ List<Module> allModules = new ArrayList<Module>(customModules.size() +
2);
- allModules.addAll(customModules);
+ allModules.add(defaultModule);
+ allModules.add(new
UserModule(getServices(Guice.createInjector(defaultModule)),
sessionIDProvider,
+ serviceChainConfiguration));
- // create full injector with userModule that's binding server's services
and interceptors
- Injector returnValue = Guice.createInjector(allModules);
+ allModules.addAll(customModules);
- // injectorProvider is now configured properly
- injectorProvider.setInjector(returnValue);
+ // create full injector with userModule that's binding server's
services and interceptors
+ Injector returnValue = Guice.createInjector(allModules);
- // now we can return fully configured injector
- return returnValue;
- }
+ // injectorProvider is now configured properly
+ injectorProvider.setInjector(returnValue);
- /**
- * This is the extension point for the subclasses that specifies real
implementators of invocationInterface for the
- * specified sessionId
- */
- protected abstract <I> InvocationHandler<I> getInvocationHandler(Class<I>
invocationInterface,
- SessionIdProvider sessionIDProvider);
+ // now we can return fully configured injector
+ return returnValue;
+ }
- /**
- * Binds core Interfaces to their implementations
- */
- protected AbstractModule createDefaultModule(final SessionIdProvider
sessionIDProvider) {
- return new AbstractModule() {
- @Override
- protected void configure() {
- bind(SessionIdProvider.class).toInstance(sessionIDProvider);
-
bind(LookupService.class).toProvider(getImplementationProvider(LookupService.class,
sessionIDProvider));
- }
- };
- }
+ /**
+ * This is the extension point for the subclasses that specifies real
implementators of invocationInterface for the
+ * specified sessionId
+ */
+ protected abstract <I> InvocationHandler<I>
getInvocationHandler(Class<I> invocationInterface,
+ SessionIdProvider sessionIDProvider);
- /**
- * Returns the object responsible for creating implementations of the
invocationInterface.
- */
- protected <I> Provider<I> getImplementationProvider(Class<I>
invocationInterface,
- SessionIdProvider sessionIDProvider) {
+ /**
+ * Binds core Interfaces to their implementations
+ */
+ protected AbstractModule createDefaultModule(final SessionIdProvider
sessionIDProvider) {
+ return new AbstractModule() {
+ @Override
+ protected void configure() {
+ bind(SessionIdProvider.class).toInstance(sessionIDProvider);
+
bind(LookupService.class).toProvider(getImplementationProvider(LookupService.class,
sessionIDProvider));
+ }
+ };
+ }
- return new InvocationProxyProvider<I>(invocationInterface,
getInvocationHandler(invocationInterface,
- sessionIDProvider));
- }
+ /**
+ * Returns the object responsible for creating implementations of the
invocationInterface.
+ */
+ protected <I> Provider<I> getImplementationProvider(Class<I>
invocationInterface, SessionIdProvider sessionIDProvider) {
- /**
- * The Class InvocationProxyProvider Provides {@link InvocationProxy} for
interface I.
- *
- * @see <a
- *
href="
http://google-guice.googlecode.com/svn/trunk/javadoc/index.html?com/google/inject/Provider.html">Provider
- * API</a>
- *
- * @author Perica Milosevic
- */
- private class InvocationProxyProvider<I> implements Provider<I> {
+ return new InvocationProxyProvider<I>(invocationInterface,
getInvocationHandler(invocationInterface,
+ sessionIDProvider));
+ }
- /** The invocation interface. */
- private final Class<I> invocationInterface;
+ /**
+ * The Class InvocationProxyProvider Provides {@link InvocationProxy}
for interface I.
+ *
+ * @see <a
+ *
href="
http://google-guice.googlecode.com/svn/trunk/javadoc/index.html?com/google/inject/Provider.html">Provider
+ * API</a>
+ *
+ * @author Perica Milosevic
+ */
+ private class InvocationProxyProvider<I> implements Provider<I> {
- /** The invocation interface implementation. */
- private final InvocationHandler<I> invocationHandler;
+ /** The invocation interface. */
+ private final Class<I> invocationInterface;
- public InvocationProxyProvider(Class<I> invocationInterface,
InvocationHandler<I> invocationHandler) {
- this.invocationInterface = invocationInterface;
- this.invocationHandler = invocationHandler;
- }
+ /** The invocation interface implementation. */
+ private final InvocationHandler<I> invocationHandler;
- /*
- * @see Provider#get()
- */
- @Override
- public I get() {
- return InvocationProxy.newInstance(invocationInterface,
invocationHandler);
- }
- }
+ public InvocationProxyProvider(Class<I> invocationInterface,
InvocationHandler<I> invocationHandler) {
+ this.invocationInterface = invocationInterface;
+ this.invocationHandler = invocationHandler;
+ }
- /**
- * Configures GoogleGuice injector for the specified
sessionId(sessionIdProvider) with list of services and
- * interceptor chain.
- */
- protected class UserModule extends AbstractModule {
- /** The services. */
- private final List<String> services;
- private final SessionIdProvider sessionIDProvider;
- private final ServiceChainConfiguration serviceChainConfig;
+ /*
+ * @see Provider#get()
+ */
+ @Override
+ public I get() {
+ return InvocationProxy.newInstance(invocationInterface,
invocationHandler);
+ }
+ }
+
+ /**
+ * Configures GoogleGuice injector for the specified
sessionId(sessionIdProvider) with list of services and
+ * interceptor chain.
+ */
+ protected class UserModule extends AbstractModule {
+ /** The services. */
+ private final List<String> services;
+ private final SessionIdProvider sessionIDProvider;
+ private final ServiceChainConfiguration serviceChainConfig;
- public UserModule(List<String> services, SessionIdProvider
sessionIDProvider,
- ServiceChainConfiguration serviceChainConfig) {
- this.services = services;
- this.sessionIDProvider = sessionIDProvider;
- this.serviceChainConfig = serviceChainConfig;
- }
+ public UserModule(List<String> services, SessionIdProvider
sessionIDProvider,
+ ServiceChainConfiguration serviceChainConfig) {
+ this.services = services;
+ this.sessionIDProvider = sessionIDProvider;
+ this.serviceChainConfig = serviceChainConfig;
+ }
- /*
- * go thru the services and bind them to the intercepted implementations
- *
- * @see AbstractModule#configure()
- */
- @Override
- protected void configure() {
- Binder binder = binder();
- for (String service : services){
- try {
- Class<?> clazz = Class.forName(service);
- bindService(binder, clazz);
- } catch(LinkageError e){
- logger.warn("Class " + service + " not found, binding will NOT be
done", e);
- } catch (ClassNotFoundException e){
- logger.warn("Class " + service + " not found, binding will NOT be
done", e);
- }
- }
- }
+ /*
+ * go thru the services and bind them to the intercepted
implementations
+ *
+ * @see AbstractModule#configure()
+ */
+ @Override
+ protected void configure() {
+ Binder binder = binder();
+ for (String service : services) {
+ try {
+ Class<?> clazz = Class.forName(service);
+ bindService(binder, clazz);
+ } catch (LinkageError e) {
+ logger.warn("Class " + service + " not found, binding will NOT
be done", e);
+ } catch (ClassNotFoundException e) {
+ logger.warn("Class " + service + " not found, binding will NOT
be done", e);
+ }
+ }
+ }
- private <I> void bindService(Binder binder, Class<I>
invocationInterface) {
-
binder.bind(invocationInterface).toProvider(getIIP(invocationInterface));
- }
+ private <I> void bindService(Binder binder, Class<I>
invocationInterface) {
+
binder.bind(invocationInterface).toProvider(getIIP(invocationInterface));
+ }
- /**
- * @return the implementation(actually implementation provider) for the
invocationInterface that's wrapping the
- * service call with the interceptor chain specified in the
interceptorChainConfig.<br>
- */
- private <I> InterceptedImplementationProvider<I> getIIP(Class<I>
invocationInterface) {
- return new InterceptedImplementationProvider<I>(invocationInterface,
serviceChainConfig,
- new InvocationHandlerProvider<I>(invocationInterface,
sessionIDProvider));
- }
+ /**
+ * @return the implementation(actually implementation provider) for
the invocationInterface that's wrapping the
+ * service call with the interceptor chain specified in the
interceptorChainConfig.<br>
+ */
+ private <I> InterceptedImplementationProvider<I> getIIP(Class<I>
invocationInterface) {
+ return new InterceptedImplementationProvider<I>(invocationInterface,
serviceChainConfig,
+ new InvocationHandlerProvider<I>(invocationInterface,
sessionIDProvider));
+ }
- }
+ }
- /**
- * Provides implementation for the interface I that's configured with all
interceptors.<br>
- * Basically it returns proxy instance that returns for the interface I
implementation that consists of the
- * interceptor chain and then interceptor chain calls real implementation
after wrapping with interceptors.
- */
- private class InterceptedImplementationProvider<I> implements Provider<I>
{
+ /**
+ * Provides implementation for the interface I that's configured with
all interceptors.<br>
+ * Basically it returns proxy instance that returns for the interface I
implementation that consists of the
+ * interceptor chain and then interceptor chain calls real
implementation after wrapping with interceptors.
+ */
+ private class InterceptedImplementationProvider<I> implements
Provider<I> {
- /** The invocation interface. */
- private final Class<I> invocationInterface;
+ /** The invocation interface. */
+ private final Class<I> invocationInterface;
- /** The handler provider. */
- private final InvocationHandlerProvider<I> handlerProvider;
+ /** The handler provider. */
+ private final InvocationHandlerProvider<I> handlerProvider;
- /** The interceptorChainConfig. */
- private final ServiceChainConfiguration serviceChainConfig;
+ /** The interceptorChainConfig. */
+ private final ServiceChainConfiguration serviceChainConfig;
- /**
- * Instantiates a new intercepted implementation provider.
- */
- InterceptedImplementationProvider(Class<I> invocationInterface,
ServiceChainConfiguration serviceChainConfig,
- InvocationHandlerProvider<I> handlerProvider) {
+ /**
+ * Instantiates a new intercepted implementation provider.
+ */
+ InterceptedImplementationProvider(Class<I> invocationInterface,
ServiceChainConfiguration serviceChainConfig,
+ InvocationHandlerProvider<I> handlerProvider) {
- this.invocationInterface = invocationInterface;
- this.handlerProvider = handlerProvider;
- this.serviceChainConfig = serviceChainConfig;
- }
+ this.invocationInterface = invocationInterface;
+ this.handlerProvider = handlerProvider;
+ this.serviceChainConfig = serviceChainConfig;
+ }
- /*
- * @see Provider#get()
- */
- @Override
- public I get() {
- return InvocationProxy.newInstance(invocationInterface,
serviceChainConfig.create(handlerProvider.get()));
- }
- }
+ /*
+ * @see Provider#get()
+ */
+ @Override
+ public I get() {
+ return InvocationProxy.newInstance(invocationInterface,
serviceChainConfig.create(handlerProvider.get()));
+ }
+ }
- /**
- * Provides invocation for the specified interface.<br>
- * This class is using abstract method from {@link
MozzesClientConfiguration} so specific
- * {@link MozzesClientConfiguration} will implement this method and thus
provide implementations for server's
- * services.
- */
- private class InvocationHandlerProvider<I> implements
Provider<InvocationHandler<I>> {
+ /**
+ * Provides invocation for the specified interface.<br>
+ * This class is using abstract method from {@link
MozzesClientConfiguration} so specific
+ * {@link MozzesClientConfiguration} will implement this method and thus
provide implementations for server's
+ * services.
+ */
+ private class InvocationHandlerProvider<I> implements
Provider<InvocationHandler<I>> {
- /** The invocation class. */
- private final Class<I> invocationClass;
+ /** The invocation class. */
+ private final Class<I> invocationClass;
- /** The session ID provider. */
- private final SessionIdProvider sessionIDProvider;
+ /** The session ID provider. */
+ private final SessionIdProvider sessionIDProvider;
- /**
- * Instantiates a new invocation handler provider.
- */
- public InvocationHandlerProvider(Class<I> invocationClass,
SessionIdProvider sessionIDProvider) {
- this.invocationClass = invocationClass;
- this.sessionIDProvider = sessionIDProvider;
- }
+ /**
+ * Instantiates a new invocation handler provider.
+ */
+ public InvocationHandlerProvider(Class<I> invocationClass,
SessionIdProvider sessionIDProvider) {
+ this.invocationClass = invocationClass;
+ this.sessionIDProvider = sessionIDProvider;
+ }
- /*
- * @see Provider#get()
- */
- @Override
- public InvocationHandler<I> get() {
- return getInvocationHandler(invocationClass, sessionIDProvider);
- }
- }
+ /*
+ * @see Provider#get()
+ */
+ @Override
+ public InvocationHandler<I> get() {
+ return getInvocationHandler(invocationClass, sessionIDProvider);
+ }
+ }
}
=======================================
---
/trunk/mozzesApplication/mozzesApplicationCommon/src/main/java/org/mozzes/application/common/exceptions/AuthorizationFailedException.java
Sat Feb 27 06:56:25 2010
+++
/trunk/mozzesApplication/mozzesApplicationCommon/src/main/java/org/mozzes/application/common/exceptions/AuthorizationFailedException.java
Sat Dec 1 16:22:49 2012
@@ -25,21 +25,21 @@
*/
public class AuthorizationFailedException extends MozzesException {
- private static final long serialVersionUID = 5234925841194197427L;
+ private static final long serialVersionUID = 5234925841194197427L;
- public AuthorizationFailedException() {
- super();
- }
+ public AuthorizationFailedException() {
+ super();
+ }
- public AuthorizationFailedException(String message, Throwable cause) {
- super(message, cause);
- }
+ public AuthorizationFailedException(String message, Throwable cause) {
+ super(message, cause);
+ }
- public AuthorizationFailedException(String message) {
- super(message);
- }
+ public AuthorizationFailedException(String message) {
+ super(message);
+ }
- public AuthorizationFailedException(Throwable cause) {
- super(cause);
- }
+ public AuthorizationFailedException(Throwable cause) {
+ super(cause);
+ }
}
=======================================
---
/trunk/mozzesApplication/mozzesApplicationCommon/src/main/java/org/mozzes/application/common/exceptions/ClientLoggingException.java
Sat Feb 27 06:56:25 2010
+++
/trunk/mozzesApplication/mozzesApplicationCommon/src/main/java/org/mozzes/application/common/exceptions/ClientLoggingException.java
Sat Dec 1 16:22:49 2012
@@ -20,7 +20,6 @@
*/
package org.mozzes.application.common.exceptions;
-
/**
* This exception is thrown when user is trying to login when he's already
logged in or when the client is trying to log
* out but he didn't logged in
@@ -29,21 +28,21 @@
*/
public class ClientLoggingException extends MozzesRuntimeException {
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = 1L;
- public ClientLoggingException() {
- super();
- }
+ public ClientLoggingException() {
+ super();
+ }
- public ClientLoggingException(String message, Throwable cause) {
- super(message, cause);
- }
+ public ClientLoggingException(String message, Throwable cause) {
+ super(message, cause);
+ }
- public ClientLoggingException(String message) {
- super(message);
- }
+ public ClientLoggingException(String message) {
+ super(message);
+ }
- public ClientLoggingException(Throwable cause) {
- super(cause);
- }
+ public ClientLoggingException(Throwable cause) {
+ super(cause);
+ }
}
=======================================
---
/trunk/mozzesApplication/mozzesApplicationCommon/src/main/java/org/mozzes/application/common/exceptions/MozzesException.java
Sat Feb 27 06:56:25 2010
+++
/trunk/mozzesApplication/mozzesApplicationCommon/src/main/java/org/mozzes/application/common/exceptions/MozzesException.java
Sat Dec 1 16:22:49 2012
@@ -25,21 +25,21 @@
*/
public class MozzesException extends Exception {
- private static final long serialVersionUID = 5197627322348048790L;
+ private static final long serialVersionUID = 5197627322348048790L;
- public MozzesException() {
- super();
- }
+ public MozzesException() {
+ super();
+ }
- public MozzesException(String message, Throwable cause) {
- super(message, cause);
- }
+ public MozzesException(String message, Throwable cause) {
+ super(message, cause);
+ }
- public MozzesException(String message) {
- super(message);
- }
+ public MozzesException(String message) {
+ super(message);
+ }
- public MozzesException(Throwable cause) {
- super(cause);
- }
+ public MozzesException(Throwable cause) {
+ super(cause);
+ }
}
=======================================
---
/trunk/mozzesApplication/mozzesApplicationCommon/src/main/java/org/mozzes/application/common/exceptions/MozzesRuntimeException.java
Sat Feb 27 06:56:25 2010
+++
/trunk/mozzesApplication/mozzesApplicationCommon/src/main/java/org/mozzes/application/common/exceptions/MozzesRuntimeException.java
Sat Dec 1 16:22:49 2012
@@ -26,21 +26,21 @@
*/
public class MozzesRuntimeException extends RuntimeException {
- private static final long serialVersionUID = -1360340051440896112L;
+ private static final long serialVersionUID = -1360340051440896112L;
- public MozzesRuntimeException() {
- super();
- }
+ public MozzesRuntimeException() {
+ super();
+ }
- public MozzesRuntimeException(String message, Throwable cause) {
- super(message, cause);
- }
+ public MozzesRuntimeException(String message, Throwable cause) {
+ super(message, cause);
+ }
- public MozzesRuntimeException(String message) {
- super(message);
- }
+ public MozzesRuntimeException(String message) {
+ super(message);
+ }
- public MozzesRuntimeException(Throwable cause) {
- super(cause);
- }
+ public MozzesRuntimeException(Throwable cause) {
+ super(cause);
+ }
}
=======================================
---
/trunk/mozzesApplication/mozzesApplicationCommon/src/main/java/org/mozzes/application/common/exceptions/UndeclaredServiceException.java
Sat Feb 27 06:56:25 2010
+++
/trunk/mozzesApplication/mozzesApplicationCommon/src/main/java/org/mozzes/application/common/exceptions/UndeclaredServiceException.java
Sat Dec 1 16:22:49 2012
@@ -21,14 +21,14 @@
package org.mozzes.application.common.exceptions;
/**
- * Wrapper exception for runtime exceptions thrown on server side
+ * Wrapper exception for runtime exceptions thrown on server side
*/
public class UndeclaredServiceException extends MozzesRuntimeException {
- private static final long serialVersionUID = -6804346073910462141L;
+ private static final long serialVersionUID = -6804346073910462141L;
- public UndeclaredServiceException(Throwable cause) {
- super(cause);
- }
+ public UndeclaredServiceException(Throwable cause) {
+ super(cause);
+ }
}
=======================================
---
/trunk/mozzesApplication/mozzesApplicationCommon/src/main/java/org/mozzes/application/common/service/LookupService.java
Sat Feb 27 06:56:25 2010
+++
/trunk/mozzesApplication/mozzesApplicationCommon/src/main/java/org/mozzes/application/common/service/LookupService.java
Sat Dec 1 16:22:49 2012
@@ -27,8 +27,8 @@
*/
public interface LookupService {
- /**
- * @return list of server's services available to the client.
- */
- List<String> getServices();
+ /**
+ * @return list of server's services available to the client.
+ */
+ List<String> getServices();
}
=======================================
---
/trunk/mozzesApplication/mozzesApplicationCommon/src/main/java/org/mozzes/application/common/service/SessionService.java
Sat Feb 27 06:56:25 2010
+++
/trunk/mozzesApplication/mozzesApplicationCommon/src/main/java/org/mozzes/application/common/service/SessionService.java
Sat Dec 1 16:22:49 2012
@@ -30,21 +30,24 @@
*/
public interface SessionService {
- /**
- * Login service method is called when client wants to log into the
mozzart application server.
- *
- * @return sessionId that's been assigned to the user
- *
- * @throws AuthorizationFailedException when logging is not successful.
- *
- * @throws ClientLoggingException when client is already logged in.
- */
- String login(String username, String password) throws
AuthorizationFailedException;
+ /**
+ * Login service method is called when client wants to log into the
mozzart application server.
+ *
+ * @return sessionId that's been assigned to the user
+ *
+ * @throws AuthorizationFailedException
+ * when logging is not successful.
+ *
+ * @throws ClientLoggingException
+ * when client is already logged in.
+ */
+ String login(String username, String password) throws
AuthorizationFailedException;
- /**
- * Logout method logs out the user from the server.
- *
- * @throws ClientLoggingException when client is not logged in.
- */
- void logout();
+ /**
+ * Logout method logs out the user from the server.
+ *
+ * @throws ClientLoggingException
+ * when client is not logged in.
+ */
+ void logout();
}
=======================================
---
/trunk/mozzesApplication/mozzesApplicationCommon/src/main/java/org/mozzes/application/common/session/SessionException.java
Sat Feb 27 06:56:25 2010
+++
/trunk/mozzesApplication/mozzesApplicationCommon/src/main/java/org/mozzes/application/common/session/SessionException.java
Sat Dec 1 16:22:49 2012
@@ -27,21 +27,21 @@
*/
public class SessionException extends MozzesRuntimeException {
- private static final long serialVersionUID = 3422680255426318014L;
+ private static final long serialVersionUID = 3422680255426318014L;
- public SessionException() {
- super();
- }
+ public SessionException() {
+ super();
+ }
- public SessionException(String message, Throwable cause) {
- super(message, cause);
- }
+ public SessionException(String message, Throwable cause) {
+ super(message, cause);
+ }
- public SessionException(String message) {
- super(message);
- }
+ public SessionException(String message) {
+ super(message);
+ }
- public SessionException(Throwable cause) {
- super(cause);
- }
+ public SessionException(Throwable cause) {
+ super(cause);
+ }
}
=======================================
---
/trunk/mozzesApplication/mozzesApplicationCommon/src/main/java/org/mozzes/application/common/session/SessionExpiredException.java
Sat Feb 27 06:56:25 2010
+++
/trunk/mozzesApplication/mozzesApplicationCommon/src/main/java/org/mozzes/application/common/session/SessionExpiredException.java
Sat Dec 1 16:22:49 2012
@@ -27,21 +27,21 @@
*/
public final class SessionExpiredException extends SessionException {
- private static final long serialVersionUID = -3225154612547949816L;
+ private static final long serialVersionUID = -3225154612547949816L;
- public SessionExpiredException() {
- super();
- }
+ public SessionExpiredException() {
+ super();
+ }
- public SessionExpiredException(String message) {
- super(message);
- }
+ public SessionExpiredException(String message) {
+ super(message);
+ }
- public SessionExpiredException(Throwable cause) {
- super(cause);
- }
+ public SessionExpiredException(Throwable cause) {
+ super(cause);
+ }
- public SessionExpiredException(String message, Throwable cause) {
- super(message, cause);
- }
+ public SessionExpiredException(String message, Throwable cause) {
+ super(message, cause);
+ }
}
=======================================
---
/trunk/mozzesApplication/mozzesApplicationCommon/src/main/java/org/mozzes/application/common/session/SessionIdProvider.java
Sat Feb 27 06:56:25 2010
+++
/trunk/mozzesApplication/mozzesApplicationCommon/src/main/java/org/mozzes/application/common/session/SessionIdProvider.java
Sat Dec 1 16:22:49 2012
@@ -25,8 +25,8 @@
*/
public interface SessionIdProvider {
- /**
- * Gets the current session id.
- */
- String getSessionId();
+ /**
+ * Gets the current session id.
+ */
+ String getSessionId();
}
=======================================
---
/trunk/mozzesApplication/mozzesApplicationCommon/src/main/java/org/mozzes/application/common/transaction/TransactionIgnored.java
Sat Feb 27 06:56:25 2010
+++
/trunk/mozzesApplication/mozzesApplicationCommon/src/main/java/org/mozzes/application/common/transaction/TransactionIgnored.java
Sat Dec 1 16:22:49 2012
@@ -35,5 +35,5 @@
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface TransactionIgnored {
- // marker annotation
+ // marker annotation
}
=======================================
---
/trunk/mozzesApplication/mozzesApplicationCommon/src/main/java/org/mozzes/application/common/transaction/Transactional.java
Sat Feb 27 06:56:25 2010
+++
/trunk/mozzesApplication/mozzesApplicationCommon/src/main/java/org/mozzes/application/common/transaction/Transactional.java
Sat Dec 1 16:22:49 2012
@@ -37,5 +37,5 @@
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface Transactional {
- // marker annotation
+ // marker annotation
}
=======================================
---
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/apps/TestBase.java
Sat Dec 1 15:14:30 2012
+++
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/apps/TestBase.java
Sat Dec 1 16:22:49 2012
@@ -66,7 +66,6 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-
/**
* Base Testing class every other test class extends this class.
*
@@ -75,153 +74,153 @@
* @author vita
*/
public abstract class TestBase {
-
- protected static final Logger logger =
LoggerFactory.getLogger(TestBase.class);
- protected MozzesServer server;
+ protected static final Logger logger =
LoggerFactory.getLogger(TestBase.class);
- protected MozzesServerConfiguration serverConfig;
+ protected MozzesServer server;
- protected final String validUsername1 = "chuck";
+ protected MozzesServerConfiguration serverConfig;
- protected final String validPassword1 = "norris";
+ protected final String validUsername1 = "chuck";
- protected final String validUsername2 = "prabhu";
+ protected final String validPassword1 = "norris";
- protected final String validPassword2 = "deva";
+ protected final String validUsername2 = "prabhu";
- protected final String wrongUsername = "vita";
+ protected final String validPassword2 = "deva";
- protected final String wrongPassword = "vita!";
+ protected final String wrongUsername = "vita";
- /**
- * This method is executed before every test method.
- */
- @Before
- public void beforeTest() {
- MAuthorizationManager.isUserLogged = false;
- MAuthorizationManager.addValidCredentials(validUsername1,
validPassword1);
- MAuthorizationManager.addValidCredentials(validUsername2,
validPassword2);
- server = new MozzesServer(createServerConfiguration());
+ protected final String wrongPassword = "vita!";
- CountDownLatch signal = new CountDownLatch(1);
- server.start(signal);
- try {
- signal.await();
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
+ /**
+ * This method is executed before every test method.
+ */
+ @Before
+ public void beforeTest() {
+ MAuthorizationManager.isUserLogged = false;
+ MAuthorizationManager.addValidCredentials(validUsername1,
validPassword1);
+ MAuthorizationManager.addValidCredentials(validUsername2,
validPassword2);
+ server = new MozzesServer(createServerConfiguration());
- /**
- * This method is executed after every test method
- */
- @After
- public void afterTest() {
- CountDownLatch signal = new CountDownLatch(1);
- server.stop(signal);
- try {
- signal.await();
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
+ CountDownLatch signal = new CountDownLatch(1);
+ server.start(signal);
+ try {
+ signal.await();
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
- /**
- * @return server configuration that is needed for running the server
- */
- @SuppressWarnings("unchecked")
- protected MozzesServerConfiguration createServerConfiguration() {
+ /**
+ * This method is executed after every test method
+ */
+ @After
+ public void afterTest() {
+ CountDownLatch signal = new CountDownLatch(1);
+ server.stop(signal);
+ try {
+ signal.await();
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
- serverConfig = new MozzesServerConfiguration();
+ /**
+ * @return server configuration that is needed for running the server
+ */
+ @SuppressWarnings("unchecked")
+ protected MozzesServerConfiguration createServerConfiguration() {
- /* adding custom module that enables remote client logging */
- serverConfig.addApplicationModule(new RemotingPlugin(7890));
+ serverConfig = new MozzesServerConfiguration();
- /* setting up the application service implementations */
- serverConfig.addApplicationModule(new
SimpleAuthorizationPlugin(MAuthorizationManager.class));
- serverConfig.addApplicationModule(new
SimpleTransactionPlugion(MTransactionManager.class));
+ /* adding custom module that enables remote client logging */
+ serverConfig.addApplicationModule(new RemotingPlugin(7890));
- /* adding internal services to the server */
- for (Class interfaceClass : getInternalServices().keySet())
- serverConfig.addInternalService(interfaceClass,
getInternalServices().get(interfaceClass));
+ /* setting up the application service implementations */
+ serverConfig.addApplicationModule(new
SimpleAuthorizationPlugin(MAuthorizationManager.class));
+ serverConfig.addApplicationModule(new
SimpleTransactionPlugion(MTransactionManager.class));
- /* adding services to the server */
- for (Class interfaceClass : getServices().keySet())
- serverConfig.addService(interfaceClass,
getServices().get(interfaceClass));
+ /* adding internal services to the server */
+ for (Class interfaceClass : getInternalServices().keySet())
+ serverConfig.addInternalService(interfaceClass,
getInternalServices().get(interfaceClass));
- return serverConfig;
- }
+ /* adding services to the server */
+ for (Class interfaceClass : getServices().keySet())
+ serverConfig.addService(interfaceClass,
getServices().get(interfaceClass));
- /**
- * If some test case should override the implementation of some interface
it should override this method.
- */
- protected HashMap<Class<?>, Class<?>> getInternalServices() {
- HashMap<Class<?>, Class<?>> map = new HashMap<Class<?>, Class<?>>();
- map.put(SimpleInternalService.class, SimpleInternalServiceImpl.class);
- return map;
- }
+ return serverConfig;
+ }
+
+ /**
+ * If some test case should override the implementation of some
interface it should override this method.
+ */
+ protected HashMap<Class<?>, Class<?>> getInternalServices() {
+ HashMap<Class<?>, Class<?>> map = new HashMap<Class<?>, Class<?>>();
+ map.put(SimpleInternalService.class, SimpleInternalServiceImpl.class);
+ return map;
+ }
- /**
- * If some test case should override the implementation of some interface
it should override this method.
- */
- protected HashMap<Class<?>, Class<?>> getServices() {
- HashMap<Class<?>, Class<?>> map = new HashMap<Class<?>, Class<?>>();
+ /**
+ * If some test case should override the implementation of some
interface it should override this method.
+ */
+ protected HashMap<Class<?>, Class<?>> getServices() {
+ HashMap<Class<?>, Class<?>> map = new HashMap<Class<?>, Class<?>>();
- // basic
- map.put(BasicService.class, BasicServiceImpl.class);
- map.put(ServiceThatInjectOtherService.class,
ServiceThatInjectOtherServiceImpl.class);
- map.put(ServiceThatThrowsExceptions.class,
ServiceThatThrowsExceptionsImpl.class);
+ // basic
+ map.put(BasicService.class, BasicServiceImpl.class);
+ map.put(ServiceThatInjectOtherService.class,
ServiceThatInjectOtherServiceImpl.class);
+ map.put(ServiceThatThrowsExceptions.class,
ServiceThatThrowsExceptionsImpl.class);
- // scoped
- map.put(SessionScopedService.class, SessionScopedServiceImpl.class);
+ // scoped
+ map.put(SessionScopedService.class, SessionScopedServiceImpl.class);
- map.put(RequestScopedService.class, RequestScopedServiceImpl.class);
- map.put(RequestScopedService2.class, RequestScopedService2Impl.class);
- map.put(RequestScopedService3.class, RequestScopedService3Impl.class);
+ map.put(RequestScopedService.class, RequestScopedServiceImpl.class);
+ map.put(RequestScopedService2.class, RequestScopedService2Impl.class);
+ map.put(RequestScopedService3.class, RequestScopedService3Impl.class);
- // scope data
- map.put(ServiceWithRequestData2.class,
ServiceWithRequestData2Impl.class);
- map.put(ServiceWithRequestData.class, ServiceWithRequestDataImpl.class);
- map.put(ServiceWithSessionData.class, ServiceWithSessionDataImpl.class);
- map.put(ServiceWithTransactionData.class,
ServiceWithTransactionDataImpl.class);
- map.put(ServiceWithTransactionDataNewTransaction.class,
ServiceWithTransactionDataNewTransactionImpl.class);
+ // scope data
+ map.put(ServiceWithRequestData2.class,
ServiceWithRequestData2Impl.class);
+ map.put(ServiceWithRequestData.class,
ServiceWithRequestDataImpl.class);
+ map.put(ServiceWithSessionData.class,
ServiceWithSessionDataImpl.class);
+ map.put(ServiceWithTransactionData.class,
ServiceWithTransactionDataImpl.class);
+ map.put(ServiceWithTransactionDataNewTransaction.class,
ServiceWithTransactionDataNewTransactionImpl.class);
- map.put(PublicServiceCallingInternal.class,
PublicServiceCallingInternalImpl.class);
+ map.put(PublicServiceCallingInternal.class,
PublicServiceCallingInternalImpl.class);
- return map;
- }
+ return map;
+ }
- /**
- * @return the server used in the test cases.
- */
- public MozzesServer getServer() {
- return server;
- }
+ /**
+ * @return the server used in the test cases.
+ */
+ public MozzesServer getServer() {
+ return server;
+ }
- /**
- * Method for getting the client. In typical test case we're using the
remote client and if we need local client in
- * some use case we can override isClientLocal() method
- */
- protected MozzesClient getClient() {
- if (isClientLocal())
- return server.getLocalClient();
+ /**
+ * Method for getting the client. In typical test case we're using the
remote client and if we need local client in
+ * some use case we can override isClientLocal() method
+ */
+ protected MozzesClient getClient() {
+ if (isClientLocal())
+ return server.getLocalClient();
- try {
- return new MozzesClient(new RemoteClientConfiguration("localhost",
7890, true));
- } catch (RemotingException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- return null;
- }
+ try {
+ return new MozzesClient(new RemoteClientConfiguration("localhost",
7890, true));
+ } catch (RemotingException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+ return null;
+ }
- /**
- * This method should be overridden if specific test case is using remote
clients
- *
- * @return true if in the test should be used local client or false if
remote client should be used
- */
- protected boolean isClientLocal() {
- return false;
- }
+ /**
+ * This method should be overridden if specific test case is using
remote clients
+ *
+ * @return true if in the test should be used local client or false if
remote client should be used
+ */
+ protected boolean isClientLocal() {
+ return false;
+ }
}
=======================================
---
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/apps/TestClientLogin.java
Sat Dec 1 15:14:30 2012
+++
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/apps/TestClientLogin.java
Sat Dec 1 16:22:49 2012
@@ -32,7 +32,6 @@
import org.mozzes.application.remoting.client.RemoteClientConfiguration;
import org.mozzes.remoting.common.RemotingException;
-
/**
* Test for client logging in and out.
*
@@ -43,130 +42,130 @@
*/
public class TestClientLogin extends TestBase {
- /**
- * Here we test whether the client can log in with valid username and
password.<br>
- * Also after logging in the user should logout successfully.<br>
- *
- * With the isUserLogged variable checking that the call to the
AuthorizationManger is made.
- */
- @Test
- public void testClientLoginSuccess() {
- MozzesClient client = null;
- try {
- client = getClient();
- client.login(validUsername1, validPassword1);
- assertTrue(MAuthorizationManager.isUserLogged);
- client.logout();
- } catch (AuthorizationFailedException e) {
- fail("user should login successfully");
- }
- }
+ /**
+ * Here we test whether the client can log in with valid username and
password.<br>
+ * Also after logging in the user should logout successfully.<br>
+ *
+ * With the isUserLogged variable checking that the call to the
AuthorizationManger is made.
+ */
+ @Test
+ public void testClientLoginSuccess() {
+ MozzesClient client = null;
+ try {
+ client = getClient();
+ client.login(validUsername1, validPassword1);
+ assertTrue(MAuthorizationManager.isUserLogged);
+ client.logout();
+ } catch (AuthorizationFailedException e) {
+ fail("user should login successfully");
+ }
+ }
- /**
- * Client shoudn't login with wrong credentials
- */
- @Test
- public void testClientLoginFailure() {
- try {
- getClient().login(wrongUsername, wrongPassword);
- fail("user shouldn't login successfully");
- } catch (AuthorizationFailedException ok) {
- }
- assertFalse(MAuthorizationManager.isUserLogged);
- }
+ /**
+ * Client shoudn't login with wrong credentials
+ */
+ @Test
+ public void testClientLoginFailure() {
+ try {
+ getClient().login(wrongUsername, wrongPassword);
+ fail("user shouldn't login successfully");
+ } catch (AuthorizationFailedException ok) {
+ }
+ assertFalse(MAuthorizationManager.isUserLogged);
+ }
- /**
- * With this test is checked that after one login client can't login
again with same credentials,with different(but
- * good) credentials or even with wrong credentials.
- */
- @Test
- public void testClientLoginMultipleFailing() {
- MozzesClient client = null;
- try {
- client = getClient();
- client.login(validUsername1, validPassword1);
- assertTrue(MAuthorizationManager.isUserLogged);
+ /**
+ * With this test is checked that after one login client can't login
again with same credentials,with different(but
+ * good) credentials or even with wrong credentials.
+ */
+ @Test
+ public void testClientLoginMultipleFailing() {
+ MozzesClient client = null;
+ try {
+ client = getClient();
+ client.login(validUsername1, validPassword1);
+ assertTrue(MAuthorizationManager.isUserLogged);
- try {
- client.login(validUsername1, validPassword1);
- fail("user shouldn't login successfully with the same credentials");
- } catch (ClientLoggingException ok) {
- }
+ try {
+ client.login(validUsername1, validPassword1);
+ fail("user shouldn't login successfully with the same
credentials");
+ } catch (ClientLoggingException ok) {
+ }
- try {
- client.login(validUsername2, validPassword2);
- fail("user shouldn't login successfully second time with different
credentials");
- } catch (ClientLoggingException ok) {
- }
- try {
- client.login(wrongUsername, wrongPassword);
- fail("user shouldn't login successfully second time with wrong
credentials");
- } catch (ClientLoggingException ok) {
- }
+ try {
+ client.login(validUsername2, validPassword2);
+ fail("user shouldn't login successfully second time with different
credentials");
+ } catch (ClientLoggingException ok) {
+ }
+ try {
+ client.login(wrongUsername, wrongPassword);
+ fail("user shouldn't login successfully second time with wrong
credentials");
+ } catch (ClientLoggingException ok) {
+ }
- } catch (AuthorizationFailedException ok) {
- fail("shouln't be thrown");
- }
+ } catch (AuthorizationFailedException ok) {
+ fail("shouln't be thrown");
+ }
- assert client != null;
- assertTrue(MAuthorizationManager.isUserLogged);
+ assert client != null;
+ assertTrue(MAuthorizationManager.isUserLogged);
- try {
- client.logout();
- } catch (ClientLoggingException ok) {
- }
- }
+ try {
+ client.logout();
+ } catch (ClientLoggingException ok) {
+ }
+ }
- /**
- * This test shows that different client should be able to login/logout
with the same credentials
- */
- @Test
- public void testClientLoginMultiple2() {
- MozzesClient client = null;
+ /**
+ * This test shows that different client should be able to login/logout
with the same credentials
+ */
+ @Test
+ public void testClientLoginMultiple2() {
+ MozzesClient client = null;
- /* first client logging in with validUsername1/validPassword1
combination */
- try {
- client = getClient();
- client.login(validUsername1, validPassword1);
- assertTrue(MAuthorizationManager.isUserLogged);
+ /* first client logging in with validUsername1/validPassword1
combination */
+ try {
+ client = getClient();
+ client.login(validUsername1, validPassword1);
+ assertTrue(MAuthorizationManager.isUserLogged);
- } catch (AuthorizationFailedException ok) {
- fail("should log in successfully");
- }
+ } catch (AuthorizationFailedException ok) {
+ fail("should log in successfully");
+ }
- /* second client logging in with the same credentials */
- try {
- MozzesClient client2 = new MozzesClient(new
RemoteClientConfiguration("localhost", 7890, false));
- client2.login(validUsername1, validPassword1);
- client2.logout();
- } catch (AuthorizationFailedException e) {
- fail("should log in");
- } catch (RemotingException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
+ /* second client logging in with the same credentials */
+ try {
+ MozzesClient client2 = new MozzesClient(new
RemoteClientConfiguration("localhost", 7890, false));
+ client2.login(validUsername1, validPassword1);
+ client2.logout();
+ } catch (AuthorizationFailedException e) {
+ fail("should log in");
+ } catch (RemotingException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
- assert client != null;
+ assert client != null;
- /* first client should be able to successfully logout */
- try {
- client.logout();
- } catch (ClientLoggingException e) {
- fail("should log out successfully");
- }
- }
+ /* first client should be able to successfully logout */
+ try {
+ client.logout();
+ } catch (ClientLoggingException e) {
+ fail("should log out successfully");
+ }
+ }
- /**
- * Client shouldn't be able to logout without prior logging in.
- */
- @Test
- public void testClientLogoutWithoutLogging() {
- try {
- getClient().logout();
- fail("shouldn't logged out because we're not logged in");
- } catch (ClientLoggingException ok) {
- }
- /* user shouldn't be logged in */
- assertFalse(MAuthorizationManager.isUserLogged);
- }
+ /**
+ * Client shouldn't be able to logout without prior logging in.
+ */
+ @Test
+ public void testClientLogoutWithoutLogging() {
+ try {
+ getClient().logout();
+ fail("shouldn't logged out because we're not logged in");
+ } catch (ClientLoggingException ok) {
+ }
+ /* user shouldn't be logged in */
+ assertFalse(MAuthorizationManager.isUserLogged);
+ }
}
=======================================
---
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/apps/TestLookupService.java
Sat Feb 27 06:56:25 2010
+++
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/apps/TestLookupService.java
Sat Dec 1 16:22:49 2012
@@ -30,7 +30,6 @@
import
org.mozzes.application.common.exceptions.AuthorizationFailedException;
import org.mozzes.application.common.service.LookupService;
-
/**
* In this test case we're testing is the {@link LookupService} working
properly. It should return 1 service that exists
* in every server.
@@ -39,44 +38,44 @@
*/
public class TestLookupService extends TestBase {
- @Test
- public void testLookupService() {
- try {
- MozzesClient client = getClient();
- client.login(validUsername1, validPassword1);
- List<String> serviceList =
client.getService(LookupService.class).getServices();
- assertEquals(1, serviceList.size());
- client.logout();
- } catch (AuthorizationFailedException e) {
- logger.warn(e.getMessage(),e);
- }
- }
+ @Test
+ public void testLookupService() {
+ try {
+ MozzesClient client = getClient();
+ client.login(validUsername1, validPassword1);
+ List<String> serviceList =
client.getService(LookupService.class).getServices();
+ assertEquals(1, serviceList.size());
+ client.logout();
+ } catch (AuthorizationFailedException e) {
+ logger.warn(e.getMessage(), e);
+ }
+ }
- @Test
- public void testLookupServiceWithoutLoggingIn() {
- List<String> serviceList =
getClient().getService(LookupService.class).getServices();
- assertEquals(1, serviceList.size());
- }
+ @Test
+ public void testLookupServiceWithoutLoggingIn() {
+ List<String> serviceList =
getClient().getService(LookupService.class).getServices();
+ assertEquals(1, serviceList.size());
+ }
- /**
- * Here we remove all services from the server configuration because we
want to test weather the
- * {@link LookupService} is returning default services.
- *
- * @see TestBase#getServices()
- */
- @Override
- protected HashMap<Class<?>, Class<?>> getServices() {
- return new HashMap<Class<?>, Class<?>>();
- }
+ /**
+ * Here we remove all services from the server configuration because we
want to test weather the {@link LookupService}
+ * is returning default services.
+ *
+ * @see TestBase#getServices()
+ */
+ @Override
+ protected HashMap<Class<?>, Class<?>> getServices() {
+ return new HashMap<Class<?>, Class<?>>();
+ }
- /**
- * Here we remove all internal services from the server configuration
because we want to test weather the
- * {@link LookupService} is returning default services.
- *
- * @see TestBase#getServices()
- */
- @Override
- protected HashMap<Class<?>, Class<?>> getInternalServices() {
- return new HashMap<Class<?>, Class<?>>();
- }
+ /**
+ * Here we remove all internal services from the server configuration
because we want to test weather the
+ * {@link LookupService} is returning default services.
+ *
+ * @see TestBase#getServices()
+ */
+ @Override
+ protected HashMap<Class<?>, Class<?>> getInternalServices() {
+ return new HashMap<Class<?>, Class<?>>();
+ }
}
=======================================
---
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/apps/internal/TestBlockingClients.java
Sat Feb 27 06:56:25 2010
+++
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/apps/internal/TestBlockingClients.java
Sat Dec 1 16:22:49 2012
@@ -28,32 +28,31 @@
import
org.mozzes.application.demo.mockups.services.internal.PublicServiceCallingInternal;
import
org.mozzes.application.demo.mockups.services.internal.SimpleInternalService;
-
public class TestBlockingClients extends TestBase {
- @Test
- public void testNormalClientWorkingAfterStartup() {
- try {
- int result =
server.getLocalClient().getService(PublicServiceCallingInternal.class).getFromInternal();
- assertEquals(SimpleInternalService.result, result);
- } catch (Exception e) {
- fail(e.getMessage());
- }
- }
+ @Test
+ public void testNormalClientWorkingAfterStartup() {
+ try {
+ int result =
server.getLocalClient().getService(PublicServiceCallingInternal.class).getFromInternal();
+ assertEquals(SimpleInternalService.result, result);
+ } catch (Exception e) {
+ fail(e.getMessage());
+ }
+ }
- @Test
- public void testInternalClientWorkingDuringStartup() {
- int result =
server.getInternalClient().getService(SimpleInternalService.class).getInteger();
- assertEquals(SimpleInternalService.result, result);
- }
+ @Test
+ public void testInternalClientWorkingDuringStartup() {
+ int result =
server.getInternalClient().getService(SimpleInternalService.class).getInteger();
+ assertEquals(SimpleInternalService.result, result);
+ }
-// @Test
-// public void testNormalClientFailingDuringStartup() {
-// try {
-// int result =
server.getLocalClient().getService(PublicServiceCallingInternal.class).getFromInternal();
-// assertEquals(SimpleInternalService.result, result);
-// fail("server is not
started.it should take about 500ms");
-// } catch (Exception ok) {
-// }
-// }
+ // @Test
+ // public void testNormalClientFailingDuringStartup() {
+ // try {
+ // int result =
server.getLocalClient().getService(PublicServiceCallingInternal.class).getFromInternal();
+ // assertEquals(SimpleInternalService.result, result);
+ // fail("server is not
started.it should take about 500ms");
+ // } catch (Exception ok) {
+ // }
+ // }
}
=======================================
---
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/apps/internal/TestInternalServices.java
Sat Feb 27 06:56:25 2010
+++
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/apps/internal/TestInternalServices.java
Sat Dec 1 16:22:49 2012
@@ -31,7 +31,6 @@
import
org.mozzes.application.demo.mockups.services.internal.impl.PublicServiceCallingInternalImpl;
import
org.mozzes.application.demo.mockups.services.internal.impl.SimpleInternalServiceImpl;
-
/**
* This test demonstrates how to use internal services.
*
@@ -51,94 +50,93 @@
*/
public class TestInternalServices extends TestBase {
- /**
- * In the {@link PublicServiceCallingInternalImpl} class we're injecting
{@link SimpleInternalService} service and
- * calling it's method so with this we test injecting of internal
services in the "regular" services.
- */
- @Test
- public void testInternalService() {
- try {
- MozzesClient client = getClient();
- client.login(validUsername1, validPassword1);
- int result =
client.getService(PublicServiceCallingInternal.class).getFromInternal();
- assertEquals(SimpleInternalService.result, result);
- client.logout();
+ /**
+ * In the {@link PublicServiceCallingInternalImpl} class we're injecting
{@link SimpleInternalService} service and
+ * calling it's method so with this we test injecting of internal
services in the "regular" services.
+ */
+ @Test
+ public void testInternalService() {
+ try {
+ MozzesClient client = getClient();
+ client.login(validUsername1, validPassword1);
+ int result =
client.getService(PublicServiceCallingInternal.class).getFromInternal();
+ assertEquals(SimpleInternalService.result, result);
+ client.logout();
- } catch (Exception e) {
- fail();
- }
- }
+ } catch (Exception e) {
+ fail();
+ }
+ }
- /**
- * Internal client is singleton on the server and it's state is not
preserved so
- * {@link MozzesClient#login(String, String)} and {@link
MozzesClient#logout()} methods shouldn't be called and will
- * throw exception if called.
- */
- @Test
- public void testInternalClientLoggingFailure() {
- try {
- MozzesClient client = getServer().getInternalClient();
- client = getServer().getInternalClient();
- client.login(validUsername1, validPassword1);
- fail();
- client.logout();
- fail();
- } catch (Exception ok) {
- }
- }
+ /**
+ * Internal client is singleton on the server and it's state is not
preserved so
+ * {@link MozzesClient#login(String, String)} and {@link
MozzesClient#logout()} methods shouldn't be called and will
+ * throw exception if called.
+ */
+ @Test
+ public void testInternalClientLoggingFailure() {
+ try {
+ MozzesClient client = getServer().getInternalClient();
+ client = getServer().getInternalClient();
+ client.login(validUsername1, validPassword1);
+ fail();
+ client.logout();
+ fail();
+ } catch (Exception ok) {
+ }
+ }
- /**
- * This demonstrates that internal client can call internal services
directly.
- */
- @Test
- public void testInternalClientCallingInternalMethods() {
- try {
- MozzesClient client = getServer().getInternalClient();
- int result =
client.getService(SimpleInternalService.class).getInteger();
- assertEquals(SimpleInternalService.result, result);
- } catch (Exception e) {
- fail();
- }
- }
+ /**
+ * This demonstrates that internal client can call internal services
directly.
+ */
+ @Test
+ public void testInternalClientCallingInternalMethods() {
+ try {
+ MozzesClient client = getServer().getInternalClient();
+ int result =
client.getService(SimpleInternalService.class).getInteger();
+ assertEquals(SimpleInternalService.result, result);
+ } catch (Exception e) {
+ fail();
+ }
+ }
- /**
- * This demonstrates that internal client can't call publicly available
services and can call only internal
- * services.
- */
- @Test
- public void testInternalClientCallingNonInternalMethodsFailing() {
- try {
- MozzesClient client = getServer().getInternalClient();
- client.getService(PublicServiceCallingInternal.class).getFromInternal();
- fail();
- } catch (Exception ok) {
- }
- }
+ /**
+ * This demonstrates that internal client can't call publicly available
services and can call only internal services.
+ */
+ @Test
+ public void testInternalClientCallingNonInternalMethodsFailing() {
+ try {
+ MozzesClient client = getServer().getInternalClient();
+
client.getService(PublicServiceCallingInternal.class).getFromInternal();
+ fail();
+ } catch (Exception ok) {
+ }
+ }
- /**
- * Same as {@link TestInternalServices#testInternalService()} but without
logging in.
- */
- @Test
- public void testInternalServiceWithoutLoggingIn() {
- MozzesClient client = getClient();
- int result =
client.getService(PublicServiceCallingInternal.class).getFromInternal();
- assertEquals(SimpleInternalService.result, result);
- }
+ /**
+ * Same as {@link TestInternalServices#testInternalService()} but
without logging in.
+ */
+ @Test
+ public void testInternalServiceWithoutLoggingIn() {
+ MozzesClient client = getClient();
+ int result =
client.getService(PublicServiceCallingInternal.class).getFromInternal();
+ assertEquals(SimpleInternalService.result, result);
+ }
- /**
- * Here client tries to call {@link SimpleInternalService} ant it should
fail because it's internal service.
- */
- @Test
- public void testInternalServiceFailing() {
- try {
- MozzesClient client = getClient();
- client.login(validUsername1, validPassword1);
- int result =
client.getService(SimpleInternalService.class).getInteger();
- assertEquals(SimpleInternalService.result, result);
- client.logout();
- fail("shouldn't be able to call internal service");
+ /**
+ * Here client tries to call {@link SimpleInternalService} ant it should
fail because it's internal service.
+ */
+ @Test
+ public void testInternalServiceFailing() {
+ try {
+ MozzesClient client = getClient();
+ client.login(validUsername1, validPassword1);
+ int result =
client.getService(SimpleInternalService.class).getInteger();
+ assertEquals(SimpleInternalService.result, result);
+ client.logout();
+ fail("shouldn't be able to call internal service");
- } catch (Exception ok) {
- }
- }
+ } catch (Exception ok) {
+ }
+ }
}
=======================================
---
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/apps/scoped/TestRequestScopedInternalService.java
Sat Feb 27 06:56:25 2010
+++
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/apps/scoped/TestRequestScopedInternalService.java
Sat Dec 1 16:22:49 2012
@@ -32,7 +32,6 @@
import org.mozzes.application.module.scope.SessionScoped;
import org.mozzes.application.module.scope.TransactionScoped;
-
/**
* This test cast is used to demonstrate how the service implementation
classes are scoped. If the Service
* Implementation class is annotated with {@link SessionScoped}, {@link
RequestScoped} or {@link TransactionScoped} the
@@ -46,48 +45,48 @@
*/
public class TestRequestScopedInternalService extends TestBase {
- @Test
- public void testRequestScopedService() {
- try {
- MozzesClient client = getClient();
+ @Test
+ public void testRequestScopedService() {
+ try {
+ MozzesClient client = getClient();
- client.login(validUsername1, validPassword1);
- callServiceAndTestResult(client);
- client.logout();
+ client.login(validUsername1, validPassword1);
+ callServiceAndTestResult(client);
+ client.logout();
- client.login(validUsername1, validPassword1);
- callServiceAndTestResult(client);
- client.logout();
+ client.login(validUsername1, validPassword1);
+ callServiceAndTestResult(client);
+ client.logout();
- } catch (AuthorizationFailedException e) {
- fail("should login");
- }
- }
+ } catch (AuthorizationFailedException e) {
+ fail("should login");
+ }
+ }
- @Test
- public void testRequestScopedService2() {
- try {
- MozzesClient client = getClient();
+ @Test
+ public void testRequestScopedService2() {
+ try {
+ MozzesClient client = getClient();
- client.login(validUsername1, validPassword1);
+ client.login(validUsername1, validPassword1);
- RequestScopedService service =
client.getService(RequestScopedService.class);
- int returnVal = service.incrementInjectedAndReturnValue();
+ RequestScopedService service =
client.getService(RequestScopedService.class);
+ int returnVal = service.incrementInjectedAndReturnValue();
- assertEquals(2, returnVal);
- client.logout();
+ assertEquals(2, returnVal);
+ client.logout();
- } catch (AuthorizationFailedException e) {
- fail("should login");
- }
- }
+ } catch (AuthorizationFailedException e) {
+ fail("should login");
+ }
+ }
- private RequestScopedService callServiceAndTestResult(MozzesClient
client) {
- RequestScopedService service =
client.getService(RequestScopedService.class);
- service.increment();
- service.increment();
+ private RequestScopedService callServiceAndTestResult(MozzesClient
client) {
+ RequestScopedService service =
client.getService(RequestScopedService.class);
+ service.increment();
+ service.increment();
- assertEquals(0, service.getCounter());
- return service;
- }
+ assertEquals(0, service.getCounter());
+ return service;
+ }
}
=======================================
---
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/apps/scoped/TestRequestScopedService.java
Sat Feb 27 06:56:25 2010
+++
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/apps/scoped/TestRequestScopedService.java
Sat Dec 1 16:22:49 2012
@@ -32,7 +32,6 @@
import org.mozzes.application.module.scope.SessionScoped;
import org.mozzes.application.module.scope.TransactionScoped;
-
/**
* This test cast is used to demonstrate how the service implementation
classes are scoped. If the Service
* Implementation class is annotated with {@link SessionScoped}, {@link
RequestScoped} or {@link TransactionScoped} the
@@ -46,48 +45,48 @@
*/
public class TestRequestScopedService extends TestBase {
- @Test
- public void testRequestScopedService() {
- try {
- MozzesClient client = getClient();
+ @Test
+ public void testRequestScopedService() {
+ try {
+ MozzesClient client = getClient();
- client.login(validUsername1, validPassword1);
- callServiceAndTestResult(client);
- client.logout();
+ client.login(validUsername1, validPassword1);
+ callServiceAndTestResult(client);
+ client.logout();
- client.login(validUsername1, validPassword1);
- callServiceAndTestResult(client);
- client.logout();
+ client.login(validUsername1, validPassword1);
+ callServiceAndTestResult(client);
+ client.logout();
- } catch (AuthorizationFailedException e) {
- fail("should login");
- }
- }
+ } catch (AuthorizationFailedException e) {
+ fail("should login");
+ }
+ }
- @Test
- public void testRequestScopedService2() {
- try {
- MozzesClient client = getClient();
+ @Test
+ public void testRequestScopedService2() {
+ try {
+ MozzesClient client = getClient();
- client.login(validUsername1, validPassword1);
+ client.login(validUsername1, validPassword1);
- RequestScopedService service =
client.getService(RequestScopedService.class);
- int returnVal = service.incrementInjectedAndReturnValue();
+ RequestScopedService service =
client.getService(RequestScopedService.class);
+ int returnVal = service.incrementInjectedAndReturnValue();
- assertEquals(2, returnVal);
- client.logout();
+ assertEquals(2, returnVal);
+ client.logout();
- } catch (AuthorizationFailedException e) {
- fail("should login");
- }
- }
+ } catch (AuthorizationFailedException e) {
+ fail("should login");
+ }
+ }
- private RequestScopedService callServiceAndTestResult(MozzesClient
client) {
- RequestScopedService service =
client.getService(RequestScopedService.class);
- service.increment();
- service.increment();
+ private RequestScopedService callServiceAndTestResult(MozzesClient
client) {
+ RequestScopedService service =
client.getService(RequestScopedService.class);
+ service.increment();
+ service.increment();
- assertEquals(0, service.getCounter());
- return service;
- }
+ assertEquals(0, service.getCounter());
+ return service;
+ }
}
=======================================
---
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/apps/scoped/TestSessionScopedService.java
Sat Feb 27 06:56:25 2010
+++
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/apps/scoped/TestSessionScopedService.java
Sat Dec 1 16:22:49 2012
@@ -33,7 +33,6 @@
import org.mozzes.application.module.scope.SessionScoped;
import org.mozzes.application.module.scope.TransactionScoped;
-
/**
* This test cast is used to demonstrate how the service implementation
classes are scoped. If the Service
* Implementation class is annotated with {@link SessionScoped}, {@link
RequestScoped} or {@link TransactionScoped} the
@@ -47,39 +46,39 @@
*/
public class TestSessionScopedService extends TestBase {
- /**
- * Test if the value of the attribute in the {@link
SessionScopedServiceImpl} service class is preserved between the
- * service calls
- */
- @Test
- public void testSessionScopedService() {
- try {
- // login
- MozzesClient client = getClient();
- client.login(validUsername1, validPassword1);
+ /**
+ * Test if the value of the attribute in the {@link
SessionScopedServiceImpl} service class is preserved between the
+ * service calls
+ */
+ @Test
+ public void testSessionScopedService() {
+ try {
+ // login
+ MozzesClient client = getClient();
+ client.login(validUsername1, validPassword1);
- callServiceAndTestResult(client);
+ callServiceAndTestResult(client);
- // logout and close the session
- client.logout();
+ // logout and close the session
+ client.logout();
- // repeat in the new session and now value should be the same
- client.login(validUsername1, validPassword1);
- callServiceAndTestResult(client);
+ // repeat in the new session and now value should be the same
+ client.login(validUsername1, validPassword1);
+ callServiceAndTestResult(client);
- } catch (AuthorizationFailedException e) {
- fail("should login");
- }
- }
+ } catch (AuthorizationFailedException e) {
+ fail("should login");
+ }
+ }
- private void callServiceAndTestResult(MozzesClient client) {
+ private void callServiceAndTestResult(MozzesClient client) {
- // get the service class and execute method twice
- SessionScopedService service =
client.getService(SessionScopedService.class);
- service.increment();
- service.increment();
+ // get the service class and execute method twice
+ SessionScopedService service =
client.getService(SessionScopedService.class);
+ service.increment();
+ service.increment();
- // value should be 2 because both service invocations are in the same
session
- assertEquals(2, service.getCounter());
- }
+ // value should be 2 because both service invocations are in the same
session
+ assertEquals(2, service.getCounter());
+ }
}
=======================================
---
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/apps/scopedata/TestRequestScope.java
Sat Feb 27 06:56:25 2010
+++
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/apps/scopedata/TestRequestScope.java
Sat Dec 1 16:22:49 2012
@@ -29,42 +29,39 @@
import org.mozzes.application.demo.apps.TestBase;
import
org.mozzes.application.demo.mockups.services.scopedata.ServiceWithRequestData;
-
/**
* @author vita
*/
public class TestRequestScope extends TestBase {
- @Test
- public void testRequestScope() {
- try {
+ @Test
+ public void testRequestScope() {
+ try {
- MozzesClient client = getClient();
- client.login(validUsername1, validPassword1);
+ MozzesClient client = getClient();
+ client.login(validUsername1, validPassword1);
- int requestCounter = client.getService(ServiceWithRequestData.class)
- .incrementAndReturnInTheRequestContext();
- assertEquals(2, requestCounter);
+ int requestCounter =
client.getService(ServiceWithRequestData.class).incrementAndReturnInTheRequestContext();
+ assertEquals(2, requestCounter);
- int requestCounter2 = client.getService(ServiceWithRequestData.class)
- .incrementAndReturnInTheRequestContext();
- assertEquals(2, requestCounter2);
+ int requestCounter2 =
client.getService(ServiceWithRequestData.class).incrementAndReturnInTheRequestContext();
+ assertEquals(2, requestCounter2);
- client.logout();
+ client.logout();
- } catch (AuthorizationFailedException e) {
- fail("user should login successfully");
- }
- }
+ } catch (AuthorizationFailedException e) {
+ fail("user should login successfully");
+ }
+ }
- @Test
- public void testRequestScopeWithoutLogging() {
- MozzesClient client = getClient();
+ @Test
+ public void testRequestScopeWithoutLogging() {
+ MozzesClient client = getClient();
- int requestCounter =
client.getService(ServiceWithRequestData.class).incrementAndReturnInTheRequestContext();
- assertEquals(2, requestCounter);
+ int requestCounter =
client.getService(ServiceWithRequestData.class).incrementAndReturnInTheRequestContext();
+ assertEquals(2, requestCounter);
- int requestCounter2 =
client.getService(ServiceWithRequestData.class).incrementAndReturnInTheRequestContext();
- assertEquals(2, requestCounter2);
- }
+ int requestCounter2 =
client.getService(ServiceWithRequestData.class).incrementAndReturnInTheRequestContext();
+ assertEquals(2, requestCounter2);
+ }
}
=======================================
---
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/apps/scopedata/TestSessionScope.java
Sat Feb 27 06:56:25 2010
+++
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/apps/scopedata/TestSessionScope.java
Sat Dec 1 16:22:49 2012
@@ -30,7 +30,6 @@
import org.mozzes.application.demo.mockups.scopedata.MSessionData;
import
org.mozzes.application.demo.mockups.services.scopedata.ServiceWithSessionData;
-
/**
* In this test case we're testing whether the sessionScoped object are
really stored in the session scope.
*
@@ -38,48 +37,48 @@
*/
public class TestSessionScope extends TestBase {
- /**
- * When the client is logged in, we're calling the
incrementSessionCounter 3 times and then getCounter value
- *
- * if the {@link MSessionData} is stored in the session
- */
- @Test
- public void testClientSession() {
- try {
- MozzesClient client = getClient();
+ /**
+ * When the client is logged in, we're calling the
incrementSessionCounter 3 times and then getCounter value
+ *
+ * if the {@link MSessionData} is stored in the session
+ */
+ @Test
+ public void testClientSession() {
+ try {
+ MozzesClient client = getClient();
- client.login(validUsername1, validPassword1);
- assertEquals(3, clientCallService(client, 3));
- client.logout();
+ client.login(validUsername1, validPassword1);
+ assertEquals(3, clientCallService(client, 3));
+ client.logout();
- client.login(validUsername1, validPassword1); // because we logged out
counter is restarted
- assertEquals(1, clientCallService(client, 1));
- client.logout();
+ client.login(validUsername1, validPassword1); // because we logged
out counter is restarted
+ assertEquals(1, clientCallService(client, 1));
+ client.logout();
- client.login(validUsername1, validPassword1);// because we didn't
logged out counter is NOT restarted
- assertEquals(1, clientCallService(client, 1));
- assertEquals(4, clientCallService(client, 3));
- client.logout();
+ client.login(validUsername1, validPassword1);// because we didn't
logged out counter is NOT restarted
+ assertEquals(1, clientCallService(client, 1));
+ assertEquals(4, clientCallService(client, 3));
+ client.logout();
- } catch (AuthorizationFailedException e) {
- fail("user should login successfully");
- }
- }
+ } catch (AuthorizationFailedException e) {
+ fail("user should login successfully");
+ }
+ }
- @Test
- public void testClientSessionLostWithoutLogging() {
- MozzesClient client = getClient();
+ @Test
+ public void testClientSessionLostWithoutLogging() {
+ MozzesClient client = getClient();
- // between service calls nothing is preserved so it's always 0 because
when we call serviceMethod
- // getSessionCounterValue session is restarted and it's 0 again;
- assertEquals(0, clientCallService(client, 3));
- }
+ // between service calls nothing is preserved so it's always 0 because
when we call serviceMethod
+ // getSessionCounterValue session is restarted and it's 0 again;
+ assertEquals(0, clientCallService(client, 3));
+ }
- private int clientCallService(MozzesClient client, int callCount) {
- ServiceWithSessionData service =
client.getService(ServiceWithSessionData.class);
- for (int i = 0; i < callCount; i++) {
- service.incrementSessionCounter();
- }
- return service.getSessionCounterValue();
- }
+ private int clientCallService(MozzesClient client, int callCount) {
+ ServiceWithSessionData service =
client.getService(ServiceWithSessionData.class);
+ for (int i = 0; i < callCount; i++) {
+ service.incrementSessionCounter();
+ }
+ return service.getSessionCounterValue();
+ }
}
=======================================
---
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/apps/scopedata/TestTransactionScope.java
Sat Feb 27 06:56:25 2010
+++
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/apps/scopedata/TestTransactionScope.java
Sat Dec 1 16:22:49 2012
@@ -29,41 +29,40 @@
import org.mozzes.application.demo.apps.TestBase;
import
org.mozzes.application.demo.mockups.services.scopedata.ServiceWithTransactionData;
-
public class TestTransactionScope extends TestBase {
- @Test
- public void testTransactionScope() {
- try {
- MozzesClient client = getClient();
- client.login(validUsername1, validPassword1);
+ @Test
+ public void testTransactionScope() {
+ try {
+ MozzesClient client = getClient();
+ client.login(validUsername1, validPassword1);
- assertEquals(1,
client.getService(ServiceWithTransactionData.class).incrementAndReturn());
+ assertEquals(1,
client.getService(ServiceWithTransactionData.class).incrementAndReturn());
- client.logout();
+ client.logout();
- } catch (AuthorizationFailedException e) {
- fail("user should login successfully");
- }
- }
+ } catch (AuthorizationFailedException e) {
+ fail("user should login successfully");
+ }
+ }
- @Test
- public void testTransactionScopeWithoutLogging() {
- assertEquals(1,
getClient().getService(ServiceWithTransactionData.class).incrementAndReturn());
- }
+ @Test
+ public void testTransactionScopeWithoutLogging() {
+ assertEquals(1,
getClient().getService(ServiceWithTransactionData.class).incrementAndReturn());
+ }
- @Test
- public void testTransactionScopeBadAnnotation() {
- try {
- MozzesClient client = getClient();
- client.login(validUsername1, validPassword1);
+ @Test
+ public void testTransactionScopeBadAnnotation() {
+ try {
+ MozzesClient client = getClient();
+ client.login(validUsername1, validPassword1);
- // @Transactional is misplaced(in the implementation class not in the
interface so it's 2 not 1
- assertEquals(2,
client.getService(ServiceWithTransactionData.class).incrementAndReturnBad());
+ // @Transactional is misplaced(in the implementation class not in
the interface so it's 2 not 1
+ assertEquals(2,
client.getService(ServiceWithTransactionData.class).incrementAndReturnBad());
- client.logout();
- } catch (AuthorizationFailedException e) {
- fail("user should login successfully");
- }
- }
+ client.logout();
+ } catch (AuthorizationFailedException e) {
+ fail("user should login successfully");
+ }
+ }
}
=======================================
---
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/apps/simple/TestServerStarted.java
Sat Feb 27 06:56:25 2010
+++
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/apps/simple/TestServerStarted.java
Sat Dec 1 16:22:49 2012
@@ -25,7 +25,6 @@
import org.junit.Test;
import org.mozzes.application.demo.apps.TestBase;
-
/**
* Simple test that checks if the server instance is not null (checks
actually if the beforeTest() method throw some
* exception so server attribute is still null or it's started)
@@ -34,8 +33,8 @@
*/
public class TestServerStarted extends TestBase {
- @Test
- public void testServerStarted() {
- assertNotNull(getServer());
- }
+ @Test
+ public void testServerStarted() {
+ assertNotNull(getServer());
+ }
}
=======================================
---
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/apps/simple/TestServiceCalls.java
Sat Feb 27 06:56:25 2010
+++
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/apps/simple/TestServiceCalls.java
Sat Dec 1 16:22:49 2012
@@ -32,7 +32,6 @@
import
org.mozzes.application.demo.mockups.services.basic.ServiceThatThrowsExceptions;
import org.mozzes.application.plugin.transaction.TransactionManager;
-
/**
* This test case shows how client is calling server's service methods.
*
@@ -40,84 +39,84 @@
*/
public class TestServiceCalls extends TestBase {
- /**
- * Client is calling service method that simply is returning 123 value.
- */
- @Test
- public void testServiceMethodCall() {
- Integer result =
getClient().getService(BasicService.class).getIntegerFromServer();
- assertEquals(BasicService.returnedValue, result);
- testNormalFinish();
- }
+ /**
+ * Client is calling service method that simply is returning 123 value.
+ */
+ @Test
+ public void testServiceMethodCall() {
+ Integer result =
getClient().getService(BasicService.class).getIntegerFromServer();
+ assertEquals(BasicService.returnedValue, result);
+ testNormalFinish();
+ }
- /**
- * Client is calling the service method that is throwing the exception
but the exception type is annotated with the
- * {@link TransactionIgnored} annotation and that basically means that if
the exception does occur, the exception is
- * propagated to the caller but the corresponding transaction is not
rollbacked and commit is executed.
- */
- @Test
- public void testServiceMethodCallThrowsIgnoredException() {
- try {
-
getClient().getService(ServiceThatThrowsExceptions.class).serviceWhichThrowsIgnoredException();
- fail("exception is not thrown");
- } catch (Exception ignoreItsOK) {
- }
- /* transaction IS commited because this exception is ignored by the
transaction manager */
- testNormalFinish();
- }
+ /**
+ * Client is calling the service method that is throwing the exception
but the exception type is annotated with the
+ * {@link TransactionIgnored} annotation and that basically means that
if the exception does occur, the exception is
+ * propagated to the caller but the corresponding transaction is not
rollbacked and commit is executed.
+ */
+ @Test
+ public void testServiceMethodCallThrowsIgnoredException() {
+ try {
+
getClient().getService(ServiceThatThrowsExceptions.class).serviceWhichThrowsIgnoredException();
+ fail("exception is not thrown");
+ } catch (Exception ignoreItsOK) {
+ }
+ /* transaction IS commited because this exception is ignored by the
transaction manager */
+ testNormalFinish();
+ }
- /**
- * Client that is calling service method that simply is throwing the
checked exception and because the exception is
- * checked and specified in the service interface client must handle the
exception
- */
- @Test
- public void testServiceMethodCallThrowsException() {
- try {
-
getClient().getService(ServiceThatThrowsExceptions.class).serviceWhichThrowsException();
- fail("exception is not thrown");
- } catch (IOException ignoreItsOK) {
- }
- /* transaction is not commited */
- testRollbacked();
- }
+ /**
+ * Client that is calling service method that simply is throwing the
checked exception and because the exception is
+ * checked and specified in the service interface client must handle the
exception
+ */
+ @Test
+ public void testServiceMethodCallThrowsException() {
+ try {
+
getClient().getService(ServiceThatThrowsExceptions.class).serviceWhichThrowsException();
+ fail("exception is not thrown");
+ } catch (IOException ignoreItsOK) {
+ }
+ /* transaction is not commited */
+ testRollbacked();
+ }
- /**
- * Client that is calling service method that simply is throwing the
runtime exception.<br>
- * Exception is runtime and client doesn't need to handle that
exception.<br>
- * (but this test case does because of the JUnit framework will complain)
- */
- @Test
- public void testServiceMethodCallThrowsRuntimeException() {
- try {
-
getClient().getService(ServiceThatThrowsExceptions.class).serviceWhichThrowsRuntimeException();
- fail("exception is not thrown");
- } catch (NumberFormatException ignoreItsOK) {
- }
- /* transaction is not commited */
- testRollbacked();
- }
+ /**
+ * Client that is calling service method that simply is throwing the
runtime exception.<br>
+ * Exception is runtime and client doesn't need to handle that
exception.<br>
+ * (but this test case does because of the JUnit framework will complain)
+ */
+ @Test
+ public void testServiceMethodCallThrowsRuntimeException() {
+ try {
+
getClient().getService(ServiceThatThrowsExceptions.class).serviceWhichThrowsRuntimeException();
+ fail("exception is not thrown");
+ } catch (NumberFormatException ignoreItsOK) {
+ }
+ /* transaction is not commited */
+ testRollbacked();
+ }
- /**
- * This is utility method that checks if the {@link
TransactionManager#begin(boolean)},{@link TransactionManager#commit()},
- * {@link TransactionManager#rollback()} are called properly. If the
transaction is finished normally begin() and
- * commit() are called and rollback() is not called
- */
- private void testNormalFinish() {
- /* started and committed */
- assertTrue(MTransactionManager.started);
- assertTrue(MTransactionManager.commited);
- assertFalse(MTransactionManager.rollbacked);
- }
+ /**
+ * This is utility method that checks if the {@link
TransactionManager#begin(boolean)},
+ * {@link TransactionManager#commit()}, {@link
TransactionManager#rollback()} are called properly. If the transaction
+ * is finished normally begin() and commit() are called and rollback()
is not called
+ */
+ private void testNormalFinish() {
+ /* started and committed */
+ assertTrue(MTransactionManager.started);
+ assertTrue(MTransactionManager.commited);
+ assertFalse(MTransactionManager.rollbacked);
+ }
- /**
- * This is utility method that checks if the {@link
TransactionManager#begin(boolean)},{@link TransactionManager#commit()},
- * {@link TransactionManager#rollback()} are called properly. If the
transaction not finished normally begin() and
- * rollback() are called and commit() is not called
- */
- private void testRollbacked() {
- /* started and rollbacked */
- assertTrue(MTransactionManager.started);
- assertTrue(MTransactionManager.rollbacked);
- assertFalse(MTransactionManager.commited);
- }
+ /**
+ * This is utility method that checks if the {@link
TransactionManager#begin(boolean)},
+ * {@link TransactionManager#commit()}, {@link
TransactionManager#rollback()} are called properly. If the transaction
+ * not finished normally begin() and rollback() are called and commit()
is not called
+ */
+ private void testRollbacked() {
+ /* started and rollbacked */
+ assertTrue(MTransactionManager.started);
+ assertTrue(MTransactionManager.rollbacked);
+ assertFalse(MTransactionManager.commited);
+ }
}
=======================================
---
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/apps/simple/TestServiceCalls2.java
Sat Feb 27 06:56:25 2010
+++
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/apps/simple/TestServiceCalls2.java
Sat Dec 1 16:22:49 2012
@@ -27,7 +27,6 @@
import org.mozzes.application.demo.mockups.SimpleOjbect;
import org.mozzes.application.demo.mockups.services.basic.BasicService;
-
/**
* This test case shows how client is calling server's service methods.
*
@@ -35,47 +34,47 @@
*/
public class TestServiceCalls2 extends TestBase {
- /**
- * Client is calling service method that simply is returning 123 value.
- */
- @Test
- public void testServiceMethodCall2() {
- MozzesClient client = getClient();
- try {
- client.login(validUsername1, validPassword1);
+ /**
+ * Client is calling service method that simply is returning 123 value.
+ */
+ @Test
+ public void testServiceMethodCall2() {
+ MozzesClient client = getClient();
+ try {
+ client.login(validUsername1, validPassword1);
- SimpleOjbect a = new SimpleOjbect();
- a.setSimpleAttribute("aaa");
- client.getService(BasicService.class).setA(a);
+ SimpleOjbect a = new SimpleOjbect();
+ a.setSimpleAttribute("aaa");
+ client.getService(BasicService.class).setA(a);
- a.setSimpleAttribute("bbbb");
- client.getService(BasicService.class).setA(a);
- client.logout();
- } catch (AuthorizationFailedException e) {
- logger.warn(e.getMessage(),e);
- }
- }
+ a.setSimpleAttribute("bbbb");
+ client.getService(BasicService.class).setA(a);
+ client.logout();
+ } catch (AuthorizationFailedException e) {
+ logger.warn(e.getMessage(), e);
+ }
+ }
- /**
- * Client is calling service method that simply is returning 123 value.
- */
- @Test
- public void testServiceMethodCall22() {
- MozzesClient client = getClient();
- try {
- client.login(validUsername1, validPassword1);
+ /**
+ * Client is calling service method that simply is returning 123 value.
+ */
+ @Test
+ public void testServiceMethodCall22() {
+ MozzesClient client = getClient();
+ try {
+ client.login(validUsername1, validPassword1);
- SimpleOjbect a = new SimpleOjbect();
- a.setSimpleAttribute("aaa");
- client.getService(BasicService.class).setA(a);
+ SimpleOjbect a = new SimpleOjbect();
+ a.setSimpleAttribute("aaa");
+ client.getService(BasicService.class).setA(a);
- SimpleOjbect a1 = new SimpleOjbect();
- a1.setSimpleAttribute("bbbb");
- client.getService(BasicService.class).setA(a1);
- client.logout();
- } catch (AuthorizationFailedException e) {
- logger.warn(e.getMessage(),e);
- }
- }
+ SimpleOjbect a1 = new SimpleOjbect();
+ a1.setSimpleAttribute("bbbb");
+ client.getService(BasicService.class).setA(a1);
+ client.logout();
+ } catch (AuthorizationFailedException e) {
+ logger.warn(e.getMessage(), e);
+ }
+ }
}
=======================================
---
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/apps/simple/TestServiceInjecting.java
Sat Feb 27 06:56:25 2010
+++
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/apps/simple/TestServiceInjecting.java
Sat Dec 1 16:22:49 2012
@@ -27,7 +27,6 @@
import org.mozzes.application.demo.mockups.services.basic.*;
import org.mozzes.application.demo.mockups.services.scopedata.*;
-
/**
* In this test case we're testing that Server's services can call each
other
*
@@ -37,12 +36,12 @@
*/
public class TestServiceInjecting extends TestBase {
- /**
- * Test that value is returned from the injected service
- */
- @Test
- public void testServiceMethodCall() {
- int result =
getClient().getService(ServiceThatInjectOtherService.class).getIntegerFromInjectedService();
- assertEquals(BasicService.returnedValue.intValue(), result);
- }
+ /**
+ * Test that value is returned from the injected service
+ */
+ @Test
+ public void testServiceMethodCall() {
+ int result =
getClient().getService(ServiceThatInjectOtherService.class).getIntegerFromInjectedService();
+ assertEquals(BasicService.returnedValue.intValue(), result);
+ }
}
=======================================
---
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/apps/simple/TestServiceInjectingBad.java
Sat Feb 27 06:56:25 2010
+++
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/apps/simple/TestServiceInjectingBad.java
Sat Dec 1 16:22:49 2012
@@ -30,7 +30,6 @@
import org.mozzes.application.demo.mockups.services.basic.impl.*;
import org.mozzes.application.demo.mockups.services.scopedata.*;
-
/**
* In this test case we're testing that Server's services can call each
other
*
@@ -40,25 +39,25 @@
*/
public class TestServiceInjectingBad extends TestBase {
- /**
- * This method should fail because the injecting of the implementation is
not good practice
- *
- * TODO: should fail injecting implementation
- */
- @Test
- public void testServiceMethodCallInjectedImplementation() {
- int result =
getClient().getService(ServiceThatInjectOtherService.class).getIntegerFromInjectedService();
- assertEquals(BasicService.returnedValue.intValue(), result);
- }
+ /**
+ * This method should fail because the injecting of the implementation
is not good practice
+ *
+ * TODO: should fail injecting implementation
+ */
+ @Test
+ public void testServiceMethodCallInjectedImplementation() {
+ int result =
getClient().getService(ServiceThatInjectOtherService.class).getIntegerFromInjectedService();
+ assertEquals(BasicService.returnedValue.intValue(), result);
+ }
- /**
- * {@link ServiceThatInjectOtherServiceImplBad} is bad implementation
because it's injecting implementation rather
- * than interface so test should fail
- */
- @Override
- protected HashMap<Class<?>, Class<?>> getServices() {
- HashMap<Class<?>, Class<?>> map = super.getServices();
- map.put(ServiceThatInjectOtherService.class,
ServiceThatInjectOtherServiceImplBad.class);
- return map;
- }
+ /**
+ * {@link ServiceThatInjectOtherServiceImplBad} is bad implementation
because it's injecting implementation rather
+ * than interface so test should fail
+ */
+ @Override
+ protected HashMap<Class<?>, Class<?>> getServices() {
+ HashMap<Class<?>, Class<?>> map = super.getServices();
+ map.put(ServiceThatInjectOtherService.class,
ServiceThatInjectOtherServiceImplBad.class);
+ return map;
+ }
}
=======================================
---
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/mockups/MAuthorizationManager.java
Sat Feb 27 06:56:25 2010
+++
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/mockups/MAuthorizationManager.java
Sat Dec 1 16:22:49 2012
@@ -25,7 +25,6 @@
import
org.mozzes.application.common.exceptions.AuthorizationFailedException;
import org.mozzes.application.plugin.authorization.AuthorizationManager;
-
/**
* This is the mockup authorization manager used only in the testing. It
allows only credentials specified in the
* validCredentials list.
@@ -34,41 +33,40 @@
*/
public class MAuthorizationManager implements AuthorizationManager {
- /**
- * list of valid credentials. every element is the array of 2
elements:username and password
- */
- private static ArrayList<String[]> validCredentials = new
ArrayList<String[]>();
+ /**
+ * list of valid credentials. every element is the array of 2
elements:username and password
+ */
+ private static ArrayList<String[]> validCredentials = new
ArrayList<String[]>();
- public static boolean isUserLogged = false;
+ public static boolean isUserLogged = false;
- /**
- * @see AuthorizationManager#authorize(java.lang.String, java.lang.String)
- */
- @Override
- public long authorize(String username, String password) throws
AuthorizationFailedException {
- if (!isValid(username, password))
- throw new AuthorizationFailedException();
+ /**
+ * @see AuthorizationManager#authorize(java.lang.String,
java.lang.String)
+ */
+ @Override
+ public long authorize(String username, String password) throws
AuthorizationFailedException {
+ if (!isValid(username, password))
+ throw new AuthorizationFailedException();
-
- isUserLogged = true;
- return Long.MAX_VALUE;
- }
+ isUserLogged = true;
+ return Long.MAX_VALUE;
+ }
- /**
- * Testing if the username/password combination is present in the
validCredential list.
- */
- private boolean isValid(String username, String password) {
- for (String[] credentials : validCredentials)
- if (credentials[0].equals(username) && credentials[1].equals(password))
- return true;
+ /**
+ * Testing if the username/password combination is present in the
validCredential list.
+ */
+ private boolean isValid(String username, String password) {
+ for (String[] credentials : validCredentials)
+ if (credentials[0].equals(username) &&
credentials[1].equals(password))
+ return true;
- return false;
- }
+ return false;
+ }
- /**
- * Add username/password combination to the valid credential list
- */
- public static void addValidCredentials(String username, String password) {
- validCredentials.add(new String[] { username, password });
- }
+ /**
+ * Add username/password combination to the valid credential list
+ */
+ public static void addValidCredentials(String username, String password)
{
+ validCredentials.add(new String[] { username, password });
+ }
}
=======================================
---
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/mockups/MIgnoredException.java
Sat Feb 27 06:56:25 2010
+++
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/mockups/MIgnoredException.java
Sat Dec 1 16:22:49 2012
@@ -31,21 +31,21 @@
@TransactionIgnored
public class MIgnoredException extends RuntimeException {
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = 1L;
- public MIgnoredException() {
- super();
- }
+ public MIgnoredException() {
+ super();
+ }
- public MIgnoredException(String message, Throwable cause) {
- super(message, cause);
- }
+ public MIgnoredException(String message, Throwable cause) {
+ super(message, cause);
+ }
- public MIgnoredException(String message) {
- super(message);
- }
+ public MIgnoredException(String message) {
+ super(message);
+ }
- public MIgnoredException(Throwable cause) {
- super(cause);
- }
+ public MIgnoredException(Throwable cause) {
+ super(cause);
+ }
}
=======================================
---
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/mockups/MTransactionManager.java
Sat Feb 27 06:56:25 2010
+++
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/mockups/MTransactionManager.java
Sat Dec 1 16:22:49 2012
@@ -31,40 +31,40 @@
*/
public class MTransactionManager implements TransactionManager {
- public static boolean commited = false;
+ public static boolean commited = false;
- public static boolean rollbacked = false;
+ public static boolean rollbacked = false;
- public static boolean started = false;
+ public static boolean started = false;
- /**
- * if we're starting new transaction commited and rollbacked are false
again
- */
- @Override
- public void begin(boolean nested) {
- started = true;
- rollbacked = false;
- commited = false;
- }
+ /**
+ * if we're starting new transaction commited and rollbacked are false
again
+ */
+ @Override
+ public void begin(boolean nested) {
+ started = true;
+ rollbacked = false;
+ commited = false;
+ }
- /**
- * @see TransactionManager#commit()
- */
- @Override
- public void commit() {
- commited = true;
- }
+ /**
+ * @see TransactionManager#commit()
+ */
+ @Override
+ public void commit() {
+ commited = true;
+ }
+
+ /**
+ * @see TransactionManager#rollback()
+ */
+ @Override
+ public void rollback() {
+ rollbacked = true;
+ }
+
+ @Override
+ public void finalizeTransaction(boolean successful) {
- /**
- * @see TransactionManager#rollback()
- */
- @Override
- public void rollback() {
- rollbacked = true;
- }
-
- @Override
- public void finalizeTransaction(boolean successful) {
-
- }
+ }
}
=======================================
---
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/mockups/ServerStarter.java
Sat Feb 27 06:56:25 2010
+++
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/mockups/ServerStarter.java
Sat Dec 1 16:22:49 2012
@@ -24,15 +24,15 @@
public class ServerStarter extends Thread {
- private final MozzesServer server;
+ private final MozzesServer server;
- public ServerStarter(MozzesServer server) {
- this.server = server;
- }
+ public ServerStarter(MozzesServer server) {
+ this.server = server;
+ }
- @Override
- public void run() {
- server.start();
- }
+ @Override
+ public void run() {
+ server.start();
+ }
}
=======================================
---
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/mockups/SimpleOjbect.java
Sat Feb 27 06:56:25 2010
+++
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/mockups/SimpleOjbect.java
Sat Dec 1 16:22:49 2012
@@ -24,15 +24,15 @@
public class SimpleOjbect implements Serializable {
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = 1L;
- private String simpleAttribute;
+ private String simpleAttribute;
- public String getSimpleAttribute() {
- return simpleAttribute;
- }
+ public String getSimpleAttribute() {
+ return simpleAttribute;
+ }
- public void setSimpleAttribute(String simpleAttribute) {
- this.simpleAttribute = simpleAttribute;
- }
+ public void setSimpleAttribute(String simpleAttribute) {
+ this.simpleAttribute = simpleAttribute;
+ }
}
=======================================
---
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/mockups/scopedata/AbstractScopeData.java
Sat Feb 27 06:56:25 2010
+++
/trunk/mozzesApplication/mozzesApplicationDemo/src/test/java/org/mozzes/application/demo/mockups/scopedata/AbstractScopeData.java
Sat Dec 1 16:22:49 2012
@@ -27,13 +27,13 @@
*/
public abstract class AbstractScopeData {
- private int counter = 0;
+ private int counter = 0;
- public int getCounter() {
- return counter;
- }
+ public int getCounter() {
+ return counter;
+ }
- public void increment() {
- counter++;
- }
+ public void increment() {
+ counter++;
+ }
}
=======================================
***Additional files exist in this changeset.***