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 — Bad static method mocking · Issue #1128 · UnitTestBot/UTBotJava Closed Labels ctg-bugIssue is a bugIssue is a bug DescriptionDescription Concrete Executor wrongly mocks static methods from different classes but with same signatures. To Reproduce Steps to reproduce the behavior: public class AlsoRandom { public static int next() { return -42; } public static int foo() { return 1; } } public class Random { public static int next() { return 42; } public static int foo() { return 0; } } public class RandomUsage { public static int usage() { int value = Random.next(); int a = Random.foo(); int b = AlsoRandom.foo(); if (value > 50) { return a + b; } return AlsoRandom.next() - value; } }
Expected behavior Tests are passed. Actual behavior Tests are failed. Environment Mocking static methods from another class. ActivityMetadataMetadataAssigneesLabelsctg-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. |