Skip to content

Commit

Permalink
#26 typo
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Sep 3, 2022
1 parent 48d7b2d commit 617d419
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/yegor256/xsline/StFast.java
Expand Up @@ -91,7 +91,7 @@ public XML apply(final int position, final XML xml) {
Logger.error(
this.target,
"Transformation %s took too long %[ms]s (over %[ms]s)",
msec, this.threshold
this.uid(), msec, this.threshold
);
}
return out;
Expand Down
49 changes: 49 additions & 0 deletions src/test/java/com/yegor256/xsline/TrFastTest.java
@@ -0,0 +1,49 @@
/*
* The MIT License (MIT)
*
* Copyright (c) 2022 Yegor Bugayenko
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.yegor256.xsline;

import com.jcabi.xml.XMLDocument;
import org.junit.jupiter.api.Test;

/**
* Test case for {@link TrFast}.
*
* @since 0.12.0
*/
final class TrFastTest {

@Test
void simpleScenario() {
new Xsline(
new TrFast(
new TrClasspath<>(
new TrDefault<>()
).with("add-brackets.xsl").back(),
TrFastTest.class,
1L
)
).pass(new XMLDocument("<foo/>"));
}

}

0 comments on commit 617d419

Please sign in to comment.