Skip to content

Commit

Permalink
1096 Computer.Model and Cpu.Model EnvironmentProperty share family and
Browse files Browse the repository at this point in the history
name

license headers
  • Loading branch information
eparovyshnaya committed Jun 25, 2022
1 parent eec4d9b commit c4c38c5
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2020 ArSysOp
* Copyright (c) 2020, 2022 ArSysOp
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
Expand All @@ -8,7 +8,7 @@
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* ArSysOp - initial API and implementation
* ArSysOp - initial API and implementation, further development
*******************************************************************************/
package org.eclipse.passage.lic.internal.base.inspection.hardware;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2020, 2022 ArSysOp
* Copyright (c) 2020 ArSysOp
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
Expand All @@ -8,7 +8,7 @@
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* ArSysOp - initial API and implementation, further development
* ArSysOp - initial API and implementation
*******************************************************************************/
package org.eclipse.passage.lic.internal.base.inspection.hardware;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/*******************************************************************************
* Copyright (c) 2022 ArSysOp
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* https://www.eclipse.org/legal/epl-2.0/.
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* ArSysOp - initial API and implementation
*******************************************************************************/
package org.eclipse.passage.lic.internal.base.tests.inspection.hardware;

import static org.junit.Assert.assertEquals;
Expand All @@ -23,11 +35,11 @@ public final class OshiPropertiesTest {
@Test
public void allDifferent() {
// having
AtomicInteger additions = new AtomicInteger(0);
AtomicInteger amount = new AtomicInteger(0);
// when
Set<EnvironmentProperty> all = eachAndEveryProperty(additions);
Set<EnvironmentProperty> all = eachAndEveryProperty(amount);
// then
assertEquals(additions.get(), all.size());
assertEquals(amount.get(), all.size());
}

private Set<EnvironmentProperty> eachAndEveryProperty(AtomicInteger additions) {
Expand Down

0 comments on commit c4c38c5

Please sign in to comment.