Skip to content

Commit

Permalink
#144 aspects 0.25.1
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Jan 11, 2024
1 parent 3eb0ee6 commit 411a62d
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 10 deletions.
1 change: 1 addition & 0 deletions .github/workflows/codecov.yml
Expand Up @@ -22,5 +22,6 @@ jobs:
- run: mvn install -Pjacoco
- uses: codecov/codecov-action@v4.0.0-beta.3
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./target/site/jacoco/jacoco.xml
fail_ci_if_error: true
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -112,7 +112,7 @@ OF THE POSSIBILITY OF SUCH DAMAGE.
<dependency>
<groupId>com.jcabi</groupId>
<artifactId>jcabi-aspects</artifactId>
<version>0.24.1</version>
<version>0.25.1</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
5 changes: 2 additions & 3 deletions src/test/java/org/xembly/DirectivesTest.java
Expand Up @@ -29,7 +29,6 @@
*/
package org.xembly;

import com.jcabi.aspects.Tv;
import com.jcabi.immutable.ArrayMap;
import com.jcabi.matchers.XhtmlMatchers;
import com.jcabi.xml.XMLDocument;
Expand Down Expand Up @@ -223,7 +222,7 @@ void addsElementsCaseSensitively() throws Exception {
@Test
void convertsToString() {
final Directives dirs = new Directives();
for (int idx = 0; idx < Tv.TEN; ++idx) {
for (int idx = 0; idx < 10; ++idx) {
dirs.add("HELLO");
}
MatcherAssert.assertThat(
Expand Down Expand Up @@ -273,7 +272,7 @@ void prefixesItemsWithNamespaces() throws Exception {
@Test
void acceptsFromMultipleThreads() throws Exception {
final Directives dirs = new Directives().add("mt6");
final int tasks = Tv.FIFTY;
final int tasks = 50;
new LengthOf(
new Threads<>(
tasks / 10,
Expand Down
5 changes: 2 additions & 3 deletions src/test/java/org/xembly/prof/DirectivesProfTest.java
Expand Up @@ -30,7 +30,6 @@
package org.xembly.prof;

import com.jcabi.aspects.Loggable;
import com.jcabi.aspects.Tv;
import org.hamcrest.MatcherAssert;
import org.hamcrest.Matchers;
import org.junit.jupiter.api.Test;
Expand All @@ -46,9 +45,9 @@ final class DirectivesProfTest {
@Test
@SuppressWarnings("PMD.InsufficientStringBufferDeclaration")
void parsesLongProgram() {
final StringBuilder program = new StringBuilder(Tv.THOUSAND)
final StringBuilder program = new StringBuilder(1000)
.append("ADD 'root';");
for (int idx = 0; idx < Tv.TEN * Tv.THOUSAND; ++idx) {
for (int idx = 0; idx < 10_000; ++idx) {
program.append("XPATH '/root'; ADDIF 'node';SET '")
.append(idx).append("'; ADD 'x'; REMOVE;");
}
Expand Down
5 changes: 2 additions & 3 deletions src/test/java/org/xembly/prof/XemblerProfTest.java
Expand Up @@ -30,7 +30,6 @@
package org.xembly.prof;

import com.jcabi.aspects.Loggable;
import com.jcabi.aspects.Tv;
import com.jcabi.matchers.XhtmlMatchers;
import javax.xml.parsers.DocumentBuilderFactory;
import org.hamcrest.MatcherAssert;
Expand All @@ -49,9 +48,9 @@ final class XemblerProfTest {
@Test
@SuppressWarnings("PMD.InsufficientStringBufferDeclaration")
void modifiesDom() throws Exception {
final StringBuilder program = new StringBuilder(Tv.THOUSAND)
final StringBuilder program = new StringBuilder(1000)
.append("ADD 'root';");
for (int idx = 0; idx < Tv.FIFTY * Tv.THOUSAND; ++idx) {
for (int idx = 0; idx < 50_000; ++idx) {
program.append(
"XPATH '/root'; ADDIF 'node';ADD 'temp'; REMOVE;SET '"
).append(idx).append("';");
Expand Down

0 comments on commit 411a62d

Please sign in to comment.