Thomas Vachuska | 4f1a60c | 2014-10-28 13:39:07 -0700 | [diff] [blame] | 1 | /* |
Ray Milkey | 34c9590 | 2015-04-15 09:47:53 -0700 | [diff] [blame] | 2 | * Copyright 2014-2015 Open Networking Laboratory |
Thomas Vachuska | 4f1a60c | 2014-10-28 13:39:07 -0700 | [diff] [blame] | 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
Sho SHIMIZU | 6c28f83 | 2015-02-20 16:12:19 -0800 | [diff] [blame] | 16 | package org.onosproject.net.intent.impl.compiler; |
Ray Milkey | c0fa4db | 2014-10-17 08:49:54 -0700 | [diff] [blame] | 17 | |
Ray Milkey | c0fa4db | 2014-10-17 08:49:54 -0700 | [diff] [blame] | 18 | import org.hamcrest.Matchers; |
Ray Milkey | 40f50b9 | 2014-11-07 13:25:53 -0800 | [diff] [blame] | 19 | import org.junit.Test; |
Brian O'Connor | abafb50 | 2014-12-02 22:26:20 -0800 | [diff] [blame] | 20 | import org.onosproject.TestApplicationId; |
| 21 | import org.onosproject.core.ApplicationId; |
| 22 | import org.onosproject.net.ConnectPoint; |
| 23 | import org.onosproject.net.Link; |
| 24 | import org.onosproject.net.Path; |
| 25 | import org.onosproject.net.flow.TrafficSelector; |
| 26 | import org.onosproject.net.flow.TrafficTreatment; |
| 27 | import org.onosproject.net.intent.AbstractIntentTest; |
Sho SHIMIZU | 0e73880 | 2015-02-20 10:23:28 -0800 | [diff] [blame] | 28 | import org.onosproject.net.intent.Constraint; |
Brian O'Connor | abafb50 | 2014-12-02 22:26:20 -0800 | [diff] [blame] | 29 | import org.onosproject.net.intent.Intent; |
| 30 | import org.onosproject.net.intent.IntentTestsMocks; |
| 31 | import org.onosproject.net.intent.PathIntent; |
| 32 | import org.onosproject.net.intent.PointToPointIntent; |
Sho SHIMIZU | 0e73880 | 2015-02-20 10:23:28 -0800 | [diff] [blame] | 33 | import org.onosproject.net.intent.constraint.BandwidthConstraint; |
| 34 | import org.onosproject.net.intent.constraint.LambdaConstraint; |
Sho SHIMIZU | 6c28f83 | 2015-02-20 16:12:19 -0800 | [diff] [blame] | 35 | import org.onosproject.net.intent.impl.PathNotFoundException; |
Sho SHIMIZU | 0e73880 | 2015-02-20 10:23:28 -0800 | [diff] [blame] | 36 | import org.onosproject.net.resource.Bandwidth; |
Sho SHIMIZU | 94b7ff4 | 2015-05-06 17:51:49 -0700 | [diff] [blame] | 37 | import org.onosproject.net.resource.LambdaResource; |
Sho SHIMIZU | 0e73880 | 2015-02-20 10:23:28 -0800 | [diff] [blame] | 38 | import org.onosproject.net.resource.LinkResourceService; |
Ray Milkey | c0fa4db | 2014-10-17 08:49:54 -0700 | [diff] [blame] | 39 | |
Sho SHIMIZU | b705217 | 2015-02-20 11:09:21 -0800 | [diff] [blame] | 40 | import java.util.Arrays; |
Thomas Vachuska | b97cf28 | 2014-10-20 23:31:12 -0700 | [diff] [blame] | 41 | import java.util.List; |
| 42 | |
Sho SHIMIZU | de8e6b5 | 2014-11-13 11:23:17 -0800 | [diff] [blame] | 43 | import static org.hamcrest.CoreMatchers.instanceOf; |
Ray Milkey | c0fa4db | 2014-10-17 08:49:54 -0700 | [diff] [blame] | 44 | import static org.hamcrest.MatcherAssert.assertThat; |
Sho SHIMIZU | 0e73880 | 2015-02-20 10:23:28 -0800 | [diff] [blame] | 45 | import static org.hamcrest.Matchers.containsString; |
Ray Milkey | c0fa4db | 2014-10-17 08:49:54 -0700 | [diff] [blame] | 46 | import static org.hamcrest.Matchers.hasSize; |
| 47 | import static org.hamcrest.Matchers.is; |
Sho SHIMIZU | 0e73880 | 2015-02-20 10:23:28 -0800 | [diff] [blame] | 48 | import static org.junit.Assert.fail; |
Brian O'Connor | abafb50 | 2014-12-02 22:26:20 -0800 | [diff] [blame] | 49 | import static org.onosproject.net.DefaultEdgeLink.createEdgeLink; |
| 50 | import static org.onosproject.net.DeviceId.deviceId; |
| 51 | import static org.onosproject.net.NetTestTools.APP_ID; |
| 52 | import static org.onosproject.net.NetTestTools.connectPoint; |
| 53 | import static org.onosproject.net.PortNumber.portNumber; |
| 54 | import static org.onosproject.net.intent.LinksHaveEntryWithSourceDestinationPairMatcher.linksHasPath; |
Ray Milkey | c0fa4db | 2014-10-17 08:49:54 -0700 | [diff] [blame] | 55 | |
| 56 | /** |
| 57 | * Unit tests for the HostToHost intent compiler. |
| 58 | */ |
Ray Milkey | 37f6a38 | 2014-11-25 14:54:42 -0800 | [diff] [blame] | 59 | public class PointToPointIntentCompilerTest extends AbstractIntentTest { |
Ray Milkey | c0fa4db | 2014-10-17 08:49:54 -0700 | [diff] [blame] | 60 | |
Thomas Vachuska | b97cf28 | 2014-10-20 23:31:12 -0700 | [diff] [blame] | 61 | private static final ApplicationId APPID = new TestApplicationId("foo"); |
| 62 | |
Ray Milkey | c0fa4db | 2014-10-17 08:49:54 -0700 | [diff] [blame] | 63 | private TrafficSelector selector = new IntentTestsMocks.MockSelector(); |
| 64 | private TrafficTreatment treatment = new IntentTestsMocks.MockTreatment(); |
| 65 | |
| 66 | /** |
| 67 | * Creates a PointToPoint intent based on ingress and egress device Ids. |
| 68 | * |
| 69 | * @param ingressIdString string for id of ingress device |
Thomas Vachuska | b97cf28 | 2014-10-20 23:31:12 -0700 | [diff] [blame] | 70 | * @param egressIdString string for id of egress device |
Ray Milkey | c0fa4db | 2014-10-17 08:49:54 -0700 | [diff] [blame] | 71 | * @return PointToPointIntent for the two devices |
| 72 | */ |
| 73 | private PointToPointIntent makeIntent(String ingressIdString, |
| 74 | String egressIdString) { |
Ray Milkey | 3e3ec5f | 2015-03-17 17:00:38 -0700 | [diff] [blame] | 75 | return PointToPointIntent.builder() |
| 76 | .appId(APPID) |
| 77 | .selector(selector) |
| 78 | .treatment(treatment) |
| 79 | .ingressPoint(connectPoint(ingressIdString, 1)) |
| 80 | .egressPoint(connectPoint(egressIdString, 1)) |
| 81 | .build(); |
Ray Milkey | c0fa4db | 2014-10-17 08:49:54 -0700 | [diff] [blame] | 82 | } |
| 83 | |
| 84 | /** |
Sho SHIMIZU | b705217 | 2015-02-20 11:09:21 -0800 | [diff] [blame] | 85 | * Creates a PointToPoint intent based on ingress and egress deviceIds and constraints. |
| 86 | * |
| 87 | * @param ingressIdString string for id of ingress device |
| 88 | * @param egressIdString string for id of egress device |
| 89 | * @param constraints constraints |
| 90 | * @return PointToPointIntent for the two device with constraints |
| 91 | */ |
| 92 | private PointToPointIntent makeIntent(String ingressIdString, |
| 93 | String egressIdString, List<Constraint> constraints) { |
Ray Milkey | 3e3ec5f | 2015-03-17 17:00:38 -0700 | [diff] [blame] | 94 | return PointToPointIntent.builder() |
| 95 | .appId(APPID) |
| 96 | .selector(selector) |
| 97 | .treatment(treatment) |
| 98 | .ingressPoint(connectPoint(ingressIdString, 1)) |
| 99 | .egressPoint(connectPoint(egressIdString, 1)) |
| 100 | .constraints(constraints) |
| 101 | .build(); |
Sho SHIMIZU | b705217 | 2015-02-20 11:09:21 -0800 | [diff] [blame] | 102 | } |
| 103 | |
| 104 | /** |
Ray Milkey | c0fa4db | 2014-10-17 08:49:54 -0700 | [diff] [blame] | 105 | * Creates a compiler for HostToHost intents. |
| 106 | * |
| 107 | * @param hops string array describing the path hops to use when compiling |
| 108 | * @return HostToHost intent compiler |
| 109 | */ |
| 110 | private PointToPointIntentCompiler makeCompiler(String[] hops) { |
Sho SHIMIZU | b705217 | 2015-02-20 11:09:21 -0800 | [diff] [blame] | 111 | PointToPointIntentCompiler compiler = new PointToPointIntentCompiler(); |
Ray Milkey | 40f50b9 | 2014-11-07 13:25:53 -0800 | [diff] [blame] | 112 | compiler.pathService = new IntentTestsMocks.MockPathService(hops); |
Ray Milkey | c0fa4db | 2014-10-17 08:49:54 -0700 | [diff] [blame] | 113 | return compiler; |
| 114 | } |
| 115 | |
Sho SHIMIZU | 0e73880 | 2015-02-20 10:23:28 -0800 | [diff] [blame] | 116 | /** |
| 117 | * Creates a point to point intent compiler for a three switch linear |
| 118 | * topology. |
| 119 | * |
| 120 | * @param resourceService service to use for resource allocation requests |
| 121 | * @return point to point compiler |
| 122 | */ |
Sho SHIMIZU | b705217 | 2015-02-20 11:09:21 -0800 | [diff] [blame] | 123 | private PointToPointIntentCompiler makeCompiler(String[] hops, LinkResourceService resourceService) { |
Sho SHIMIZU | 0e73880 | 2015-02-20 10:23:28 -0800 | [diff] [blame] | 124 | final PointToPointIntentCompiler compiler = new PointToPointIntentCompiler(); |
| 125 | compiler.resourceService = resourceService; |
| 126 | compiler.pathService = new IntentTestsMocks.MockPathService(hops); |
| 127 | return compiler; |
| 128 | } |
| 129 | |
| 130 | /** |
Ray Milkey | c0fa4db | 2014-10-17 08:49:54 -0700 | [diff] [blame] | 131 | * Tests a pair of devices in an 8 hop path, forward direction. |
| 132 | */ |
Ray Milkey | 40f50b9 | 2014-11-07 13:25:53 -0800 | [diff] [blame] | 133 | @Test |
Ray Milkey | c0fa4db | 2014-10-17 08:49:54 -0700 | [diff] [blame] | 134 | public void testForwardPathCompilation() { |
| 135 | |
| 136 | PointToPointIntent intent = makeIntent("d1", "d8"); |
Ray Milkey | c0fa4db | 2014-10-17 08:49:54 -0700 | [diff] [blame] | 137 | |
| 138 | String[] hops = {"d1", "d2", "d3", "d4", "d5", "d6", "d7", "d8"}; |
| 139 | PointToPointIntentCompiler compiler = makeCompiler(hops); |
Ray Milkey | c0fa4db | 2014-10-17 08:49:54 -0700 | [diff] [blame] | 140 | |
Brian O'Connor | fa81eae | 2014-10-30 13:20:05 -0700 | [diff] [blame] | 141 | List<Intent> result = compiler.compile(intent, null, null); |
Ray Milkey | c0fa4db | 2014-10-17 08:49:54 -0700 | [diff] [blame] | 142 | assertThat(result, is(Matchers.notNullValue())); |
| 143 | assertThat(result, hasSize(1)); |
| 144 | Intent forwardResultIntent = result.get(0); |
| 145 | assertThat(forwardResultIntent instanceof PathIntent, is(true)); |
| 146 | |
| 147 | if (forwardResultIntent instanceof PathIntent) { |
| 148 | PathIntent forwardPathIntent = (PathIntent) forwardResultIntent; |
| 149 | // 7 links for the hops, plus one default lnk on ingress and egress |
| 150 | assertThat(forwardPathIntent.path().links(), hasSize(hops.length + 1)); |
| 151 | assertThat(forwardPathIntent.path().links(), linksHasPath("d1", "d2")); |
| 152 | assertThat(forwardPathIntent.path().links(), linksHasPath("d2", "d3")); |
| 153 | assertThat(forwardPathIntent.path().links(), linksHasPath("d3", "d4")); |
| 154 | assertThat(forwardPathIntent.path().links(), linksHasPath("d4", "d5")); |
| 155 | assertThat(forwardPathIntent.path().links(), linksHasPath("d5", "d6")); |
| 156 | assertThat(forwardPathIntent.path().links(), linksHasPath("d6", "d7")); |
| 157 | assertThat(forwardPathIntent.path().links(), linksHasPath("d7", "d8")); |
| 158 | } |
| 159 | } |
| 160 | |
| 161 | /** |
| 162 | * Tests a pair of devices in an 8 hop path, forward direction. |
| 163 | */ |
Ray Milkey | 40f50b9 | 2014-11-07 13:25:53 -0800 | [diff] [blame] | 164 | @Test |
Ray Milkey | c0fa4db | 2014-10-17 08:49:54 -0700 | [diff] [blame] | 165 | public void testReversePathCompilation() { |
| 166 | |
| 167 | PointToPointIntent intent = makeIntent("d8", "d1"); |
Ray Milkey | c0fa4db | 2014-10-17 08:49:54 -0700 | [diff] [blame] | 168 | |
| 169 | String[] hops = {"d1", "d2", "d3", "d4", "d5", "d6", "d7", "d8"}; |
| 170 | PointToPointIntentCompiler compiler = makeCompiler(hops); |
Ray Milkey | c0fa4db | 2014-10-17 08:49:54 -0700 | [diff] [blame] | 171 | |
Brian O'Connor | fa81eae | 2014-10-30 13:20:05 -0700 | [diff] [blame] | 172 | List<Intent> result = compiler.compile(intent, null, null); |
Ray Milkey | c0fa4db | 2014-10-17 08:49:54 -0700 | [diff] [blame] | 173 | assertThat(result, is(Matchers.notNullValue())); |
| 174 | assertThat(result, hasSize(1)); |
| 175 | Intent reverseResultIntent = result.get(0); |
| 176 | assertThat(reverseResultIntent instanceof PathIntent, is(true)); |
| 177 | |
| 178 | if (reverseResultIntent instanceof PathIntent) { |
| 179 | PathIntent reversePathIntent = (PathIntent) reverseResultIntent; |
| 180 | assertThat(reversePathIntent.path().links(), hasSize(hops.length + 1)); |
| 181 | assertThat(reversePathIntent.path().links(), linksHasPath("d2", "d1")); |
| 182 | assertThat(reversePathIntent.path().links(), linksHasPath("d3", "d2")); |
| 183 | assertThat(reversePathIntent.path().links(), linksHasPath("d4", "d3")); |
| 184 | assertThat(reversePathIntent.path().links(), linksHasPath("d5", "d4")); |
| 185 | assertThat(reversePathIntent.path().links(), linksHasPath("d6", "d5")); |
| 186 | assertThat(reversePathIntent.path().links(), linksHasPath("d7", "d6")); |
| 187 | assertThat(reversePathIntent.path().links(), linksHasPath("d8", "d7")); |
| 188 | } |
| 189 | } |
Sho SHIMIZU | de8e6b5 | 2014-11-13 11:23:17 -0800 | [diff] [blame] | 190 | |
| 191 | /** |
| 192 | * Tests compilation of the intent which designates two different ports on the same switch. |
| 193 | */ |
| 194 | @Test |
| 195 | public void testSameSwitchDifferentPortsIntentCompilation() { |
| 196 | ConnectPoint src = new ConnectPoint(deviceId("1"), portNumber(1)); |
| 197 | ConnectPoint dst = new ConnectPoint(deviceId("1"), portNumber(2)); |
Ray Milkey | 3e3ec5f | 2015-03-17 17:00:38 -0700 | [diff] [blame] | 198 | PointToPointIntent intent = PointToPointIntent.builder() |
| 199 | .appId(APP_ID) |
| 200 | .selector(selector) |
| 201 | .treatment(treatment) |
| 202 | .ingressPoint(src) |
| 203 | .egressPoint(dst) |
| 204 | .build(); |
Sho SHIMIZU | de8e6b5 | 2014-11-13 11:23:17 -0800 | [diff] [blame] | 205 | |
| 206 | String[] hops = {"1"}; |
| 207 | PointToPointIntentCompiler sut = makeCompiler(hops); |
| 208 | |
Brian O'Connor | fa81eae | 2014-10-30 13:20:05 -0700 | [diff] [blame] | 209 | List<Intent> compiled = sut.compile(intent, null, null); |
Sho SHIMIZU | de8e6b5 | 2014-11-13 11:23:17 -0800 | [diff] [blame] | 210 | |
| 211 | assertThat(compiled, hasSize(1)); |
| 212 | assertThat(compiled.get(0), is(instanceOf(PathIntent.class))); |
| 213 | Path path = ((PathIntent) compiled.get(0)).path(); |
| 214 | |
Sho SHIMIZU | 3908fde | 2014-11-19 16:30:22 -0800 | [diff] [blame] | 215 | assertThat(path.links(), hasSize(2)); |
| 216 | Link firstLink = path.links().get(0); |
| 217 | assertThat(firstLink, is(createEdgeLink(src, true))); |
| 218 | Link secondLink = path.links().get(1); |
| 219 | assertThat(secondLink, is(createEdgeLink(dst, false))); |
Sho SHIMIZU | de8e6b5 | 2014-11-13 11:23:17 -0800 | [diff] [blame] | 220 | } |
Sho SHIMIZU | 0e73880 | 2015-02-20 10:23:28 -0800 | [diff] [blame] | 221 | |
| 222 | /** |
| 223 | * Tests that requests with sufficient available bandwidth succeed. |
| 224 | */ |
| 225 | @Test |
| 226 | public void testBandwidthConstrainedIntentSuccess() { |
| 227 | |
| 228 | final LinkResourceService resourceService = |
| 229 | IntentTestsMocks.MockResourceService.makeBandwidthResourceService(1000.0); |
Sho SHIMIZU | b705217 | 2015-02-20 11:09:21 -0800 | [diff] [blame] | 230 | final List<Constraint> constraints = Arrays.asList(new BandwidthConstraint(Bandwidth.bps(100.0))); |
Sho SHIMIZU | 0e73880 | 2015-02-20 10:23:28 -0800 | [diff] [blame] | 231 | |
Sho SHIMIZU | b705217 | 2015-02-20 11:09:21 -0800 | [diff] [blame] | 232 | final PointToPointIntent intent = makeIntent("s1", "s3", constraints); |
| 233 | |
| 234 | String[] hops = {"s1", "s2", "s3"}; |
| 235 | final PointToPointIntentCompiler compiler = makeCompiler(hops, resourceService); |
| 236 | |
| 237 | final List<Intent> compiledIntents = compiler.compile(intent, null, null); |
| 238 | |
Sho SHIMIZU | 0e73880 | 2015-02-20 10:23:28 -0800 | [diff] [blame] | 239 | assertThat(compiledIntents, Matchers.notNullValue()); |
| 240 | assertThat(compiledIntents, hasSize(1)); |
| 241 | } |
| 242 | |
| 243 | /** |
| 244 | * Tests that requests with insufficient available bandwidth fail. |
| 245 | */ |
| 246 | @Test |
| 247 | public void testBandwidthConstrainedIntentFailure() { |
| 248 | |
| 249 | final LinkResourceService resourceService = |
| 250 | IntentTestsMocks.MockResourceService.makeBandwidthResourceService(10.0); |
Sho SHIMIZU | b705217 | 2015-02-20 11:09:21 -0800 | [diff] [blame] | 251 | final List<Constraint> constraints = Arrays.asList(new BandwidthConstraint(Bandwidth.bps(100.0))); |
Sho SHIMIZU | 0e73880 | 2015-02-20 10:23:28 -0800 | [diff] [blame] | 252 | |
| 253 | try { |
Sho SHIMIZU | b705217 | 2015-02-20 11:09:21 -0800 | [diff] [blame] | 254 | final PointToPointIntent intent = makeIntent("s1", "s3", constraints); |
| 255 | |
| 256 | String[] hops = {"s1", "s2", "s3"}; |
| 257 | final PointToPointIntentCompiler compiler = makeCompiler(hops, resourceService); |
| 258 | |
| 259 | compiler.compile(intent, null, null); |
| 260 | |
Sho SHIMIZU | 0e73880 | 2015-02-20 10:23:28 -0800 | [diff] [blame] | 261 | fail("Point to Point compilation with insufficient bandwidth does " |
| 262 | + "not throw exception."); |
| 263 | } catch (PathNotFoundException noPath) { |
| 264 | assertThat(noPath.getMessage(), containsString("No path")); |
| 265 | } |
| 266 | } |
| 267 | |
| 268 | /** |
| 269 | * Tests that requests for available lambdas are successful. |
| 270 | */ |
| 271 | @Test |
| 272 | public void testLambdaConstrainedIntentSuccess() { |
| 273 | |
Sho SHIMIZU | 94b7ff4 | 2015-05-06 17:51:49 -0700 | [diff] [blame] | 274 | final List<Constraint> constraints = Arrays.asList(new LambdaConstraint(LambdaResource.valueOf(1))); |
Sho SHIMIZU | 0e73880 | 2015-02-20 10:23:28 -0800 | [diff] [blame] | 275 | final LinkResourceService resourceService = |
| 276 | IntentTestsMocks.MockResourceService.makeLambdaResourceService(1); |
| 277 | |
Sho SHIMIZU | b705217 | 2015-02-20 11:09:21 -0800 | [diff] [blame] | 278 | final PointToPointIntent intent = makeIntent("s1", "s3", constraints); |
| 279 | |
| 280 | String[] hops = {"s1", "s2", "s3"}; |
| 281 | final PointToPointIntentCompiler compiler = makeCompiler(hops, resourceService); |
| 282 | |
Sho SHIMIZU | 0e73880 | 2015-02-20 10:23:28 -0800 | [diff] [blame] | 283 | final List<Intent> compiledIntents = |
Sho SHIMIZU | b705217 | 2015-02-20 11:09:21 -0800 | [diff] [blame] | 284 | compiler.compile(intent, null, null); |
| 285 | |
Sho SHIMIZU | 0e73880 | 2015-02-20 10:23:28 -0800 | [diff] [blame] | 286 | assertThat(compiledIntents, Matchers.notNullValue()); |
| 287 | assertThat(compiledIntents, hasSize(1)); |
| 288 | } |
| 289 | |
| 290 | /** |
| 291 | * Tests that requests for lambdas when there are no available lambdas |
| 292 | * fail. |
| 293 | */ |
| 294 | @Test |
| 295 | public void testLambdaConstrainedIntentFailure() { |
| 296 | |
Sho SHIMIZU | 94b7ff4 | 2015-05-06 17:51:49 -0700 | [diff] [blame] | 297 | final List<Constraint> constraints = Arrays.asList(new LambdaConstraint(LambdaResource.valueOf(1))); |
Sho SHIMIZU | 0e73880 | 2015-02-20 10:23:28 -0800 | [diff] [blame] | 298 | final LinkResourceService resourceService = |
| 299 | IntentTestsMocks.MockResourceService.makeBandwidthResourceService(10.0); |
| 300 | try { |
Sho SHIMIZU | b705217 | 2015-02-20 11:09:21 -0800 | [diff] [blame] | 301 | final PointToPointIntent intent = makeIntent("s1", "s3", constraints); |
| 302 | |
| 303 | String[] hops = {"s1", "s2", "s3"}; |
| 304 | final PointToPointIntentCompiler compiler = makeCompiler(hops, resourceService); |
| 305 | |
| 306 | compiler.compile(intent, null, null); |
| 307 | |
Sho SHIMIZU | 0e73880 | 2015-02-20 10:23:28 -0800 | [diff] [blame] | 308 | fail("Point to Point compilation with no available lambda does " |
| 309 | + "not throw exception."); |
| 310 | } catch (PathNotFoundException noPath) { |
| 311 | assertThat(noPath.getMessage(), containsString("No path")); |
| 312 | } |
| 313 | } |
| 314 | |
Ray Milkey | c0fa4db | 2014-10-17 08:49:54 -0700 | [diff] [blame] | 315 | } |