Skip to content

Commit

Permalink
update: Policy Sample update
Browse files Browse the repository at this point in the history
  • Loading branch information
majadlymhmd committed Nov 21, 2023
1 parent 35acdba commit 265b53b
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
/*
* Copyright (c) 2023 Fraunhofer Institute for Software and Systems Engineering
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0
*
* SPDX-License-Identifier: Apache-2.0
*
* Contributors:
* Fraunhofer Institute for Software and Systems Engineering - initial API and implementation
*
*/

package org.eclipse.edc.samples.policy;

import org.eclipse.edc.junit.annotations.EndToEndTest;
Expand All @@ -12,12 +26,14 @@

@EndToEndTest
class Policy01BasicTest {

@RegisterExtension
static EdcRuntimeExtension consumer = new EdcRuntimeExtension(
":policy:policy-01-policy-enforcement:policy-enforcement-consumer",
"consumer",
emptyMap()
);

@Test
void shouldStartConsumer() {
assertThat(consumer.getContext().getService(Clock.class)).isNotNull();
Expand Down

0 comments on commit 265b53b

Please sign in to comment.