Skip to content

Commit

Permalink
#18 Fixed Header
Browse files Browse the repository at this point in the history
  • Loading branch information
wuetherich committed Feb 25, 2020
1 parent 2007054 commit a2a417d
Show file tree
Hide file tree
Showing 13 changed files with 199 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,15 @@ public class ResolveProxyDefaultDependencySetTest extends AbstractDefaultDepende

@Test
public void testResolveProxyDependencyOnAggregatedDependency() {

assertThat(dependencySet().getUnfilteredCoreDependencies()).hasSize(6);
assertThat(dependencySet().getUnfilteredCoreDependencies()).containsExactlyElementsOf(aggregatedDependency().getCoreDependencies());
assertThat(dependencySet().getUnfilteredCoreDependencies()).containsOnlyElementsOf(aggregatedDependency().getCoreDependencies());
assertThat(proxyDependency().isResolved()).isFalse();
assertThat(proxyDependency().getAccumulatedCoreDependencies()).hasSize(0);

aggregatedDependency().resolveProxyDependencies();

assertThat(dependencySet().getUnfilteredCoreDependencies()).hasSize(6);
assertThat(dependencySet().getUnfilteredCoreDependencies()).containsExactlyElementsOf(aggregatedDependency().getCoreDependencies());
assertThat(dependencySet().getUnfilteredCoreDependencies()).containsOnlyElementsOf(aggregatedDependency().getCoreDependencies());
assertThat(proxyDependency().isResolved()).isTrue();
assertThat(proxyDependency().getAccumulatedCoreDependencies()).hasSize(2);
}
Expand All @@ -44,14 +43,14 @@ public void testResolveProxyDependencyOnAggregatedDependency() {
public void testResolveProxyDependencyOnProxyDependency() {

assertThat(dependencySet().getUnfilteredCoreDependencies()).hasSize(6);
assertThat(dependencySet().getUnfilteredCoreDependencies()).containsExactlyElementsOf(aggregatedDependency().getCoreDependencies());
assertThat(dependencySet().getUnfilteredCoreDependencies()).containsOnlyElementsOf(aggregatedDependency().getCoreDependencies());
assertThat(proxyDependency().isResolved()).isFalse();
assertThat(proxyDependency().getAccumulatedCoreDependencies()).hasSize(0);

proxyDependency().resolve();

assertThat(dependencySet().getUnfilteredCoreDependencies()).hasSize(6);
assertThat(dependencySet().getUnfilteredCoreDependencies()).containsExactlyElementsOf(aggregatedDependency().getCoreDependencies());
assertThat(dependencySet().getUnfilteredCoreDependencies()).containsOnlyElementsOf(aggregatedDependency().getCoreDependencies());
assertThat(proxyDependency().isResolved()).isTrue();
assertThat(proxyDependency().getAccumulatedCoreDependencies()).hasSize(2);
}
Expand All @@ -60,14 +59,14 @@ public void testResolveProxyDependencyOnProxyDependency() {
public void testResolveProxyDependencyOnDependencySet() {

assertThat(dependencySet().getUnfilteredCoreDependencies()).hasSize(6);
assertThat(dependencySet().getUnfilteredCoreDependencies()).containsExactlyElementsOf(aggregatedDependency().getCoreDependencies());
assertThat(dependencySet().getUnfilteredCoreDependencies()).containsOnlyElementsOf(aggregatedDependency().getCoreDependencies());
assertThat(proxyDependency().isResolved()).isFalse();
assertThat(proxyDependency().getAccumulatedCoreDependencies()).hasSize(0);

dependencySet().resolveAllProxyDependencies();

assertThat(dependencySet().getUnfilteredCoreDependencies()).hasSize(6);
assertThat(dependencySet().getUnfilteredCoreDependencies()).containsExactlyElementsOf(aggregatedDependency().getCoreDependencies());
assertThat(dependencySet().getUnfilteredCoreDependencies()).containsOnlyElementsOf(aggregatedDependency().getCoreDependencies());
assertThat(proxyDependency().isResolved()).isTrue();
assertThat(proxyDependency().getAccumulatedCoreDependencies()).hasSize(2);
}
Expand All @@ -76,14 +75,14 @@ public void testResolveProxyDependencyOnDependencySet() {
public void testResolveProxyDependencyForSourceNode() {

assertThat(dependencySet().getUnfilteredCoreDependencies()).hasSize(6);
assertThat(dependencySet().getUnfilteredCoreDependencies()).containsExactlyElementsOf(aggregatedDependency().getCoreDependencies());
assertThat(dependencySet().getUnfilteredCoreDependencies()).containsOnlyElementsOf(aggregatedDependency().getCoreDependencies());
assertThat(proxyDependency().isResolved()).isFalse();
assertThat(proxyDependency().getAccumulatedCoreDependencies()).hasSize(0);

dependencySet().resolveProxyDependencies(testGraph.a4(), SourceOrTarget.SOURCE);

assertThat(dependencySet().getUnfilteredCoreDependencies()).hasSize(6);
assertThat(dependencySet().getUnfilteredCoreDependencies()).containsExactlyElementsOf(aggregatedDependency().getCoreDependencies());
assertThat(dependencySet().getUnfilteredCoreDependencies()).containsOnlyElementsOf(aggregatedDependency().getCoreDependencies());
assertThat(proxyDependency().isResolved()).isTrue();
assertThat(proxyDependency().getAccumulatedCoreDependencies()).hasSize(2);
}
Expand All @@ -92,14 +91,14 @@ public void testResolveProxyDependencyForSourceNode() {
public void testResolveProxyDependencyForTargetNode() {

assertThat(dependencySet().getUnfilteredCoreDependencies()).hasSize(6);
assertThat(dependencySet().getUnfilteredCoreDependencies()).containsExactlyElementsOf(aggregatedDependency().getCoreDependencies());
assertThat(dependencySet().getUnfilteredCoreDependencies()).containsOnlyElementsOf(aggregatedDependency().getCoreDependencies());
assertThat(proxyDependency().isResolved()).isFalse();
assertThat(proxyDependency().getAccumulatedCoreDependencies()).hasSize(0);

dependencySet().resolveProxyDependencies(testGraph.b4(), SourceOrTarget.TARGET);

assertThat(dependencySet().getUnfilteredCoreDependencies()).hasSize(6);
assertThat(dependencySet().getUnfilteredCoreDependencies()).containsExactlyElementsOf(aggregatedDependency().getCoreDependencies());
assertThat(dependencySet().getUnfilteredCoreDependencies()).containsOnlyElementsOf(aggregatedDependency().getCoreDependencies());
assertThat(proxyDependency().isResolved()).isTrue();
assertThat(proxyDependency().getAccumulatedCoreDependencies()).hasSize(2);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ public void initialize() {

@Test
public void testUnfilteredDependencies() {
assertThat(dependencySet.getUnfilteredCoreDependencies()).hasSize(9);
assertThat(dependencySet.getUnfilteredCoreDependencies()).containsExactlyElementsOf(aggregatedDependency.getCoreDependencies());
assertThat(dependencySet.getUnfilteredCoreDependencies()).hasSize(aggregatedDependency.getCoreDependencies().size());
assertThat(dependencySet.getUnfilteredCoreDependencies()).containsOnlyElementsOf(aggregatedDependency.getCoreDependencies());
}

@Test
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
/**
* slizaa-hierarchicalgraph-graphdb-model - Slizaa Static Software Analysis Tools
* Copyright © 2019 Code-Kontor GmbH and others ([email protected])
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package io.codekontor.slizaa.hierarchicalgraph.graphdb.model.impl;

import io.codekontor.slizaa.core.boltclient.IBoltClient;
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions slizaa-web/app/src/gqlqueries/__generated__/DsmForNodeChildren.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions slizaa-web/app/src/gqlqueries/__generated__/NodeChildren.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions slizaa-web/app/src/gqlqueries/__generated__/Svg.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions slizaa-web/app/src/gqlqueries/query-types.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
/*
* slizaa-web - Slizaa Static Software Analysis Tools
* Copyright © 2019 Code-Kontor GmbH and others ([email protected])
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/* tslint:disable */
/* eslint-disable */
// This file was automatically generated and should not be edited.
Expand Down

0 comments on commit a2a417d

Please sign in to comment.