* ============LICENSE_START=======================================================
* ONAP
* ================================================================================
- * Copyright (C) 2017-2020 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2017-2021 AT&T Intellectual Property. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@Getter
private transient ToscaPolicy toscaOpPolicy;
- //@Getter
- //private ControlLoop controlLoop;
-
/**
* Construct an instance from yaml.
*
* ============LICENSE_START=======================================================
* ONAP
* ================================================================================
- * Copyright (C) 2020 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2020-2021 AT&T Intellectual Property. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
import static org.junit.Assert.assertSame;
import static org.junit.Assert.assertTrue;
import static org.mockito.ArgumentMatchers.any;
-import static org.mockito.ArgumentMatchers.eq;
import static org.mockito.Mockito.doThrow;
import static org.mockito.Mockito.never;
import static org.mockito.Mockito.verify;
assertNotNull(end);
assertTrue(start.compareTo(end) <= 0);
- verify(callback1).accept(eq(outcome));
- verify(callback2).accept(eq(outcome));
- verify(callback3).accept(eq(outcome));
+ verify(callback1).accept(outcome);
+ verify(callback2).accept(outcome);
+ verify(callback3).accept(outcome);
}
}
* ============LICENSE_START=======================================================
* ONAP
* ================================================================================
- * Copyright (C) 2018-2020 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2018-2021 AT&T Intellectual Property. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
.facts(sessionName, ControlLoopParams.class.getName(), false)
.stream()
.filter(c -> c instanceof ControlLoopParams)
- .map(c -> (ControlLoopParams) c);
+ .map(ControlLoopParams.class::cast);
}
/**