Closed mkiefer10 closed 3 years ago
Hey, @mkiefer10 I am not quite sure what is done here.
Could you please explain it?
Hi Igor,
I am using the Jodd github repository for homework assignments in a software testing assignment I have.
I am testing potential test smells, statement coverage up to 25 to 100%, and mock testing examples. I then need to submit them using a pull request.
For the next assignment, please let me know any test doubles you know, refactoring suggestions, and fuzz testing examples.
Best regards, Max Kiefer
On Thu, Apr 8, 2021 at 10:28 AM Igor Spasić @.***> wrote:
Hey, @mkiefer10 https://github.com/mkiefer10 I am not quite sure what is done here.
Could you please explain it?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/oblac/jodd-util/pull/8#issuecomment-815564900, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMO6JPYYGEW3PYGS5EQH6LDTHVSMTANCNFSM42BOITMQ .
Hi Igor, I am using the Jodd github repository for homework assignments in a software testing assignment I have. I am testing potential test smells, statement coverage up to 25 to 100%, and mock testing examples. I then need to submit them using a pull request. For the next assignment, please let me know any test doubles you know, refactoring suggestions, and fuzz testing examples. Best regards, Max Kiefer … On Thu, Apr 8, 2021 at 10:28 AM Igor Spasić @.***> wrote: Hey, @mkiefer10 https://github.com/mkiefer10 I am not quite sure what is done here. Could you please explain it? — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#8 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMO6JPYYGEW3PYGS5EQH6LDTHVSMTANCNFSM42BOITMQ .
Hi. Do you have time to talk today or this weekend to discuss my questions on the project? Thank you.
Thank you @mkiefer10!
The thing is that I am not seeing your code in the PR, and it looks like your PR is based on a branch string-builder-pool
which is under investigation and not used there.
I would suggest to close the PR and make another one that is based on the master
Hi Igor,
Yes I will add do.
Also, do you know of any test doubles, refactoring suggestions, and fuzz testing examples in your repository?
Best, Max Kiefer
On Fri, Apr 9, 2021 at 11:23 AM Igor Spasić @.***> wrote:
Thank you @mkiefer10 https://github.com/mkiefer10! The thing is that I am not seeing your code in the PR, and it looks like your PR is based on a branch string-builder-pool which is under investigation and not used there.
I would suggest to close the PR and make another one that is based on the master
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/oblac/jodd-util/pull/8#issuecomment-816549756, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMO6JP3QIV4B2FR3IJ56X3LTH3BSHANCNFSM42BOITMQ .
I guess there are many :)) Jodd is quite big and old :)
Part 2:
void testUTFReads() throws IOException { String content = FileUtil.readUTFString(new File(utfdataRoot, "utf-8.txt")); content = content.replace("\r\n", "\n");
void testIsAncestor() { final File folder = new File("/foo/bar"); File file = new File(folder, "foo.txt");
void testDeleteFileTree_not_successful() throws Exception { assumeTrue(baseDir_Not_Successful.exists()); assumeTrue(locked_file.exists());
@Ignore void testJavaEscapes() { final String from = "\r\t\b\f\n\\"asd\u0111q\u0173aa\u0ABC\u0abc"; final String to = "\r\t\b\f\n\\\\"asd\u0111q\u0173aa\u0abc\u0abc";
void testFromCamelCase() { assertEquals("one two three", StringUtil.fromCamelCase("oneTwoThree", ' ')); assertEquals("one-two-three", StringUtil.fromCamelCase("oneTwoThree", '-')); assertEquals("one. two. three", StringUtil.fromCamelCase("one.Two.Three", ' '));
public static Iterable iterableo(final T... v) {
return new Iterable() {
public Iterator iterator() {
final AtomicInteger index = new AtomicInteger(0);
return new Iterator() {
public boolean hasNext() {
return index.intValue() < v.length;
}
}
void testStringToIntMatrix() { String[][] strings = new String[][] { {"123", "865"}, {"432", "345", "9832"} };
void testBasic() { ClassDescriptor cd = ClassIntrospector.get().lookup(Abean.class); assertNotNull(cd); PropertyDescriptor[] properties = cd.getAllPropertyDescriptors(); int c = 0; for (PropertyDescriptor property : properties) { if (property.isFieldOnly()) continue; if (property.isPublic()) c++; } assertEquals(2, c);
void testStaticFieldsForProperties() { ClassDescriptor cd = ClassIntrospector.get().lookup(Mojo.class);
Part 1: package jodd.bean;
import org.junit.jupiter.api.Test;
import java.util.HashMap; import java.util.Map; import java.util.function.Supplier;
import static org.junit.jupiter.api.Assertions.assertEquals;
public class SupplierTest {
void testSupplier_last() { Map map1 = new HashMap(); Supplier
package jodd.bean;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertThrows;
public class JavaInternalsTest {
}