// Path: frostillicus-blog/frostillicus-blog-j2ee/src/main/java/bean/EncoderBean.java
// @ApplicationScoped @Named("encoder")
// public class EncoderBean {
// 
// 	/**
// 	 * URL-encodes the provided value, using {@link URLEncoder#encode(String, String)}.
// 	 *
// 	 * @param value the value to URL-encode
// 	 * @return the URL-encoded value
// 	 */
// 	@SneakyThrows
// 	public String urlEncode(final String value) {
// 		if(StringUtil.isEmpty(value)) {
// 			return StringUtil.EMPTY_STRING;
// 		} else {
// 			return URLEncoder.encode(value, StringUtil.UTF_8.name());
// 		}
// 	}
// }


import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
import bean.EncoderBean;
/*
 * Copyright © 2012-2020 Jesse Gallagher
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package test.bean;




@SuppressWarnings("nls")
public class TestEncoderBean {
	@Test
	public void testUrlEncode() {
// Path: frostillicus-blog/frostillicus-blog-j2ee/src/main/java/bean/EncoderBean.java
// @ApplicationScoped @Named("encoder")
// public class EncoderBean {
// 
// 	/**
// 	 * URL-encodes the provided value, using {@link URLEncoder#encode(String, String)}.
// 	 *
// 	 * @param value the value to URL-encode
// 	 * @return the URL-encoded value
// 	 */
// 	@SneakyThrows
// 	public String urlEncode(final String value) {
// 		if(StringUtil.isEmpty(value)) {
// 			return StringUtil.EMPTY_STRING;
// 		} else {
// 			return URLEncoder.encode(value, StringUtil.UTF_8.name());
// 		}
// 	}
// }


// Path: frostillicus-blog/frostillicus-blog-j2ee/src/test/java/test/bean/TestEncoderBean.java
import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
import bean.EncoderBean;

/*
 * Copyright © 2012-2020 Jesse Gallagher
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package test.bean;




@SuppressWarnings("nls")
public class TestEncoderBean {
	@Test
	public void testUrlEncode() {
		EncoderBean encoder = new EncoderBean();