| | |
| | | * |
| | | * |
| | | * Copyright 2008-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2013-2014 ForgeRock AS. |
| | | * Portions Copyright 2013-2015 ForgeRock AS. |
| | | */ |
| | | package org.opends.server.replication.service; |
| | | |
| | |
| | | |
| | | /** |
| | | * Test with one replication server, only replication server has a non null |
| | | * CSN for ds server id |
| | | * CSN for ds server id. |
| | | */ |
| | | @Test |
| | | public void testNullCSNDS() throws Exception |
| | |
| | | Assertions.assertThat(evaluations).hasSize(entries.length); |
| | | } |
| | | |
| | | /** Contains ordinal for each message */ |
| | | /** Contains ordinal for each message. */ |
| | | private Map<Integer, Integer> getOrdinal(Map<Integer, LocalizableMessage> evaluations) |
| | | { |
| | | final Map<Integer, Integer> result = new LinkedHashMap<Integer, Integer>(); |
| | |
| | | } |
| | | |
| | | /** |
| | | * Test with 3 replication servers (see data provider) |
| | | * Test with 3 replication servers (see data provider). |
| | | */ |
| | | @Test(dataProvider = "create3ServersData") |
| | | public void test3Servers( |
| | |
| | | } |
| | | |
| | | /** |
| | | * Test with 3 replication servers (see data provider) |
| | | * Test with 3 replication servers (see data provider). |
| | | */ |
| | | @Test(dataProvider = "test3ServersMoreCriteria") |
| | | public void test3ServersMoreCriteria( |
| | |
| | | } |
| | | |
| | | /** |
| | | * Test the method that chooses the best RS using the RS weights |
| | | * Test the method that chooses the best RS using the RS weights. |
| | | */ |
| | | @Test(dataProvider = "testComputeBestServerForWeightProvider") |
| | | public void testComputeBestServerForWeight( |