+/*
+ * Copyright (c) 2015 Huawei, Inc. and others. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
package org.opendaylight.nemo.intent.algorithm;
import junit.framework.TestCase;
+/*
+ * Copyright (c) 2015 Huawei, Inc. and others. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
package org.opendaylight.nemo.intent.algorithm;
import junit.framework.TestCase;
+/*
+ * Copyright (c) 2015 Huawei, Inc. and others. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
package org.opendaylight.nemo.intent.algorithm;
import junit.framework.TestCase;
when(virtualLink.getDestNodeId()).thenReturn(virtualNodeId);
when(virtualLink.getBandwidth()).thenReturn(1L);
//return to main
+ doNothing().when(pnResourcesTracker).addPhysicalPath(any(UserId.class),any(PhysicalPath.class));
when(virtualLink.getLinkId()).thenReturn(virtualLinkId);
when(virtualLinkId.getValue()).thenReturn(new String("00001111-0000-0000-0000-000011112222"));
vnMappingUnit.virtualNetworkMapping(virtualNetwork, userVnPnMapping, physicalPaths);
+ verify(pnResourcesTracker).addPhysicalPath(any(UserId.class), any(PhysicalPath.class));
verify(userVnPnMapping,times(2)).getVnPnMappingResult();
verify(virtualLink,times(2)).getSrcNodeId();
verify(virtualLink,times(2)).getDestNodeId();
when(virtualLink.getDestNodeId()).thenReturn(virtualNodeId);
when(virtualLink.getBandwidth()).thenReturn(1L);
//return to main
+ doNothing().when(pnResourcesTracker).addPhysicalPath(any(UserId.class),any(PhysicalPath.class));
when(virtualLink.getLinkId()).thenReturn(virtualLinkId);
when(virtualLinkId.getValue()).thenReturn(new String("00001111-0000-0000-0000-000011112222"));
vnMappingUnit.virtualNetworkMapping(virtualNetwork, unmappedVirtualLinks, userVnPnMapping, physicalPaths);
+ verify(pnResourcesTracker).addPhysicalPath(any(UserId.class), any(PhysicalPath.class));
verify(userVnPnMapping,times(2)).getVnPnMappingResult();
verify(virtualLink,times(2)).getSrcNodeId();
verify(virtualLink,times(2)).getDestNodeId();
+/*
+ * Copyright (c) 2015 Huawei, Inc. and others. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
package org.opendaylight.nemo.intent.computation;
import org.junit.Before;
import org.junit.Test;
+/*
+ * Copyright (c) 2015 Huawei, Inc. and others. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
package org.opendaylight.nemo.user.vnspacemanager.languagestyle.NEMOParse;
import org.opendaylight.nemo.user.vnspacemanager.languagestyle.NEMOParse.ParseException;
+/*
+ * Copyright (c) 2015 Huawei, Inc. and others. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
package org.opendaylight.nemo.user.vnspacemanager.languagestyle.NEMOParse;
import org.opendaylight.nemo.user.vnspacemanager.languagestyle.NEMOParse.TokenMgrError;
+/*
+ * Copyright (c) 2015 Huawei, Inc. and others. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
package org.opendaylight.nemo.user.vnspacemanager.languagestyle.NEMOParse;
import org.opendaylight.nemo.user.vnspacemanager.languagestyle.NEMOParse.Token;
+/*
+ * Copyright (c) 2015 Huawei, Inc. and others. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
package org.opendaylight.nemo.renderer.openflow;
import junit.framework.TestCase;
+/*
+ * Copyright (c) 2015 Huawei, Inc. and others. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
package org.opendaylight.nemo.renderer.openflow.physicalnetwork;
import org.junit.Assert;
+/*
+ * Copyright (c) 2015 Huawei, Inc. and others. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
package org.opendaylight.nemo.renderer.openflow.physicalnetwork;
import junit.framework.TestCase;
+/*
+ * Copyright (c) 2015 Huawei, Inc. and others. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
package org.opendaylight.nemo.renderer.openflow.physicalnetwork;
import junit.framework.TestCase;
+/*
+ * Copyright (c) 2015 Huawei, Inc. and others. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
package org.opendaylight.nemo.renderer.openflow.physicalnetwork;
import junit.framework.TestCase;
+/*
+ * Copyright (c) 2015 Huawei, Inc. and others. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
package org.opendaylight.nemo.renderer.openflow.physicalnetwork;
import org.junit.Assert;
import org.junit.Test;
+/*
+ * Copyright (c) 2015 Huawei, Inc. and others. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
package org.opendaylight.nemo.renderer.openflow.utils;
import junit.framework.TestCase;