-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mocking #108
Merged
Merged
Mocking #108
Changes from 142 commits
Commits
Show all changes
145 commits
Select commit
Hold shift + click to select a range
e735107
Descriptors generated for all terms. Working on MockDescriptor
ilma4 c599d79
Descriptors generated for all terms. Methods calls collected from ini…
ilma4 d69f106
Parameters: methods related to mocks. MockDescriptor: work in progress.
ilma4 5a21682
DescriptorWrapper.Mock WIP.
ilma4 c8e3757
TODOs and comments fixes
ilma4 9d9c299
DescriptorWrapper.Mock field wrapping
ilma4 c7a9e58
mockDescriptorSerialization test.
ilma4 9102bdc
UnimplementedInterfaceConcolicLongTest
ilma4 5495510
Merge changes from master
ilma4 6edd5cc
Better mockDescriptorSerializationTest: added self-reference
ilma4 1c7e52c
MockDescriptor serializer now registered
ilma4 a00a360
mockDescriptorSerializationTest: testing returnValues serialization
ilma4 932c83c
Fixed MockSequence mapping. Fixed tests
ilma4 e8c1a83
Mockito.mock printing
ilma4 c198f9f
Mockito.mock printing
ilma4 47dc697
Fixes
ilma4 f26cb5c
Add Mockito to deps, logback prints line and method
ilma4 b1a422c
Merge branch 'master' into ilma4-temp-to-master
ilma4 e317592
Fixed mockito issues in workers. Function filtering clauses in extens…
ilma4 c1a5f76
Remove MockitoMock part from "is ...$MockitoMock$" predicates.
ilma4 740e527
It's just works!
ilma4 f1da6f3
Fixes
ilma4 92f60e1
Merge branch 'master' into ilma4-temp-to-master
ilma4 aa01a1b
SMTConverter fix
ilma4 8f9d028
Fixes: generating MockDescriptors, printing mocks.
ilma4 1723a97
Fixed cycle links case in Mocks
ilma4 5ea9076
Lambda to local function
ilma4 ed8fc90
Cleaning dependencies
ilma4 821509e
Merge branch 'master' into ilma4-temp-to-master
ilma4 26fdfa2
More accurate printing of mocks. Trying to fix mocks when they are fi…
ilma4 8685c44
MockDescriptors creates only from ObjectDescriptors. UnknownGenerator…
ilma4 a10c33e
MockTests split into different classes. Fixed DescriptorGenerator, St…
ilma4 02c259c
Fixes. All changes before publishing
ilma4 d15b17c
mockito-core.jar
ilma4 5fcb970
Fixed instanceof predicates generation
ilma4 b702b9c
MockUtils. Work on fixing issue with $MockitoMock$ classes
ilma4 977206c
Fixes usage of private classes from dependencies
ilma4 c2085b6
MockUtilsPrinter
ilma4 bc83922
Merge branch 'master' into mocks
ilma4 8a8eacc
Removed method:line information from logs
ilma4 6aa4c6d
Trying to convert mockito-created classes to original interfaces in m…
ilma4 1ef7742
Merge branch 'master' into mocks
ilma4 b7df3f3
Logging information of creating mock descriptors
ilma4 acbd561
Merge branch 'master' into mocks
ilma4 261d11b
Removed duplicated tests from MockTests
ilma4 aad09c2
Avoid collecting mock setup information if no mocks created
ilma4 128655d
Remove unnecessary code
ilma4 5a82cf4
Excluding classes from InstantiationManager in config
ilma4 ef6b8b0
Increased heap size in kex.py, because mocks cause more memory usage
ilma4 60e07ce
Add comment about potential low coverage in MockListTests
ilma4 ceecd70
Merge branch 'master' into mocks
ilma4 16c371b
Preparing to generate additional descriptors only if mocks are requir…
ilma4 e6a0abc
Generating additional descriptors only if mocks appears
ilma4 13bdcfd
Merge branch 'master' into mocks
ilma4 9f55034
Missing include
ilma4 8464371
TODO for timeout
ilma4 8e0d518
mock section in config. Some settings
ilma4 acb62f5
MockUtilsPrinter fixes
ilma4 3eb2fea
Add mocking configuration to kex-test.ini
ilma4 8185c55
Refactoring, functions for reading mocking config
ilma4 8dbd361
Refactoring
ilma4 2ee0557
Update memory values filtering in AbstractGenerator and other classes
ilma4 381df05
Modify tolerances in mockStaticsTests and mockListTests
ilma4 dc7af30
Remove mention of full mock mode, because it's unimplemented
ilma4 b71c575
Changes from sbst-mocks
ilma4 6740597
Enabled mocks in symbolic mode. Tests for mock-symbolic
ilma4 059c10f
Mocking mode "full": mock everything
ilma4 63c5def
Fix $MockitoMock$ classes problem
ilma4 6129011
Reverted eps in tests
ilma4 1531efa
Merge branch 'symbolic-mocks' into mocks
ilma4 c86bbe0
Removed unused code
ilma4 59245b6
Merge branch 'all-mocks' into mocks
ilma4 0e3dbb2
Removed unnecessary logging
ilma4 edc0d9e
Removed old unnecessary MockitoMock workarounds
ilma4 85af0fe
MockitoMock fix refactoring, now caching fix results
ilma4 7922926
Unused import
ilma4 1b4485b
HashMap -> LRUCache in MockitoMock fix. Basic mocking mode by default.
ilma4 60460df
Updated MockitoMock fix, no more classLoader and cache usage.
ilma4 c363cee
Changes from sbst-mock
ilma4 44b051e
Refactoring
ilma4 ada7f1e
Fixed instance mocking
ilma4 15b8317
Refactoring
ilma4 439f1a7
Print import Mockito only when need
ilma4 fe4af9f
Print methods of MockDescriptor only if they contain return values
ilma4 1eee357
Methods in MockDescriptor now may be changed after construction
ilma4 cec9a3d
Fix done
ilma4 8ca1e71
Refactoring. Regression test
ilma4 30f65cd
Fixes
ilma4 1040d3f
MockUtils refactoring
ilma4 79f737a
Hack to fix mockito on java 8
ilma4 d07d03b
Removed unnecessary hack in TestExecutor
ilma4 e0a4582
Config entry to disable workaround in KfgClassLoader
ilma4 427631e
Merge branch 'mocks-fixed-methods-with-overrides' into mocks
ilma4 f95baa7
Test of lambda mocking
ilma4 fe54ba4
Fixed PathClassLoader like KfgClassLoader
ilma4 a7a6c2b
Merge branch 'master' into mocks
ilma4 6071658
broken
ilma4 915e5b5
Fix functionalExtensions
ilma4 33bd4ae
Exclude lambdas from easy-random. config entry
ilma4 e0678a4
Exclude lambdas from easy-random. config entry
ilma4 95ec4cd
Descriptor.map renamed to Descriptor. transform
ilma4 2874946
Refactoring
ilma4 a6de947
Fix config usage
ilma4 14b0dba
New MockDescriptor constructor
ilma4 f6c18ad
Mocking performs through `MockMaker`s
ilma4 49a3bd1
Imports optimized
ilma4 1e40c33
Refactoring
ilma4 eebc99d
Method.general(). Will fix issues with inheritance
ilma4 3b3bef2
Use Method (from kfg) instead of MockMethod in MockDescriptor. Fix in…
ilma4 d870178
Use Method.klass to perform cast
ilma4 10a8f31
Fixes, removed testing code
ilma4 f87fecd
Select multiple mocking rules instead of one mockingMode.
ilma4 b3804d5
MockDescriptor constructor/builder refactoring
ilma4 73f74d2
log.warn -> log.error
ilma4 5e92dc6
Merge branch 'master' into mocks
ilma4 67deb27
DescriptorBuilder improvement
ilma4 075260b
kfg 0.4.15
ilma4 0c423d3
mockito id (core/inline) as property
ilma4 78f93cd
Removed mockito from kex-test deps
ilma4 f2050fb
Removed mockito from kex-executor deps
ilma4 05eabe9
Lambda mocking improved
ilma4 0da4327
Updated tests and config. Fixed(?) ClassInstantiationManager
ilma4 9cacfab
Refactoring
ilma4 249a4ad
Fix
ilma4 289ae99
Renaming. Prepairing for BreakingMockMaker
ilma4 e762496
Refactoring, preparing to better Lambda mocking
ilma4 662be30
Should work
ilma4 a1c612e
Merge from master
ilma4 9680c9b
Finished better lambda mocking
ilma4 86a094e
All MockMaker subclasses are private. Public functions are used instead
ilma4 56ea817
MockMaker fixes
ilma4 da7f66a
LambdaMockMaker tries to preserve original class in mock
ilma4 9cf0d40
Config refactoring
ilma4 92cf2db
Don't mock methods mockito cant mock
ilma4 1d0f806
Don't mock classes/interfaces mockito can't mock
ilma4 f4c971f
UnimplementedMockMaker refactoring
ilma4 0979530
`finalizeDescriptors` -> `performMocking`,
ilma4 5c4eaf1
Refactoring
ilma4 716f9d8
Useful config entry for tests
ilma4 7f60cf5
fix
ilma4 c282375
Merge branch 'master' into mocks
ilma4 7885fa0
config fix
ilma4 35755dc
Better Descriptor.transform
ilma4 74ebec6
comment
ilma4 f172330
Merge branch 'master' into mocks
AbdullinAM File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need an ignore option here? What kind of classes do we want to filter out?