Skip to content

Commit

Permalink
(jcabi#40) Fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
andreoss committed Jun 28, 2020
1 parent d74d194 commit 1a73367
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,14 @@ final class AllOfThatPrintsOnlyWrongMatchers<T> extends DiagnosingMatcher<T> {
* Matchers that does not matches.
*/
private final transient List<Matcher<? super T>> wrong;

/**
* Construct that accept matchers to test.
* @param iterable Matchers that will be tested.
*/
AllOfThatPrintsOnlyWrongMatchers(
final Iterable<Matcher<? super T>> iterable) {
final Iterable<Matcher<? super T>> iterable
) {
super();
this.matchers = iterable;
this.wrong = new ArrayList<Matcher<? super T>>(Tv.THREE);
Expand Down
4 changes: 4 additions & 0 deletions src/test/java/com/jcabi/matchers/JaxbConverterTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,15 @@ private static final class Employee {
* Injected object.
*/
private transient Object injected = "some text";

/**
* Inject an object.
* @param obj The object to inject
*/
public void inject(final Object obj) {
this.injected = obj;
}

/**
* Injected object. This method is not used directly, but is used
* during JAXB converting of this object into XML, at
Expand All @@ -144,6 +146,7 @@ public void inject(final Object obj) {
public Object getInjected() {
return this.injected;
}

/**
* Returns a simple string. This method is not called directly, but
* is used in {@code convertsJaxbObjectToXml()} for JAXB converting
Expand All @@ -166,6 +169,7 @@ public static final class Foo {
* XML namespace.
*/
public static final String NAMESPACE = "foo-namespace";

/**
* Simple name.
* @return The name
Expand Down
12 changes: 7 additions & 5 deletions src/test/java/com/jcabi/matchers/XhtmlMatchersTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,11 @@ public void processesDocumentsWithDoctype() throws Exception {
final String text =
// @checkstyle StringLiteralsConcatenation (6 lines)
"<?xml version='1.0'?>"
+ "<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN'"
+ " 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>"
+ "<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en'>"
+ "<body><p>\u0443\u0440\u0430!</p></body>"
+ "</html>";
+ "<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN'"
+ " 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>"
+ "<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en'>"
+ "<body><p>\u0443\u0440\u0430!</p></body>"
+ "</html>";
MatcherAssert.assertThat(
text,
Matchers.allOf(
Expand Down Expand Up @@ -283,10 +283,12 @@ public static final class Foo {
* XML namespace.
*/
public static final String NAMESPACE = "foo-namespace";

@Override
public String toString() {
return "<a><c/></a>";
}

/**
* Property abc.
* @return Value of abc
Expand Down

0 comments on commit 1a73367

Please sign in to comment.