[ https://issues.apache.org/jira/browse/GEODE-2196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15751875#comment-15751875 ]
ASF GitHub Bot commented on GEODE-2196: --------------------------------------- Github user jaredjstewart commented on a diff in the pull request: https://github.com/apache/geode/pull/317#discussion_r92652733 --- Diff: geode-core/src/test/java/org/apache/geode/test/dunit/rules/Locator.java --- @@ -0,0 +1,28 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license + * agreements. See the NOTICE file distributed with this work for additional information regarding + * copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance with the License. You may obtain a + * copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + * + */ + +package org.apache.geode.test.dunit.rules; + +import org.apache.geode.test.dunit.VM; + +import java.io.File; + +public class Locator extends Member { --- End diff -- The idea is to treat Locators and Servers differently through polymorphism. So rather than having to write: ``` Member locator; Member server; config.verifyLocator(locator); config.verifyServer(server); ``` You could write instead: ``` Locator locator; Server server; config.verify(locator); config.verify(server); ``` where config has two different verify methods, one taking a Server and another taking a Locator. > Write more tests to cover the current behavior of cluster config > ---------------------------------------------------------------- > > Key: GEODE-2196 > URL: https://issues.apache.org/jira/browse/GEODE-2196 > Project: Geode > Issue Type: Sub-task > Components: management > Reporter: Jinmei Liao > Assignee: Mark Bretl > Fix For: 1.1.0 > > -- This message was sent by Atlassian JIRA (v6.3.4#6332)