Skip to content

Commit

Permalink
Prepare next release
Browse files Browse the repository at this point in the history
  • Loading branch information
hpehl committed Jul 18, 2024
1 parent 48119c3 commit d6f1c21
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Changed

- Make `By.selector()` public

### Upgrades

- Bump J2CL processors to 0.7
- Bump JUnit to 5.10.3

## [1.6.2] - 2024-06-09

### Added
Expand Down
16 changes: 8 additions & 8 deletions core/src/main/java/org/jboss/elemento/By.java
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ private By combinator(Combinator combinator, By selector) {

// ------------------------------------------------------ instance methods

abstract String selector();
public abstract String selector();

@Override
public int hashCode() {
Expand Down Expand Up @@ -276,7 +276,7 @@ private ByAttribute(String name, AttributeOperator operator, String value) {
}

@Override
String selector() {
public String selector() {
StringBuilder builder = new StringBuilder();
builder.append("[").append(name);
if (value != null && value.length() != 0) {
Expand Down Expand Up @@ -328,7 +328,7 @@ private ByClassname(String[] classnames) {
}

@Override
String selector() {
public String selector() {
return "." + String.join(".", classnames);
}
}
Expand All @@ -346,7 +346,7 @@ private ByCombination(By by1, Combinator combinator, By by2) {
}

@Override
String selector() {
public String selector() {
return by1.selector() + combinator.operator + by2.selector();
}
}
Expand All @@ -372,7 +372,7 @@ private ByElement(String element) {
}

@Override
String selector() {
public String selector() {
return element;
}
}
Expand All @@ -386,7 +386,7 @@ private ByGroup(By[] selectors) {
}

@Override
String selector() {
public String selector() {
return stream(selectors).map(By::selector).collect(joining(", "));
}
}
Expand All @@ -400,7 +400,7 @@ private ById(String id) {
}

@Override
String selector() {
public String selector() {
return "#" + id;
}
}
Expand All @@ -414,7 +414,7 @@ private BySelector(String selector) {
}

@Override
String selector() {
public String selector() {
return selector;
}
}
Expand Down

0 comments on commit d6f1c21

Please sign in to comment.