Skip to content

Commit 28f65a6

Browse files
LPD-56273 Sort
1 parent 0db1a1b commit 28f65a6

File tree

1 file changed

+5
-5
lines changed
  • modules/apps/client-extension/client-extension-type-impl/src/test/java/com/liferay/client/extension/type/internal/factory

1 file changed

+5
-5
lines changed

modules/apps/client-extension/client-extension-type-impl/src/test/java/com/liferay/client/extension/type/internal/factory/CETFactoryImplTest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public class CETFactoryImplTest {
2929
LiferayUnitTestRule.INSTANCE;
3030

3131
@Test
32-
public void testTransformURLsWithAmpersand() {
32+
public void testTransformURLsWithAmpersands() {
3333
CETFactoryImpl cetFactoryImpl = new CETFactoryImpl();
3434

3535
CETImplFactory<?> cetImplFactory = Mockito.mock(CETImplFactory.class);
@@ -66,21 +66,21 @@ public void testTransformURLsWithQuotes() {
6666
UnicodeProperties unicodeProperties = cetFactoryImpl.transformURLs(
6767
StringPool.BLANK, cetImplFactory,
6868
UnicodePropertiesBuilder.put(
69-
"url", "http://example.com\" onmouseover=\"alert(1)"
69+
"url", "http://example.com' onmouseover='alert(1)"
7070
).build());
7171

7272
Assert.assertEquals(
73-
"http://example.com&#34; onmouseover=&#34;alert(1)",
73+
"http://example.com&#39; onmouseover=&#39;alert(1)",
7474
unicodeProperties.get("url"));
7575

7676
unicodeProperties = cetFactoryImpl.transformURLs(
7777
StringPool.BLANK, cetImplFactory,
7878
UnicodePropertiesBuilder.put(
79-
"url", "http://example.com' onmouseover='alert(1)"
79+
"url", "http://example.com\" onmouseover=\"alert(1)"
8080
).build());
8181

8282
Assert.assertEquals(
83-
"http://example.com&#39; onmouseover=&#39;alert(1)",
83+
"http://example.com&#34; onmouseover=&#34;alert(1)",
8484
unicodeProperties.get("url"));
8585
}
8686

0 commit comments

Comments
 (0)