~ubuntu-branches/ubuntu/trusty/ehcache/trusty

« back to all changes in this revision

Viewing changes to src/test/java/net/sf/ehcache/AutoVersioningElementTest.java

  • Committer: Package Import Robot
  • Author(s): Emmanuel Bourg
  • Date: 2013-05-06 14:53:07 UTC
  • mfrom: (1.1.7) (2.1.8 sid)
  • Revision ID: package-import@ubuntu.com-20130506145307-v5bhw5yu70re00l3
Tags: 2.6.7-1
* Team upload.
* New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/**
2
 
 *  Copyright 2003-2010 Terracotta, Inc.
 
2
 *  Copyright Terracotta, Inc.
3
3
 *
4
4
 *  Licensed under the Apache License, Version 2.0 (the "License");
5
5
 *  you may not use this file except in compliance with the License.
16
16
 
17
17
package net.sf.ehcache;
18
18
 
 
19
import static org.junit.Assert.assertEquals;
 
20
import net.sf.ehcache.store.MemoryStoreEvictionPolicy;
 
21
 
19
22
import org.junit.Test;
20
 
import net.sf.ehcache.store.MemoryStoreEvictionPolicy;
21
 
 
22
 
import static org.junit.Assert.assertEquals;
23
23
 
24
24
public class AutoVersioningElementTest {
25
25
 
35
35
            Element a = new Element("a key", "a value", 1L);
36
36
            cache.put(a);
37
37
            Element aAfter = cache.get("a key");
38
 
            assertEquals(1L, aAfter.getVersion());
 
38
            assertEquals(aAfter.getLastUpdateTime(), aAfter.getVersion());
39
39
 
40
40
            Element b = new Element("a key", "a value");
41
41
            cache.put(b);