Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Patterns for Injection of Mock Objects in a Modeling Environment
Linköping University, Department of Computer and Information Science, Software and Systems.
2016 (English)Independent thesis Advanced level (degree of Master (Two Years)), 20 credits / 30 HE creditsStudent thesis
Abstract [en]

Capsules are modeling language elements which are sometimes used to develop real-time software. One way to test such capsule elements without relying on dependencies to other units is to use mock objects. The aim of the study was to look at existing object-oriented design patterns and investigate how they could be used for capsules, in order to perform mock testing. The focus was to find solutions that were usable from the programmers’ point of view, meaning that they should promote high user effectiveness, efficiency and satisfaction when implementing them. It was also important that program efficiency wasn’t affected negatively. 5 design- or refactoring patterns were adapted for capsules: Constructor Injection, Setter Injection, Parameterize Method, Factory Method and Abstract Factory. Those patterns were evaluated by 5 programmers in a usability test, where Incarnate Injection (an adaptation of Constructor Injection) and Abstract Factory were considered most usable. Incarnate Injection seemed to be easier to implement and promoted high user efficiency, while Abstract Factory was considered more flexible. The performance tests indicated that Abstract Factory compromises program efficiency when the factory product is resource-heavy and is required frequently by dependent capsules. The study showed that it is possible to adapt design patterns to capsules by looking at conceptual similarities between capsules and classes. However, there are cases when this adaptation is impossible. Furthermore, even when adaptation is possible, it was apparent that different patterns adapt differently well to capsules.

Place, publisher, year, edition, pages
2016. , p. 63
Keywords [en]
Mocking, Software testing, Unit testing, Model driven development, Modeling language, Patterns, Design patterns, Object Oriented Programming
National Category
Computer Engineering
Identifiers
URN: urn:nbn:se:liu:diva-133412ISRN: LIU-IDA/LITH-EX-A--16/011--SEOAI: oai:DiVA.org:liu-133412DiVA, id: diva2:1059732
External cooperation
Ericsson
Subject / course
Computer Engineering
Presentation
2016-03-14, Donald Knuth, Linköpings universitet, B-huset, Linköping, 13:00 (English)
Supervisors
Examiners
Available from: 2017-01-05 Created: 2016-12-23 Last updated: 2018-01-13Bibliographically approved

Open Access in DiVA

fulltext(1400 kB)53 downloads
File information
File name FULLTEXT01.pdfFile size 1400 kBChecksum SHA-512
cb09d4d7c74abbc3fd782d6b81aff760b71a0a6808e775c260ab42557a9bc36a0bea1fc5e4e14dbeab3664bc70bc22a30bdf078f6b521a26127fce2f1fffd695
Type fulltextMimetype application/pdf

Search in DiVA

By author/editor
Wiberg, Fabian
By organisation
Software and Systems
Computer Engineering

Search outside of DiVA

GoogleGoogle Scholar
Total: 53 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 322 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf