GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — NPE in concrete processing static field · Issue #432 · UnitTestBot/UTBotJava Closed Labels comp-symbolic-engineIssue is related to the symbolic execution engineIssue is related to the symbolic execution enginectg-bugIssue is a bugIssue is a bug DescriptionDescription If the first statement in MUT used a static field that should be processed concretely and which is not an enum, the engine emits To Reproduce Try to generate a test for such a method: public static void concreteStaticFieldAsFirstStatement() { System.out.println(0); } Expected behavior One test is generated, which does nothing: @Test @DisplayName("concreteStaticFieldAsFirstStatement: -> PrintStreamPrintln") public void testConcreteStaticFieldAsFirstStatement_PrintStreamPrintln() { HelloWorld.concreteStaticFieldAsFirstStatement(); } **Actual behavior** One error method is generated: ```java public void testConcreteStaticFieldAsFirstStatement_errors() { // Couldn't generate some tests. List of errors: // // 1 occurrences of: // <Throwable with empty message> } Environment Commit c09568f Additional context Not applicable Activity
MetadataMetadataAssigneesLabelscomp-symbolic-engineIssue is related to the symbolic execution engineIssue is related to the symbolic execution enginectg-bugIssue is a bugIssue is a bug TypeProjects
MilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |