Search in sources :

Example 1 with LabelSelector

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);
}
Also used : LabelSelector(com.alibaba.nacos.naming.selector.LabelSelector) Selector(com.alibaba.nacos.api.selector.Selector) LabelSelector(com.alibaba.nacos.naming.selector.LabelSelector) NoneSelector(com.alibaba.nacos.naming.selector.NoneSelector) Test(org.junit.Test)

Aggregations

Selector (com.alibaba.nacos.api.selector.Selector)1 LabelSelector (com.alibaba.nacos.naming.selector.LabelSelector)1 NoneSelector (com.alibaba.nacos.naming.selector.NoneSelector)1 Test (org.junit.Test)1