use of com.alibaba.nacos.naming.selector.LabelSelector in project nacos by alibaba.
the class ServiceMetadataTest method testSetSelector.
@Test
public void testSetSelector() {
LabelSelector labelSelector = new LabelSelector();
serviceMetadata.setSelector(labelSelector);
Selector selector = serviceMetadata.getSelector();
Assert.assertNotNull(selector);
boolean result = selector instanceof LabelSelector;
Assert.assertTrue(result);
}
Aggregations