2 * Copyright (c) 2017 Red Hat, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.genius.mdsalutil.matches.tests;
10 import static org.junit.Assert.assertEquals;
12 import org.junit.ComparisonFailure;
13 import org.junit.Test;
14 import org.opendaylight.genius.mdsalutil.matches.MatchIpv4Source;
15 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4Prefix;
17 public class MatchIpv4SourceTest {
19 @Test(expected = ComparisonFailure.class)
20 public void testMatchIpv4SourceAssertEqual() {
21 MatchIpv4Source matchIpv4Source1 = new MatchIpv4Source(new Ipv4Prefix("10.0.0.1/32"));
22 MatchIpv4Source matchIpv4Source2 = new MatchIpv4Source(new Ipv4Prefix("10.0.0.2/32"));
23 assertEquals(matchIpv4Source1.toString(), matchIpv4Source2.toString());