Revision created by MOE tool push_codebase.
[gae.git] / java / src / main / com / google / appengine / tools / development / testing / LocalFileServiceTestConfig.java
blob38ed071ffda7c84b5fc250effe407e2f60905957
1 // Copyright 2010 Google Inc. All Rights Reserved.
2 package com.google.appengine.tools.development.testing;
4 import com.google.appengine.api.files.dev.LocalFileService;
6 /**
7 * Config for accessing the local file service in tests.
9 */
10 public final class LocalFileServiceTestConfig implements LocalServiceTestConfig {
12 @Override
13 public void setUp() {
14 getLocalFileService();
17 @Override
18 public void tearDown() {
19 getLocalFileService().stop();
22 /**
23 * Creates or returns the existing local file service.
25 * (The LocalServiceTestHelper will create the implementation if it does not already have one and
26 * will return the existing one if it does.)
28 public static LocalFileService getLocalFileService() {
29 return (LocalFileService) LocalServiceTestHelper.getLocalService(LocalFileService.PACKAGE);