Search or add a thesis

Advanced Search (Beta)
Home > Evaluating the Impact of Refactoring on Clients and Unit Tests

Evaluating the Impact of Refactoring on Clients and Unit Tests

Thesis Info

Access Option

External Link

Author

Basit, Wafa

Program

PhD

Institute

National University of Computer and Emerging Sciences

City

Peshawar

Province

KPK

Country

Pakistan

Thesis Completing Year

2016

Thesis Completion Status

Completed

Subject

Natural Sciences

Language

English

Link

http://prr.hec.gov.pk/jspui/bitstream/123456789/7454/1/wafa.basit.phd.thesis.pdf

Added

2021-02-17 19:49:13

Modified

2024-03-24 20:25:49

ARI ID

1676726104174

Similar


Refactorings are specific code transformations that improve the design of existing code without changing its externally observable behavior. In practice, unit tests are the most commonly used tools to ensure preservation of behavior after refactoring. Since unit tests are tightly coupled with the code, refactoring of the code can also invalidate the associated unit tests. If not properly adapted and maintained along with any transformation in the production code, the safety net provided by the unit tests would not be available and could result in a huge loss in terms of effort and cost. Refactoring guidelines provide mechanics for code transformation and refactoring tools provide support for automatic execution of these mechanics. Since refactoring can result in breaking of client and test code, adaptation techniques to fix these should be appropriately addressed. This thesis extends the state of the art in refactoring by formalizing the concept of unit test adaptation with refactorings. In this thesis, we established that, in the context of refactoring, unit test is different from an ordinary client. Therefore, it requires additional adaptations that are not applicable to any other client in the software. For instance, moving a method to another class requires adaptation of its clients including the unit tests. If the clients are not updated, this refactoring will result in compilation errors. On the other hand if test code is not adapted accordingly, this refactoring will introduce test smells in the test code. The test adaptation mechanics developed in this thesis also improve the design of test code along overall improvement in quality of production code. In this thesis we reviewed and analyzed various concepts and tools for refactoring java programs. and unit testing and identified the areas that could be improved. It also includes identification of problem areas in Fowler’s catalog via empirical evaluation . It has also been demonstrated, how refactoring guidelines can be extended. In addition, a test and client adaptation framework has been designed. This framework can provide a basis for automation of primitive refactorings and their associative adaptive actions to be performed on production and test code. The functions from this framework have been used to develop formal specifications of extended refactoring guidelines at different levels of abstraction. We also show with the help of results from an expert survey, empirical investigation and practical demonstration that our proposed approach has various advantages as compared to conventional approaches.
Loading...
Loading...

Similar Books

Loading...

Similar Chapters

Loading...

Similar News

Loading...

Similar Articles

Loading...

Similar Article Headings

Loading...

ہجر فراق سوہنے یار دے وچ: ۲

سی حرفی ۔۲
(ہجر فراق سوہنے یار دے وچ)
الف
آماہی ترے ہجر اندر باہیں سرے تے رکھ کے رُنیاں میں
برہوں مار گھتی، دکھاں ساڑ سٹی، پاڑ سٹیاں چولیاں چُنیاں میں
پھٹ گُھل دے نہیں جدائی والے، کونج ڈار دے وچوں وچُھنیاں میں
آتش عشق حنیف چا ڈنڈ چاہڑی، جگر دل دیاں بوٹیاں بھُنیاں میں

ب
بہت واری سمجھا رہیاں، اکھیں ویکھنوں باز نہ آئوندیاں نی
دنیا جگ جہان بھلا سارا، لاگھا یار دا مل کھلوندیاں نی
اکھیں، اکھیں نوں ویکھ کے رہن راضی،اکھیں لا پریت نبھائوندیاں نی
حنیف یار محبوب دے ویکھنے نوں، اکھیں بنھ کے ٹور لیائوندیاں نی

ت
تانگھ محبوب پیاریاں دی، جیو ڈاہڈڑا آن اداس ہویا
ہجر ساڑ دتا، دکھاں مار دتا، بھج وانگ کباب دے ماس ہویا
درداں مشک پکائی وچھوڑیاں دی، دل ڈھگیاں وانگ خراس ہویا
دے درشن آن کے عاجزاں نوں، نہیں کدی حنیف دے پاس ہویا
ث
ثابت قدم جے عشق ہووے، سمجھو ٹاکرے نال تقدیر ہو گئے
ہک وار ڈٹھا اوہدا رخ روشن، قیدی عمر دے باہجھ تقصیر ہو گئے
ہک وار ڈٹھی تصویر جنہاں، اوہ نال تصویر، تصویر ہو گئے
ریت عشق دی رہی حنیف اینویں چھڈ بادشاہ، تخت فقیر ہو گئے

ث
ثبوت منگے وفا ساریاں دا، آپ وفا دا نام نہ جاندا ای
سانوں ہجر فراق وچ پا کے تے، آپ نال نازاں موجاں ماندا ای
وقت جدوں وچھوڑے دا آ جاوے، ناز مان نہ رہوے کوئی مان دا ای
حنیف ہتھ اٹھا دعا منگے، تنبو رحمتاں دے رب تان دا ای

ج
جان جہان قربان ہر شے، سوہنے یار دی شیریں زبان اتوں
لباں لال گلاب دا پھل مہکے، کراں صدقے جان دہان اتوں
حسن بے پرواہ، پرواہ ناہیں، عاشق وار دے جان اس جان اتوں
دھوکا نال حنیف دے کریں...

Perception of Tourist Guide to Gorontalo Tourism Destination

This study discusses tourists gude overview regarding the destination of tourism place in Gorontalo. This sort of inquire about is quantitative. Information collection strategies in this consider incorporate perception, this strategy is done by watching all exercises at the inquire about locationThe results shows that in terms of openness, Gorontalo has met the standard of accessibility of get to for sightseers to enter and exit Gorontalo as well as most of the get to to different visitor attractions in Gorontalo Tourism Goals. It is fundamental to extend the quality of human assets within the tourism division in Gorontalo. An appraisal of the uniqueness of Gorontalo culture which is considered exceptionally great may be a reality that happens in each locale in Indonesia since Indonesia is wealthy in social differing qualities which of course has its possess uniqueness.

Strategies for Enhancing the Quality and Shelf Life of Mango Mangifera Indica L. Fruit Grown under the Environmental Conditions of Dera Ismail Khan

The mango fruit not only has wonderful taste, flavor and nutritional values but also has anticancer and anti-viral activities. It is therefore, very popular and is recognized as king of the fruits. Mango fruit is also one of the cash crops of Pakistan that stands at 5 th position among the main mango producing countries. However, its pre and postharvest wastage is quiet high due to short shelf life and vulnerable to various microorganism. Therefore, the objective of this work was to prolong the shelf life and to improve the quality of the fruit by applying various strategies. For the purpose two commercial varieties of mango namely, Langra and Samar Bahisht Chaunsa were selected for the study. The impact of controlled atmosphere ripening was explored by harvesting the fruit at hard green stage and stored at 20, 30 and 40°C till ripening. The results obtained for various quality parameters (QP) as well as shelf life of the fruit were compared with the fruit ripened at the tree (under normal conditions). It was observed that the tree ripened fruit was better in quality than the fruit ripened at different storage temperature after harvesting. The fruit took longer time for its ripening at the tree compared to storage at 30 and 40°C, irrespective of the variety. The shelf life was longest for the mangoes stored at 20°C compared to others, including tree ripened fruit. However, the waste percent was highest at tree ripened fruit as compared to stored fruit, irrespective of temperature and variety. These parameters were significantly different in most of the cases under the limit P < 0.05. xxii The results obtained for various quality parameters of the fruit harvested at hard green stage of maturity from different (orientation) side of the tree East, West, North and South showed that the quality was best and waste percent was lowest for the fruit harvested from south (sun exposure time for the fruit was maximum) orientation of tree; the shelf life was longer and weight loss percent was lower for North direction compared to others, irrespective of the variety and storage temperature. The values of QP for the fruit harvested from South were significantly different from other treatments in most of the cases under the limit P < 0.05. The fruit was harvested three (6.30 am , 1.30 pm and 8.30 pm) times a day and was stored at 20, 30 and 40°C till ripening. It was concluded that the quality of the ripened fruit was highest for 8.30 pm harvest time and stored at 40°C. The fruit harvested at 6.30 am and stored at 20°C had lowest quality and weight loss but longest shelf life, whereas the fruit harvested at 1.30 pm and stored at 40°C had shortest shelf life and highest weight loss, irrespective of the variety. On the other hand, the waste percent was highest for fruit harvested at 1.30 pm and 20°C storage temperature and lowest for 6.30 am harvest time and stored at 30°C, irrespective of the variety. However, the quality and the shelf life were improved by coating the fruit with calcium chloride, respective of harvest time plus storage temperature and irrespective of the variety. The impact of harvest stages and storage conditions over the postharvest quality and shelf life of mango fruit was explored by measuring the QP for the fruit harvested at 80 (early stage), 95 (mid stage) and 110 (late stage) days after the fruit setting and stored at three different storage temperature showed a significant impact over the quality characteristics. xxiii The waste percentage, weight loss, pH, total soluble solids, carotenoids and total sugar were increased with the storage time/ ripening process, irrespective of maturity stages; while the percentage of acidity and vitamin-C was decreased with storage time. The total sugar contents were highest in later stage whereas, vitamin C and acidity were highest in fruit harvested at early stage whereas; the waste percentage was lowest for mid stage harvest. The weight loss was higher and shelf life was longer for early stage harvest. The ripening rate increased and the shelf life decreased with rise in storage temperature. The total soluble solids, sugar contents and carotenoids had positive correlation with the skin color, irrespective of stage, variety and temperature. The contribution of cooling of the fruit towards the enhancement of quality and prolonging the shelf life was explored by harvesting the fruit at hard green stage of maturity and maintaining at 15 ○ C (by keeping in cold water and/ or in cold air) for different time periods. The fruit was then stored at 20, 30 and 40 o C till ripening. The quality parameters obtained were correlated with pre-storage cooling treatment. It was concluded that the impact of heat removed of the fruit was significantly different in most of the cases under the limit of P < 0.05. It was also observed that the removal of heat from the fruit enhanced the quality, prolongs shelf life and minimize wastage, irrespective of the variety and storage temperatures. The quality of mango fruit was investigated as related with pedicle (stalk) lengths of the fruit. The fruit was harvested at hard green stage of maturity with 0.5, 2.5, 4.5 and 6.5cm pedicle (stalk) lengths and stored at 30 ○ C till ripening. The result showed that the fruit harvested with 4.5cm stalk length was better among the investigated treatment for quality and shelf life. The weight loss and waste percent during ripening process of mango fruit xxiv was higher for 0.5cm stalks and lower for 4.5cm stalk, irrespective of the variety and storage temperature. The impact of coating over the quality and shelf life of mango (Langra and Samar Bahisht Chaunsa) fruit was investigated in detail. For this purpose, several coating materials like starch, olive oil, beeswax, sodium benzoate, coconut oil, natural ghee (clarified butter) and potassium metabisulphite were evaluated. The fruit was harvested at hard green stage of maturity, coated and stored at various temperatures with control till ripening. The data showed that the coating had significant impact over the quality and shelf life of the fruit in most of the cases under the limit of P < 0.05. Shelf life was longest with minimum weight loss and waste percent in natural ghee (clarified butter) and beeswax. Quality was higher in case of natural ghee and starch based coating than others, irrespective of the variety and storage temperature. Overall the shelf life was longest and waste percent was lowest in Samar Bahisht Chaunsa as compared to Langra mango variety, irrespective of the treatment.