input stringlengths 28 18.7k | output stringlengths 39 1.69k |
|---|---|
testCreateStorageUnitNotificationRegistrationUpperCaseParameters ( ) { notificationRegistrationServiceTestHelper . createDatabaseEntitiesForStorageUnitNotificationRegistrationTesting ( org . finra . herd . service . NAMESPACE . toLowerCase ( ) , java . util . Arrays . asList ( NotificationEventTypeEntity . EventTypesSt... | org . junit . Assert . assertEquals ( new org . finra . herd . model . api . xml . StorageUnitNotificationRegistration ( resultStorageUnitNotificationRegistration . getId ( ) , new org . finra . herd . model . api . xml . NotificationRegistrationKey ( org . finra . herd . service . NAMESPACE . toLowerCase ( ) , org . f... |
testIsValidValueWhenWithoutMaxValue ( ) { input . min = "0" ; "<AssertPlaceHolder>" ; } isValidValue ( elemental2 . dom . HTMLInputElement , int ) { final int max = org . kie . workbench . common . dmn . client . editors . types . listview . constraint . common . typed . common . MinMaxValueHelper . toInteger ( input .... | org . junit . Assert . assertTrue ( org . kie . workbench . common . dmn . client . editors . types . listview . constraint . common . typed . common . MinMaxValueHelper . isValidValue ( input , 0 ) ) |
testDatumHuwelijkLigtInVerleden ( ) { final nl . bzk . brp . model . bericht . kern . HuwelijkGeregistreerdPartnerschapBericht huwelijk = new nl . bzk . brp . util . RelatieBuilder < nl . bzk . brp . model . bericht . kern . HuwelijkGeregistreerdPartnerschapBericht > ( ) . bouwHuwelijkRelatie ( ) . setDatumAanvang ( 20... | org . junit . Assert . assertTrue ( resultaat . isEmpty ( ) ) |
testGetAllSeries ( ) { com . github . aview . api . mobile . MobileSeries [ ] series = service . getAllSeries ( ) ; "<AssertPlaceHolder>" ; } getAllSeries ( ) { try { return httpClient . get ( new java . net . URL ( ( ( ( com . github . aview . api . mobile . MobileVideoService . MOBILE_URL ) + "keyword=index&d=" ) + (... | org . junit . Assert . assertNotNull ( series ) |
testPropertyFromHeader ( ) { java . lang . String host = "camelhost" ; org . apache . camel . Message message = new org . apache . camel . support . DefaultMessage ( camelContext ) ; message . setHeader ( DockerConstants . DOCKER_HOST , host ) ; java . lang . String configurationProp = org . apache . camel . component ... | org . junit . Assert . assertEquals ( host , configurationProp ) |
testDropTenantTableDeletesNoData ( ) { java . util . Properties props = org . apache . phoenix . util . PropertiesUtil . deepCopy ( org . apache . phoenix . end2end . TEST_PROPERTIES ) ; java . sql . Connection conn = java . sql . DriverManager . getConnection ( getUrl ( ) , props ) ; java . sql . Connection tsConn = j... | org . junit . Assert . assertEquals ( 3 , rs . getInt ( 1 ) ) |
testUnclosedQuotedLhex ( ) { java . lang . String header = "Digest<sp>nc=\"00000001" ; java . io . StringReader input = new java . io . StringReader ( header ) ; java . util . Map < java . lang . String , java . lang . String > result = org . apache . tomcat . util . http . parser . HttpParser . parseAuthorizationDiges... | org . junit . Assert . assertNull ( result ) |
testNotDuplicatedLabelForProperty ( ) { es . gob . afirma . ui . wizardmultifirmacontrafirma . PanelMultifirmaAccessibilityTest . logger . info ( "testNotDuplicatedLabelForProperty" ) ; try { final es . gob . afirma . ui . wizardmultifirmacontrafirma . PanelMultifirma panelMultifirma = new es . gob . afirma . ui . wiza... | org . junit . Assert . assertTrue ( ( ( componentSet . size ( ) ) == ( componentList . size ( ) ) ) ) |
testUpdateSamePass ( ) { setupDefaultKeystore ( ) ; org . eclipse . kura . core . ssl . SslManagerServiceImpl svc = new org . eclipse . kura . core . ssl . SslManagerServiceImpl ( ) ; org . eclipse . kura . crypto . CryptoService csMock = mock ( org . eclipse . kura . crypto . CryptoService . class ) ; svc . setCryptoS... | org . junit . Assert . assertTrue ( visited . get ( ) ) |
junit_assertions ( ) { "<AssertPlaceHolder>" ; } is ( org . sonar . java . model . Kind [ ] ) { org . sonar . java . model . Kind treeKind = kind ( ) ; for ( org . sonar . java . model . Kind kindIter : kinds ) { if ( treeKind == kindIter ) { return true ; } } return false ; } | org . junit . Assert . assertThat ( 3 , org . hamcrest . Matchers . is ( 3 ) ) |
testMoveFromDoneToDoneWithDoneStatesConfigured ( ) { setupInitialBoard ( "config/board-tdp-done.json" ) ; org . jirban . jira . impl . JirbanIssueEvent update = updateEventBuilder ( "TDP-3" ) . state ( "TDP-D" ) . buildAndRegister ( ) ; searchCallback . searched = false ; boardManager . handleEvent ( update , nextRanke... | org . junit . Assert . assertFalse ( searchCallback . searched ) |
testExecuteSuccess ( ) { org . junit . Assume . assumeTrue ( org . eclipse . tracecompass . tmf . remote . core . tests . shell . CommandShellTest . IS_UNIX ) ; org . eclipse . tracecompass . tmf . remote . core . tests . shell . CommandShellTest . LOCAL_PROXY . connect ( new org . eclipse . core . runtime . NullProgre... | org . junit . Assert . assertEquals ( 0 , result . getResult ( ) ) |
testValidateAttributesAgainstBusinessObjectDataAttributeDefinitionsRequiredAttributeIsMissing ( ) { org . finra . herd . model . jpa . BusinessObjectDataAttributeDefinitionEntity businessObjectDataAttributeDefinitionEntity = new org . finra . herd . model . jpa . BusinessObjectDataAttributeDefinitionEntity ( ) ; busine... | org . junit . Assert . assertEquals ( java . lang . String . format ( "The<sp>business<sp>object<sp>format<sp>has<sp>a<sp>required<sp>attribute<sp>\"%s\"<sp>which<sp>was<sp>not<sp>specified<sp>or<sp>has<sp>a<sp>value<sp>which<sp>is<sp>blank." , org . finra . herd . service . helper . ATTRIBUTE_NAME ) , e . getMessage (... |
simpleQueryParam_encoding_expectEncodedParam ( ) { com . amazonaws . serverless . proxy . model . AwsProxyRequest request = getRequestBuilder ( "/echo/encoded-param" , "GET" ) . queryString ( "param" , com . amazonaws . serverless . proxy . jersey . JerseyParamEncodingTest . SIMPLE_ENCODED_PARAM ) . build ( ) ; java . ... | org . junit . Assert . assertEquals ( 200 , resp . getStatusCode ( ) ) |
testSetRootResourceDirectoriesInvalidPath ( ) { java . lang . String invalidPath = " | org . junit . Assert . assertThat ( rootResourceDirectories . size ( ) , org . hamcrest . Matchers . is ( 1 ) ) |
testQueryDeleteVariablesHistoryOperationOnHistoryInstance ( ) { process = runtimeService . startProcessInstanceByKey ( "oneTaskProcess" ) ; runtimeService . setVariable ( process . getId ( ) , "testVariable" , "test" ) ; runtimeService . setVariable ( process . getId ( ) , "testVariable2" , "test" ) ; runtimeService . ... | org . junit . Assert . assertEquals ( 2 , historyService . createHistoricVariableInstanceQuery ( ) . count ( ) ) |
testGetConnectors ( ) { java . util . List < org . talend . core . model . process . INodeConnector > list = new java . util . ArrayList < org . talend . core . model . process . INodeConnector > ( ) ; java . util . List < org . talend . core . model . process . INodeConnector > nodeConnectorList = new java . util . Ar... | org . junit . Assert . assertEquals ( nodeConnectorList . size ( ) , ( connecSize - ( toRemove . size ( ) ) ) ) |
normalSkewYTest ( ) { com . itextpdf . kernel . geom . AffineTransform expected = new com . itextpdf . kernel . geom . AffineTransform ( 1.0 , java . lang . Math . tan ( java . lang . Math . toRadians ( 143 ) ) , 0.0 , 1.0 , 0.0 , 0.0 ) ; com . itextpdf . kernel . geom . AffineTransform actual = com . itextpdf . svg . ... | org . junit . Assert . assertEquals ( expected , actual ) |
test_user_account_get ( ) { com . sendgrid . SendGrid sg = new com . sendgrid . SendGrid ( "SENDGRID_API_KEY" , true ) ; sg . setHost ( "localhost:4010" ) ; sg . addRequestHeader ( "X-Mock" , "200" ) ; com . sendgrid . Request request = new com . sendgrid . Request ( ) ; request . setMethod ( Method . GET ) ; request .... | org . junit . Assert . assertEquals ( 200 , response . getStatusCode ( ) ) |
testMaterialLookup ( ) { for ( org . pocketserver . api . block . Material material : org . pocketserver . api . block . Material . values ( ) ) { java . util . Optional < org . pocketserver . api . block . Material > optional = org . pocketserver . api . block . Material . getMaterial ( material . getId ( ) ) ; if ( !... | org . junit . Assert . assertEquals ( material , optional . get ( ) ) |
runTest ( ) { boolean result = checkNoError ( "Social_Forums_Remove_Forum" ) ; "<AssertPlaceHolder>" ; } getNoErrorMsg ( ) { return noErrorMsg ; } | org . junit . Assert . assertTrue ( getNoErrorMsg ( ) , result ) |
testNotNeedsRollingUpdateIdentical ( ) { "<AssertPlaceHolder>" ; } needsRollingUpdate ( io . strimzi . operator . cluster . operator . resource . StatefulSetDiff ) { if ( diff . changesLabels ( ) ) { io . strimzi . operator . cluster . operator . resource . KafkaSetOperator . log . debug ( "Changed<sp>labels<sp>=><sp>n... | org . junit . Assert . assertFalse ( io . strimzi . operator . cluster . operator . resource . KafkaSetOperator . needsRollingUpdate ( diff ( ) ) ) |
test1 ( ) { jdk . internal . vm . compiler . collections . EconomicMap < org . graalvm . compiler . options . OptionKey < ? > , java . lang . Object > map = jdk . internal . vm . compiler . collections . EconomicMap . create ( ) ; map . put ( DebugOptions . DumpOnError , true ) ; org . graalvm . compiler . debug . Debu... | org . junit . Assert . assertFalse ( resetSucceeded ) |
testMemberCount_11_02 ( ) { java . lang . String typeName = ParameterizedTypes . Inner . class . getName ( ) . replace ( '$' , '.' ) ; org . eclipse . xtext . common . types . JvmGenericType type = ( ( org . eclipse . xtext . common . types . JvmGenericType ) ( getTypeProvider ( ) . findTypeByName ( typeName , true ) )... | org . junit . Assert . assertNull ( type ) |
testUpdate1xWillFail ( ) { org . eclipse . core . runtime . preferences . IEclipsePreferences prefs = org . eclipse . core . runtime . preferences . InstanceScope . INSTANCE . getNode ( ProjectCore . PLUGIN_ID ) ; prefs . put ( BladeCLI . BLADE_CLI_REPO_URL , "https://releases.liferay.com/tools/blade-cli/1.x/" ) ; pref... | org . junit . Assert . assertNull ( latestVersion ) |
testFindGroupByIndex ( ) { org . springframework . data . neo4j . support . Group group = new org . springframework . data . neo4j . support . Group ( ) . persist ( ) ; group . setName ( org . springframework . data . neo4j . support . IndexTest . NAME_VALUE ) ; final org . springframework . data . neo4j . support . Gr... | org . junit . Assert . assertEquals ( group , found ) |
testRead ( ) { org . kocakosm . pitaya . io . FakeRandom prng = new org . kocakosm . pitaya . io . FakeRandom ( org . kocakosm . pitaya . io . RandomInputStreamTest . DATA ) ; org . kocakosm . pitaya . io . RandomInputStream in = new org . kocakosm . pitaya . io . RandomInputStream ( prng ) ; for ( int i = 0 ; i < ( or... | org . junit . Assert . assertEquals ( org . kocakosm . pitaya . io . RandomInputStreamTest . DATA [ i ] , in . read ( ) ) |
chunkPerPeriodTestNumberOfChunks ( ) { analyze . parsing . ChunkingParser cp = new analyze . parsing . ChunkingParser ( ) ; java . lang . String operation = "PER<sp>7<sp>DAYS" ; model . SequentialData result = cp . parseOperation ( operation , userData ) ; "<AssertPlaceHolder>" ; } size ( ) { return chunkedData . size ... | org . junit . Assert . assertEquals ( 2 , result . size ( ) ) |
shouldLeaveInternalModelAlone ( ) { cruise . umple . compiler . UmpleParser p = cruise . umple . compiler . UmpleParserFactory . create ( "cruise.umple.compiler.UmpleInternalParser" , null ) ; "<AssertPlaceHolder>" ; } getModel ( ) { return model ; } | org . junit . Assert . assertNotNull ( p . getModel ( ) ) |
canonicallyLabelEthaneWithInConsistentHydrogenRepresentation ( ) { org . openscience . cdk . interfaces . IAtomContainer m = org . openscience . cdk . graph . invariant . CanonTest . smi ( "CC[H]" ) ; long [ ] labels = org . openscience . cdk . graph . invariant . Canon . label ( m , org . openscience . cdk . graph . G... | org . junit . Assert . assertThat ( labels , org . hamcrest . CoreMatchers . is ( new long [ ] { 2 , 3 , 1 } ) ) |
decodeNumberIntoObject ( ) { stubValueMeta . setType ( 1 ) ; java . lang . Object str = stubValueMeta . decodeColumnValue ( org . apache . hadoop . hbase . util . Bytes . toBytes ( 2.2 ) ) ; "<AssertPlaceHolder>" ; } toBytes ( double ) { return hBaseBytesUtilShim . toBytes ( var1 ) ; } | org . junit . Assert . assertNotNull ( str ) |
testRemoveDocument ( ) { com . google . appengine . api . search . Index index = getTestIndex ( ) ; index . put ( newEmptyDocument ( "foo" ) ) ; index . put ( newEmptyDocument ( "bar" ) ) ; index . delete ( "foo" , "bar" ) ; "<AssertPlaceHolder>" ; } numberOfDocumentsIn ( com . google . appengine . api . search . Index... | org . junit . Assert . assertEquals ( 0 , numberOfDocumentsIn ( index ) ) |
runTestNullUID ( ) { try { eu . abc4trust . abce . pertubationtests . section2 . Test27 . logger . info ( "Running<sp>test<sp>with<sp>null<sp>as<sp>UID" ) ; eu . abc4trust . abce . external . revocation . RevocationAbcEngine revocationEngine = revocationInjector . getInstance ( eu . abc4trust . abce . external . revoca... | org . junit . Assert . assertTrue ( false ) |
ta04_Query_onParameter_value ( ) { org . apache . juneau . rest . annotation2 . ParameterInfo x = org . apache . juneau . rest . annotation2 . QueryAnnotationTest . ta . getParameterInfo ( "/ta04" , "get" , "query" , "Q" ) ; "<AssertPlaceHolder>" ; } getName ( ) { return "exit" ; } | org . junit . Assert . assertEquals ( "Q" , x . getName ( ) ) |
whenLoadPlusPickupSizeJustFitIntoVehicle_itShouldReturnTrue ( ) { com . graphhopper . jsprit . core . problem . job . Service service = mock ( com . graphhopper . jsprit . core . problem . job . Pickup . class ) ; when ( service . getSize ( ) ) . thenReturn ( Capacity . Builder . newInstance ( ) . addDimension ( 0 , 2 ... | org . junit . Assert . assertTrue ( constraint . fulfilled ( iContext ) ) |
testGetDeclaration ( ) { org . eclipse . tracecompass . ctf . core . event . types . StructDeclaration result = fixture . getDeclaration ( ) ; "<AssertPlaceHolder>" ; } getDeclaration ( ) { return null ; } | org . junit . Assert . assertNotNull ( result ) |
testCommaDelimitedListToStringArrayNullList ( ) { java . lang . String actual = org . apache . catalina . valves . RemoteIpValve . listToCommaDelimitedString ( null ) ; "<AssertPlaceHolder>" ; } | org . junit . Assert . assertEquals ( "" , actual ) |
hash1 ( ) { org . apache . jena . graph . Node x1 = org . apache . jena . sparql . util . NodeFactoryExtra . parseNode ( "<http://example/x>" ) ; org . apache . jena . graph . Node x2 = org . apache . jena . sparql . util . NodeFactoryExtra . parseNode ( "<http://example/x>" ) ; "<AssertPlaceHolder>" ; } hash ( org . a... | org . junit . Assert . assertEquals ( org . apache . jena . tdb2 . lib . NodeLib . hash ( x1 ) , org . apache . jena . tdb2 . lib . NodeLib . hash ( x2 ) ) |
testConvertWithEmptyFiedls ( ) { org . lnu . is . domain . publicactivity . PublicActivityAward expected = new org . lnu . is . domain . publicactivity . PublicActivityAward ( ) ; org . lnu . is . resource . publicactivity . award . PublicActivityAwardResource source = new org . lnu . is . resource . publicactivity . a... | org . junit . Assert . assertEquals ( expected , actual ) |
testProvideAndRegisterDocumentSetBAsyncResponse ( ) { System . out . println ( "testProvideAndRegisterDocumentSetBAsyncResponse" ) ; gov . hhs . fha . nhinc . docsubmission . entity . deferred . response . proxy . EntityDocSubmissionDeferredResponseProxyNoOpImpl instance = new gov . hhs . fha . nhinc . docsubmission . ... | org . junit . Assert . assertNotNull ( result ) |
testDynamicSelectZero ( ) { org . apache . ibatis . session . SqlSession sqlSession = tk . mybatis . mapper . mapper . MybatisHelper . getSqlSession ( ) ; try { tk . mybatis . mapper . mapper . CountryMapper mapper = sqlSession . getMapper ( tk . mybatis . mapper . mapper . CountryMapper . class ) ; tk . mybatis . mapp... | org . junit . Assert . assertEquals ( 0 , countryList . size ( ) ) |
testGet ( ) { org . apache . cayenne . reflect . FieldAccessor accessor = new org . apache . cayenne . reflect . FieldAccessor ( org . apache . cayenne . unit . util . TstBean . class , "string" , java . lang . String . class ) ; org . apache . cayenne . unit . util . TstBean object = new org . apache . cayenne . unit ... | org . junit . Assert . assertEquals ( "abc" , accessor . getValue ( object ) ) |
testReconcilierStartsAndDisposeThread ( ) { testTMHighlightInGenericEditor ( ) ; editor . getEditorSite ( ) . getPage ( ) . closeEditor ( editor , false ) ; java . lang . Thread . sleep ( 500 ) ; "<AssertPlaceHolder>" ; } getTM4EThreads ( ) { java . util . Set < java . lang . Thread > threads = java . lang . Thread . g... | org . junit . Assert . assertTrue ( getTM4EThreads ( ) . isEmpty ( ) ) |
testSelectWhereDateAndToDateEqual ( ) { java . lang . String query = ( ( ( ( ( "SELECT<sp>entity_id<sp>FROM<sp>" + ( this . tableName ) ) + "<sp>WHERE<sp>a_integer<sp><<sp>4<sp>AND<sp>DATE<sp>'" ) + ( date ) ) + "'<sp>=<sp>TO_DATE<sp>('" ) + ( date ) ) + "')" ; java . sql . Statement statement = conn . createStatement ... | org . junit . Assert . assertTrue ( rs . next ( ) ) |
testSerialization ( ) { org . jfree . chart . block . LineBorder b1 = new org . jfree . chart . block . LineBorder ( new java . awt . GradientPaint ( 1.0F , 2.0F , java . awt . Color . red , 3.0F , 4.0F , java . awt . Color . yellow ) , new java . awt . BasicStroke ( 1.0F ) , new org . jfree . ui . RectangleInsets ( 1.... | org . junit . Assert . assertEquals ( b1 , b2 ) |
testSearchByAnyStatus ( ) { addStructure ( 0 , com . liferay . dynamic . data . mapping . service . test . DDMStructureLocalServiceTest . _classNameId , null , com . liferay . portal . kernel . util . StringUtil . randomString ( ) , StringPool . BLANK , read ( "test-structure.xsd" ) , StorageType . JSON . getValue ( ) ... | org . junit . Assert . assertEquals ( structures . toString ( ) , 2 , structures . size ( ) ) |
testAdd ( ) { headers . add ( "header" , "value" ) ; "<AssertPlaceHolder>" ; } delegate ( ) { return delegate ; } | org . junit . Assert . assertEquals ( "value" , headers . delegate ( ) . get ( "header" ) ) |
testCountCollectionsUnderPath ( ) { java . lang . String subdirPrefix = "testCountCollectionsUnderPath" ; java . lang . String fileName = "testCountCollectionsUnderPath.txt" ; int count = 5 ; org . irods . jargon . core . connection . IRODSAccount irodsAccount = org . irods . jargon . core . pub . CollectionAndDataObje... | org . junit . Assert . assertEquals ( count , ctr ) |
testGetLabelResource ( ) { System . out . println ( "getLabelResource" ) ; kg . apc . jmeter . config . VariablesFromCSVGui instance = new kg . apc . jmeter . config . VariablesFromCSVGui ( ) ; java . lang . String result = instance . getLabelResource ( ) ; "<AssertPlaceHolder>" ; } getLabelResource ( ) { return this .... | org . junit . Assert . assertTrue ( ( ( result . length ( ) ) > 0 ) ) |
testManyConcurrentDeferredRequests ( ) { final int NUMBER_OF_THREADS = 20 ; final int REQUESTS_PER_THREAD = 5 ; final java . util . concurrent . atomic . AtomicInteger successCounter = new java . util . concurrent . atomic . AtomicInteger ( 0 ) ; java . util . concurrent . ExecutorService executor = java . util . concu... | org . junit . Assert . assertEquals ( ( NUMBER_OF_THREADS * REQUESTS_PER_THREAD ) , successCounter . get ( ) ) |
sa04_ResponseHeader_onPojo_code ( ) { org . apache . juneau . rest . annotation . HeaderInfo x = org . apache . juneau . rest . annotation . ResponseHeaderAnnotationTest . sa . getResponseInfo ( "/sa04" , "get" , 100 ) . getHeader ( "H" ) ; "<AssertPlaceHolder>" ; } getHeader ( java . lang . String ) { java . lang . St... | org . junit . Assert . assertNotNull ( x ) |
updateParameterDefinition_SetSameDefaultValueForEnumeration ( ) { initParameterDef ( false , true , defaultValue , null , null , ParameterModificationType . ONE_TIME ) ; techProduct . setProducts ( null ) ; parameterParserSpy . updateParameterDefinition ( attributeID1 , ParameterValueType . ENUMERATION , "true" , defau... | org . junit . Assert . assertEquals ( defaultValue , result ) |
zouMeldingMoetenGevenOmdatOudersVerwantZijn ( ) { nl . bzk . brp . model . objecttype . logisch . Relatie relatieBericht = mock ( nl . bzk . brp . model . objecttype . bericht . RelatieBericht . class ) ; nl . bzk . brp . model . objecttype . logisch . Relatie relatieModel = mock ( nl . bzk . brp . model . objecttype .... | org . junit . Assert . assertThat ( meldingen . size ( ) , org . hamcrest . CoreMatchers . is ( 1 ) ) |
testGetLexemeId ( ) { org . wikidata . wdtk . datamodel . implementation . LexemeIdValue o1 = new org . wikidata . wdtk . datamodel . implementation . LexemeIdValueImpl ( "L42" , "foo" ) ; org . wikidata . wdtk . datamodel . implementation . LexemeIdValue o2 = factory . getLexemeIdValue ( "L42" , "foo" ) ; "<AssertPlac... | org . junit . Assert . assertEquals ( o1 , o2 ) |
TestSha256Case4 ( ) { pkgYkneoOath . OathObj obj = new pkgYkneoOath . OathObj ( ) ; obj . setKey ( new byte [ ] { 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 , 12 , 13 , 14 , 15 , 16 , 17 , 18 , 19 , 20 , 21 , 22 , 23 , 24 , 25 } , ( ( short ) ( 0 ) ) , ( ( byte ) ( ( pkgYkneoOath . OathObj . TOTP_TYPE ) | ( pkgYkneoOa... | org . junit . Assert . assertArrayEquals ( expected , res ) |
testExtentWithModificationAhead ( ) { int N = 10000 ; javax . jdo . PersistenceManager pm = org . zoodb . test . testutil . TestTools . openPM ( ) ; pm . currentTransaction ( ) . begin ( ) ; for ( int i = 0 ; i < N ; i ++ ) { org . zoodb . test . jdo . TestClass tc = new org . zoodb . test . jdo . TestClass ( ) ; tc . ... | org . junit . Assert . assertFalse ( it . hasNext ( ) ) |
testGetCPEs ( ) { java . lang . String vendor = "apache" ; java . lang . String product = "struts" ; java . util . Set < org . owasp . dependencycheck . data . update . cpe . CpePlus > result = instance . getCPEs ( vendor , product ) ; "<AssertPlaceHolder>" ; } size ( ) { return ( ( vendors . size ( ) ) + ( products . ... | org . junit . Assert . assertTrue ( ( ( result . size ( ) ) > 5 ) ) |
testMultiFunctionSamePartitionDifferentOrderBy ( ) { java . lang . String sqlText = java . lang . String . format ( ( "<sp>80<sp>|2013-04-24<sp>|<sp>3<sp>|<sp>79000<sp>|<sp>2<sp>|<sp>3<sp>|<sp>1<sp>|\n" 2 + ( ( ( "DENSE_RANK()<sp>OVER<sp>(PARTITION<sp>BY<sp>dept<sp>ORDER<sp>BY<sp>salary<sp>desc,<sp>hiredate)<sp>AS<sp>D... | org . junit . Assert . assertEquals ( ( ( "<sp>80<sp>|2013-04-24<sp>|<sp>3<sp>|<sp>79000<sp>|<sp>2<sp>|<sp>3<sp>|<sp>1<sp>|\n" 1 + sqlText ) + "<sp>80<sp>|2013-04-24<sp>|<sp>3<sp>|<sp>79000<sp>|<sp>2<sp>|<sp>3<sp>|<sp>1<sp>|\n" 1 ) , expected , TestUtils . FormattedResult . ResultFactory . toStringUnsorted ( rs ) ) |
testRepeatedRestOp ( ) { org . stringtemplate . v4 . org . stringtemplate . v4 . ST e = new org . stringtemplate . v4 . org . stringtemplate . v4 . ST ( "<rest(names)>,<sp><rest(names)>" ) ; e . add ( "names" , "Ter" ) ; e . add ( "names" , "Tom" ) ; java . lang . String expecting = "Tom,<sp>Tom" ; "<AssertPlaceHolder>... | org . junit . Assert . assertEquals ( expecting , e . render ( ) ) |
testCassandraTupleAtLeastOnceSink ( ) { org . apache . flink . streaming . connectors . cassandra . CassandraTupleSink < org . apache . flink . api . java . tuple . Tuple3 < java . lang . String , java . lang . Integer , java . lang . Integer > > sink = new org . apache . flink . streaming . connectors . cassandra . Ca... | org . junit . Assert . assertEquals ( 20 , rs . all ( ) . size ( ) ) |
testNotEqualsOtherPrincipalWithSameName ( ) { java . security . Principal another = new java . security . Principal ( ) { public java . lang . String getName ( ) { return SystemPrincipal . INSTANCE . getName ( ) ; } } ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( ( this ) == o ) { return true ; } i... | org . junit . Assert . assertFalse ( SystemPrincipal . INSTANCE . equals ( another ) ) |
testGetEditProcessAction4Spark ( ) { org . talend . repository . model . RepositoryNode processNode = mock ( org . talend . repository . model . RepositoryNode . class ) ; when ( processNode . getContentType ( ) ) . thenReturn ( ERepositoryObjectType . PROCESS_SPARK ) ; org . eclipse . jface . action . IAction iAction ... | org . junit . Assert . assertNull ( null , iAction ) |
testRegelGaatNietAfDatumGeboorteGelijkAanDatumAanvangGeldigheid ( ) { final nl . bzk . brp . util . RelatieBuilder < nl . bzk . brp . model . bericht . kern . FamilierechtelijkeBetrekkingBericht > relBuilder = new nl . bzk . brp . util . RelatieBuilder < nl . bzk . brp . model . bericht . kern . FamilierechtelijkeBetre... | org . junit . Assert . assertEquals ( 0 , objecten . size ( ) ) |
testShutdownHook ( ) { org . mockito . ArgumentCaptor < java . lang . Thread > shutdownHookCaptor = org . mockito . ArgumentCaptor . forClass ( com . streamsets . datacollector . main . Thread . class ) ; com . streamsets . datacollector . main . DataCollectorMain main = new com . streamsets . datacollector . main . Te... | org . junit . Assert . assertEquals ( 0 , main . doMain ( ) ) |
test_dividedBy_BigDecimalRoundingMode_one ( ) { org . joda . money . Money test = org . joda . money . TestMoney . GBP_2_34 . dividedBy ( BigDecimal . ONE , RoundingMode . DOWN ) ; "<AssertPlaceHolder>" ; } dividedBy ( long , java . math . RoundingMode ) { return with ( money . dividedBy ( valueToDivideBy , roundingMod... | org . junit . Assert . assertSame ( org . joda . money . TestMoney . GBP_2_34 , test ) |
testSetContentDescription ( ) { java . lang . String CONTENT_DESCRIPTION = "Test<sp>Photo" ; mController . setContentDescription ( CONTENT_DESCRIPTION ) ; mDraweeView . setController ( mController ) ; mDraweeView . setContentDescription ( mController . getContentDescription ( ) ) ; "<AssertPlaceHolder>" ; } getContentD... | org . junit . Assert . assertSame ( mDraweeView . getContentDescription ( ) , CONTENT_DESCRIPTION ) |
testGroupedCollectionReuse ( ) { org . apache . crunch . PCollection < java . lang . String > stringValues = org . apache . crunch . impl . mem . MemPipeline . typedCollectionOf ( org . apache . crunch . types . avro . Avros . strings ( ) , "one" , "two" , "three" ) ; org . apache . crunch . PGroupedTable < java . lang... | org . junit . Assert . assertEquals ( com . google . common . collect . ImmutableSet . of ( "one" , "two" , "three" ) , keys ) |
testSearchWithCustomParam ( ) { ca . uhn . fhir . jpa . provider . dstu3 . SearchParameter fooSp = new ca . uhn . fhir . jpa . provider . dstu3 . SearchParameter ( ) ; fooSp . addBase ( "Patient" ) ; fooSp . setCode ( "foo" ) ; fooSp . setType ( org . hl7 . fhir . dstu3 . model . Enumerations . SearchParamType . TOKEN ... | org . junit . Assert . assertThat ( foundResources , org . hamcrest . Matchers . contains ( patId . getValue ( ) ) ) |
testGetRequestForUpload ( ) { java . lang . String uploadId = composite . getMultipartUploadStatus ( ) . getUploadId ( ) ; when ( mockMultiparUploadDAO . getUploadRequest ( uploadId ) ) . thenReturn ( requestJson ) ; org . sagebionetworks . repo . model . file . MultipartUploadRequest returnedRequest = manager . getReq... | org . junit . Assert . assertEquals ( request , returnedRequest ) |
testIsIncluded_isAgent ( ) { final com . adobe . acs . commons . replication . dispatcher . DispatcherFlushFilter filter = new com . adobe . acs . commons . replication . dispatcher . DispatcherFlushFilter ( ) ; when ( agent . isEnabled ( ) ) . thenReturn ( true ) ; when ( agentConfig . getTransportURI ( ) ) . thenRetu... | org . junit . Assert . assertEquals ( expected , actual ) |
testDrawWithEmptyDataset ( ) { boolean success = false ; org . jfree . chart . JFreeChart chart = org . jfree . chart . ChartFactory . createStackedXYAreaChart ( "title" , "x" , "y" , new org . jfree . data . xy . DefaultTableXYDataset ( ) , PlotOrientation . VERTICAL , true , false , false ) ; org . jfree . chart . pl... | org . junit . Assert . assertTrue ( success ) |
parallelForEachPerformanceOneThread ( ) { java . lang . Object [ ] array = com . gs . collections . impl . list . Interval . zeroTo ( 100 ) . toArray ( ) ; com . gs . collections . impl . math . Sum parallelSum = new com . gs . collections . impl . math . LongSum ( 0 ) ; this . parallelSum ( array , parallelSum ) ; com... | org . junit . Assert . assertEquals ( parallelSum , linearSum ) |
testGetAllCommunities ( ) { try { gov . hhs . fha . nhinc . connectmgr . ConnectionManagerCache connectionManager = createConnectionManager ( ) ; "<AssertPlaceHolder>" ; } catch ( java . lang . Throwable t ) { t . printStackTrace ( ) ; org . junit . Assert . fail ( ( "Error<sp>running<sp>testGetAllCommunities<sp>test:<... | org . junit . Assert . assertEquals ( 2 , connectionManager . getAllBusinessEntities ( ) . size ( ) ) |
launchAuditWithCorrectJsonReturnAccepted ( ) { fr . gouv . vitam . common . thread . VitamThreadUtils . getVitamSession ( ) . setTenantId ( fr . gouv . vitam . functional . administration . client . AdminManagementClientRestTest . TENANT_ID ) ; when ( fr . gouv . vitam . functional . administration . client . AdminMana... | org . junit . Assert . assertEquals ( resp . getStatus ( ) , Status . ACCEPTED . getStatusCode ( ) ) |
testGetInUserPeriod ( ) { System . out . println ( "getInUserPeriod" ) ; kg . apc . jmeter . threads . SteppingThreadGroup instance = new kg . apc . jmeter . threads . SteppingThreadGroup ( ) ; java . lang . String expResult = "" ; java . lang . String result = instance . getInUserPeriod ( ) ; "<AssertPlaceHolder>" ; }... | org . junit . Assert . assertEquals ( expResult , result ) |
testPersonalDetails_When_ReadLimitedToken_EmptyElement ( ) { org . orcid . core . utils . SecurityContextTestUtils . setUpSecurityContext ( org . orcid . core . manager . v3 . ORCID_1 , org . orcid . core . manager . v3 . CLIENT_1 , ScopePathType . ORCID_BIO_READ_LIMITED ) ; org . orcid . jaxb . model . v3 . rc2 . reco... | org . junit . Assert . assertNotNull ( p ) |
testReducerForLongWritableKey ( ) { org . apache . hadoop . io . LongWritable key = new org . apache . hadoop . io . LongWritable ( java . lang . Long . parseLong ( "123" ) ) ; co . nubetech . hiho . dedup . HihoTuple hihoTuple = new co . nubetech . hiho . dedup . HihoTuple ( ) ; hihoTuple . setKey ( key ) ; co . nubet... | org . junit . Assert . assertEquals ( 1 , context . getCounter ( MergeRecordCounter . OUTPUT ) . getValue ( ) ) |
testInstanceDoesNotEqualNull ( ) { final org . springframework . roo . addon . gwt . request . GwtRequestMetadata instance = new org . springframework . roo . addon . gwt . request . GwtRequestMetadata ( org . springframework . roo . addon . gwt . request . GwtRequestMetadataTest . MID_1 , org . springframework . roo .... | org . junit . Assert . assertFalse ( instance . equals ( null ) ) |
testLeakyRelu2 ( ) { org . nd4j . linalg . api . ndarray . INDArray arr = org . nd4j . linalg . factory . Nd4j . linspace ( ( - 1 ) , 1 , 10 ) ; double [ ] expected = new double [ 10 ] ; for ( int i = 0 ; i < 10 ; i ++ ) { double in = arr . getDouble ( i ) ; expected [ i ] = ( in <= 0.0 ) ? 0.01 * in : in ; } org . nd4... | org . junit . Assert . assertEquals ( exp , out ) |
pathNameRevToBuffer ( ) { org . apache . jackrabbit . oak . plugins . document . Path p = org . apache . jackrabbit . oak . plugins . document . Path . fromString ( "/foo/bar/quux" ) ; java . lang . String name = "baz" ; org . apache . jackrabbit . oak . plugins . document . RevisionVector rv = org . apache . jackrabbi... | org . junit . Assert . assertEquals ( expected , org . apache . jackrabbit . oak . plugins . document . persistentCache . DataTypeUtil . namePathRevFromBuffer ( rb ) ) |
simpleStarter2 ( ) { jrds . starter . StarterNode n1 = new jrds . starter . StarterNode ( ) { } ; jrds . starter . Starter s1 = new jrds . starter . Starter ( ) { } ; n1 . registerStarter ( s1 ) ; jrds . starter . StarterNode n2 = new jrds . starter . StarterNode ( n1 ) { } ; "<AssertPlaceHolder>" ; } find ( java . lan... | org . junit . Assert . assertNotNull ( n2 . find ( s1 . getClass ( ) ) ) |
testNullEncodingType ( ) { java . sql . Connection conn = java . sql . DriverManager . getConnection ( getUrl ( ) ) ; java . lang . String tableName = generateUniqueName ( ) ; java . lang . String ddl = ( "CREATE<sp>TABLE<sp>" + tableName ) + "<sp>(<sp>pk<sp>VARCHAR(10)<sp>NOT<sp>NULL<sp>CONSTRAINT<sp>PK<sp>PRIMARY<sp>... | org . junit . Assert . assertFalse ( rs . next ( ) ) |
testPositiveOpenIdConnect ( ) { org . eclipse . microprofile . openapi . models . security . SecurityScheme . Type type = org . eclipse . microprofile . openapi . models . security . SecurityScheme . Type . OPENIDCONNECT ; java . lang . String url = "https://www.ibm.com/ca-en/" ; com . ibm . ws . microprofile . openapi... | org . junit . Assert . assertEquals ( 0 , vh . getEventsSize ( ) ) |
convert_collection_of_strings_to_array_with_java ( ) { java . util . List < java . lang . String > searchEnginesAsList = com . google . common . collect . Lists . newArrayList ( "Google" , "Bing" , "Yahoo" , "Ask" , "AOL" ) ; java . lang . String [ ] searchEngines = searchEnginesAsList . toArray ( new java . lang . Str... | org . junit . Assert . assertEquals ( 5 , searchEngines . length ) |
testNoChecksumFailureIfVerificationTurnedOffOnLoad ( ) { com . orientechnologies . orient . core . storage . index . hashindex . local . cache . WOWCacheTestIT . wowCache . setChecksumMode ( OChecksumMode . Store ) ; final long fileId = com . orientechnologies . orient . core . storage . index . hashindex . local . cac... | org . junit . Assert . assertEquals ( 0 , com . orientechnologies . orient . core . storage . index . hashindex . local . cache . WOWCacheTestIT . wowCache . allocateNewPage ( fileId ) ) |
testGenerateAdditionalUrlsFingerprint ( ) { final java . util . Set < java . net . URL > urls = new java . util . HashSet ( ) ; java . net . URL testUrl = java . nio . file . Paths . get ( "src/test/resources/TestClassLoaderUtils/TestSuccess.jar" ) . toUri ( ) . toURL ( ) ; urls . add ( testUrl ) ; java . lang . String... | org . junit . Assert . assertNotNull ( testFingerprint ) |
testInvalidParameter ( ) { final net . violet . platform . datamodel . Lang frLang = getSiteFrLang ( ) ; final net . violet . platform . datamodel . User theOwner = new net . violet . platform . datamodel . mock . UserMock ( 42 , net . violet . common . StringShop . EMPTY_STRING , net . violet . common . StringShop . E... | org . junit . Assert . assertNull ( theResult ) |
testWritingReadingData ( ) { org . jlinda . core . io . FlatBinaryDoubleTest . flatBinaryDoubleWrite . setOutStream ( ) ; org . jlinda . core . io . FlatBinaryDoubleTest . flatBinaryDoubleWrite . setDataWindow ( new org . jlinda . core . Window ( org . jlinda . core . io . FlatBinaryDoubleTest . testDataWindow ) ) ; or... | org . junit . Assert . assertArrayEquals ( org . jlinda . core . io . FlatBinaryDoubleTest . testData , testData_ACTUAL ) |
shouldChangePropertiesInCurrentBatch ( ) { org . neo4j . unsafe . batchinsert . BatchInserter inserter = org . neo4j . unsafe . batchinsert . internal . BatchInsertTest . globalInserter ; java . util . Map < java . lang . String , java . lang . Object > properties = map ( "key1" , "value1" ) ; long node = inserter . cr... | org . junit . Assert . assertEquals ( properties , getNodeProperties ( inserter , node ) ) |
testSearchBusinessObjectDefinitionLowerCaseParams ( ) { java . util . Set < org . finra . herd . model . api . xml . BusinessObjectDefinition > expectedBusinessObjectDefinitions = setUpTestEntitiesForSearchTesting ( ) ; org . finra . herd . model . api . xml . BusinessObjectDefinitionSearchResponse searchResponse = bus... | org . junit . Assert . assertEquals ( expectedBusinessObjectDefinitions , actualBusinessObjectDefinitions ) |
testFallback ( ) { quickfix . fixt11 . Logon logon = new quickfix . fixt11 . Logon ( new quickfix . field . EncryptMethod ( quickfix . field . EncryptMethod . NONE_OTHER ) , new quickfix . field . HeartBtInt ( 30 ) , new quickfix . field . DefaultApplVerID ( quickfix . field . ApplVerID . FIX42 ) ) ; quickfix . Message... | org . junit . Assert . assertTrue ( ( ( messageCracked ) > 0 ) ) |
TestNeedValidate01 ( ) { java . lang . String tokenName = "aaa" ; org . terasoluna . gfw . web . token . transaction . TransactionTokenType beginToken = TransactionTokenType . BEGIN ; org . terasoluna . gfw . web . token . transaction . TransactionTokenInfo info = new org . terasoluna . gfw . web . token . transaction ... | org . junit . Assert . assertThat ( output , org . hamcrest . CoreMatchers . is ( false ) ) |
testCursorsOnTestTablePK ( ) { java . lang . String cursorName = generateUniqueName ( ) ; try ( java . sql . Connection conn = java . sql . DriverManager . getConnection ( getUrl ( ) ) ) { createAndInitializeTestTable ( ) ; java . lang . String querySQL = "SELECT<sp>a_id<sp>FROM<sp>" + ( tableName ) ; java . lang . Str... | org . junit . Assert . assertEquals ( rowID , rs . getInt ( 1 ) ) |
changeLDAPRegistryDetailedConfigDynamically ( ) { com . ibm . websphere . simplicity . log . Log . info ( com . ibm . ws . security . wim . adapter . ldap . fat . LDAPRegistryDynamicUpdateTest . c , "3000s" 6 , "kerberosId" 8 ) ; java . util . List < java . lang . String > list = com . ibm . ws . security . wim . adapt... | org . junit . Assert . assertEquals ( "3000s" 0 , 1 , list . size ( ) ) |
testSepSetCompareWithDifferentMass ( ) { org . drools . beliefs . graph . Graph < org . drools . beliefs . bayes . BayesVariable > graph = new org . drools . beliefs . bayes . BayesNetwork ( ) ; org . drools . beliefs . graph . GraphNode x0 = org . drools . beliefs . bayes . GraphTest . addNode ( graph ) ; org . drools... | org . junit . Assert . assertEquals ( s1 , list . get ( 0 ) ) |
testTokenizerOnStringWithoutNexToken ( ) { eu . stratosphere . types . StringValue testString = new eu . stratosphere . types . StringValue ( "test" ) ; eu . stratosphere . util . SimpleStringUtils . WhitespaceTokenizer tokenizer = new eu . stratosphere . util . SimpleStringUtils . WhitespaceTokenizer ( ) ; tokenizer .... | org . junit . Assert . assertFalse ( tokenizer . next ( testString ) ) |
testSelect1 ( ) { logger . info ( "Testing<sp>a<sp>select<sp>that<sp>caused<sp>an<sp>issue." ) ; final org . opencastproject . mediapackage . MediaPackage mp = mkMediaPackage ( mkCatalog ( ) ) ; am . takeSnapshot ( org . opencastproject . assetmanager . impl . OWNER , mp ) ; final java . lang . String mpId = mp . getId... | org . junit . Assert . assertEquals ( 1 , r . getSize ( ) ) |
readYamlViaMap ( ) { org . yaml . snakeyaml . representer . Representer representer = new org . yaml . snakeyaml . representer . Representer ( ) ; representer . getPropertyUtils ( ) . setSkipMissingProperties ( true ) ; org . yaml . snakeyaml . Yaml y = new org . yaml . snakeyaml . Yaml ( representer ) ; java . util . ... | org . junit . Assert . assertTrue ( ( ( usersConfig . size ( ) ) > 0 ) ) |
testNormalVariance ( ) { final double twoOverSqrtPi = 2 / ( org . apache . commons . math4 . util . FastMath . sqrt ( Math . PI ) ) ; final double sigma = 987.654321 ; final double sigma2 = sigma * sigma ; final int numPoints = 5 ; final org . apache . commons . math4 . analysis . UnivariateFunction f = new org . apach... | org . junit . Assert . assertEquals ( expected , result , ( 10 * ( java . lang . Math . ulp ( expected ) ) ) ) |
testPutThing ( ) { org . jboss . resteasy . test . rx . resource . Thing t = org . jboss . resteasy . test . rx . RxCompletionStageProxyServerAsyncTest . proxy . putThing ( "a" ) ; "<AssertPlaceHolder>" ; } putThing ( java . lang . String ) { return new org . jboss . resteasy . test . rx . resource . Thing ( s ) ; } | org . junit . Assert . assertEquals ( new org . jboss . resteasy . test . rx . resource . Thing ( "a" ) , t ) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.