Skip to content

Commit

Permalink
Fixing formatting issues which caused build failure
Browse files Browse the repository at this point in the history
  • Loading branch information
krmahadevan committed Oct 8, 2021
1 parent 874f368 commit c155303
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 41 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Don't worry if the CI fails because it is the expected behavior.
This pull request will be a perfect start to find the fix :)

### How to create a pull request?
Refer our [Contributing](./CONTRIBUTING.md) section for detailed set of steps.
Refer our [Contributing](.github/CONTRIBUTING.md) section for detailed set of steps.

### We encourage pull requests that:

Expand Down
24 changes: 12 additions & 12 deletions testng-asserts/src/main/java/org/testng/Assert.java
Original file line number Diff line number Diff line change
Expand Up @@ -878,8 +878,8 @@ public static void assertEquals(byte actual, byte expected) {
}

/**
* Asserts that two chars are equal. If they are not, an AssertionError, with the given
* message, is thrown.
* Asserts that two chars are equal. If they are not, an AssertionError, with the given message,
* is thrown.
*
* @param actual the actual value
* @param expected the expected value
Expand All @@ -900,8 +900,8 @@ public static void assertEquals(char actual, char expected) {
}

/**
* Asserts that two shorts are equal. If they are not, an AssertionError, with the given
* message, is thrown.
* Asserts that two shorts are equal. If they are not, an AssertionError, with the given message,
* is thrown.
*
* @param actual the actual value
* @param expected the expected value
Expand All @@ -922,8 +922,8 @@ public static void assertEquals(short actual, short expected) {
}

/**
* Asserts that two ints are equal. If they are not, an AssertionError, with the given
* message, is thrown.
* Asserts that two ints are equal. If they are not, an AssertionError, with the given message, is
* thrown.
*
* @param actual the actual value
* @param expected the expected value
Expand Down Expand Up @@ -953,8 +953,8 @@ public static void assertNotNull(Object object) {
}

/**
* Asserts that an object isn't null. If it is, an AssertionError, with the given message,
* is thrown.
* Asserts that an object isn't null. If it is, an AssertionError, with the given message, is
* thrown.
*
* @param object the assertion object
* @param message the assertion error message
Expand All @@ -980,8 +980,8 @@ public static void assertNull(Object object) {
}

/**
* Asserts that an object is null. If it is not, an AssertionError, with the given message,
* is thrown.
* Asserts that an object is null. If it is not, an AssertionError, with the given message, is
* thrown.
*
* @param object the assertion object
* @param message the assertion error message
Expand All @@ -993,8 +993,8 @@ public static void assertNull(Object object, String message) {
}

/**
* Asserts that two objects refer to the same object. If they do not, an AssertionError,
* with the given message, is thrown.
* Asserts that two objects refer to the same object. If they do not, an AssertionError, with the
* given message, is thrown.
*
* @param actual the actual value
* @param expected the expected value
Expand Down
55 changes: 27 additions & 28 deletions testng-core/src/main/java/org/testng/AssertJUnit.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ public static void fail() {
}

/**
* Asserts that two objects are equal. If they are not an AssertionError is thrown with the
* given message.
* Asserts that two objects are equal. If they are not an AssertionError is thrown with the given
* message.
*
* @param message The message
* @param expected The expected value
Expand Down Expand Up @@ -126,8 +126,8 @@ public static void assertEquals(String expected, String actual) {
}

/**
* Asserts that two doubles are equal concerning a delta. If they are not an AssertionError
* is thrown with the given message. If the expected value is infinity then the delta value is
* Asserts that two doubles are equal concerning a delta. If they are not an AssertionError is
* thrown with the given message. If the expected value is infinity then the delta value is
* ignored.
*
* @param message The message
Expand Down Expand Up @@ -162,8 +162,8 @@ public static void assertEquals(double expected, double actual, double delta) {
}

/**
* Asserts that two floats are equal concerning a delta. If they are not an AssertionError
* is thrown with the given message. If the expected value is infinity then the delta value is
* Asserts that two floats are equal concerning a delta. If they are not an AssertionError is
* thrown with the given message. If the expected value is infinity then the delta value is
* ignored.
*
* @param message The message
Expand Down Expand Up @@ -197,8 +197,8 @@ public static void assertEquals(float expected, float actual, float delta) {
}

/**
* Asserts that two longs are equal. If they are not an AssertionError is thrown with the
* given message.
* Asserts that two longs are equal. If they are not an AssertionError is thrown with the given
* message.
*
* @param message The message
* @param expected The expected value
Expand All @@ -219,8 +219,8 @@ public static void assertEquals(long expected, long actual) {
}

/**
* Asserts that two booleans are equal. If they are not an AssertionError is thrown with the
* given message.
* Asserts that two booleans are equal. If they are not an AssertionError is thrown with the given
* message.
*
* @param message The message
* @param expected The expected value
Expand All @@ -241,8 +241,8 @@ public static void assertEquals(boolean expected, boolean actual) {
}

/**
* Asserts that two bytes are equal. If they are not an AssertionError is thrown with the
* given message.
* Asserts that two bytes are equal. If they are not an AssertionError is thrown with the given
* message.
*
* @param message The message
* @param expected The expected value
Expand All @@ -263,8 +263,8 @@ public static void assertEquals(byte expected, byte actual) {
}

/**
* Asserts that two chars are equal. If they are not an AssertionError is thrown with the
* given message.
* Asserts that two chars are equal. If they are not an AssertionError is thrown with the given
* message.
*
* @param message The message
* @param expected The expected value
Expand All @@ -285,8 +285,8 @@ public static void assertEquals(char expected, char actual) {
}

/**
* Asserts that two shorts are equal. If they are not an AssertionError is thrown with the
* given message.
* Asserts that two shorts are equal. If they are not an AssertionError is thrown with the given
* message.
*
* @param message The message
* @param expected The expected value
Expand All @@ -307,8 +307,8 @@ public static void assertEquals(short expected, short actual) {
}

/**
* Asserts that two ints are equal. If they are not an AssertionError is thrown with the
* given message.
* Asserts that two ints are equal. If they are not an AssertionError is thrown with the given
* message.
*
* @param message The message
* @param expected The expected value
Expand Down Expand Up @@ -338,8 +338,7 @@ public static void assertNotNull(Object object) {
}

/**
* Asserts that an object isn't null. If it is an AssertionError is thrown with the given
* message.
* Asserts that an object isn't null. If it is an AssertionError is thrown with the given message.
*
* @param message The message
* @param object The actual object
Expand Down Expand Up @@ -369,8 +368,8 @@ public static void assertNull(String message, Object object) {
}

/**
* Asserts that two objects refer to the same object. If they are not an AssertionError is
* thrown with the given message.
* Asserts that two objects refer to the same object. If they are not an AssertionError is thrown
* with the given message.
*
* @param message The message
* @param expected The expected value
Expand All @@ -384,8 +383,8 @@ public static void assertSame(String message, Object expected, Object actual) {
}

/**
* Asserts that two objects refer to the same object. If they are not the same an
* AssertionError is thrown.
* Asserts that two objects refer to the same object. If they are not the same an AssertionError
* is thrown.
*
* @param expected The expected value
* @param actual The actual value
Expand All @@ -395,8 +394,8 @@ public static void assertSame(Object expected, Object actual) {
}

/**
* Asserts that two objects refer to the same object. If they are not an AssertionError is
* thrown with the given message.
* Asserts that two objects refer to the same object. If they are not an AssertionError is thrown
* with the given message.
*
* @param message The message
* @param expected The expected value
Expand All @@ -409,8 +408,8 @@ public static void assertNotSame(String message, Object expected, Object actual)
}

/**
* Asserts that two objects refer to the same object. If they are not the same an
* AssertionError is thrown.
* Asserts that two objects refer to the same object. If they are not the same an AssertionError
* is thrown.
*
* @param expected The expected value
* @param actual The actual value
Expand Down

0 comments on commit c155303

Please sign in to comment.