input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testIsSerializable_withMarkup ( ) { java . lang . String text = "<i>labelText</i>" ; label . setData ( RWT . MARKUP_ENABLED , Boolean . TRUE ) ; label . setText ( text ) ; org . eclipse . swt . widgets . Label deserializedLabel = serializeAndDeserialize ( label ) ; "<AssertPlaceHolder>" ; } getText ( ) { checkWidget ( ...
org . junit . Assert . assertEquals ( text , deserializedLabel . getText ( ) )
testObjectForQueryNoObject ( ) { org . apache . cayenne . ObjectId id = org . apache . cayenne . ObjectId . of ( "Artist" , Artist . ARTIST_ID_PK_COLUMN , 44001 ) ; java . lang . Object object = org . apache . cayenne . Cayenne . objectForQuery ( context , new org . apache . cayenne . query . ObjectIdQuery ( id ) ) ; "...
org . junit . Assert . assertNull ( object )
falseTest ( ) { java . util . List < com . github . anno4j . model . Annotation > annotations = queryService . addCriteria ( "oa:hasBody/ex:value" , "Value3" ) . execute ( ) ; "<AssertPlaceHolder>" ; } size ( ) { try { if ( ( _size ) < 0 ) { synchronized ( this ) { if ( ( _size ) < 0 ) { int index = findSize ( ) ; _siz...
org . junit . Assert . assertEquals ( 0 , annotations . size ( ) )
testGetSolutionPath_fromAppContext ( ) { org . pentaho . platform . api . engine . IApplicationContext appContext = mock ( org . pentaho . platform . api . engine . IApplicationContext . class ) ; when ( appContext . getSolutionPath ( "system" ) ) . thenReturn ( f . getParent ( ) ) ; org . pentaho . platform . engine ....
org . junit . Assert . assertEquals ( f . getParent ( ) , solutionPath )
sublistSize ( ) { final software . amazon . ion . IonSequence sequence = newSequence ( ) ; final java . util . List < software . amazon . ion . IonValue > actual = sequence . subList ( 2 , 5 ) ; "<AssertPlaceHolder>" ; } size ( ) { return _buf_limit ; }
org . junit . Assert . assertEquals ( 3 , actual . size ( ) )
canGetAllValues ( ) { com . javafortesters . chap010collections . examples . Map < java . lang . String , java . lang . String > map = new com . javafortesters . chap010collections . examples . HashMap ( ) ; map . put ( "key1" , "value1" ) ; map . put ( "key2" , "value2" ) ; map . put ( "key3" , "value3" ) ; com . java...
org . junit . Assert . assertEquals ( map . size ( ) , values . size ( ) )
testSafeModeNotSet ( ) { com . nearinfinity . blur . manager . clusterstatus . ZookeeperClusterStatusTest . LOG . warn ( "testSafeModeNotSet" ) ; "<AssertPlaceHolder>" ; new com . nearinfinity . blur . manager . clusterstatus . ZookeeperClusterStatusTest . WaitForAnswerToBeCorrect ( 20L ) { @ com . nearinfinity . blur ...
org . junit . Assert . assertFalse ( clusterStatus . isInSafeMode ( false , com . nearinfinity . blur . manager . clusterstatus . ZookeeperClusterStatusTest . DEFAULT ) )
testGetClinic ( ) { org . oscarehr . common . model . Clinic clinic1 = new org . oscarehr . common . model . Clinic ( ) ; org . oscarehr . common . dao . utils . EntityDataGenerator . generateTestDataForModelClass ( clinic1 ) ; dao . persist ( clinic1 ) ; org . oscarehr . common . model . Clinic clinic2 = new org . osc...
org . junit . Assert . assertEquals ( expectedResult , result )
testGetOriginalParentFolderPath ( ) { final java . lang . String fileID = "testFileID" ; final java . lang . String origParentFolderPath = "origParentFolderPath" ; final java . lang . String relToAbs_origParentFolderPath = "relToAbs_origParentFolderPath" ; final javax . jcr . Property origParentFolderPathProperty = moc...
org . junit . Assert . assertEquals ( relToAbs_origParentFolderPath , originalParentFolderPath )
testShutdownHandlerWithCorrectSecret ( ) { final java . lang . String secretKey = "bigSecret" ; final org . glassfish . grizzly . impl . FutureImpl < java . lang . Boolean > shutdownFuture = org . glassfish . grizzly . impl . SafeFutureImpl . create ( ) ; final org . glassfish . grizzly . http . ajp . ShutdownHandler s...
org . junit . Assert . assertTrue ( b )
testGetAttachmentsByProjectIdWithNotDiscard ( ) { java . util . List < com . onboard . domain . model . Attachment > resultList = attachmentService . getAttachmentsByProjectIdWithNotDiscard ( com . onboard . service . collaboration . impl . test . AttachmentServiceImplTest . id , com . onboard . service . collaboration...
org . junit . Assert . assertEquals ( list , resultList )
testHasMovie ( ) { storage . storeMovie ( org . neo4j . cineasts . movieimport . MovieDbLocalStorageTest . ID , org . neo4j . cineasts . movieimport . MovieDbLocalStorageTest . DATA ) ; "<AssertPlaceHolder>" ; } hasMovie ( java . lang . String ) { return fileForMovie ( movieId ) . exists ( ) ; }
org . junit . Assert . assertEquals ( true , storage . hasMovie ( org . neo4j . cineasts . movieimport . MovieDbLocalStorageTest . ID ) )
importConsumerWithNullUuidOnOwnerShouldSetUuid ( ) { org . candlepin . dto . manifest . v1 . OwnerDTO ownerDTO = mock ( org . candlepin . dto . manifest . v1 . OwnerDTO . class ) ; org . candlepin . model . Owner owner = mock ( org . candlepin . model . Owner . class ) ; org . candlepin . dto . manifest . v1 . Consumer...
org . junit . Assert . assertEquals ( "test-uuid" , arg . getValue ( ) . getUuid ( ) )
updateConfiguredParameterValues_ConfigurableParameter ( ) { org . oscm . domobjects . Product product = givenProductWithParamsHavingDefaultValues ( "Param_ID1" , "Param_ID2" ) ; org . oscm . domobjects . Subscription subscription = givenSubscriptionWithParamsHavingOtherVaues ( "Param_ID1" , "Param_ID2" ) ; java . util ...
org . junit . Assert . assertEquals ( 2 , result . size ( ) )
testMeasurementIsAdded ( ) { measure ( ) . time ( exchange ) ; org . openehealth . ipf . commons . test . performance . MeasurementHistory initialHistory = processor . getMeasurementHistory ( exchange ) ; java . util . List < org . openehealth . ipf . commons . test . performance . Measurement > measurementsBefore = in...
org . junit . Assert . assertEquals ( ( ( measurementsBefore . size ( ) ) + 1 ) , measurementsAfter . size ( ) )
testExternalTaskStacktraceBinary ( ) { testRule . deploy ( "org/camunda/bpm/engine/test/api/externaltask/oneExternalTaskProcess.bpmn20.xml" ) ; runtimeService . startProcessInstanceByKey ( "oneExternalTaskProcess" ) ; java . util . List < org . camunda . bpm . engine . externaltask . LockedExternalTask > tasks = extern...
org . junit . Assert . assertNotNull ( exceptionStackTrace )
testPutSpecifiedIndices2d ( ) { org . nd4j . linalg . api . ndarray . INDArray arr = org . nd4j . linalg . factory . Nd4j . create ( 3 , 4 ) ; org . nd4j . linalg . api . ndarray . INDArray toPut = org . nd4j . linalg . factory . Nd4j . create ( new double [ ] { 1 , 2 , 3 , 4 } , new int [ ] { 2 , 2 } , 'c' ) ; org . n...
org . junit . Assert . assertEquals ( exp , arr )
addAllIndexEndRemovedTest ( ) { java . util . List < java . lang . Integer > toAddList = new java . util . ArrayList ( 5 ) ; toAddList . add ( 100 ) ; toAddList . add ( 200 ) ; toAddList . add ( 300 ) ; toAddList . add ( 400 ) ; toAddList . add ( 500 ) ; org . threadly . concurrent . collections . ConcurrentArrayList ....
org . junit . Assert . assertTrue ( result . equals ( org . threadly . concurrent . collections . ConcurrentArrayListDataSetTest . makeDataSet ( expectedResult , 0 , expectedResult . length ) ) )
getSubscriptionsForMyBrokerCustomersFilteredBySubscriptionIdNoSubscriptionReturned ( ) { final java . lang . String not_existing_subscription = "not<sp>existing" ; final int expected = 0 ; java . util . Set < org . oscm . paginator . Filter > filterSet = createFilterSet ( not_existing_subscription , null , null , null ...
org . junit . Assert . assertEquals ( expected , result . size ( ) )
testCreateSecurityRoleMissingOptionalParameters ( ) { org . finra . herd . model . api . xml . SecurityRole securityRole = securityRoleService . createSecurityRole ( new org . finra . herd . model . api . xml . SecurityRoleCreateRequest ( SECURITY_ROLE , null ) ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( new org . finra . herd . model . api . xml . SecurityRole ( SECURITY_ROLE , null ) , securityRole )
runnerShouldBeAliveAliveWhenStatusDone ( ) { runner . setStatus ( Runner . Status . DONE ) ; "<AssertPlaceHolder>" ; } isAlive ( ) { return java . util . EnumSet . range ( Status . RUNNING , Status . DONE ) . contains ( status ) ; }
org . junit . Assert . assertThat ( runner . isAlive ( ) , org . hamcrest . core . Is . is ( true ) )
testGetColorScale_ColorScaleFromColorScaleBaseDir ( ) { final java . lang . String colorScaleJSON = getTestColorScale ( ) ; final org . mrgeo . colorscale . ColorScale csExp = org . mrgeo . colorscale . ColorScale . loadFromJSON ( colorScaleJSON ) ; org . mrgeo . core . MrGeoProperties . getInstance ( ) . put ( MrGeoCo...
org . junit . Assert . assertEquals ( true , cs . equals ( csExp ) )
testStaticGetOrderPolicyWithNull ( ) { "<AssertPlaceHolder>" ; } getOrderPolicy ( org . springframework . data . gemfire . wan . OrderPolicyType ) { return orderPolicyType != null ? orderPolicyType . getOrderPolicy ( ) : null ; }
org . junit . Assert . assertNull ( org . springframework . data . gemfire . wan . OrderPolicyType . getOrderPolicy ( null ) )
testWorkItemWhenItDoesNotHaveWorkItemDefinition ( ) { final org . drools . workbench . models . datamodel . workitems . PortableWorkDefinition workDefinition = mock ( org . drools . workbench . models . datamodel . workitems . PortableWorkDefinition . class ) ; final java . lang . String workItemName = "workItem" ; doR...
org . junit . Assert . assertEquals ( workItemName , workItem )
testBeanTypeConstructor ( ) { com . vaadin . ui . TreeGrid < com . vaadin . tests . data . bean . Person > treeGrid = new com . vaadin . ui . TreeGrid ( com . vaadin . tests . data . bean . Person . class ) ; "<AssertPlaceHolder>" ; } getBeanType ( ) { return beanType ; }
org . junit . Assert . assertEquals ( com . vaadin . tests . data . bean . Person . class , treeGrid . getBeanType ( ) )
shouldDecorateGetFunctionMapper ( ) { javax . el . FunctionMapper funcationMapper = mock ( javax . el . FunctionMapper . class ) ; given ( this . decorated . getFunctionMapper ( ) ) . willReturn ( funcationMapper ) ; javax . el . FunctionMapper actual = this . decorator . getFunctionMapper ( ) ; "<AssertPlaceHolder>" ;...
org . junit . Assert . assertThat ( actual , org . hamcrest . Matchers . is ( funcationMapper ) )
testIsTrue4 ( ) { org . apache . commons . lang3 . Validate . isTrue ( true , "MSG" , 7 ) ; try { org . apache . commons . lang3 . Validate . isTrue ( false , "MSG" , 7 ) ; org . junit . Assert . fail ( "Expecting<sp>IllegalArgumentException" ) ; } catch ( java . lang . IllegalArgumentException ex ) { "<AssertPlaceHold...
org . junit . Assert . assertEquals ( "MSG" , ex . getMessage ( ) )
byteBufTest ( ) { io . netty . buffer . ByteBuf buf = io . netty . buffer . Unpooled . directBuffer ( ) ; buf . writeInt ( 1234 ) ; int val = buf . readInt ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( 1234 , val )
testDeterminizeFsa ( ) { com . github . steveash . jopenfst . MutableFst fstA = com . github . steveash . jopenfst . io . Convert . importFst ( "data/tests/algorithms/determinize/A" , TropicalSemiring . INSTANCE ) ; com . github . steveash . jopenfst . MutableFst determinized = com . github . steveash . jopenfst . io ....
org . junit . Assert . assertTrue ( determinized . equals ( fstDeterminized ) )
testDynamicQueryByProjectionMissing ( ) { com . liferay . portal . kernel . dao . orm . DynamicQuery dynamicQuery = com . liferay . portal . kernel . dao . orm . DynamicQueryFactoryUtil . forClass ( com . liferay . portal . tools . service . builder . test . model . NestedSetsTreeEntry . class , _dynamicQueryClassLoade...
org . junit . Assert . assertEquals ( 0 , result . size ( ) )
testFullChain ( ) { final org . jivesoftware . openfire . keystore . X509CertSelector selector = new org . jivesoftware . openfire . keystore . X509CertSelector ( ) ; selector . setSubject ( validChain [ 0 ] . getSubjectX500Principal ( ) ) ; final org . jivesoftware . openfire . keystore . X509Certificate [ ] chain = v...
org . junit . Assert . assertNotNull ( result )
whenEquivalentAndNoVersionInfoForRightHand ( ) { oid1 = org . apache . isis . core . metamodel . adapter . oid . RootOid . create ( cusObjectSpecId , "123" , 90807L ) ; oid2 = org . apache . isis . core . metamodel . adapter . oid . RootOid . create ( cusObjectSpecId , "123" ) ; "<AssertPlaceHolder>" ; } is ( org . apa...
org . junit . Assert . assertThat ( oid1 , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( oid2 ) ) )
withTargetNodeARightNode ( ) { treegraph . ParentAwareBinaryTreeNode root = new treegraph . ParentAwareBinaryTreeNode ( 6 ) ; root . addLeft ( 4 ) . addRight ( 5 ) ; "<AssertPlaceHolder>" ; } findInOrderSuccessor ( treegraph . ParentAwareBinaryTreeNode ) { if ( node == null ) return null ; if ( ( node . right ) != null...
org . junit . Assert . assertEquals ( 6 , s . findInOrderSuccessor ( root . left . right ) . val )
testDisassociatePolicyGroupFromDomains_unknownErrorInRemove_assertException ( ) { boolean exceptionOccured = false ; final javax . persistence . EntityManager mgr = mock ( javax . persistence . EntityManager . class ) ; final org . nhindirect . config . store . Domain domain = mock ( org . nhindirect . config . store ....
org . junit . Assert . assertTrue ( exceptionOccured )
testFetchByPrimaryKeyExisting ( ) { com . liferay . roster . model . RosterMember newRosterMember = addRosterMember ( ) ; com . liferay . roster . model . RosterMember existingRosterMember = _persistence . fetchByPrimaryKey ( newRosterMember . getPrimaryKey ( ) ) ; "<AssertPlaceHolder>" ; } getPrimaryKey ( ) { return _...
org . junit . Assert . assertEquals ( existingRosterMember , newRosterMember )
testFacadesOffByDefault ( ) { net . sourceforge . pmd . Rule r = loadFirstRule ( net . sourceforge . pmd . RuleSetFactoryTest . XPATH ) ; "<AssertPlaceHolder>" ; } isDfa ( ) { return rule . isDfa ( ) ; }
org . junit . Assert . assertFalse ( r . isDfa ( ) )
testSetString ( ) { com . liferay . portal . kernel . servlet . StubHttpServletResponse stubHttpServletResponse = new com . liferay . portal . kernel . servlet . StubHttpServletResponse ( ) ; com . liferay . portal . kernel . servlet . BufferCacheServletResponse bufferCacheServletResponse = new com . liferay . portal ....
org . junit . Assert . assertEquals ( com . liferay . portal . kernel . servlet . BufferCacheServletResponseTest . _TEST_STRING , bufferCacheServletResponse . getString ( ) )
testInvalidProvider ( ) { org . apache . ranger . credentialapi . buildks buildksOBJ = new org . apache . ranger . credentialapi . buildks ( ) ; java . lang . String [ ] argsCreateCommand = new java . lang . String [ ] { "create" , "TestCredential1" , "-value" , "PassworD123" , "-provider" , "jksp://file@/" + ( keystor...
org . junit . Assert . assertEquals ( ( - 1 ) , rc1 )
test18PrefixQueryWithFilter ( ) { com . ebay . cloud . cms . query . service . QueryContext context = new com . ebay . cloud . cms . query . service . QueryContext ( raptorContext ) ; context . setAllowFullTableScan ( true ) ; java . lang . String query = "ApplicationService[@name=~\"srp-app-invalid-name.*\"].services[...
org . junit . Assert . assertEquals ( 0 , queryResult . getEntities ( ) . size ( ) )
applyTest ( ) { java . lang . String [ ] [ ] tests = new java . lang . String [ ] [ ] { new java . lang . String [ ] { "mu" , "mu" } , new java . lang . String [ ] { "1" , "1" } } ; for ( java . lang . String [ ] test : tests ) { liqp . Template template = liqp . Template . parse ( test [ 0 ] ) ; java . lang . String r...
org . junit . Assert . assertThat ( rendered , org . hamcrest . CoreMatchers . is ( test [ 1 ] ) )
testMultple_load_sheet_skip_notFound ( ) { com . gh . mygreen . xlsmapper . XlsMapper mapper = new com . gh . mygreen . xlsmapper . XlsMapper ( ) ; mapper . getConiguration ( ) . setContinueTypeBindFailure ( true ) . setIgnoreSheetNotFound ( true ) ; try ( java . io . InputStream in = new java . io . FileInputStream ( ...
org . junit . Assert . assertThat ( errors . getAll ( ) )
testMinAndMaxInRange ( ) { parameter . setMinimumValue ( ( - 1 ) ) ; parameter . setMaximumValue ( 1 ) ; parameter . configure ( org . apache . flink . api . java . utils . ParameterTool . fromArgs ( new java . lang . String [ ] { "--test" , "0" } ) ) ; "<AssertPlaceHolder>" ; } getValue ( ) { return value ; }
org . junit . Assert . assertEquals ( new java . lang . Long ( 0 ) , parameter . getValue ( ) )
create_if_exists_should_recycle_existing_component ( ) { @ com . artemis . annotations . Wire ( injectInherited = true ) class TestSystem extends com . artemis . ComponentMapperTest . BasicSystem { @ com . artemis . Override protected void process ( com . artemis . Entity e ) { com . artemis . ComponentMapperTest . Pos...
org . junit . Assert . assertEquals ( c1 , c2 )
isSearchAvailable_OrgWithAccess ( ) { org . oscm . internal . vo . VOUserDetails userDetails = new org . oscm . internal . vo . VOUserDetails ( ) ; userDetails . setOrganizationId ( org . oscm . ui . beans . marketplace . ServicePagingBeanTest . ALLOWED_ORG1 ) ; doReturn ( userDetails ) . when ( bean ) . getUserFromSes...
org . junit . Assert . assertTrue ( rc )
testWarnLoggerForLargeData ( ) { org . apache . zeppelin . interpreter . remote . RemoteInterpreterProcessListener listener = mock ( org . apache . zeppelin . interpreter . remote . RemoteInterpreterProcessListener . class ) ; org . apache . zeppelin . interpreter . remote . AppendOutputRunner runner = new org . apache...
org . junit . Assert . assertTrue ( loggerString . equals ( sizeWarnLogEntry . getMessage ( ) ) )
testDestinationBlank ( ) { com . liferay . portal . search . web . internal . search . bar . portlet . SearchBarPortletDisplayBuilder searchBarPortletDisplayBuilder = createSearchBarPortletDisplayBuilder ( ) ; searchBarPortletDisplayBuilder . setDestination ( StringPool . BLANK ) ; com . liferay . portal . search . web...
org . junit . Assert . assertFalse ( searchBarPortletDisplayContext . isDestinationUnreachable ( ) )
testDecisionServiceTask ( ) { org . flowable . cmmn . api . runtime . CaseInstance caseInstance = createCaseInstance ( ) ; "<AssertPlaceHolder>" ; } createCaseInstance ( ) { deployOneHumanTaskCaseModel ( ) ; for ( int i = 0 ; i < ( org . flowable . cmmn . test . task . CmmnTaskQueryTest . NR_CASE_INSTANCES ) ; i ++ ) {...
org . junit . Assert . assertNotNull ( caseInstance )
testAddMovieSubtitles4 ( ) { com . moviejukebox . tools . SubtitleToolsTest . LOG . info ( "AddMovieSubtitles4" ) ; java . lang . String actualSubtitles = "YES" ; java . lang . String newSubtitles = com . moviejukebox . tools . SubtitleTools . addMovieSubtitle ( actualSubtitles , "NO" ) ; "<AssertPlaceHolder>" ; } addM...
org . junit . Assert . assertEquals ( "NO" , newSubtitles )
testClone ( ) { cajaCssParser . setCacheProvider ( new org . apache . shindig . common . cache . LruCacheProvider ( 100 ) ) ; java . util . List < java . lang . Object > styleSheet = cajaCssParser . parseImpl ( org . apache . shindig . gadgets . parse . caja . CajaCssLexerParserTest . CSS ) ; java . util . List < java ...
org . junit . Assert . assertEquals ( cajaCssParser . serialize ( styleSheet ) , cajaCssParser . serialize ( styleSheet2 ) )
testGermany ( ) { java . lang . String title = "raw-Germany" ; org . sweble . wikitext . parser . nodes . WtNode ast = parse ( title ) ; org . apache . commons . jxpath . JXPathContext context = org . apache . commons . jxpath . JXPathContext . newContext ( ast ) ; java . lang . StringBuilder b = new java . lang . Stri...
org . junit . Assert . assertEquals ( expected , actual )
testNoTaskSingle ( ) { assumeEnvironment ( Environment . APPSPOT , Environment . CAPEDWARF ) ; com . google . appengine . api . datastore . Transaction tx = com . google . appengine . api . datastore . DatastoreServiceFactory . getDatastoreService ( ) . beginTransaction ( ) ; final int beforeNumTasks = getDefaultQueue ...
org . junit . Assert . assertEquals ( beforeNumTasks , getDefaultQueue ( ) . fetchStatistics ( ) . getNumTasks ( ) )
testInsert ( ) { try ( java . sql . PreparedStatement stmt = conn . prepareStatement ( "INSERT<sp>INTO<sp>testtable<sp>VALUES<sp>(?)" ) ) { stmt . setString ( 1 , "A" ) ; "<AssertPlaceHolder>" ; } checkValue ( "A" ) ; } executeUpdate ( ) { try { return delegator . executeUpdate ( ) ; } catch ( java . sql . SQLException...
org . junit . Assert . assertEquals ( stmt . executeUpdate ( ) , 1 )
whenAlreadyInterrupted ( ) { java . lang . Thread . currentThread ( ) . interrupt ( ) ; barrier = new org . multiverse . commitbarriers . VetoCommitBarrier ( ) ; try { barrier . tryAwaitOpen ( 1 , TimeUnit . DAYS ) ; org . junit . Assert . fail ( ) ; } catch ( java . lang . InterruptedException expected ) { } "<AssertP...
org . junit . Assert . assertTrue ( barrier . isClosed ( ) )
testHashCode ( ) { com . splicemachine . db . iapi . types . HBaseRowLocation rowLocation1 = new com . splicemachine . db . iapi . types . HBaseRowLocation ( new byte [ ] { 1 , 2 , 3 , - 1 } ) ; com . splicemachine . db . iapi . types . HBaseRowLocation rowLocation2 = new com . splicemachine . db . iapi . types . HBase...
org . junit . Assert . assertEquals ( rowLocation1 . hashCode ( ) , rowLocation2 . hashCode ( ) )
test ( ) { parser . parseOntology ( ) ; "<AssertPlaceHolder>" ; } getEmOntology ( ) { return emOntology ; }
org . junit . Assert . assertTrue ( ( ( parser . getEmOntology ( ) ) != null ) )
shouldBeTrueWhenGivenTrueAndTrue ( ) { final org . pitest . functional . predicate . And < java . lang . Object > testee = and ( ( i ) -> true , ( i ) -> true ) ; "<AssertPlaceHolder>" ; } test ( java . lang . String ) { return this . includedClassPathElement . contains ( a ) ; }
org . junit . Assert . assertTrue ( testee . test ( null ) )
testGetRecentItemCountWithNoResultsPerNodeRequestedReturnsExpectedCount ( ) { java . util . Date since = new java . util . Date ( ) ; dbTester . loadData ( "node_1" ) ; store . addRemoteNode ( org . buddycloud . channelserver . db . jdbc . TEST_SERVER1_NODE2_ID ) ; store . addUserSubscription ( new org . buddycloud . c...
org . junit . Assert . assertEquals ( 0 , count )
testCoerceToType06 ( ) { java . lang . Object result = javax . el . ELManager . getExpressionFactory ( ) . coerceToType ( "" , org . apache . el . lang . Character . class ) ; "<AssertPlaceHolder>" ; } coerceToType ( java . lang . Class , java . lang . String ) { if ( type . equals ( java . lang . String . class ) ) { ...
org . junit . Assert . assertEquals ( java . lang . Character . valueOf ( ( ( char ) ( 0 ) ) ) , result )
testGetObjectsAccumulateWithNoMatchingFacts ( ) { java . lang . String drl = "global<sp>java.util.List<sp>list\n" + ( ( ( ( ( ( ( "rule<sp>R<sp>when\n" + "<sp>accumulate(\n" ) + "<sp>Object(false);\n" ) + "<sp>$total<sp>:<sp>count()\n" ) + "<sp>)\n" ) + "then\n" ) + "<sp>list.addAll(((org.drools.core.spi.Activation)kco...
org . junit . Assert . assertTrue ( list . contains ( 0L ) )
testConfigBuilder ( ) { final de . metas . dlm . partitioner . config . PartitionConfig config = createAndCheckBuilder0 ( ) ; "<AssertPlaceHolder>" ; } getLines ( ) { return com . google . common . collect . ImmutableList . copyOf ( lines ) ; }
org . junit . Assert . assertThat ( config . getLines ( ) . size ( ) , org . hamcrest . Matchers . is ( 2 ) )
voteMatch_dont_match_when_second_not_matched ( ) { when ( voter1 . voteMatch ( affiliation , organization ) ) . thenReturn ( true ) ; when ( voter2 . voteMatch ( affiliation , organization ) ) . thenReturn ( false ) ; boolean returnValue = compositeMatchVoter . voteMatch ( affiliation , organization ) ; "<AssertPlaceHo...
org . junit . Assert . assertFalse ( returnValue )
testEncodeDecode ( ) { byte [ ] rowKey = io . cdap . cdap . data2 . dataset2 . lib . partitioned . PartitionedFileSetDataset . generateRowKey ( io . cdap . cdap . data2 . dataset2 . lib . partitioned . PartitionedFileSetTest . PARTITION_KEY , io . cdap . cdap . data2 . dataset2 . lib . partitioned . PartitionedFileSetT...
org . junit . Assert . assertEquals ( io . cdap . cdap . data2 . dataset2 . lib . partitioned . PartitionedFileSetTest . PARTITION_KEY , decoded )
shouldResolveScoreOperationChainWithMultipleScoreResolvers ( ) { final uk . gov . gchq . gaffer . store . operation . handler . ScoreOperationChainHandler handler = new uk . gov . gchq . gaffer . store . operation . handler . ScoreOperationChainHandler ( ) ; final java . util . Map < java . lang . Class < ? extends uk ...
org . junit . Assert . assertEquals ( 10 , result )
testQueryJobOrderGreaterThan ( ) { com . bullhornsdk . data . model . response . list . ListWrapper < com . bullhornsdk . data . JobOrder > wrapper = bullhornData . query ( com . bullhornsdk . data . JobOrder . class , "id<sp>><sp>10" , null , queryParams ) ; "<AssertPlaceHolder>" ; runAssertions ( "ListWrapper<JobOrde...
org . junit . Assert . assertTrue ( ( ( wrapper . getCount ( ) ) == 10 ) )
testWithDebug ( ) { at . favre . tools . apksigner . ui . Arg parsedArg = at . favre . tools . apksigner . ui . CLIParser . parse ( at . favre . tools . apksigner . ui . CLIParserTest . asArgArray ( ( ( "-" + ( CLIParser . ARG_APK_FILE ) ) + "./<sp>--debug" ) ) ) ; at . favre . tools . apksigner . ui . Arg expectedArg ...
org . junit . Assert . assertEquals ( expectedArg , parsedArg )
test_WithOnlyCookieNameMatch ( ) { ctx . request ( ) . addCookie ( myCookieWithoutValue ) ; extension . activate ( configWithCookie ) ; boolean actual = extension . accepts ( ctx . request ( ) , null , extension . getAllowedKeyValues ( ) ) ; "<AssertPlaceHolder>" ; } activate ( java . util . Map ) { this . listRoot = o...
org . junit . Assert . assertTrue ( actual )
testEnumAttribute ( ) { io . joynr . proxy . ProxyBuilder < joynr . tests . testProxy > proxyBuilder = consumerRuntime . getProxyBuilder ( domain , joynr . tests . testProxy . class ) ; joynr . tests . testProxy proxy = proxyBuilder . setMessagingQos ( messagingQos ) . setDiscoveryQos ( discoveryQos ) . build ( ) ; pro...
org . junit . Assert . assertEquals ( TestEnum . TWO , result )
testInvalidConfig_noFilters ( ) { org . revapi . configuration . ConfigurationValidator validator = new org . revapi . configuration . ConfigurationValidator ( ) ; java . lang . String json = "[{\"extension\":<sp>\"revapi.filter\",<sp>\"configuration\"<sp>:<sp>{<sp>}}]" ; org . revapi . configuration . ValidationResult...
org . junit . Assert . assertFalse ( result . isSuccessful ( ) )
testUnzip ( ) { org . opencastproject . util . ZipUtil . unzip ( sampleZip , destDir ) ; java . util . zip . ZipFile test = new java . util . zip . ZipFile ( sampleZip ) ; java . util . Enumeration < ? extends java . util . zip . ZipEntry > entries = test . entries ( ) ; try { while ( entries . hasMoreElements ( ) ) { ...
org . junit . Assert . assertTrue ( new java . io . File ( destDir , entry . getName ( ) ) . exists ( ) )
testEmptyFallbackEmptySource ( ) { f . setTargetField ( "jsonObj" ) ; f . setSourceField ( "jsonStr" ) ; f . filter ( fields ) ; "<AssertPlaceHolder>" ; } filter ( com . logsniffer . fields . FieldsMap ) { final java . lang . Object value = fields . get ( sourceField ) ; if ( value != null ) { final com . logsniffer . ...
org . junit . Assert . assertNull ( fields . get ( "jsonObj" ) )
findsPeopleBySexPaginated ( ) { java . util . List < org . springframework . data . mongodb . repository . Person > males = repository . findBySex ( Sex . MALE , org . springframework . data . domain . PageRequest . of ( 0 , 2 ) ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertThat ( males . size ( ) , is ( 2 ) )
defaultIsAsc ( ) { "<AssertPlaceHolder>" ; } getDefault ( ) { return org . apache . phoenix . schema . SortOrder . ASC ; }
org . junit . Assert . assertSame ( SortOrder . ASC , org . apache . phoenix . schema . SortOrder . getDefault ( ) )
trimLabelsNanoseconds1 ( ) { java . util . List < java . lang . String > input = java . util . Arrays . asList ( "2014/11/26<sp>09:01:00.000000000" , "2014/11/26<sp>09:02:00.000000002" , "2014/11/26<sp>09:03:00.000000004" , "2014/11/26<sp>09:04:00.000000006" , "2014/11/26<sp>09:05:00.000000008" ) ; java . util . List <...
org . junit . Assert . assertThat ( found , equalTo ( expected ) )
testPDFBox3747 ( ) { java . io . File file = new java . io . File ( "target/fonts" , "PDFBOX-3747-calibri.ttf" ) ; java . io . ByteArrayOutputStream baos = new java . io . ByteArrayOutputStream ( ) ; try ( org . sejda . sambox . pdmodel . PDDocument doc = new org . sejda . sambox . pdmodel . PDDocument ( ) ) { org . se...
org . junit . Assert . assertEquals ( "PDFBOX-3747" , text . trim ( ) )
createRollupBatchWriterReturnsValidObject ( ) { com . rackspacecloud . blueflood . service . RollupExecutionContext execCtx = lfr . createRollupExecutionContext ( ) ; com . rackspacecloud . blueflood . service . RollupBatchWriter batchWriter = lfr . createRollupBatchWriter ( execCtx ) ; "<AssertPlaceHolder>" ; } create...
org . junit . Assert . assertNotNull ( batchWriter )
test3Alts ( ) { org . antlr . v4 . tool . Grammar g = new org . antlr . v4 . tool . Grammar ( ( "parser<sp>grammar<sp>T;\n" + "8->5<sp>EPSILON<sp>0,0,0\n" 3 ) ) ; java . lang . String expecting = "8->5<sp>EPSILON<sp>0,0,0\n" 0 + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "7:BASIC<sp>0\n" 8 + "1:RULE_STOP<sp>0\n" ) +...
org . junit . Assert . assertEquals ( expecting , result )
findByConsumerAndIdCaseInsensitive ( ) { java . lang . String guestId = "GuEsTiD" ; org . candlepin . model . Consumer consumer = new org . candlepin . model . Consumer ( "testConsumer" , "testUser" , owner , ct ) ; consumer . addGuestId ( new org . candlepin . model . GuestId ( guestId ) ) ; consumerCurator . create (...
org . junit . Assert . assertEquals ( new org . candlepin . model . GuestId ( guestId ) , result )
shouldReturnFlipAnnotationAttributesGivenFlipAnnotation ( ) { org . flips . annotation . FlipOnProfiles flipOnProfiles = mock ( org . flips . annotation . FlipOnProfiles . class ) ; java . lang . annotation . Annotation annotation = flipOnProfiles ; java . util . Map < java . lang . String , java . lang . Object > anno...
org . junit . Assert . assertEquals ( expectedAnnotationAttributes , flipAnnotationAttributes )
InReplyToNullNullOProperty ( ) { org . odata4j . core . OProperty < ? > expected = org . odata4j . core . OProperties . null_ ( ReceivedMessage . P_IN_REPLY_TO . getName ( ) , EdmSimpleType . STRING ) ; org . odata4j . core . OProperty < ? > result = this . setDefaultValue ( ReceivedMessage . P_IN_REPLY_TO . build ( ) ...
org . junit . Assert . assertEquals ( expected . getValue ( ) , result . getValue ( ) )
testByteBufStringValuePool ( ) { final int capacity = 8 ; final int chars = java . lang . Integer . toString ( capacity ) . length ( ) ; final org . apache . activemq . artemis . utils . collections . TypedProperties . StringValue . ByteBufStringValuePool pool = new org . apache . activemq . artemis . utils . collectio...
org . junit . Assert . assertSame ( expectedPooled , pool . getOrCreate ( bb ) )
testAnummerWijzigingBijhoudingIsAlOverig ( ) { isAnummerWijziging = true ; final nl . bzk . migratiebrp . synchronisatie . dal . domein . brp . kern . entity . PersoonNummerverwijzingHistorie historie = new nl . bzk . migratiebrp . synchronisatie . dal . domein . brp . kern . entity . PersoonNummerverwijzingHistorie ( ...
org . junit . Assert . assertEquals ( 2 , nieuweAdministratieveHandelingen . size ( ) )
testToStringWithConfigs ( ) { org . eclipse . kura . core . net . NetInterfaceAddressConfigImpl value = createConfig ( ) ; java . lang . String expected = "NetConfig:<sp>NetConfigIP4<sp>[winsServers=[],<sp>super.toString()=NetConfigIP" + ( ( ( ( ( ( "<sp>[status=netIPv4StatusEnabledLAN,<sp>autoConnect=true,<sp>dhcp=fal...
org . junit . Assert . assertEquals ( expected , value . toString ( ) )
givenEmptyList_whenElementIsAdded_thenGetReturnsThatElement ( ) { java . util . List < java . lang . Object > list = new com . baeldung . java . list . CustomList ( ) ; boolean succeeded = list . add ( null ) ; "<AssertPlaceHolder>" ; } add ( E ) { java . lang . Object [ ] temp = java . util . Arrays . copyOf ( interna...
org . junit . Assert . assertTrue ( succeeded )
shouldFailGetNodeNullParent ( ) { try { tools . getNode ( NULL_NODE , "Person" , true ) ; } catch ( java . lang . Exception e ) { "<AssertPlaceHolder>" ; } } getNode ( javax . jcr . Node , java . lang . String , boolean ) { org . modeshape . jcr . api . JcrTools . isNotNull ( node , "node" ) ; org . modeshape . jcr . a...
org . junit . Assert . assertTrue ( ( e instanceof java . lang . IllegalArgumentException ) )
testGetLastTaskName_1 ( ) { org . audit4j . core . util . StopWatch fixture = new org . audit4j . core . util . StopWatch ( "" ) ; fixture . setKeepTaskList ( true ) ; fixture . start ( "" ) ; halt ( ) ; fixture . stop ( ) ; java . lang . String result = fixture . getLastTaskName ( ) ; "<AssertPlaceHolder>" ; } getLast...
org . junit . Assert . assertEquals ( "" , result )
countCrossingsBetweenLayers_crossFormed ( ) { getCrossFormedGraph ( ) ; counter = new org . eclipse . elk . alg . layered . p3order . counting . CrossingsCounter ( new int [ getNumPorts ( order ( ) ) ] ) ; "<AssertPlaceHolder>" ; } countCrossingsBetweenLayers ( org . eclipse . elk . alg . layered . graph . LNode [ ] , ...
org . junit . Assert . assertThat ( counter . countCrossingsBetweenLayers ( order ( ) [ 0 ] , order ( ) [ 1 ] ) , org . hamcrest . CoreMatchers . is ( 1 ) )
testDisableAutoEscaping ( ) { com . mitchellbosecke . pebble . PebbleEngine pebble = new com . mitchellbosecke . pebble . PebbleEngine . Builder ( ) . loader ( new com . mitchellbosecke . pebble . loader . StringLoader ( ) ) . strictVariables ( false ) . autoEscaping ( false ) . build ( ) ; com . mitchellbosecke . pebb...
org . junit . Assert . assertEquals ( "<br<sp>/>" , writer . toString ( ) )
testEqualsSameTcp ( ) { org . openhab . binding . modbus . internal . pooling . ModbusTCPSlaveEndpoint e1 = new org . openhab . binding . modbus . internal . pooling . ModbusTCPSlaveEndpoint ( "127.0.0.1" , 500 ) ; org . openhab . binding . modbus . internal . pooling . ModbusTCPSlaveEndpoint e2 = new org . openhab . b...
org . junit . Assert . assertEquals ( e1 , e2 )
testGetSignaturesWhereSignatureDoesNotHaveLastCertificate ( ) { org . digidoc4j . Container container = new org . digidoc4j . impl . ddoc . DDocOpener ( ) . open ( "src/test/resources/testFiles/invalid-containers/signature_without_last_certificate.ddoc" ) ; "<AssertPlaceHolder>" ; } getSignatures ( ) { return m_signatu...
org . junit . Assert . assertEquals ( 0 , container . getSignatures ( ) . size ( ) )
testNotNullConfigurationCommand ( ) { for ( com . digi . xbee . api . io . IOLine ioLine : ioLines ) "<AssertPlaceHolder>" ; } getConfigurationATCommand ( ) { return atCommand ; }
org . junit . Assert . assertNotNull ( ioLine . getConfigurationATCommand ( ) )
testConstruct_parameterizedConstructor_nullDetails ( ) { boolean exceptionOccured = false ; try { new org . nhindirect . common . tx . model . Tx ( TxMessageType . DSN , null ) ; } catch ( java . lang . IllegalArgumentException e ) { exceptionOccured = true ; } "<AssertPlaceHolder>" ; }
org . junit . Assert . assertTrue ( exceptionOccured )
testJDK9NoParsePhaseTag ( ) { java . lang . String [ ] logLines = new java . lang . String [ ] { "range_check" 7 , "range_check" 2 , "<sp>8:<sp>if_icmplt<sp>28<sp>" 5 , "</task>" 8 , "<sp>4:<sp>aload_0<sp>" 2 , "<sp>8:<sp>if_icmplt<sp>28<sp>" 6 , "<sp><task_done<sp>inlined_bytes='21'<sp>success='1'<sp>count='8763'<sp>s...
org . junit . Assert . assertEquals ( 5 , list . annotatedLineCount ( ) )
testParseMultipleNameNodes ( ) { org . apache . hadoop . conf . Configuration conf = new org . apache . hadoop . conf . Configuration ( false ) ; java . lang . String nameservice = "ns1" ; org . apache . hadoop . hdfs . MiniDFSNNTopology topology = new org . apache . hadoop . hdfs . MiniDFSNNTopology ( ) . addNameservi...
org . junit . Assert . assertEquals ( nns , nns2 )
shouldNonDefaultConstructorReturnTheCorrectNumberOfSolutions ( ) { int solutionsToBeReturned = 4 ; org . uma . jmetal . operator . impl . selection . NaryRandomSelection < org . uma . jmetal . solution . Solution < ? > > selection = new org . uma . jmetal . operator . impl . selection . NaryRandomSelection < org . uma ...
org . junit . Assert . assertEquals ( solutionsToBeReturned , result )
testChangeType ( ) { testItem . getProcess ( ) . setDefaultContext ( "Default" ) ; java . lang . String [ ] paramNames = new java . lang . String [ ] { "new1" , "new2" , "new3" } ; org . talend . designer . core . model . utils . emf . talendfile . ContextType defaultGroup = createContextType ( "Default" , paramNames )...
org . junit . Assert . assertEquals ( ( ( org . talend . designer . core . model . utils . emf . talendfile . ContextParameterType ) ( group1 . getContextParameter ( ) . get ( 0 ) ) ) . getType ( ) , "id_Date" )
shouldRejectifMissingNameOnPost ( ) { host . setName ( null ) ; res = hv . validate ( host , org . openstack . atlas . api . mgmt . validation . validators . POST ) ; "<AssertPlaceHolder>" ; } resultMessage ( org . openstack . atlas . api . validation . results . ValidatorResult , java . lang . Enum ) { java . lang . S...
org . junit . Assert . assertFalse ( resultMessage ( res , org . openstack . atlas . api . mgmt . validation . validators . POST ) , res . passedValidation ( ) )
testSignAndVerifyFailure ( ) { com . trilead . ssh2 . signature . ED25519KeyAlgorithm testCase = new com . trilead . ssh2 . signature . ED25519KeyAlgorithm ( ) ; byte [ ] message = "Signature<sp>Test<sp>2" . getBytes ( StandardCharsets . UTF_8 ) ; java . security . KeyPairGenerator factory = java . security . KeyPairGe...
org . junit . Assert . assertFalse ( testCase . verifySignature ( message , signature , publicKey ) )
testGeldigeAutorisatieSoortAutorisatieVerplicht ( ) { final nl . bzk . brp . domain . element . AttribuutElement attribuutElement = getAttribuutElement ( Element . NADEREBIJHOUDINGSAARD_CODE . getId ( ) ) ; final nl . bzk . brp . service . bevraging . zoekpersoongeneriek . AbstractZoekPersoonVerzoek bevragingVerzoek = ...
org . junit . Assert . assertEquals ( 1 , meldingen . size ( ) )
isDefaultValidNoDefaultAdapter ( ) { creatBillingAdapter ( BillingAdapterIdentifier . NATIVE_BILLING . toString ( ) , false ) ; creatBillingAdapter ( org . oscm . billingadapterservice . bean . BillingAdapterDAOIT . BILLING_ID , false ) ; boolean isValid = isDefaultAdapterValid ( ) . booleanValue ( ) ; "<AssertPlaceHol...
org . junit . Assert . assertFalse ( isValid )
test_String ( ) { com . gh . mygreen . xlsmapper . xml . OgnlValueFormatter formatter = new com . gh . mygreen . xlsmapper . xml . OgnlValueFormatter ( ) ; java . lang . String exp = formatter . format ( "Hello\"こんにちは" ) ; org . junit . Assert . assertThat ( exp , is ( "\"Hello\\\"こんにちは\"" ) ) ; "<AssertPlaceHolder>" ;...
org . junit . Assert . assertThat ( ( ( java . lang . String ) ( evalOgnl ( exp ) ) ) , is ( "Hello\"こんにちは" ) )