input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testMovingTriplesFromNamedGraphToDefaultGraph ( ) { java . lang . String queryStr = ( "MOVE<sp>SILENT<sp>GRAPH<sp>" + ( org . apache . clerezza . rdf . core . sparql . SparqlPreParserTest . TEST_GRAPH . toString ( ) ) ) + "<sp>TO<sp>DEFAULT" ; org . apache . clerezza . rdf . core . sparql . SparqlPreParser parser ; par...
org . junit . Assert . assertTrue ( referredGraphs . containsAll ( expected ) )
testGetLoginModules_null ( ) { java . util . List < com . ibm . ws . security . jaas . common . JAASLoginModuleConfig > loginModuleRefs = new java . util . ArrayList < com . ibm . ws . security . jaas . common . JAASLoginModuleConfig > ( ) ; java . util . List < javax . security . auth . login . AppConfigurationEntry >...
org . junit . Assert . assertTrue ( appConfigurationEntries . isEmpty ( ) )
testBinomialAliasUsingCounts ( ) { int noDraws = 500000 ; int [ ] trialss = new int [ ] { 2 , 10 , 20 , 50 , 100 } ; double [ ] probs = new double [ ] { 0.01 , 0.1 , 0.5 } ; int samplesLen = 1000 ; for ( int trials : trialss ) { for ( double prob : probs ) { long [ ] samplesAlias = new long [ samplesLen ] ; long [ ] sa...
org . junit . Assert . assertTrue ( ( test1 > 0.01 ) )
withDescription_shouldSetDescription ( ) { org . eclipse . smarthome . core . thing . type . ChannelGroupType channelGroupType = builder . withDescription ( org . eclipse . smarthome . core . thing . type . ChannelGroupTypeBuilderTest . DESCRIPTION ) . build ( ) ; "<AssertPlaceHolder>" ; } getDescription ( ) { return d...
org . junit . Assert . assertEquals ( org . eclipse . smarthome . core . thing . type . ChannelGroupTypeBuilderTest . DESCRIPTION , channelGroupType . getDescription ( ) )
testHasIndexHashKeyEqualConditionAnd_WhenConditionCriteriaIsNonEqualityConditionOnAPropertyWhichIsAnIndexHashKeyButNotAHashKeyOrRangeKey ( ) { org . mockito . Mockito . when ( entityInformation . isGlobalIndexHashKeyProperty ( "displayName" ) ) . thenReturn ( true ) ; criteria . withPropertyBetween ( "displayName" , "s...
org . junit . Assert . assertFalse ( hasIndexHashKeyEqualCondition )
extendsViewType ( ) { javax . lang . model . element . ExecutableElement executableElement = org . androidannotations . helper . ValidatorParameterHelperTest . createMethod ( android . widget . TextView . class ) ; org . androidannotations . ElementValidation valid = new org . androidannotations . ElementValidation ( "...
org . junit . Assert . assertTrue ( valid . isValid ( ) )
testGetApplicablePoliciesAfterSet ( ) { cugAccessControlManager . setPolicy ( org . apache . jackrabbit . oak . spi . security . authorization . cug . impl . SUPPORTED_PATH , getApplicableCug ( org . apache . jackrabbit . oak . spi . security . authorization . cug . impl . SUPPORTED_PATH ) ) ; javax . jcr . security . ...
org . junit . Assert . assertFalse ( it . hasNext ( ) )
handlesQuotesInCommentsInScripts ( ) { java . lang . String html = "<script>\n" + ( ( ( "<sp><!--\n" + "<sp>document.write(\'</scr\'<sp>+<sp>\'ipt>\');\n" ) + "<sp>//<sp>-->\n" ) + "</script>" ) ; org . jsoup . nodes . Document node = org . jsoup . Jsoup . parseBodyFragment ( html ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( ( "<script>\n" + ( ( ( "<sp><!--\n" + "<sp>document.write(\'</scr\'<sp>+<sp>\'ipt>\');\n" ) + "<sp>//<sp>-->\n" ) + "</script>" ) ) , node . body ( ) . html ( ) )
getNotPresentAttributeTest ( ) { float expected = 0.0F ; com . itextpdf . svg . renderers . impl . LineSvgNodeRenderer lineSvgNodeRenderer = new com . itextpdf . svg . renderers . impl . LineSvgNodeRenderer ( ) ; java . util . Map < java . lang . String , java . lang . String > attributes = new java . util . HashMap ( ...
org . junit . Assert . assertEquals ( expected , actual , 0.0F )
asLong ( ) { "<AssertPlaceHolder>" ; } asLong ( ) { org . junit . Assert . assertEquals ( 23L , new org . eclipse . rap . json . JsonNumber ( "23" ) . asLong ( ) ) ; }
org . junit . Assert . assertEquals ( 23L , new org . eclipse . rap . json . JsonNumber ( "23" ) . asLong ( ) )
nonFindableRoot ( ) { java . lang . Object o = new java . lang . Object ( ) ; jetbrains . jetpad . mapper . MapperTest . TestMapper mapper = new jetbrains . jetpad . mapper . MapperTest . TestMapper ( o ) { @ jetbrains . jetpad . mapper . Override protected boolean isFindable ( ) { return false ; } } ; mapper . attachR...
org . junit . Assert . assertNull ( mapper . getDescendantMapper ( o ) )
execNameComparatorTest ( ) { org . eclipse . tracecompass . internal . analysis . os . linux . ui . views . controlflow . ControlFlowEntry trace1Entry1 = new org . eclipse . tracecompass . internal . analysis . os . linux . ui . views . controlflow . ControlFlowEntry ( 0 , org . eclipse . tracecompass . analysis . os ....
org . junit . Assert . assertEquals ( expected , testVec )
testAddResolverList ( ) { java . util . List < org . apache . cxf . resource . ResourceResolver > addedResolvers = new java . util . ArrayList ( ) ; for ( int i = 0 ; i < 4 ; i ++ ) { addedResolvers . add ( new org . apache . cxf . resource . DefaultResourceManagerTest . DummyResolver ( resolvers [ 0 ] . source ) ) ; }...
org . junit . Assert . assertArrayEquals ( expected , getResolvers ( manager ) )
givenCorrectSedaFileWhenCheckStorageAvailabilityThenOK ( ) { when ( workspaceClient . getObjectInformation ( any ( ) , any ( ) ) ) . thenReturn ( new fr . gouv . vitam . common . model . RequestResponseOK ( ) . addResult ( getSedaTest ( ) ) ) ; final long manifestSize = utils . getManifestSize ( params , workspaceClien...
org . junit . Assert . assertTrue ( ( manifestSize > 0 ) )
tesGroepen09 ( ) { final java . lang . String message = maakLo3VerblijfplaatsInhoud ( new nl . moderniseringgba . migratie . conversie . model . lo3 . element . Lo3GemeenteCode ( "1234" ) , new nl . moderniseringgba . migratie . conversie . model . lo3 . element . Lo3Datum ( 20120101 ) , Lo3FunctieAdresEnum . BRIEFADRE...
org . junit . Assert . assertEquals ( "" , message )
testPostPaintRow ( ) { System . out . println ( "postPaintRow" ) ; kg . apc . emulators . Graphics2DEmul g2d = new kg . apc . emulators . Graphics2DEmul ( ) ; kg . apc . charting . ChartSettings chartSettings = new kg . apc . charting . ChartSettings ( ) ; kg . apc . charting . plotters . CSplineRowPlotter instance = n...
org . junit . Assert . assertEquals ( expResult , result )
getContentTypeShouldGetContentTypeFromParamConfig ( ) { java . util . Map < java . lang . String , java . lang . Object > metaDatas = java . util . Collections . singletonMap ( "multipart.content-type" , ( ( java . lang . Object ) ( "expected" ) ) ) ; org . codegist . crest . config . ParamConfig paramConfig = mock ( o...
org . junit . Assert . assertEquals ( "expected" , org . codegist . crest . util . MultiParts . getContentType ( paramConfig ) )
testNullDefaultValue ( ) { final org . apache . logging . log4j . core . config . plugins . validation . ValidatingPluginWithGenericBuilder validatingPlugin = ( ( org . apache . logging . log4j . core . config . plugins . validation . ValidatingPluginWithGenericBuilder ) ( new org . apache . logging . log4j . core . co...
org . junit . Assert . assertNull ( validatingPlugin )
concurrentPutTestResults ( ) { final java . lang . String sessionId = java . lang . String . valueOf ( randomUUID ( ) ) ; final java . lang . String [ ] testIds = generateTestIdRangeClosed ( 0 , 10 ) ; fsmRegistry . registerFsm ( sessionId ) ; treeRegistry . registerTestTree ( newTestTree ( sessionId , testIds ) ) ; fi...
org . junit . Assert . assertTrue ( internalTreeRegistry . validateTestTree ( sessionId ) )
whenNullTask_thenNullPointerException ( ) { org . multiverse . commitbarriers . VetoCommitBarrier barrier = new org . multiverse . commitbarriers . VetoCommitBarrier ( ) ; try { barrier . registerOnCommitTask ( null ) ; org . junit . Assert . fail ( ) ; } catch ( java . lang . NullPointerException expected ) { } "<Asse...
org . junit . Assert . assertTrue ( barrier . isClosed ( ) )
testGetExactReturnType ( ) { java . lang . reflect . Method m = org . evosuite . utils . generic . GenericMethodTest . B . class . getDeclaredMethod ( "bar" , java . lang . Object . class ) ; org . evosuite . utils . generic . GenericMethod gm = new org . evosuite . utils . generic . GenericMethod ( m , org . evosuite ...
org . junit . Assert . assertEquals ( java . lang . Object . class , res )
backhaulViolation_shouldWorkWhenViolated ( ) { buildAnotherScenarioWithOnlyOneVehicleAndWithoutAnyConstraintsBefore ( ) ; com . graphhopper . jsprit . core . analysis . SolutionAnalyser analyser = new com . graphhopper . jsprit . core . analysis . SolutionAnalyser ( vrp , solution , vrp . getTransportCosts ( ) ) ; com ...
org . junit . Assert . assertTrue ( violation )
test_trycatch ( ) { org . jerlang . type . Atom expected = org . jerlang . type . Atom . of ( "ok" ) ; org . jerlang . type . Term result = org . jerlang . erts . Erlang . apply ( org . jerlang . type . Atom . of ( "try_case_end" ) , org . jerlang . type . Atom . of ( "test" ) , List . nil ) ; "<AssertPlaceHolder>" ; }...
org . junit . Assert . assertEquals ( expected , result )
withTwoNodes ( ) { treegraph . ParentAwareBinaryTreeNode root = new treegraph . ParentAwareBinaryTreeNode ( 2 ) ; root . addLeft ( 1 ) ; "<AssertPlaceHolder>" ; } findInOrderSuccessor ( treegraph . ParentAwareBinaryTreeNode ) { if ( node == null ) return null ; if ( ( node . right ) != null ) { return leftMost ( node ....
org . junit . Assert . assertEquals ( 2 , s . findInOrderSuccessor ( root . left ) . val )
iterate ( ) { query . where ( year . between ( 1800 , 2000 ) ) ; final java . util . Iterator < org . apache . lucene . document . Document > iterator = query . iterate ( ) ; int count = 0 ; while ( iterator . hasNext ( ) ) { iterator . next ( ) ; ++ count ; } "<AssertPlaceHolder>" ; } next ( ) { return false ; }
org . junit . Assert . assertEquals ( 4 , count )
testAppendTestsNameFiltered_emptyTests ( ) { final java . util . List < java . lang . String > lines = appendTestsNameFiltered_process ( java . util . Collections . < java . lang . String > emptyList ( ) ) ; "<AssertPlaceHolder>" ; } appendTestsNameFiltered_process ( java . util . Collection ) { final com . indeed . pr...
org . junit . Assert . assertEquals ( 0 , lines . size ( ) )
readInputFailsIfCannotAccessInputStreamAndIsNoRouteToHost ( ) { boolean exceptionCaught = false ; final com . microsoft . azure . sdk . iot . device . transport . https . HttpsMethod httpsMethod = com . microsoft . azure . sdk . iot . device . transport . https . HttpsMethod . GET ; new mockit . NonStrictExpectations (...
org . junit . Assert . assertTrue ( exceptionCaught )
testQuery ( ) { org . semanticweb . owlapi . model . OWLOntology ontology = loadOntology ( "/simple.owl" ) ; org . apache . jena . query . Dataset dataset = org . obolibrary . robot . QueryOperation . loadOntologyAsDataset ( ontology ) ; java . lang . String query = "SELECT<sp>*<sp>WHERE<sp>{<sp>?s<sp>?p<sp>?o<sp>}" ; ...
org . junit . Assert . assertEquals ( 6 , org . obolibrary . robot . QueryOperation . countResults ( results ) )
shouldReturnTrueWhenCheckIfTransfersAreValidAndAllTransfersAreNull ( ) { boolean result = transformationsModelValidators . checkIfTransfersAreValid ( transformationsDD , transformations ) ; "<AssertPlaceHolder>" ; } checkIfTransfersAreValid ( com . qcadoo . model . api . DataDefinition , com . qcadoo . model . api . En...
org . junit . Assert . assertTrue ( result )
shouldNotDefaultWhenMultipleDescriptors ( ) { org . jboss . arquillian . container . spi . client . deployment . DeploymentScenario scenario = new org . jboss . arquillian . container . spi . client . deployment . DeploymentScenario ( ) ; scenario . addDeployment ( new org . jboss . arquillian . container . spi . clien...
org . junit . Assert . assertNull ( defaultDeployment )
createTelecomTELExplicitListNull ( ) { org . hl7 . v3 . PRPAMT201306UV02PatientTelecom telecom ; gov . hhs . fha . nhinc . transform . subdisc . HL7QueryParamsTransforms queryTransforms = new gov . hhs . fha . nhinc . transform . subdisc . HL7QueryParamsTransforms ( ) ; java . util . List < org . hl7 . v3 . TELExplicit...
org . junit . Assert . assertNull ( telecom )
fiveEntryTest ( ) { when ( transformerConfig . getProperty ( "property.name" ) ) . thenReturn ( "3" ) ; log . debug ( "one" ) ; log . debug ( "two" ) ; log . debug ( "three" ) ; log . debug ( "four" ) ; log . debug ( "five" ) ; "<AssertPlaceHolder>" ; } getEntries ( org . alfresco . service . cmr . repository . NodeRef...
org . junit . Assert . assertArrayEquals ( new java . lang . String [ ] { "five" , "four" , "three" } , log . getEntries ( 10 ) )
listPcjs ( ) { final org . apache . accumulo . core . client . Connector connector = getClusterInstance ( ) . getConnector ( ) ; final java . lang . String ryaInstanceName = testInstance . getRyaInstanceName ( ) ; try ( final org . apache . rya . indexing . pcj . storage . PrecomputedJoinStorage pcjStorage = new org . ...
org . junit . Assert . assertEquals ( expectedIds , pcjIds )
test_validateData ( ) { boolean val = com . levelup . java . exercises . beginner . FatGramCalculator . validateData ( 100 , 100 ) ; "<AssertPlaceHolder>" ; } validateData ( double , double ) { return fatCalories > calories ; }
org . junit . Assert . assertFalse ( val )
getHTTPProbeWithoutHTTPURLTest ( ) { probeConfig = new io . fabric8 . maven . core . config . ProbeConfig . Builder ( ) . initialDelaySeconds ( 5 ) . timeoutSeconds ( 5 ) . getUrl ( "www.healthcheck.com:8080/healthz" ) . build ( ) ; probe = probeHandler . getProbe ( probeConfig ) ; "<AssertPlaceHolder>" ; } getProbe ( ...
org . junit . Assert . assertNull ( probe )
fullIntersection ( ) { org . openkilda . model . FlowPath flowPath = getFlowPath ( org . openkilda . wfm . share . service . IntersectionComputerTest . flowId ) ; org . openkilda . model . FlowPath newFlowPath = getFlowPath ( org . openkilda . wfm . share . service . IntersectionComputerTest . newFlowId ) ; org . openk...
org . junit . Assert . assertEquals ( new org . openkilda . messaging . payload . flow . OverlappingSegmentsStats ( 2 , 3 , 100 , 100 ) , stats )
testReplacePolicy ( ) { expect ( resourceManager . getOptions ( ) ) . andReturn ( mockOptions ) . times ( 1 ) ; expect ( resourceManager . replacePolicy ( com . google . cloud . resourcemanager . ProjectTest . PROJECT_ID , com . google . cloud . resourcemanager . ProjectTest . POLICY ) ) . andReturn ( com . google . cl...
org . junit . Assert . assertEquals ( com . google . cloud . resourcemanager . ProjectTest . POLICY , project . replacePolicy ( com . google . cloud . resourcemanager . ProjectTest . POLICY ) )
testExchangeAdapterInitialisesSuccessfully ( ) { org . powermock . api . easymock . PowerMock . replayAll ( ) ; final com . gazbert . bxbot . exchanges . ItBitExchangeAdapter exchangeAdapter = new com . gazbert . bxbot . exchanges . ItBitExchangeAdapter ( ) ; exchangeAdapter . init ( exchangeConfig ) ; "<AssertPlaceHol...
org . junit . Assert . assertNotNull ( exchangeAdapter )
testSerialization2 ( ) { org . jfree . chart . plot . dial . DialPointer i1 = new org . jfree . chart . plot . dial . DialPointer . Pointer ( 1 ) ; org . jfree . chart . plot . dial . DialPointer i2 = ( ( org . jfree . chart . plot . dial . DialPointer ) ( org . jfree . chart . TestUtils . serialised ( i1 ) ) ) ; "<Ass...
org . junit . Assert . assertEquals ( i1 , i2 )
testRemove ( ) { logger . info ( "remove" ) ; com . datumbox . framework . common . Configuration configuration = getConfiguration ( ) ; com . datumbox . framework . core . common . dataobjects . Dataframe dataset = new com . datumbox . framework . core . common . dataobjects . Dataframe ( configuration ) ; com . datum...
org . junit . Assert . assertEquals ( 3 , dataset . size ( ) )
threads_default_1 ( ) { cucumber . runtime . RuntimeOptions options = new cucumber . runtime . RuntimeOptions ( java . util . Collections . < java . lang . String > emptyList ( ) ) ; "<AssertPlaceHolder>" ; } getThreads ( ) { return threads ; }
org . junit . Assert . assertThat ( options . getThreads ( ) , org . hamcrest . CoreMatchers . is ( 1 ) )
testThatToStringReturnsOriginalXpathExpression ( ) { org . springframework . xml . xpath . XPathExpression expression = createXPathExpression ( "/prefix1:root/prefix2:otherchild" , namespaces ) ; "<AssertPlaceHolder>" ; } toString ( ) { return content ; }
org . junit . Assert . assertEquals ( "/prefix1:root/prefix2:otherchild" , expression . toString ( ) )
testCheckEndingWithSemicolon ( ) { org . sonar . plugins . tsql . checks . custom . Rule r = new org . sonar . plugins . tsql . checks . custom . Rule ( ) ; r . setKey ( "Example1" ) ; r . setInternalKey ( "Example1" ) ; r . setDescription ( "Select<sp>statement<sp>should<sp>end<sp>with<sp>semicolon" ) ; r . setName ( ...
org . junit . Assert . assertEquals ( 0 , issues . length )
removeNodewithId1 ( ) { org . mockito . Mockito . when ( jmxNodeRepository . existsByNodeId ( 1L ) ) . then ( new org . mockito . stubbing . Answer < java . lang . Boolean > ( ) { @ com . depli . service . store . persistent . impl . Override public com . depli . service . store . persistent . impl . Boolean answer ( o...
org . junit . Assert . assertThat ( result , org . hamcrest . Matchers . is ( true ) )
testZipUnzip ( ) { java . nio . file . Path p1 = temp . newFolder ( "d1" ) . toPath ( ) ; p1 . resolve ( "foo/bar" ) . toFile ( ) . mkdirs ( ) ; com . google . common . io . Files . touch ( p1 . resolve ( "foo/bar/bar.txt" ) . toFile ( ) ) ; java . io . ByteArrayOutputStream bout = new java . io . ByteArrayOutputStream...
org . junit . Assert . assertTrue ( p2 . resolve ( "foo/bar/bar.txt" ) . toFile ( ) . exists ( ) )
timeoutExceptionsAreCached ( ) { org . springframework . ide . vscode . bosh . models . DynamicModelProvider < java . lang . String > modelProvider = mock ( org . springframework . ide . vscode . bosh . models . DynamicModelProvider . class ) ; when ( modelProvider . getModel ( any ( ) ) ) . thenThrow ( new java . util...
org . junit . Assert . assertEquals ( java . util . concurrent . TimeoutException . class , e . getClass ( ) )
testConfigurationChangesOnSlave ( ) { try { createProfileConfigurationChange ( org . jboss . as . test . integration . domain . ConfigurationChangesTestCase . OTHER_PROFILE , 20 ) ; createConfigurationChanges ( org . jboss . as . test . integration . domain . HOST_SLAVE ) ; org . jboss . as . controller . PathAddress s...
org . junit . Assert . assertThat ( changesOnSlaveHC . size ( ) , org . hamcrest . CoreMatchers . is ( changesOnSlaveDC . size ( ) ) )
testisSelectionSameType_2 ( ) { org . talend . repository . model . RepositoryNode anaNode = createAnalysisNode ( "ana" , null , false ) ; org . talend . repository . model . RepositoryNode anaNode2 = createAnalysisNode ( "ana2" , null , false ) ; setParentNode ( anaNode , ERepositoryObjectType . TDQ_ANALYSIS_ELEMENT )...
org . junit . Assert . assertTrue ( flag )
getSeriesField ( ) { java . lang . String series = "EventName" ; dw . setSeriesField ( series ) ; "<AssertPlaceHolder>" ; } getSeriesField ( ) { return seriesField ; }
org . junit . Assert . assertEquals ( series , dw . getSeriesField ( ) )
testFetchByPrimaryKeyMissing ( ) { long pk = com . liferay . portal . kernel . test . util . RandomTestUtil . nextLong ( ) ; com . liferay . announcements . kernel . model . AnnouncementsEntry missingAnnouncementsEntry = _persistence . fetchByPrimaryKey ( pk ) ; "<AssertPlaceHolder>" ; } fetchByPrimaryKey ( long ) { re...
org . junit . Assert . assertNull ( missingAnnouncementsEntry )
testMapToValue ( ) { one . util . streamex . Map < java . lang . String , java . lang . Integer > expected = new one . util . streamex . HashMap ( ) ; expected . put ( "a" , 2 ) ; expected . put ( "bb" , 24 ) ; expected . put ( "ccc" , 36 ) ; one . util . streamex . Map < java . lang . String , java . lang . Integer > ...
org . junit . Assert . assertEquals ( expected , result )
testByte2Int ( ) { try { javax . jms . Message message = senderSession . createMessage ( ) ; message . setByteProperty ( "prop" , ( ( byte ) ( 127 ) ) ) ; "<AssertPlaceHolder>" ; } catch ( javax . jms . JMSException e ) { fail ( e ) ; } } getIntProperty ( java . lang . String ) { java . lang . Object prop = properties ...
org . junit . Assert . assertEquals ( 127 , message . getIntProperty ( "prop" ) )
testFormApply ( ) { org . richfaces . component . SavedState formState = new org . richfaces . component . SavedState ( ) ; formState . setSubmitted ( true ) ; javax . faces . component . UIForm form = new javax . faces . component . UIForm ( ) ; formState . apply ( form ) ; "<AssertPlaceHolder>" ; } isSubmitted ( ) { ...
org . junit . Assert . assertTrue ( form . isSubmitted ( ) )
testGetComponentClass ( ) { org . jboss . test . faces . FacesEnvironment . FacesRequest facesRequest = startFacesRequest ( ) ; javax . faces . context . FacesContext facesContext = javax . faces . context . FacesContext . getCurrentInstance ( ) ; org . richfaces . component . AbstractPanel component = ( ( org . richfa...
org . junit . Assert . assertEquals ( org . richfaces . component . AbstractPanel . class , renderer . getComponentClass ( ) )
shouldReturnAccessibleMethodGivenAPublicMethod ( ) { java . lang . reflect . Method method = org . flips . utils . Utils . getAccessibleMethod ( org . flips . utils . TestUtils . class . getMethod ( "greeting" ) ) ; "<AssertPlaceHolder>" ; } getAccessibleMethod ( java . lang . reflect . Method ) { if ( java . lang . re...
org . junit . Assert . assertNotNull ( method )
get_A$String ( ) { org . junithelper . core . config . MessageValue target = new org . junithelper . core . config . MessageValue ( ) ; target . initialize ( null ) ; java . lang . String key = "Message.exempliGratia" ; java . lang . String actual = target . get ( key ) ; java . lang . String expected = "e.g." ; "<Asse...
org . junit . Assert . assertEquals ( expected , actual )
createRichFaces ( ) { wizardAction . openNewLiferayJsfProjectWizard ( ) ; wizardAction . newLiferayJsf . prepareMaven ( project . getName ( ) , com . liferay . ide . ui . jsf . tests . RICHFACES ) ; wizardAction . finish ( ) ; jobAction . waitForNoRunningProjectBuildingJobs ( ) ; "<AssertPlaceHolder>" ; viewAction . pr...
org . junit . Assert . assertTrue ( viewAction . project . visibleFileTry ( project . getName ( ) ) )
testCannotTurnTrueAfterTimeout ( ) { long start = java . lang . System . currentTimeMillis ( ) ; final int [ ] time = new int [ 1 ] ; com . thoughtworks . selenium . condition . JUnitConditionRunner conditionRunner1 = new com . thoughtworks . selenium . condition . JUnitConditionRunner ( null , 0 , 100 , 5000 ) ; try {...
org . junit . Assert . assertTrue ( ( l >= 5000 ) )
testNewMolecularFormula ( ) { org . openscience . cdk . interfaces . IChemObjectBuilder builder = org . openscience . cdk . AbstractChemObjectBuilderTest . rootObject . getBuilder ( ) ; org . openscience . cdk . interfaces . IMolecularFormula mf = builder . newInstance ( org . openscience . cdk . interfaces . IMolecula...
org . junit . Assert . assertNotNull ( mf )
shouldReturnFalseForEmptyIPlist ( ) { org . togglz . core . user . FeatureUser user = new org . togglz . core . user . SimpleFeatureUser ( "ea" , false ) ; org . togglz . core . repository . FeatureState state = new org . togglz . core . repository . FeatureState ( org . togglz . core . activation . IPActivationStrateg...
org . junit . Assert . assertEquals ( false , active )
findByParty ( ) { java . util . List < org . estatio . module . agreement . dom . AgreementRole > results = agreementRoleRepository . findByParty ( party ) ; org . estatio . module . agreement . dom . AgreementRole result = results . get ( 0 ) ; "<AssertPlaceHolder>" ; } size ( ) { assertThat ( linkRepository . findAll...
org . junit . Assert . assertThat ( results . size ( ) , org . hamcrest . CoreMatchers . is ( 1 ) )
testIsPortletInvocationWhitelistedForMVCRenderCommand ( ) { org . springframework . mock . web . MockHttpServletRequest mockHttpServletRequest = new org . springframework . mock . web . MockHttpServletRequest ( ) ; java . lang . String namespace = com . liferay . portal . kernel . util . PortalUtil . getPortletNamespac...
org . junit . Assert . assertTrue ( com . liferay . portal . kernel . security . auth . AuthTokenWhitelistUtil . isPortletInvocationWhitelisted ( mockHttpServletRequest , portlet ) )
testVervallenEnActieGeldigActieInhoudGeldigFormeel ( ) { final nl . bzk . brp . model . hisvolledig . momentview . kern . PersoonUitgeslotenActiesPredikaat persoonViewOpActiesPredikaat = new nl . bzk . brp . model . hisvolledig . momentview . kern . PersoonUitgeslotenActiesPredikaat ( ) ; final nl . bzk . brp . model ....
org . junit . Assert . assertFalse ( persoonViewOpActiesPredikaat . evaluate ( formeelVerantwoordbaar ) )
testSetWeights ( ) { java . util . Map < java . lang . String , org . nd4j . linalg . api . ndarray . INDArray > weights = weightsWithoutGamma ( ) ; org . deeplearning4j . nn . modelimport . keras . layers . normalization . KerasBatchNormalization batchNormalization = new org . deeplearning4j . nn . modelimport . keras...
org . junit . Assert . assertEquals ( 4 , size )
testZeroArgumentConstructor ( ) { final org . kie . workbench . common . dmn . api . property . dmn . QName implicitQName = new org . kie . workbench . common . dmn . api . property . dmn . QName ( ) ; final org . kie . workbench . common . dmn . api . property . dmn . QName explicitQName = new org . kie . workbench . ...
org . junit . Assert . assertEquals ( explicitQName , implicitQName )
testEstimateSizeInBytesEnum ( ) { org . sagebionetworks . repo . model . dbo . dao . migration . ByteSizeUtilsTest . AllKinds object = new org . sagebionetworks . repo . model . dbo . dao . migration . ByteSizeUtilsTest . AllKinds ( ) ; object . setEnumfield ( org . sagebionetworks . repo . model . dbo . dao . migratio...
org . junit . Assert . assertEquals ( expected , size )
schedulingAtGivenTimeAJobShouldRunThatJobAtTheExpectedTime ( ) { org . silverpeas . core . scheduler . trigger . JobTrigger trigger = org . silverpeas . core . scheduler . trigger . JobTrigger . triggerAt ( java . time . OffsetDateTime . now ( ) . plusSeconds ( 30 ) ) ; scheduler . scheduleJob ( new org . silverpeas . ...
org . junit . Assert . assertThat ( eventHandler . isJobSucceeded ( ) , is ( true ) )
testSizeBitset ( ) { java . util . BitSet columnCombinationBitset = new java . util . BitSet ( 4 ) ; columnCombinationBitset . set ( 0 ) ; columnCombinationBitset . set ( 1 ) ; columnCombinationBitset . set ( 4 ) ; de . metanome . algorithm_helper . data_structures . ColumnCombinationBitset columnCombination = new de ....
org . junit . Assert . assertEquals ( expectedSize , columnCombination . size ( ) )
valid11Test ( ) { final org . opendaylight . yangtools . yang . model . api . SchemaContext schemaContext = org . opendaylight . yangtools . yang . stmt . StmtTestUtils . parseYangSource ( "/rfc7950/basic-test/valid-11.yang" ) ; "<AssertPlaceHolder>" ; } parseYangSource ( java . lang . String ) { return org . opendayli...
org . junit . Assert . assertNotNull ( schemaContext )
shouldCreateInputFromVertices ( ) { final uk . gov . gchq . gaffer . operation . impl . get . GetElements op = new uk . gov . gchq . gaffer . operation . impl . get . GetElements . Builder ( ) . input ( "1" , new uk . gov . gchq . gaffer . operation . data . EntitySeed ( "2" ) , new uk . gov . gchq . gaffer . data . el...
org . junit . Assert . assertEquals ( com . google . common . collect . Lists . newArrayList ( new uk . gov . gchq . gaffer . operation . data . EntitySeed ( "1" ) , new uk . gov . gchq . gaffer . operation . data . EntitySeed ( "2" ) , new uk . gov . gchq . gaffer . data . element . Entity ( "group1" , "3" ) , new uk ...
da07_returnString ( ) { "<AssertPlaceHolder>" ; } returnString ( ) { return "foobar" ; }
org . junit . Assert . assertEquals ( "foobar" , proxy . returnString ( ) )
testValidate ( ) { boolean result = org . oscm . validator . ADMValidator . containsOnlyValidIdChars ( "some_valid_id" ) ; "<AssertPlaceHolder>" ; } containsOnlyValidIdChars ( java . lang . String ) { if ( value == null ) { return true ; } java . util . regex . Matcher matcher = org . oscm . validator . ADMValidator . ...
org . junit . Assert . assertTrue ( result )
shouldReturnTrueIfTypeIsTemplateDescriptor_valuesNotEqual ( ) { java . lang . String value = EMPTY ; ch . puzzle . itc . mobiliar . business . database . entity . MyRevisionEntity revisionEntity = new ch . puzzle . itc . mobiliar . business . database . entity . MyRevisionEntity ( ) ; ch . puzzle . itc . mobiliar . bus...
org . junit . Assert . assertThat ( relevant , org . hamcrest . Matchers . is ( true ) )
onGivenRequestResourceGetShouldAcceptIt ( ) { io . katharsis . core . internal . dispatcher . path . JsonPath jsonPath = pathBuilder . buildPath ( "/tasks/1" ) ; io . katharsis . core . internal . dispatcher . controller . ResourcePatch sut = new io . katharsis . core . internal . dispatcher . controller . ResourcePatc...
org . junit . Assert . assertEquals ( result , true )
leesAlsPersoonEnAfnemerindicatieCacheBestaat ( ) { final java . lang . Integer persoonId = 2000001 ; org . springframework . transaction . TransactionStatus transactieStatus = zorgDatBlobBestaatInTransactie ( persoonId ) ; transactionManager . commit ( transactieStatus ) ; transactieStatus = zorgDatAfnemerindicatieBlob...
org . junit . Assert . assertThat ( persoonUitCache . getAfnemerindicaties ( ) . size ( ) , org . hamcrest . Matchers . is ( 2 ) )
shouldReturnOneAndOne ( ) { int [ ] expectedResult = new int [ ] { 1 , 1 } ; int [ ] a = new int [ ] { 5 , 6 , 7 } ; int [ ] b = new int [ ] { 3 , 6 , 10 } ; "<AssertPlaceHolder>" ; } compareTheTriplets ( int [ ] , int [ ] ) { int aScore = 0 ; int bScore = 0 ; for ( int i = 0 ; i < 3 ; i ++ ) { if ( ( a [ i ] ) == ( b ...
org . junit . Assert . assertArrayEquals ( expectedResult , compareTheTriplets . compareTheTriplets ( a , b ) )
strict_with_skipped_scenarios ( ) { createNonStrictExitStatus ( ) ; bus . send ( testCaseFinishedWithStatus ( Result . Type . SKIPPED ) ) ; "<AssertPlaceHolder>" ; } exitStatus ( ) { if ( results . isEmpty ( ) ) { return cucumber . runtime . ExitStatus . DEFAULT ; } if ( runtimeOptions . isWip ( ) ) { return min ( resu...
org . junit . Assert . assertEquals ( 0 , exitStatus . exitStatus ( ) )
add_boolean_enablesChaining ( ) { "<AssertPlaceHolder>" ; } add ( java . lang . String , int ) { if ( index < 255 ) { int slot = hashSlotFor ( name ) ; if ( ( hashTable [ slot ] ) == 0 ) { hashTable [ slot ] = ( ( byte ) ( index + 1 ) ) ; } } }
org . junit . Assert . assertSame ( object , object . add ( "a" , true ) )
testAggregateFailureCausesWhenNotFailed ( ) { hudson . matrix . MatrixProject matrix = jenkins . createMatrixProject ( ) ; hudson . matrix . Axis axis = new hudson . matrix . Axis ( "Axel" , "Foley" , "Rose" ) ; matrix . setAxes ( new hudson . matrix . AxisList ( axis ) ) ; java . util . concurrent . Future < hudson . ...
org . junit . Assert . assertNull ( matrixAction )
testMapComparatorAdded ( ) { org . apache . eagle . alert . coordination . model . PublishSpec spec1 = org . apache . eagle . alert . engine . utils . MetadataSerDeser . deserialize ( getClass ( ) . getResourceAsStream ( "/testPublishForAdd1.json" ) , org . apache . eagle . alert . coordination . model . PublishSpec . ...
org . junit . Assert . assertTrue ( ( ( comparator . getAdded ( ) . size ( ) ) == 1 ) )
isForumReadLastPostTimeNewerThanLastVisitTopicTrackingSmallerThanLastPostExpectFalse ( ) { when ( httpSession . getAttribute ( ConfigKeys . LOGGED ) ) . thenReturn ( "1" ) ; userSession . setLastVisit ( 10 ) ; net . jforum . entities . Forum forum = this . newForum ( 1 , 20 ) ; forum . getLastPost ( ) . getTopic ( ) . ...
org . junit . Assert . assertFalse ( userSession . isForumRead ( forum ) )
determinismTest ( ) { final org . apache . commons . math3 . random . RandomGenerator outer = new org . apache . commons . math3 . random . MersenneTwister ( 123 ) ; for ( int i = 0 ; i < 100 ; i ++ ) { final long seed = outer . nextLong ( ) ; final org . apache . commons . math3 . random . RandomGenerator inner = new ...
org . junit . Assert . assertEquals ( list1 , list2 )
testButtonState ( ) { init ( "org.locationtech.udig.catalog.ui.WMS" ) ; org . locationtech . udig . catalog . tests . ui . workflow . Assertion a1 = new org . locationtech . udig . catalog . tests . ui . workflow . Assertion ( ) { @ org . locationtech . udig . catalog . tests . ui . workflow . Override public void run ...
org . junit . Assert . assertFalse ( a1 . fail )
typesShouldBeEqual ( ) { com . graphhopper . jsprit . core . problem . vehicle . VehicleType one = VehicleTypeImpl . Builder . newInstance ( "type" ) . setFixedCost ( 100 ) . build ( ) ; com . graphhopper . jsprit . core . problem . vehicle . VehicleType two = VehicleTypeImpl . Builder . newInstance ( "type" ) . setFix...
org . junit . Assert . assertTrue ( one . equals ( two ) )
testReplaceThenInsertAfterLastIndex ( ) { org . antlr . tool . Grammar g = new org . antlr . tool . Grammar ( ( "lexer<sp>grammar<sp>t;\n" + ( ( "A<sp>:<sp>\'a\';\n" + "B<sp>:<sp>\'b\';\n" ) + "C<sp>:<sp>\'c\';\n" ) ) ) ; org . antlr . runtime . CharStream input = new org . antlr . runtime . ANTLRStringStream ( "abc" )...
org . junit . Assert . assertEquals ( expecting , result )
testPutGetCustomObject ( ) { final org . infinispan . server . test . client . hotrod . AbstractRemoteCacheIT . Person p = new org . infinispan . server . test . client . hotrod . AbstractRemoteCacheIT . Person ( "Martin" ) ; remoteCache . put ( "k1" , p ) ; "<AssertPlaceHolder>" ; } get ( java . lang . Object ) { try ...
org . junit . Assert . assertEquals ( p , remoteCache . get ( "k1" ) )
showUtilsInfo ( ) { com . baselogic . tutorials . util . ExampleUtils exampleUtils = applicationContext . getBean ( com . baselogic . tutorials . util . ExampleUtils . class ) ; "<AssertPlaceHolder>" ; com . baselogic . tutorials . demos . Objective_1_4_UtilsTests . logger . info ( ">>>---------------------------------...
org . junit . Assert . assertNotNull ( exampleUtils )
testUnexpectedlyLongConstantExternalizableValues ( ) { try ( net . openhft . chronicle . map . ChronicleMap < java . lang . Long , net . openhft . chronicle . map . ConstantSizeBySampleTest . ExternalizableData > map = net . openhft . chronicle . map . ChronicleMapBuilder . of ( net . openhft . chronicle . map . Long ....
org . junit . Assert . assertEquals ( map . get ( 1L ) , value )
withRules_ignoresNullArrayEntries ( ) { com . openpojo . validation . ValidatorBuilder validatorBuilder = com . openpojo . validation . ValidatorBuilder . create ( ) . with ( new com . openpojo . validation . rule . Rule [ ] { null , null } ) ; "<AssertPlaceHolder>" ; } getRules ( ) { return rules ; }
org . junit . Assert . assertEquals ( 0 , validatorBuilder . getRules ( ) . size ( ) )
testSetDbRelationshipPath ( ) { org . apache . cayenne . map . ObjEntity artistObjEnt = runtime . getDataDomain ( ) . getEntityResolver ( ) . getObjEntity ( "Artist" ) ; org . apache . cayenne . map . ObjRelationship r = new org . apache . cayenne . map . ObjRelationship ( "r" ) ; r . setSourceEntity ( artistObjEnt ) ;...
org . junit . Assert . assertEquals ( r . getDbRelationshipPath ( ) , "paintingArray" )
testOpenAndCloseConcurrency ( ) { org . eclipse . tracecompass . tmf . ui . swtbot . tests . shared . SWTBotUtils . createProject ( org . eclipse . tracecompass . lttng2 . kernel . ui . swtbot . tests . OpenTraceStressTest . TRACE_PROJECT_NAME ) ; java . io . File fTestFile = new java . io . File ( org . eclipse . trac...
org . junit . Assert . assertNotNull ( fTestFile )
testHideNonWorkspaceElementsToleratesNull ( ) { org . springsource . ide . eclipse . commons . livexp . util . Filter < org . springframework . ide . eclipse . boot . dash . model . BootDashElement > f = getFilter ( org . springframework . ide . eclipse . boot . dash . test . ToggleFiltersModelTest . HIDE_NON_WORKSPACE...
org . junit . Assert . assertEquals ( false , f . accept ( null ) )
equalsReturnsTrueForSameIndex ( ) { io . searchbox . indices . ForceMerge forceMerge1 = new io . searchbox . indices . ForceMerge . Builder ( ) . addIndex ( "twitter" ) . build ( ) ; io . searchbox . indices . ForceMerge forceMerge1Duplicate = new io . searchbox . indices . ForceMerge . Builder ( ) . addIndex ( "twitte...
org . junit . Assert . assertEquals ( forceMerge1 , forceMerge1Duplicate )
whenAddingTwoVehiclesWithSameTypeIdStartAndEndLocationAndWorkingShift_getAvailableVehicleShouldReturnOnlyOneOfThem ( ) { com . graphhopper . jsprit . core . problem . vehicle . VehicleTypeImpl type = VehicleTypeImpl . Builder . newInstance ( "standard" ) . build ( ) ; com . graphhopper . jsprit . core . problem . vehic...
org . junit . Assert . assertEquals ( 1 , vehicles . size ( ) )
createFileToStudyTest ( ) { long studyId = user3 . getProjects ( ) . get ( 0 ) . getStudies ( ) . get ( 0 ) . getUid ( ) ; "<AssertPlaceHolder>" ; org . opencb . opencga . core . models . File file ; file = new org . opencb . opencga . core . models . File ( "jobs/" , File . Type . DIRECTORY , File . Format . PLAIN , F...
org . junit . Assert . assertTrue ( ( studyId >= 0 ) )
parseSpace ( ) { java . lang . Integer expected = null ; io . robe . convert . xml . parsers . ParseInt parseInt = new io . robe . convert . xml . parsers . ParseInt ( ) ; java . lang . Integer actual = parseInt . parse ( io . robe . convert . xml . ParserUtil . getParser ( "<int><sp></int>" ) , null ) ; "<AssertPlaceH...
org . junit . Assert . assertEquals ( expected , actual )
roundTripString ( ) { java . lang . String sendString = java . util . UUID . randomUUID ( ) . toString ( ) ; long start = java . lang . System . nanoTime ( ) ; for ( int i = 0 ; i < ( times ) ; i ++ ) { java . lang . String data = sendString + i ; java . lang . String echoString = echoProxy . echoString ( data ) ; "<As...
org . junit . Assert . assertEquals ( data , echoString )
testUpdateMetric_Counter_Decrement ( ) { jsonMetric . setType ( "counter" ) ; com . yammer . metrics . core . Counter metric = ( ( com . yammer . metrics . core . Counter ) ( metricCatcher . createMetric ( jsonMetric ) ) ) ; metricCatcher . updateMetric ( metric , ( - 7 ) ) ; "<AssertPlaceHolder>" ; } updateMetric ( co...
org . junit . Assert . assertEquals ( ( - 7 ) , metric . count ( ) )
testEncodeHDFSNums ( ) { System . out . println ( ( ( com . telefonica . iot . cygnus . utils . CommonUtilsForTests . getTestTraceHead ( "[NGSICharsets.encodeHDFS]" ) ) + "--------<sp>Numbers<sp>are<sp>not<sp>encoded" ) ) ; java . lang . String in = "0123456789" ; java . lang . String expected = "0123456789" ; java . l...
org . junit . Assert . assertEquals ( expected , out )
testRestoreTodoListMerge ( ) { java . io . InputStream content = new java . io . ByteArrayInputStream ( tudu . service . impl . TodoListsServiceImplTest . todoListBackup . getBytes ( ) ) ; todoList . getUsers ( ) . add ( user ) ; user . getTodoLists ( ) . add ( todoList ) ; expect ( em . find ( tudu . domain . TodoList...
org . junit . Assert . assertNotNull ( todoList . getLastUpdate ( ) )