input stringlengths 28 18.7k | output stringlengths 39 1.69k |
|---|---|
testInstanceGetAndSet ( ) { de . mirkosertic . bytecoder . core . InstanceAccessTest . StaticClassWithStuffInside theInstance = new de . mirkosertic . bytecoder . core . InstanceAccessTest . StaticClassWithStuffInside ( ) ; theInstance . member = 12 ; int theResult = theInstance . member ; "<AssertPlaceHolder>" ; } | org . junit . Assert . assertEquals ( 12 , theResult , 0 ) |
testAddValuePrimitive ( ) { final org . apache . commons . lang3 . mutable . MutableByte mutNum = new org . apache . commons . lang3 . mutable . MutableByte ( ( ( byte ) ( 1 ) ) ) ; mutNum . add ( ( ( byte ) ( 1 ) ) ) ; "<AssertPlaceHolder>" ; } byteValue ( ) { return value ; } | org . junit . Assert . assertEquals ( ( ( byte ) ( 2 ) ) , mutNum . byteValue ( ) ) |
xor3a ( ) { org . roaringbitmap . buffer . MappeableContainer bc = new org . roaringbitmap . buffer . MappeableArrayContainer ( ) ; org . roaringbitmap . buffer . MappeableContainer rc = new org . roaringbitmap . buffer . MappeableRunContainer ( ) ; rc . add ( ( ( short ) ( 1 ) ) ) ; bc . add ( ( ( short ) ( 1 ) ) ) ; ... | org . junit . Assert . assertEquals ( 0 , result . getCardinality ( ) ) |
testHasElementsOnNullValue ( ) { "<AssertPlaceHolder>" ; } hasElements ( ) { return new com . annimon . stream . test . hamcrest . IntStreamMatcher . HasElementsMatcher ( ) ; } | org . junit . Assert . assertThat ( null , com . annimon . stream . test . hamcrest . IntStreamMatcher . hasElements ( ) ) |
test ( ) { owltools . gaf . GafDocument gafdoc = loadGaf ( "test_gene_association_mgi.gaf" ) ; owltools . gaf . rules . AnnotationRule rule = new owltools . gaf . rules . go . GoNoISSProteinBindingRule ( eco ) ; java . util . List < owltools . gaf . GeneAnnotation > annotations = gafdoc . getGeneAnnotations ( ) ; java ... | org . junit . Assert . assertEquals ( 0 , allViolations . size ( ) ) |
testSignatureTimestamp ( ) { org . apache . cxf . service . Service service = createService ( ) ; org . apache . wss4j . stax . ext . WSSSecurityProperties inProperties = new org . apache . wss4j . stax . ext . WSSSecurityProperties ( ) ; inProperties . setCallbackHandler ( new org . apache . cxf . ws . security . wss4... | org . junit . Assert . assertEquals ( "test" , echo . echo ( "test" ) ) |
valueNull ( ) { org . spincast . core . json . JsonObject model = getJsonManager ( ) . create ( ) ; org . spincast . core . json . JsonObject user = getJsonManager ( ) . create ( ) ; user . set ( "name" , null ) ; model . set ( "user" , user ) ; java . lang . String html = getTemplatingEngine ( ) . evaluate ( "{{user.n... | org . junit . Assert . assertEquals ( "" , html ) |
applyMaterieelFormeelGeldigHistorieVormGeen_PeilmomentNaVerval ( ) { nl . bzk . brp . domain . leveringmodel . MetaGroep . Builder groepBuilder = new nl . bzk . brp . domain . leveringmodel . MetaGroep . Builder ( null ) ; groepBuilder . metGroepElement ( Element . PERSOON_ADRES_STANDAARD . getId ( ) ) ; final nl . bzk... | org . junit . Assert . assertThat ( apply , org . hamcrest . core . Is . is ( false ) ) |
removedUserCanNotInsert ( ) { final java . lang . String adminUser = testInstance . createUniqueUser ( ) ; final java . lang . String user = testInstance . createUniqueUser ( ) ; final org . apache . accumulo . core . client . admin . SecurityOperations secOps = super . getConnector ( ) . securityOperations ( ) ; secOp... | org . junit . Assert . assertTrue ( securityExceptionThrown ) |
testServiceRegistration ( ) { java . lang . Iterable < org . apache . twill . discovery . Discoverable > discoverables = io . cdap . cdap . security . server . ExternalAuthenticationServerTestBase . discoveryServiceClient . discover ( Constants . Service . EXTERNAL_AUTHENTICATION ) ; java . util . Set < java . net . So... | org . junit . Assert . assertTrue ( addresses . contains ( io . cdap . cdap . security . server . ExternalAuthenticationServerTestBase . server . getSocketAddress ( ) ) ) |
testSetup ( ) { final org . kie . soup . project . datamodel . imports . Import import_ = new org . kie . soup . project . datamodel . imports . Import ( "type" ) ; externalDataObjectsItemPresenter . setup ( import_ , mock ( org . kie . workbench . common . screens . library . client . settings . sections . externaldat... | org . junit . Assert . assertEquals ( import_ , externalDataObjectsItemPresenter . getObject ( ) ) |
testReadingGoogleThrowsException ( ) { java . lang . String ghMatrix = com . graphhopper . api . AbstractGHMatrixWebTester . readFile ( new java . io . InputStreamReader ( getClass ( ) . getResourceAsStream ( "google-matrix1.json" ) ) ) ; com . graphhopper . api . GraphHopperMatrixWeb matrixWeb = createMatrixClient ( g... | org . junit . Assert . assertTrue ( rsp . hasErrors ( ) ) |
test_isComplete_noCurrency ( ) { org . joda . money . format . MoneyParseContext test = new org . joda . money . format . MoneyParseContext ( java . util . Locale . FRANCE , "GBP<sp>123" , 0 ) ; test . setAmount ( BigDecimal . TEN ) ; "<AssertPlaceHolder>" ; } isComplete ( ) { return ( ( currency ) != null ) && ( ( amo... | org . junit . Assert . assertEquals ( false , test . isComplete ( ) ) |
testThatCanFindMethodEvenIfUsingPrimitiveTypes ( ) { new net . vidageek . mirror . dsl . Mirror ( ) . on ( fixture ) . invoke ( ) . method ( "methodWithTwoPrimitives" ) . withArgs ( 1 , true ) ; "<AssertPlaceHolder>" ; } getArgNum ( ) { return net . vidageek . mirror . fixtures . MethodFixture . argNum ; } | org . junit . Assert . assertEquals ( new java . lang . Integer ( 2 ) , net . vidageek . mirror . fixtures . MethodFixture . getArgNum ( ) ) |
isWindowsOS ( ) { boolean iswin = com . att . aro . core . util . Util . isWindowsOS ( ) ; java . lang . String os = java . lang . System . getProperty ( "os.name" ) ; boolean haswin = os . contains ( "Windows" ) ; "<AssertPlaceHolder>" ; } isWindowsOS ( ) { boolean iswin = com . att . aro . core . util . Util . isWind... | org . junit . Assert . assertEquals ( haswin , iswin ) |
testMultipleSet01 ( ) { cmsdbContext . setAllowFullTableScan ( false ) ; java . lang . String query = "LBVirtualIP[@resourceId=\"192.168.3.5:80\"]{*}." + ( ( ( ( "(networkAddress{@resourceId,<sp>@address}<sp>" + "&&<sp>poolMaps{*}.pool{*}." ) + "<sp>(lbService{*}<sp>||<sp>services{*}.lbMember{*}.(networkAddress{*}))<sp... | org . junit . Assert . assertEquals ( 1 , result . getEntities ( ) . size ( ) ) |
testDeleteBusinessObjectDataNotificationRegistration ( ) { org . finra . herd . model . api . xml . NotificationRegistrationKey businessObjectDataNotificationRegistrationKey = new org . finra . herd . model . api . xml . NotificationRegistrationKey ( NAMESPACE , NOTIFICATION_NAME ) ; org . finra . herd . model . api . ... | org . junit . Assert . assertEquals ( businessObjectDataNotificationRegistration , result ) |
testGetInstance ( ) { javax . faces . context . FacesContext facesContext = javax . faces . context . FacesContext . getCurrentInstance ( ) ; org . richfaces . skin . SkinFactory factory = org . richfaces . skin . SkinFactory . getInstance ( facesContext ) ; org . richfaces . skin . SkinFactory factory1 = org . richfac... | org . junit . Assert . assertSame ( factory , factory1 ) |
testTruncateWithOtherOperations ( ) { org . apache . hadoop . fs . Path dir = new org . apache . hadoop . fs . Path ( "/testTruncateOtherOperations" ) ; org . apache . hadoop . hdfs . server . namenode . TestFileTruncate . fs . mkdirs ( dir ) ; final org . apache . hadoop . fs . Path p = new org . apache . hadoop . fs ... | org . junit . Assert . assertFalse ( isReady ) |
testNestedNots1 ( ) { java . lang . String str = "package<sp>org.test;<sp>" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "rule<sp>negation_over_nested<sp>" + "package<sp>org.test;<sp>" 8 ) + "package<sp>org.test;<sp>" 5 ) + "package<sp>org.test;<sp>" 7 ) + "package<sp>org.test;<sp>" 3 ) + "then... | org . junit . Assert . assertEquals ( 7 , n ) |
test_whitelabel_domains_get ( ) { com . sendgrid . SendGrid sg = new com . sendgrid . SendGrid ( "SENDGRID_API_KEY" , true ) ; sg . setHost ( "localhost:4010" ) ; sg . addRequestHeader ( "username" 1 , "200" ) ; com . sendgrid . Request request = new com . sendgrid . Request ( ) ; request . setMethod ( Method . GET ) ;... | org . junit . Assert . assertEquals ( 200 , response . getStatusCode ( ) ) |
testListSubsubitem ( ) { java . lang . String content = "***<sp>subsubitem" ; java . lang . String expected = content ; java . lang . String actual = _translate ( content ) ; "<AssertPlaceHolder>" ; } _translate ( com . liferay . portal . kernel . exception . PortalException ) { if ( portalException instanceof com . li... | org . junit . Assert . assertEquals ( expected , actual ) |
idWithNestedProperties ( ) { org . watertemplate . TemplateMap . Arguments arguments = new org . watertemplate . TemplateMap . Arguments ( ) ; org . watertemplate . interpreter . parser . AbstractSyntaxTree abs = new org . watertemplate . interpreter . parser . AbstractSyntaxTree . Id ( "prop_key" , new org . watertemp... | org . junit . Assert . assertEquals ( "success" , result ) |
testWrite_08 ( ) { filterStream . write ( ( "<sp>*<sp>$Id" + "$\n<sp>*/" ) . getBytes ( ) ) ; filterStream . flush ( ) ; java . lang . String res = new java . lang . String ( result . toByteArray ( ) ) ; java . lang . String expected = "<sp>*/" ; "<AssertPlaceHolder>" ; } toByteArray ( ) { return this . buf ; } | org . junit . Assert . assertEquals ( expected , res ) |
testFavouriteCheese ( ) { final org . kie . karaf . itest . camel . kiecamel . proxy . CheeseAssessmentService service = getCheeseAssessmentProxy ( ) ; final org . kie . karaf . itest . camel . kiecamel . model . Cheese assessedCheese = service . assessCheese ( org . kie . karaf . itest . camel . kiecamel . tools . Che... | org . junit . Assert . assertTrue ( assessedCheese . isFavourite ( ) ) |
testGetText ( ) { System . out . println ( "getText" ) ; java . lang . Object value = null ; int row = 0 ; int column = 0 ; kg . apc . jmeter . graphs . HeaderAsTextRenderer instance = new kg . apc . jmeter . graphs . HeaderAsTextRenderer ( ) ; java . lang . String expResult = "" ; java . lang . String result = instanc... | org . junit . Assert . assertEquals ( expResult , result ) |
shouldDisableMetricsWhenConfigFails ( ) { java . lang . String table = datawave . ingest . mapreduce . job . metrics . MetricsConfiguration . getTable ( conf ) ; org . apache . accumulo . core . client . admin . TableOperations tops = org . easymock . EasyMock . createMock ( org . apache . accumulo . core . client . ad... | org . junit . Assert . assertFalse ( datawave . ingest . mapreduce . job . metrics . MetricsConfiguration . isEnabled ( conf ) ) |
testGetUserInfo ( ) { java . lang . String openId = java . lang . System . getProperty ( "connect.openid" ) ; java . lang . String accessToken = java . lang . System . getProperty ( "connect.token" ) ; com . belerweb . social . bean . Result < com . belerweb . social . qq . connect . bean . User > result = connect . ge... | org . junit . Assert . assertTrue ( result . success ( ) ) |
testRMStartWithDecommissionedNode ( ) { java . lang . String excludeFile = "excludeFile" ; createExcludeFile ( excludeFile ) ; org . apache . hadoop . yarn . conf . YarnConfiguration conf = new org . apache . hadoop . yarn . conf . YarnConfiguration ( ) ; conf . set ( YarnConfiguration . RM_NODES_EXCLUDE_FILE_PATH , ex... | org . junit . Assert . assertEquals ( 1 , nodeReports . size ( ) ) |
testExonDuplicationOma1 ( ) { final java . lang . String outPath = runJannovarOnVCFLine ( "/sv_header.vcf" , "1\t58968128\t.\tN\t<CNV>\t.\t.\tSVTYPE=CNV;END=58994820" ) ; final java . lang . String expected = "1\t58968128\t.\tN\t<CNV>\t.\t.\tEND=58994820;" + ( "SVANN=copy_number_change&structural_variant&coding_transcr... | org . junit . Assert . assertEquals ( expected , actual ) |
nonEmptyBufferHasRemaining ( ) { uk . ac . ebi . beam . CharBuffer buffer = uk . ac . ebi . beam . CharBuffer . fromString ( "-" ) ; "<AssertPlaceHolder>" ; } hasRemaining ( ) { return ( position ) < ( cs . length ) ; } | org . junit . Assert . assertTrue ( buffer . hasRemaining ( ) ) |
testLocaleMatches ( ) { org . apache . commons . lang3 . time . DatePrinter printer = getInstance ( org . apache . commons . lang3 . time . FastDatePrinterTest . YYYY_MM_DD , org . apache . commons . lang3 . time . FastDatePrinterTest . SWEDEN ) ; "<AssertPlaceHolder>" ; } getLocale ( ) { if ( ( locale ) == null ) loca... | org . junit . Assert . assertEquals ( org . apache . commons . lang3 . time . FastDatePrinterTest . SWEDEN , printer . getLocale ( ) ) |
testRemoteManagerConnectionRetryWithMultipleSenderTest ( ) { final int numOfSenderThreads = 5 ; final java . util . concurrent . ExecutorService smExecutor = java . util . concurrent . Executors . newFixedThreadPool ( numOfSenderThreads ) ; final java . util . concurrent . ExecutorService rmExecutor = java . util . con... | org . junit . Assert . assertEquals ( ( 2 * numOfSenderThreads ) , rmCnt ) |
testWriteCommand ( ) { org . dcm4che3 . io . DicomOutputStream out = new org . dcm4che3 . io . DicomOutputStream ( new java . io . FileOutputStream ( file ) , org . dcm4che3 . data . UID . ImplicitVRLittleEndian ) ; try { out . writeCommand ( cechorq ( ) ) ; } finally { out . close ( ) ; } "<AssertPlaceHolder>" ; } rea... | org . junit . Assert . assertEquals ( 4 , readAttributes ( ) . size ( ) ) |
testHasRedo ( ) { fakeDrawEvent ( ) ; clientCanvas . undo ( ) ; "<AssertPlaceHolder>" ; } hasRedo ( ) { return cache . hasRedo ( ) ; } | org . junit . Assert . assertTrue ( clientCanvas . hasRedo ( ) ) |
testAddMarker ( ) { org . eclipse . tracecompass . internal . tmf . core . markers . MarkerSet markerSet = new org . eclipse . tracecompass . internal . tmf . core . markers . MarkerSet ( "name" , "a" 1 ) ; org . eclipse . tracecompass . internal . tmf . core . markers . Marker markerA = new org . eclipse . tracecompas... | org . junit . Assert . assertEquals ( java . util . Arrays . asList ( markerA , markerB ) , markerSet . getMarkers ( ) ) |
shouldConvertEmptyBody ( ) { simplehttp . HttpResponse response = handler . handleResponse ( anApacheOkResponse ) ; "<AssertPlaceHolder>" ; } has ( java . lang . String ) { return false ; } | org . junit . Assert . assertThat ( response , has ( content ( "" ) ) ) |
getComponentsDenied ( ) { denieSpaceAuthorizationToUsers ( ) ; try { getComponents ( ) ; org . junit . Assert . fail ( "An<sp>unauthorized<sp>user<sp>shouldn't<sp>access<sp>the<sp>space" ) ; } catch ( final com . sun . jersey . api . client . UniformInterfaceException ex ) { final int receivedStatus = ex . getResponse ... | org . junit . Assert . assertThat ( receivedStatus , org . hamcrest . Matchers . is ( forbidden ) ) |
testAddExistingFormat ( ) { slash . navigation . base . NavigationFormat format = new slash . navigation . gpx . Gpx11Format ( ) ; recentFormatsModel . addFormat ( format ) ; recentFormatsModel . addFormat ( format ) ; recentFormatsModel . addFormat ( format ) ; "<AssertPlaceHolder>" ; } getFormats ( ) { java . util . ... | org . junit . Assert . assertEquals ( singletonList ( format ) , recentFormatsModel . getFormats ( ) ) |
getByProperty ( ) { java . util . List < biweekly . ValidationWarnings . WarningsGroup > groups = new java . util . ArrayList < biweekly . ValidationWarnings . WarningsGroup > ( ) ; biweekly . ValidationWarnings . WarningsGroup group1 = new biweekly . ValidationWarnings . WarningsGroup ( new biweekly . ValidationWarnin... | org . junit . Assert . assertEquals ( java . util . Arrays . asList ( group1 , group2 ) , warnings . getByProperty ( biweekly . ValidationWarningsTest . TestProperty1 . class ) ) |
toFile ( ) { java . io . File dir = new java . io . File ( "." ) ; java . io . File result = de . blizzy . documentr . util . Util . toFile ( dir , "x/y/z" ) ; java . io . File expectedFile = new java . io . File ( new java . io . File ( new java . io . File ( dir , "x" ) , "y" ) , "z" ) ; "<AssertPlaceHolder>" ; } toF... | org . junit . Assert . assertEquals ( expectedFile , result ) |
getLogSchemasByApplicationTokenTest ( ) { org . kaaproject . kaa . common . dto . ApplicationDto application = createApplication ( tenantAdminDto ) ; org . kaaproject . kaa . common . dto . logs . LogSchemaDto logSchemaDto = createLogSchema ( application . getId ( ) ) ; java . util . List < org . kaaproject . kaa . com... | org . junit . Assert . assertEquals ( 2 , found . size ( ) ) |
test_decode_no_config ( ) { org . milyn . javabean . decoders . BigIntegerDecoder decoder = new org . milyn . javabean . decoders . BigIntegerDecoder ( ) ; java . math . BigInteger bigI = ( ( java . math . BigInteger ) ( decoder . decode ( "1234" ) ) ) ; "<AssertPlaceHolder>" ; } decode ( java . lang . String ) { java ... | org . junit . Assert . assertEquals ( new java . math . BigInteger ( "1234" ) , bigI ) |
non_grouping ( ) { parse ( "-G<sp>foo" ) ; "<AssertPlaceHolder>" ; } isGrouping ( ) { return ( ( ! ( isKeysOnly ( ) ) ) && ( ! ( queryParser . hasOption ( QueryFlag . NO_GROUPING ) ) ) ) && ( ! ( isBriefAbuseContact ( ) ) ) ; } | org . junit . Assert . assertFalse ( subject . isGrouping ( ) ) |
testCreateHospitalAdmissionDiagnosisSectionBuilder ( ) { org . openhealthtools . mdht . uml . cda . builder . SectionBuilder < org . openhealthtools . mdht . uml . cda . ihe . HospitalAdmissionDiagnosisSection > sectionBuilder = org . openhealthtools . mdht . uml . cda . ihe . builder . IHEBuilderFactory . createHospit... | org . junit . Assert . assertNotNull ( section ) |
test_DoublesPair_ofNumbers_PairNumberNumber ( ) { org . testng . eclipse . convert . Pair < java . lang . Integer , java . lang . Long > base = org . testng . eclipse . convert . ObjectsPair . of ( java . lang . Integer . valueOf ( 2 ) , java . lang . Long . valueOf ( 3L ) ) ; org . testng . eclipse . convert . Doubles... | org . junit . Assert . assertEquals ( new org . testng . eclipse . convert . DoublesPair ( 2 , 3 ) , test ) |
test_LocalDateTime_adjustToInternationalFixedDate ( ) { org . threeten . extra . chrono . InternationalFixedDate fixed = org . threeten . extra . chrono . InternationalFixedDate . of ( 2012 , 7 , 19 ) ; java . time . LocalDateTime test = LocalDateTime . MIN . with ( fixed ) ; "<AssertPlaceHolder>" ; } with ( java . tim... | org . junit . Assert . assertEquals ( java . time . LocalDateTime . of ( 2012 , 7 , 6 , 0 , 0 ) , test ) |
deveObterSituacaoContribuinteComoFoiSetado ( ) { final com . fincatto . documentofiscal . nfe400 . classes . cadastro . NFRetornoConsultaCadastroSituacaoCadastral retorno = new com . fincatto . documentofiscal . nfe400 . classes . cadastro . NFRetornoConsultaCadastroSituacaoCadastral ( ) ; retorno . setSituacaoContribu... | org . junit . Assert . assertEquals ( NFSituacaoContribuinte . HABILITADO , retorno . getSituacaoContribuinte ( ) ) |
testPurgeMetricProblems ( ) { long timestamp = java . lang . System . currentTimeMillis ( ) ; metricProblemDAO . create ( 12345 , timestamp , MeasurementConstants . PROBLEM_TYPE_ALERT , 5678 ) ; flushSession ( ) ; metricProblemDAO . create ( 12345 , ( timestamp + 2001 ) , MeasurementConstants . PROBLEM_TYPE_ALERT , 567... | org . junit . Assert . assertEquals ( 1 , metricProblemDAO . findAll ( ) . size ( ) ) |
sigmaPropDom ( ) { java . util . List < org . arend . core . context . binding . Binding > context = new java . util . ArrayList ( ) ; context . add ( new org . arend . core . context . binding . TypedBinding ( "A" , org . arend . ExpressionFactory . Universe ( 4 , ( - 1 ) ) ) ) ; context . add ( new org . arend . core... | org . junit . Assert . assertEquals ( org . arend . ExpressionFactory . Universe ( 2 , 6 ) , result . type ) |
testWindowRandomAccess ( ) { try { access = new com . huawei . streaming . window . WindowRandomAccess ( null ) ; org . junit . Assert . fail ( ) ; } catch ( java . lang . IllegalArgumentException e ) { "<AssertPlaceHolder>" ; } } fail ( ) { com . huawei . streaming . support . SupportHelper . fail ( null ) ; } | org . junit . Assert . assertTrue ( true ) |
_005_failedWithAssertion ( ) { "<AssertPlaceHolder>" ; } | org . junit . Assert . assertTrue ( false ) |
testCoerceNullToNumber ( ) { java . lang . Object output = org . apache . el . lang . ELSupport . coerceToType ( null , null , org . apache . el . lang . Number . class ) ; "<AssertPlaceHolder>" ; } coerceToType ( javax . el . ELContext , java . lang . Object , java . lang . Class ) { if ( ctx != null ) { boolean origi... | org . junit . Assert . assertNull ( output ) |
testParseFiles ( ) { java . io . File dir = new java . io . File ( "./src/test/testdata/mithra/mithraobject" ) ; java . io . File [ ] files = dir . listFiles ( ) ; "<AssertPlaceHolder>" ; long start = java . lang . System . currentTimeMillis ( ) ; for ( java . io . File f : files ) { if ( f . getName ( ) . endsWith ( "... | org . junit . Assert . assertTrue ( ( ( files . length ) > 0 ) ) |
testVisitRelationshipGroupCommand ( ) { org . neo4j . kernel . impl . transaction . command . Command . RelationshipGroupCommand cmd = mock ( Command . RelationshipGroupCommand . class ) ; when ( cmd . handle ( any ( org . neo4j . kernel . impl . api . CommandVisitor . class ) ) ) . thenCallRealMethod ( ) ; boolean res... | org . junit . Assert . assertFalse ( result ) |
testGenerateTranspose ( ) { com . codebits . d4m . TestableMutation transpose = new com . codebits . d4m . TestableMutation ( "CITY_NAME|Akron" ) ; transpose . put ( com . codebits . d4m . ingest . MutationFactoryTest . emptyCF , new org . apache . hadoop . io . Text ( "AA" ) , com . codebits . d4m . ingest . MutationF... | org . junit . Assert . assertEquals ( expected , actual ) |
testParametersFileOption ( ) { org . esa . beam . framework . gpf . main . CommandLineArgs lineArgs = org . esa . beam . framework . gpf . main . CommandLineArgs . parseArgs ( "Reproject" , "source.dim" , "-p" , "param.properties" ) ; "<AssertPlaceHolder>" ; } getParameterFilePath ( ) { return parameterFilePath ; } | org . junit . Assert . assertEquals ( "param.properties" , lineArgs . getParameterFilePath ( ) ) |
testNoMatch07 ( ) { boolean matchResult = simpleNamePatternMatcher . matchesEndToEnd ( "a.b.c" ) ; "<AssertPlaceHolder>" ; } matchesEndToEnd ( java . lang . String ) { return pattern . matcher ( input ) . matches ( ) ; } | org . junit . Assert . assertFalse ( matchResult ) |
testRead ( ) { java . lang . String xmlFile = ( java . lang . System . getProperty ( "user.dir" ) ) + "/config.xml" ; try { java . lang . String text = iqq . app . util . XmlUtils . getNodeText ( xmlFile , "iqq/version" ) ; System . out . println ( text ) ; "<AssertPlaceHolder>" ; } catch ( org . dom4j . DocumentExcept... | org . junit . Assert . assertNotNull ( text ) |
testDetermineDestinationOffsets_met_tx ( ) { int [ ] [ ] expected_met_tx_DestinationOffsets = new int [ ] [ ] { new int [ ] { 0 , 780000 , 1560000 , 2340000 , 3120000 } , new int [ ] { 260000 , 1040000 , 1820000 , 2600000 , 3380000 } , new int [ ] { 520000 , 1300000 , 2080000 , 2860000 , 3640000 } } ; int [ ] sectionSi... | org . junit . Assert . assertArrayEquals ( expected_met_tx_DestinationOffsets [ i ] , actual_met_tx_DestinationOffsets [ i ] ) |
testClass ( ) { java . util . ArrayList < java . lang . String > mock = createMockBuilder ( java . util . ArrayList . class ) . addMockedMethod ( "get" ) . withConstructor ( ) . createMock ( ) ; mock = serialize ( mock ) ; expect ( mock . get ( 1 ) ) . andReturn ( "a" ) ; mock = serialize ( mock ) ; replay ( mock ) ; m... | org . junit . Assert . assertEquals ( "a" , mock . get ( 1 ) ) |
testMmulOp ( ) { org . nd4j . linalg . api . ndarray . INDArray arr = org . nd4j . linalg . factory . Nd4j . create ( new double [ ] [ ] { new double [ ] { 1 , 2 , 3 } , new double [ ] { 4 , 5 , 6 } } ) ; org . nd4j . linalg . api . ndarray . INDArray z = org . nd4j . linalg . factory . Nd4j . create ( 2 , 2 ) ; org . ... | org . junit . Assert . assertEquals ( getFailureMessage ( ) , assertion , z ) |
testRemove ( ) { com . liferay . portal . tools . service . builder . test . model . LVEntryVersion newLVEntryVersion = addLVEntryVersion ( ) ; _persistence . remove ( newLVEntryVersion ) ; com . liferay . portal . tools . service . builder . test . model . LVEntryVersion existingLVEntryVersion = _persistence . fetchBy... | org . junit . Assert . assertNull ( existingLVEntryVersion ) |
testRegistry ( ) { final java . lang . Object candidate = org . geotools . referencing . ReferencingFactoryFinder . getCRSAuthorityFactory ( "EPSG" , null ) ; if ( candidate instanceof org . geotools . referencing . factory . epsg . ThreadedEpsgFactory ) { "<AssertPlaceHolder>" ; } } getCRSAuthorityFactory ( java . lan... | org . junit . Assert . assertSame ( factory , candidate ) |
createFileWatcherConnector_shouldCreateWatchDir ( ) { java . io . File testconnectorFolder = new java . io . File ( tmpFolder . getRoot ( ) , "testconnector" ) ; java . io . File testfile = new java . io . File ( testconnectorFolder , "testfile" ) ; org . openengsb . core . api . model . ConnectorDescription desc = mak... | org . junit . Assert . assertThat ( testconnectorFolder . exists ( ) , org . hamcrest . Matchers . is ( true ) ) |
testSetsEventCategory ( ) { com . eclipsesource . tabris . tracking . internal . analytics . model . hit . EventHit eventHit = new com . eclipsesource . tabris . tracking . internal . analytics . model . hit . EventHit ( ) . setCategory ( "foo" ) ; java . lang . String eventCategory = ( ( java . lang . String ) ( event... | org . junit . Assert . assertEquals ( "foo" , eventCategory ) |
testCustomColumnValidation2 ( ) { try { org . eclipse . birt . data . engine . odaconsumer . ColumnHint columnHint = new org . eclipse . birt . data . engine . odaconsumer . ColumnHint ( "decimalColumn" ) ; columnHint . setAlias ( "My<sp>Decimal<sp>Column" ) ; m_statement . addColumnHint ( columnHint ) ; m_statement . ... | org . junit . Assert . assertEquals ( msg , ex . getMessage ( ) ) |
noCurrentTransaction ( ) { outerTxn = null ; new org . tests . transaction . TestTransactionalSupports . SomeTransactionalWithSupports ( ) . doStuff ( ) ; "<AssertPlaceHolder>" ; } doStuff ( ) { outerTxn = io . ebean . Ebean . currentTransaction ( ) ; org . tests . transaction . TestTransactionalNotSupports . log . inf... | org . junit . Assert . assertNull ( outerTxn ) |
testWriteAccess ( ) { org . nuxeo . ecm . platform . audit . api . AuditLogger writer = org . nuxeo . runtime . api . Framework . getLocalService ( org . nuxeo . ecm . platform . audit . api . AuditLogger . class ) ; "<AssertPlaceHolder>" ; } | org . junit . Assert . assertNotNull ( writer ) |
testGetFiles ( ) { java . util . Date date = new java . util . Date ( ) ; java . lang . String encoding = "file1" 2 ; java . lang . String mimetype = "file1" 0 ; java . util . Map < java . lang . String , byte [ ] > testFiles = new java . util . HashMap < java . lang . String , byte [ ] > ( ) ; testFiles . put ( "file1... | org . junit . Assert . assertEquals ( expected . size ( ) , actual . size ( ) ) |
testGetPersonWithHandler ( ) { org . apache . ibatis . session . SqlSession sqlSession = org . apache . ibatis . submitted . nestedresulthandler . NestedResultHandlerTest . sqlSessionFactory . openSession ( ) ; try { sqlSession . select ( "getPersons" , new org . apache . ibatis . session . ResultHandler ( ) { @ org . ... | org . junit . Assert . assertEquals ( 2 , person . getItems ( ) . size ( ) ) |
testApplyOperation ( ) { ij . process . ImageProcessor image = new ij . process . ByteProcessor ( 100 , 100 ) ; for ( int y = 40 ; y < 60 ; y ++ ) { for ( int x = 40 ; x < 60 ; x ++ ) { image . set ( x , y , 255 ) ; } } inra . ijpb . morphology . Strel strel = inra . ijpb . morphology . strel . SquareStrel . fromDiamet... | org . junit . Assert . assertNotNull ( result ) |
validate_shouldPassValidationIfFieldLengthsAreCorrect ( ) { org . openmrs . Form form = new org . openmrs . Form ( ) ; form . setName ( "name" ) ; form . setVersion ( "1.0" ) ; form . setDescription ( "description" ) ; form . setRetireReason ( "retireReason" ) ; org . springframework . validation . Errors errors = new ... | org . junit . Assert . assertFalse ( errors . hasErrors ( ) ) |
pingFrameShouldMatch ( ) { writer . writePing ( ctx , false , 1234567 , ctx . newPromise ( ) ) ; readFrames ( ) ; org . mockito . ArgumentCaptor < java . lang . Long > captor = org . mockito . ArgumentCaptor . forClass ( long . class ) ; verify ( listener ) . onPingRead ( eq ( ctx ) , captor . capture ( ) ) ; "<AssertP... | org . junit . Assert . assertEquals ( 1234567 , ( ( long ) ( captor . getValue ( ) ) ) ) |
testWaitNanos ( ) { final com . conversantmedia . util . concurrent . AbstractConditionTest . TestQueueCondition tqc = new com . conversantmedia . util . concurrent . AbstractConditionTest . TestQueueCondition ( ) ; final long startTime = java . lang . System . nanoTime ( ) ; tqc . awaitNanos ( 10000000L ) ; final long... | org . junit . Assert . assertTrue ( ( waitTime > 10000000L ) ) |
testGetServerStatistics ( ) { org . bff . javampd . server . MPD mpd = mpdBuilder . build ( ) ; "<AssertPlaceHolder>" ; } getServerStatistics ( ) { return this . serverStatistics ; } | org . junit . Assert . assertNotNull ( mpd . getServerStatistics ( ) ) |
testInvalidContent ( ) { factory = new ro . isdc . wro . extensions . model . factory . JsonModelFactory ( ) { @ ro . isdc . wro . extensions . model . factory . Override protected java . io . InputStream getModelResourceAsStream ( ) throws java . io . IOException { return new java . io . ByteArrayInputStream ( "" . ge... | org . junit . Assert . assertNull ( factory . create ( ) ) |
constructorInitializesFields ( ) { java . util . Properties mockProperties = mock ( java . util . Properties . class ) ; org . powermock . api . mockito . PowerMockito . whenNew ( java . util . Properties . class ) . withAnyArguments ( ) . thenReturn ( mockProperties ) ; when ( mockProperties . get ( eq ( "version" ) )... | org . junit . Assert . assertEquals ( "0.1.0" , fi . helsinki . cs . tmc . cli . io . EnvironmentUtil . getVersion ( ) ) |
lockShouldReturnFalseIfTheRowIsAlreadyLocked ( ) { initShouldNotCreateTheSchemaIfItAlreadyExists ( ) ; reset ( connection , metaData , statement , preparedStatement , resultSet ) ; expect ( connection . isClosed ( ) ) . andReturn ( false ) ; expect ( connection . prepareStatement ( ( ( "SELECT<sp>*<sp>FROM<sp>" + ( tab... | org . junit . Assert . assertFalse ( lockAcquired ) |
testSpecExample2_03 ( ) { org . apache . tomcat . websocket . server . UriTemplate t = new org . apache . tomcat . websocket . server . UriTemplate ( "/a/{var}" ) ; java . util . Map < java . lang . String , java . lang . String > result = t . match ( new org . apache . tomcat . websocket . server . UriTemplate ( "/a" ... | org . junit . Assert . assertNull ( result ) |
mockGenericClassHavingTypeArgumentOfArrayTypeWithGenericComponent ( mockit . GenericMockedTypesTest$GenericBase ) { mockit . List < ? > [ ] result = mock . doSomething ( ) ; "<AssertPlaceHolder>" ; } doSomething ( ) { return 1 ; } | org . junit . Assert . assertEquals ( 0 , result . length ) |
testNullValueReference ( ) { org . orbisgis . legend . structure . categorize . CategorizedString cs = new org . orbisgis . legend . structure . categorize . CategorizedString ( new org . orbisgis . coremap . renderer . se . parameter . string . StringLiteral ( "youhou" ) ) ; "<AssertPlaceHolder>" ; } getValueReference... | org . junit . Assert . assertNull ( cs . getValueReference ( ) ) |
testNewWithLocation ( ) { net . java . cargotracker . domain . model . handling . HandlingEvent event1 = new net . java . cargotracker . domain . model . handling . HandlingEvent ( cargo , new java . util . Date ( ) , new java . util . Date ( ) , HandlingEvent . Type . CLAIM , net . java . cargotracker . domain . model... | org . junit . Assert . assertEquals ( SampleLocations . HELSINKI , event1 . getLocation ( ) ) |
testTrashAndRestoreWithDraftStatusRestoreStatus ( ) { org . junit . Assume . assumeTrue ( ( ( this ) instanceof com . liferay . trash . test . util . WhenHasDraftStatus ) ) ; com . liferay . portal . kernel . service . ServiceContext serviceContext = com . liferay . portal . kernel . test . util . ServiceContextTestUti... | org . junit . Assert . assertEquals ( oldStatus , workflowedModel . getStatus ( ) ) |
testStateToString ( ) { final java . lang . String target = "UID-test1234567890#10001#1/PartETag-1,2/PartETag-2,3/PartETag-3,4/PartETag-4#20002#REDUCED_REDUNDANCY#30003#8675309" ; org . apache . nifi . processors . aws . s3 . PutS3Object . MultipartState state2 = new org . apache . nifi . processors . aws . s3 . PutS3O... | org . junit . Assert . assertEquals ( target , state2 . toString ( ) ) |
testOnlyTagsOrSelect ( ) { org . opencastproject . mediapackage . selector . TrackSelector tagsSelector = new org . opencastproject . mediapackage . selector . TrackSelector ( ) ; tagsSelector . addTag ( tag ) ; "<AssertPlaceHolder>" ; } select ( org . opencastproject . mediapackage . MediaPackage , boolean ) { java . ... | org . junit . Assert . assertEquals ( 1 , tagsSelector . select ( mediaPackage , false ) . size ( ) ) |
createPortletToolbarContributor ( ) { wizardAction . openNewLiferayModuleWizard ( ) ; wizardAction . newModule . prepareMaven ( project . getName ( ) , com . liferay . ide . ui . module . tests . PORTLET_TOOLBAR_CONTRIBUTOR ) ; wizardAction . finish ( ) ; jobAction . waitForNoRunningJobs ( ) ; viewAction . project . op... | org . junit . Assert . assertTrue ( viewAction . project . visibleFileTry ( com . liferay . ide . ui . module . tests . NewModuleProjectWizardLiferayWorkspaceMavenTests . liferayWorkspace . getModuleFiles ( project . getName ( ) ) ) ) |
getRoles ( ) { java . lang . String view = new de . blizzy . documentr . web . access . RolesController ( ) . getRoles ( ) ; "<AssertPlaceHolder>" ; } getRoles ( ) { java . lang . String view = new de . blizzy . documentr . web . access . RolesController ( ) . getRoles ( ) ; org . junit . Assert . assertEquals ( "/user... | org . junit . Assert . assertEquals ( "/user/role/index" , view ) |
testValidateLimits6 ( ) { java . lang . String string = new java . lang . String ( new int [ ] { 41 } , 0 , 1 ) ; boolean result = org . oscm . validator . ADMValidator . containsOnlyValidIdChars ( string ) ; "<AssertPlaceHolder>" ; } containsOnlyValidIdChars ( java . lang . String ) { if ( value == null ) { return tru... | org . junit . Assert . assertTrue ( result ) |
testDefineTemplate ( ) { org . stringtemplate . v4 . STGroup group = new org . stringtemplate . v4 . STGroup ( ) ; group . defineTemplate ( "inc" , "x" , "<x>+1" ) ; group . defineTemplate ( "test" , "name" , "hi<sp><name>!" ) ; org . stringtemplate . v4 . ST st = group . getInstanceOf ( "test" ) ; st . add ( "name" , ... | org . junit . Assert . assertEquals ( expected , result ) |
testNotInEnum ( ) { java . lang . String str = ( ( ( ( ( ( ( ( ( "import<sp>" + ( org . drools . modelcompiler . domain . EnumFact1 . class . getCanonicalName ( ) ) ) + ";\n" ) + "import<sp>" ) + ( org . drools . modelcompiler . domain . ChildFactWithEnum1 . class . getCanonicalName ( ) ) ) + ";\n" ) + "rule<sp>R<sp>wh... | org . junit . Assert . assertEquals ( 1 , ksession . fireAllRules ( ) ) |
testRemoveActionReturnsUIConfiguration ( ) { com . eclipsesource . tabris . ui . UIConfiguration configuration = new com . eclipsesource . tabris . ui . UIConfiguration ( ) ; configuration . addActionConfiguration ( new com . eclipsesource . tabris . ui . ActionConfiguration ( "foo" , com . eclipsesource . tabris . int... | org . junit . Assert . assertSame ( configuration , actualConfiguration ) |
testThaiLocaleVerification ( ) { java . util . Locale defaultLocale = java . util . Locale . getDefault ( ) ; try { java . util . Locale . setDefault ( new java . util . Locale ( "th" , "TH" ) ) ; org . w3c . dom . Document doc = org . apache . wss4j . dom . common . SOAPUtil . toSOAPPart ( SOAPUtil . SAMPLE_SOAP_MSG )... | org . junit . Assert . assertNotNull ( actionResult ) |
testTarIncludesSubmoduleDirectory ( ) { writeTrashFile ( "a" , "a<sp>file<sp>with<sp>content!" ) ; writeTrashFile ( "c" , "after<sp>submodule" ) ; git . add ( ) . addFilepattern ( "a" ) . call ( ) ; git . add ( ) . addFilepattern ( "c" ) . call ( ) ; git . commit ( ) . setMessage ( "c" 0 ) . call ( ) ; git . submoduleA... | org . junit . Assert . assertArrayEquals ( expect , actual ) |
getBrandingURL ( ) { "<AssertPlaceHolder>" ; } getBrandingURL ( ) { org . junit . Assert . assertEquals ( "/oscm-portal" , bean . getBrandingURL ( ) ) ; } | org . junit . Assert . assertEquals ( "/oscm-portal" , bean . getBrandingURL ( ) ) |
testGetMessageCountUpTo ( ) { long expected = 123L ; when ( _proxy . getMessageCountUpTo ( test . integration . queue . DedupQueueJerseyTest . APIKEY_QUEUE , "queue-name" , 10000L ) ) . thenReturn ( expected ) ; long actual = queueClient ( ) . getMessageCountUpTo ( "queue-name" , 10000L ) ; "<AssertPlaceHolder>" ; veri... | org . junit . Assert . assertEquals ( actual , expected ) |
testFindByStatus ( ) { final java . util . List < org . feuyeux . jaxrs2 . atup . core . domain . AtupTestSuite > suiteList = dao . findByStatus ( AtupParam . NORMAL_SUITE ) ; "<AssertPlaceHolder>" ; } getSuiteStatus ( ) { return suiteStatus ; } | org . junit . Assert . assertEquals ( AtupParam . NORMAL_SUITE , suiteList . get ( 0 ) . getSuiteStatus ( ) ) |
getDrugsByIngredient_shouldReturnDrugsMatchedByDrugConcept ( ) { java . util . List < org . openmrs . Drug > drugs = conceptService . getDrugsByIngredient ( new org . openmrs . Concept ( 792 ) ) ; "<AssertPlaceHolder>" ; } size ( ) { return getMemberships ( ) . stream ( ) . filter ( ( m ) -> ! ( m . getVoided ( ) ) ) .... | org . junit . Assert . assertEquals ( 1 , drugs . size ( ) ) |
testHashGeneration ( ) { int [ ] setBits = new int [ ] { 2 , 5 , 8 , 9 , 12 , 14 , 17 , 18 , 20 , 21 , 25 , 30 , 44 , 45 , 46 , 47 , 48 , 49 , 50 , 51 , 52 , 53 , 54 , 55 , 56 , 57 , 58 , 59 , 60 , 61 , 62 , 71 , 75 , 79 , 83 , 87 , 91 , 95 , 99 , 102 , 103 , 105 , 107 , 108 , 109 , 111 , 112 , 114 , 115 , 117 , 118 , ... | org . junit . Assert . assertEquals ( testSet , board . getCacheId ( ) ) |
should_return_this ( ) { org . fest . assertions . api . StringAssert returned = assertions . contains ( "yo" ) ; "<AssertPlaceHolder>" ; } contains ( long [ ] ) { arrays . assertContains ( description , actual , values ) ; return this ; } | org . junit . Assert . assertSame ( assertions , returned ) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.