<freeStyleBuild _class='hudson.model.FreeStyleBuild'><action _class='hudson.model.CauseAction'><cause _class='hudson.triggers.SCMTrigger$SCMTriggerCause'><shortDescription>Started by an SCM change</shortDescription></cause></action><action></action><action _class='hudson.plugins.git.util.BuildData'><buildsByBranchName><refsremotesoriginmaster _class='hudson.plugins.git.util.Build'><buildNumber>315</buildNumber><marked><SHA1>2ec35ed0ccaf797a613d963f9cdc490cd05f403d</SHA1><branch><SHA1>2ec35ed0ccaf797a613d963f9cdc490cd05f403d</SHA1><name>refs/remotes/origin/master</name></branch></marked><revision><SHA1>2ec35ed0ccaf797a613d963f9cdc490cd05f403d</SHA1><branch><SHA1>2ec35ed0ccaf797a613d963f9cdc490cd05f403d</SHA1><name>refs/remotes/origin/master</name></branch></revision></refsremotesoriginmaster></buildsByBranchName><lastBuiltRevision><SHA1>2ec35ed0ccaf797a613d963f9cdc490cd05f403d</SHA1><branch><SHA1>2ec35ed0ccaf797a613d963f9cdc490cd05f403d</SHA1><name>refs/remotes/origin/master</name></branch></lastBuiltRevision><remoteUrl>https://github.com/mcMMO-Dev/mcMMO.git</remoteUrl><scmName></scmName></action><action></action><action></action><action></action><action _class='org.jenkinsci.plugins.displayurlapi.actions.RunDisplayAction'><artifactsUrl>https://popicraft.net/jenkins/job/mcMMO/315/artifact</artifactsUrl><changesUrl>https://popicraft.net/jenkins/job/mcMMO/changes</changesUrl><displayUrl>https://popicraft.net/jenkins/job/mcMMO/315/</displayUrl><testsUrl>https://popicraft.net/jenkins/job/mcMMO/315/testReport</testsUrl></action><building>false</building><displayName>#315</displayName><duration>38915</duration><estimatedDuration>46420</estimatedDuration><fullDisplayName>mcMMO #315</fullDisplayName><id>315</id><inProgress>false</inProgress><keepLog>false</keepLog><number>315</number><queueId>148</queueId><result>FAILURE</result><timestamp>1780207533858</timestamp><url>https://popicraft.net/jenkins/job/mcMMO/315/</url><builtOn>Builder</builtOn><changeSet _class='hudson.plugins.git.GitChangeSetList'><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>src/test/java/com/gmail/nossr50/MMOTestEnvironment.java</affectedPath><affectedPath>src/test/java/com/gmail/nossr50/database/FlatFileDatabaseManagerTest.java</affectedPath><affectedPath>.gitignore</affectedPath><affectedPath>src/test/java/com/gmail/nossr50/database/SQLDatabaseManagerTest.java</affectedPath><commitId>2ec35ed0ccaf797a613d963f9cdc490cd05f403d</commitId><timestamp>1780207117000</timestamp><author><absoluteUrl>https://popicraft.net/jenkins/user/nossr50</absoluteUrl><fullName>nossr50</fullName></author><authorEmail>nossr50@gmail.com</authorEmail><comment>Fix test environment writing config files to project root

BukkitConfig calls mcMMO.p.getDataFolder() in its constructor to
determine where to write config files. When tests mock mcMMO.p but
don't stub getDataFolder(), it returns null, which Java resolves to
the current working directory (the project root), causing files like
experience.yml to be created there.

Fix by stubbing mcMMO.p.getDataFolder() with a fresh temporary
directory in every test setup that mocks mcMMO.p:
- MMOTestEnvironment.mockBaseEnvironment(): creates testDataFolder
  in temp and deletes it in cleanUpStaticMocks()
- SQLDatabaseManagerTest.setUpAll(): same pattern, cleaned in tearDownAll()
- FlatFileDatabaseManagerTest.initBeforeAll(): same pattern, cleaned
  in the new tearDownAll() method

Also remove the .gitignore band-aid entries that were added to paper
over the symptom.
</comment><date>2026-05-30 22:58:37 -0700</date><id>2ec35ed0ccaf797a613d963f9cdc490cd05f403d</id><msg>Fix test environment writing config files to project root</msg><path><editType>edit</editType><file>src/test/java/com/gmail/nossr50/MMOTestEnvironment.java</file></path><path><editType>edit</editType><file>src/test/java/com/gmail/nossr50/database/SQLDatabaseManagerTest.java</file></path><path><editType>edit</editType><file>.gitignore</file></path><path><editType>edit</editType><file>src/test/java/com/gmail/nossr50/database/FlatFileDatabaseManagerTest.java</file></path></item><kind>git</kind></changeSet><culprit><absoluteUrl>https://popicraft.net/jenkins/user/nossr50</absoluteUrl><fullName>nossr50</fullName><id>nossr50</id></culprit><culprit><absoluteUrl>https://popicraft.net/jenkins/user/github</absoluteUrl><fullName>github</fullName><id>github</id></culprit></freeStyleBuild>