# Path: SmellDetector/AbsSmellDectector.py
# def detectSmells(folder, outputFile):
# def detectMultifacetedAbs(folder, outputFile):
# def detectUnnecessaryAbs(folder, outputFile):
# def detectImperativeAbs(folder, outputFile):
# def detectImpAbs(fileObj, outputFile):
# def detectDuplicateAbs(folder, outputFile):
# def getCpdXmlFile(folder):
# def detectMissingAbs(folder, outputFile):
# def detectMisAbs(fileObj, outputFile):
# def detectMultifacetedAbsForm1(folder, outputFile):
# def checkWithFileResource(fileObj, outputFile):
# def checkWithServiceResource(fileObj, outputFile):
# def checkWithPackageResource(fileObj, outputFile):
# def detectMultifacetedAbsForm2(folder, outputFile):
# def detectMulAbsInClass(fileObj, outputFile):
# def detectMulAbsInDefine(fileObj, outputFile):
# def detectMulAbsInModule(fileObj, outputFile):
# def detectUnnAbsInClasses(fileObj, outputFile):
# def detectUnnAbsInDefine(fileObj, outputFile):
# def detectUnnAbsInModules(fileObj, outputFile):


from unittest import TestCase
from SmellDetector import AbsSmellDectector
import SourceModel.SM_File



class TestAbsSmells(TestCase):
    def test_checkWithFileResource(self):
        fileName = "/Users/Tushar/Documents/Research/PuppetQuality/Repos/cmits/cmits-example/modules-unclass/audio/manifests/no/darwin.pp"
        fileObj = SourceModel.SM_File.SM_File(fileName)
        outFile = open("tmp/multifacetedAbsForm1FileTest.txt", 'w')


# Path: SmellDetector/AbsSmellDectector.py
# def detectSmells(folder, outputFile):
# def detectMultifacetedAbs(folder, outputFile):
# def detectUnnecessaryAbs(folder, outputFile):
# def detectImperativeAbs(folder, outputFile):
# def detectImpAbs(fileObj, outputFile):
# def detectDuplicateAbs(folder, outputFile):
# def getCpdXmlFile(folder):
# def detectMissingAbs(folder, outputFile):
# def detectMisAbs(fileObj, outputFile):
# def detectMultifacetedAbsForm1(folder, outputFile):
# def checkWithFileResource(fileObj, outputFile):
# def checkWithServiceResource(fileObj, outputFile):
# def checkWithPackageResource(fileObj, outputFile):
# def detectMultifacetedAbsForm2(folder, outputFile):
# def detectMulAbsInClass(fileObj, outputFile):
# def detectMulAbsInDefine(fileObj, outputFile):
# def detectMulAbsInModule(fileObj, outputFile):
# def detectUnnAbsInClasses(fileObj, outputFile):
# def detectUnnAbsInDefine(fileObj, outputFile):
# def detectUnnAbsInModules(fileObj, outputFile):


# Path: Tests/test_AbsSmells.py
from unittest import TestCase
from SmellDetector import AbsSmellDectector
import SourceModel.SM_File




class TestAbsSmells(TestCase):
    def test_checkWithFileResource(self):
        fileName = "/Users/Tushar/Documents/Research/PuppetQuality/Repos/cmits/cmits-example/modules-unclass/audio/manifests/no/darwin.pp"
        fileObj = SourceModel.SM_File.SM_File(fileName)
        outFile = open("tmp/multifacetedAbsForm1FileTest.txt", 'w')


        AbsSmellDectector.checkWithFileResource(fileObj, outFile)