Statistics
| Branch: | Revision:

root / extensions / joda / src / test / java / org / jclouds / date / joda / JodaDateServiceTest.java @ 35e7942d

History | View | Annotate | Download (1.7 kB)

1
/**
2
 *
3
 * Copyright (C) 2009 Cloud Conscious, LLC. <info@cloudconscious.com>
4
 *
5
 * ====================================================================
6
 * Licensed under the Apache License, Version 2.0 (the "License");
7
 * you may not use this file except in compliance with the License.
8
 * You may obtain a copy of the License at
9
 *
10
 * http://www.apache.org/licenses/LICENSE-2.0
11
 *
12
 * Unless required by applicable law or agreed to in writing, software
13
 * distributed under the License is distributed on an "AS IS" BASIS,
14
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
 * See the License for the specific language governing permissions and
16
 * limitations under the License.
17
 * ====================================================================
18
 */
19
package org.jclouds.date.joda;
20

    
21
import org.jclouds.date.DateService;
22
import org.jclouds.date.DateServiceTest;
23
import org.jclouds.date.joda.config.JodaDateServiceModule;
24
import org.testng.annotations.BeforeTest;
25
import org.testng.annotations.Test;
26

    
27
import com.google.inject.Guice;
28
import com.google.inject.Injector;
29

    
30
/* 
31
 * TODO: Scrap any non-DateService references (eg Joda & Amazon) if/when
32
 * we confirm that the DateService is fast enough.
33
 */
34

    
35
/**
36
 * Compares performance of date operations
37
 * 
38
 * @author Adrian Cole
39
 * @author James Murty
40
 */
41
@Test(sequential = true, timeOut = 2 * 60 * 1000, testName = "core.JodaDateServiceTest")
42
public class JodaDateServiceTest extends DateServiceTest {
43
   @Override
44
   @BeforeTest
45
   protected void createDateService() {
46
      Injector i = Guice.createInjector(new JodaDateServiceModule());
47
      dateService = i.getInstance(DateService.class);
48
      assert dateService instanceof JodaDateService;
49
   }
50

    
51
}