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

« back to all changes in this revision

Viewing changes to src/test/java/net/sf/ehcache/distribution/RMIDistributedCacheTest.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.
42
42
 * Note these tests need a live network interface running in multicast mode to work
43
43
 *
44
44
 * @author Greg Luck
45
 
 * @version $Id: RMIDistributedCacheTest.java 4248 2011-06-30 20:37:18Z cdennis $
 
45
 * @version $Id: RMIDistributedCacheTest.java 6490 2012-10-30 18:21:49Z cdennis $
46
46
 */
47
47
public class RMIDistributedCacheTest extends AbstractRMITest {
48
48
 
64
64
 
65
65
    private final String hostName = "localhost";
66
66
 
67
 
    private final Integer port = Integer.valueOf(40000);
 
67
    private final Integer port = Integer.valueOf(5010);
68
68
    private final Integer remoteObjectPort = Integer.valueOf(0);
69
69
    private Element element;
70
70
    private CachePeer cache1Peer;
77
77
     */
78
78
    @Before
79
79
    public void setUp() throws Exception {
80
 
 
81
80
        manager = CacheManager.create(AbstractCacheTest.TEST_CONFIG_DIR + "distribution/ehcache-distributed1.xml");
82
 
        MulticastKeepaliveHeartbeatSender.setHeartBeatInterval(1000);
83
81
        sampleCache1 = manager.getCache(cacheName1);
84
82
        sampleCache1.removeAll();
85
83
        element = new Element("key", new Date());