Package com.antonytrupe.server

Source Code of com.antonytrupe.server.GAETestCase

package com.antonytrupe.server;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import com.google.appengine.tools.development.testing.LocalDatastoreServiceTestConfig;
import com.google.appengine.tools.development.testing.LocalMemcacheServiceTestConfig;
import com.google.appengine.tools.development.testing.LocalServiceTestHelper;

public class GAETestCase {
  LocalServiceTestHelper helper;

  @Before
  public void setUp() {
    LocalDatastoreServiceTestConfig dsConfig = new LocalDatastoreServiceTestConfig();

    LocalMemcacheServiceTestConfig mcConfig = new LocalMemcacheServiceTestConfig();

    dsConfig.setBackingStoreLocation("C:\\local_db.bin");
    // this needs to be false to persist, but in unit tests, why do so?
    dsConfig.setNoStorage(true);
    dsConfig.setDefaultHighRepJobPolicyUnappliedJobPercentage(0);
    this.helper = new LocalServiceTestHelper(dsConfig, mcConfig).setUp();
  }

  @After
  public void tearDown() {
    this.helper.tearDown();
  }

  // make sure we can setUp and tearDown without any issues
  @Test
  public void test() {
    //
  }
}
TOP

Related Classes of com.antonytrupe.server.GAETestCase

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.