Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ignore project's version property when resolving properties in a bom
Closes gh-315
- Loading branch information
1 parent
4eaceff
commit 358c8d9
Showing
2 changed files
with
14 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* Copyright 2014-2018 the original author or authors. | ||
* Copyright 2014-2022 the original author or authors. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
|
@@ -66,4 +66,13 @@ public class ProjectPropertySourceSpec extends Specification { | |
property == null | ||
} | ||
|
||
def 'Null is returned when project has null property'() { | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
wilkinsona
Author
Contributor
|
||
given: 'A project' | ||
project.version = '1.2.3' | ||
when: 'The version property is retrieved' | ||
def property = this.propertySource.getProperty("version") | ||
then: 'The property is null' | ||
property == null | ||
} | ||
|
||
} |
Looks like this test method name was copy/pasted from the previous one, so it doesn't quite match its functionality and it duplicates the test name of the previous one.