"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/test/groovy/bugs/Groovy6932Bug.groovy" between
apache-groovy-src-3.0.8.zip and apache-groovy-src-3.0.9.zip

About: Groovy is an agile dynamic (scripting) language for the Java Platform. It has features similar to those of Python, Ruby, Perl, and Smalltalk. Source release.

Groovy6932Bug.groovy  (apache-groovy-src-3.0.8):Groovy6932Bug.groovy  (apache-groovy-src-3.0.9)
skipping to change at line 26 skipping to change at line 26
* specific language governing permissions and limitations * specific language governing permissions and limitations
* under the License. * under the License.
*/ */
package groovy.bugs package groovy.bugs
import groovy.test.GroovyTestCase import groovy.test.GroovyTestCase
class Groovy6932Bug extends GroovyTestCase { class Groovy6932Bug extends GroovyTestCase {
void testLoggingWithinClosuresShouldHaveGuards() { void testLoggingWithinClosuresShouldHaveGuards() {
assertScript ''' assertScript '''
@Grab('org.slf4j:slf4j-simple:1.7.30') @Grab('org.slf4j:slf4j-simple:1.7.31')
import groovy.util.logging.Slf4j import groovy.util.logging.Slf4j
new TestCode().doSomethingThatLogs() new TestCode().doSomethingThatLogs()
@Slf4j @Slf4j
class TestCode { class TestCode {
void doSomethingThatLogs(){ void doSomethingThatLogs(){
int info = 0 int info = 0
int trace = 0 int trace = 0
log.info createLogString("${info++}") log.info createLogString("${info++}")
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)