瀏覽代碼

fix unit

tags/archiva-2.1.0
Olivier Lamy 10 年之前
父節點
當前提交
d93e36e62d

+ 5
- 5
archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/ArchivaDavResourceFactoryTest.java 查看文件



expect( archivaConfiguration.getConfiguration() ).andReturn( config ).times( 3 ); expect( archivaConfiguration.getConfiguration() ).andReturn( config ).times( 3 );


expect( request.getMethod() ).andReturn( "GET" ).times( 2 );
expect( request.getMethod() ).andReturn( "GET" ).times( 3 );


expect( request.getPathInfo() ).andReturn( "org/apache/archiva" ).times( 0, 2 ); expect( request.getPathInfo() ).andReturn( "org/apache/archiva" ).times( 0, 2 );




expect( archivaConfiguration.getConfiguration() ).andReturn( config ).times( 3 ); expect( archivaConfiguration.getConfiguration() ).andReturn( config ).times( 3 );


expect( request.getMethod() ).andReturn( "GET" ).times( 2 );
expect( request.getMethod() ).andReturn( "GET" ).times( 3 );


expect( request.getPathInfo() ).andReturn( "org/apache/archiva" ).times( 0, 2 ); expect( request.getPathInfo() ).andReturn( "org/apache/archiva" ).times( 0, 2 );




expect( archivaConfiguration.getConfiguration() ).andReturn( config ).times( 3 ); expect( archivaConfiguration.getConfiguration() ).andReturn( config ).times( 3 );


expect( request.getMethod() ).andReturn( "GET" ).times( 4 );
expect( request.getMethod() ).andReturn( "GET" ).times( 5 );


expect( request.getPathInfo() ).andReturn( "org/apache/archiva" ).times( 0, 2 ); expect( request.getPathInfo() ).andReturn( "org/apache/archiva" ).times( 0, 2 );




expect( repoFactory.getManagedRepositoryContent( INTERNAL_REPO ) ).andReturn( internalRepo ); expect( repoFactory.getManagedRepositoryContent( INTERNAL_REPO ) ).andReturn( internalRepo );


expect( request.getMethod() ).andReturn( "GET" ).times( 3 );
expect( request.getMethod() ).andReturn( "GET" ).times( 4 );


expect( request.getRemoteAddr() ).andReturn( "http://localhost:8080" ).times( 3 ); expect( request.getRemoteAddr() ).andReturn( "http://localhost:8080" ).times( 3 );




expect( repoFactory.getManagedRepositoryContent( LEGACY_REPO ) ).andReturn( legacyRepo ); expect( repoFactory.getManagedRepositoryContent( LEGACY_REPO ) ).andReturn( legacyRepo );


expect( request.getMethod() ).andReturn( "GET" ).times( 2 );
expect( request.getMethod() ).andReturn( "GET" ).times( 3 );


expect( request.getRemoteAddr() ).andReturn( "http://localhost:8080" ).times( 3 ); expect( request.getRemoteAddr() ).andReturn( "http://localhost:8080" ).times( 3 );



Loading…
取消
儲存