Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (C) 2011 Ursa Project LLC ( Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
package com.ursaj.hfs.service;
import static com.ursaj.hfs.HfsTestUtils.RND;

In-memory file service to test.
    private HfsMemoryFileService<HfsFileInfoservice;

Setup test case.

java.lang.Exception In case of any exception.
    public void setUp() throws Exception {
         = new HfsMemoryFileService<HfsFileInfo>();
    protected HfsFileService<HfsFileInfogetService() {
        return ;
    protected HfsFileInfo newFileEntry(UUID fileId) {
        return new HfsFileInfoImpl(fileId"file-" + .nextInt(1000) + ".txt",
            "text/plain"new Date(), .nextLong() & .);
New to GrepCode? Check out our FAQ X