所属分类:
Java书籍
开发工具:Java
文件大小:591KB
下载次数:10
上传日期:2005-12-30 17:58:28
说明: 不管是测试驱动开发或者是其它的开发模式,都会需要对代码进行单元测试,对于关联依赖关系少或者比较简单的类来说,直接使用JUnit就可以轻松的完成测试工作,但是对于关联到其它比较复杂的类或对运行环境有要求的类的单元测试,比如ejb,servlet或Dao等,测试起来或者需要配置特定的环境,或者十分耗时,给单元测试造成困难。在这里使用JMock来模拟那些不需要测试的类
(regardless of test-driven development, or other pattern of development, will need to test code modules, Association for less dependence or relatively simple category, direct use JUnit can easily complete the testing, But linked to other more complex type or operating environment to the requirements of the unit test categories, such as Bob, servlet or Dao, up tests or specific configuration needs of the environment, or very time-consuming, to unit test difficult. Here JMock used to simulate those who do not need the test category)
文件列表:
jmock-1.0.1
...........\build.properties
...........\build.xml
...........\CHANGELOG
...........\core
...........\....\acceptance-tests
...........\....\................\atest
...........\....\................\.....\jmock
...........\....\................\.....\.....\BadMethodNameAcceptanceTest.java
...........\....\................\.....\.....\ClassLoaderAcceptanceTest.java
...........\....\................\.....\.....\ConsecutiveCallsAcceptanceTest.java
...........\....\................\.....\.....\DynamicMockExample.java
...........\....\................\.....\.....\ErrorMessagesAcceptanceTest.java
...........\....\................\.....\.....\ExpectNeverAcceptanceTest.java
...........\....\................\.....\.....\OrderedInvocationsAcceptanceTest.java
...........\....\................\.....\.....\ReturnTypeAcceptanceTest.java
...........\....\................\.....\.....\Types.java
...........\....\src
...........\....\...\org
...........\....\...\...\jmock
...........\....\...\...\.....\builder
...........\....\...\...\.....\.......\ArgumentsMatchBuilder.java
...........\....\...\...\.....\.......\BuilderNamespace.java
...........\....\...\...\.....\.......\IdentityBuilder.java
...........\....\...\...\.....\.......\InvocationMockerBuilder.java
...........\....\...\...\.....\.......\InvocationMockerDescriber.java
...........\....\...\...\.....\.......\MatchBuilder.java
...........\....\...\...\.....\.......\NameMatchBuilder.java
...........\....\...\...\.....\.......\StubBuilder.java
...........\....\...\...\.....\core
...........\....\...\...\.....\....\AbstractDynamicMock.java
...........\....\...\...\.....\....\constraint
...........\....\...\...\.....\....\..........\And.java
...........\....\...\...\.....\....\..........\IsAnything.java
...........\....\...\...\.....\....\..........\IsCloseTo.java
...........\....\...\...\.....\....\..........\IsEqual.java
...........\....\...\...\.....\....\..........\IsEventFrom.java
...........\....\...\...\.....\....\..........\IsGreaterThan.java
...........\....\...\...\.....\....\..........\IsInstanceOf.java
...........\....\...\...\.....\....\..........\IsLessThan.java
...........\....\...\...\.....\....\..........\IsNot.java
...........\....\...\...\.....\....\..........\IsNull.java
...........\....\...\...\.....\....\..........\IsSame.java
...........\....\...\...\.....\....\..........\Or.java
...........\....\...\...\.....\....\..........\StringContains.java
...........\....\...\...\.....\....\Constraint.java
...........\....\...\...\.....\....\CoreMock.java
...........\....\...\...\.....\....\DynamicMock.java
...........\....\...\...\.....\....\DynamicMockError.java
...........\....\...\...\.....\....\FIFOInvocationDispatcher.java
...........\....\...\...\.....\....\Formatting.java
...........\....\...\...\.....\....\Invocation.java
...........\....\...\...\.....\....\InvocationDispatcher.java
...........\....\...\...\.....\....\InvocationMatcher.java
...........\....\...\...\.....\....\InvocationMocker.java
...........\....\...\...\.....\....\Invokable.java
...........\....\...\...\.....\....\LIFOInvocationDispatcher.java
...........\....\...\...\.....\....\matcher
...........\....\...\...\.....\....\.......\AnyArgumentsMatcher.java
...........\....\...\...\.....\....\.......\ArgumentsMatcher.java
...........\....\...\...\.....\....\.......\InvokeAtLeastOnceMatcher.java
...........\....\...\...\.....\....\.......\InvokedAfterMatcher.java
...........\....\...\...\.....\....\.......\InvokedRecorder.java
...........\....\...\...\.....\....\.......\InvokeOnceMatcher.java
...........\....\...\...\.....\....\.......\MethodNameMatcher.java
...........\....\...\...\.....\....\.......\NoArgumentsMatcher.java
...........\....\...\...\.....\....\.......\StatelessInvocationMatcher.java
...........\....\...\...\.....\....\.......\TestFailureMatcher.java
...........\....\...\...\.....\....\MockObjectSupportTestCase.java
...........\....\...\...\.....\....\SelfDescribing.java
...........\....\...\...\.....\....\stub
...........\....\...\...\.....\....\....\CustomStub.java
...........\....\...\...\.....\....\....\DefaultResultStub.java
...........\....\...\...\.....\....\....\ReturnStub.java
...........\....\...\...\.....\....\....\StubSequence.java
...........\....\...\...\.....\....\....\TestFailureStub.java
...........\....\...\...\.....\....\....\ThrowStub.java
...........\....\...\...\.....\....\....\VoidStub.java
...........\....\...\...\.....\....\Stub.java
...........\....\...\...\.....\....\StubMatchersCollection.java
...........\....\...\...\.....\....\Verifiable.java
...........\....\...\...\.....\....\VerifyingTestCase.java
...........\....\...\...\.....\expectation
...........\....\...\...\.....\...........\AbstractExpectation.java
...........\....\...\...\.....\...........\AbstractExpectationCollection.java
...........\....\...\...\.....\...........\AssertMo.java
...........\....\...\...\.....\...........\ExceptionalReturnValue.java
...........\....\...\...\.....\...........\Expectation.java
...........\....\...\...\.....\...........\ExpectationCollection.java
...........\....\...\...\.....\...........\ExpectationCounter.java
...........\....\...\...\.....\...........\ExpectationDoubleValue.java
...........\....\...\...\.....\...........\ExpectationList.java
...........\....\...\...\.....\...........\ExpectationMap.java
...........\....\...\...\.....\...........\ExpectationSegment.java
...........\....\...\...\.....\...........\ExpectationSet.java
...........\....\...\...\.....\...........\ExpectationValue.java
...........\....\...\...\.....\...........\MapEntry.java
...........\....\...\...\.....\...........\MockObject.java
...........\....\...\...\.....\...........\Null.java
...........\....\...\...\.....\...........\ReturnObjectBag.java