Skip to content

Commit e30809b

Browse files
author
Ryan
committed
initial load - placeholder only right now.
1 parent 12445f8 commit e30809b

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
/**
2+
* Copyright (C) 2011 10gen Inc.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package com.mongodb;
18+
19+
import org.testng.annotations.Test;
20+
21+
import com.mongodb.ReplicaSetStatus.Node;
22+
23+
24+
import com.mongodb.util.TestCase;
25+
26+
import java.util.*;
27+
28+
/**
29+
* This is a placeholder. A node needs to be able to be created outside of ReplicaSetStatus.
30+
*/
31+
public class ReplicaSetStatusTest extends TestCase {
32+
33+
@Test
34+
public void testFindASecondary() throws Exception {
35+
36+
//final List<Node> nodes = new ArrayList<Node>();
37+
38+
//final Node node1 = new Node(new ServerAddress("127.0.0.1", 27017));
39+
40+
/*
41+
boolean _ok = false;
42+
long _lastCheck = 0;
43+
float _pingTime = 0;
44+
45+
boolean _isMaster = false;
46+
boolean _isSecondary = false;
47+
48+
double _priority = 0;
49+
50+
51+
52+
final Random random = new Random();
53+
54+
final ServerAddress addr = ReplicaSetStatus.getASecondary( null, null, nodes, random);
55+
*/
56+
}
57+
}
58+

0 commit comments

Comments
 (0)